/* Site-wide header (matches the new homepage header). Loaded on every page except the homepage; the old Elementor header is hidden. */
.isph-promo, .isph-header, .isph-header * { box-sizing: border-box; }
.isph-promo { background: #2F9ED0; color: #fff; text-align: center; padding: 8px 14px; font: 600 12.5px/1.45 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 28px; }
.isph-promo b { font-weight: 800; }
.isph-promo a { color: #fff !important; text-decoration: underline; font-weight: 700; cursor: pointer; }
.isph-header { position: sticky; top: 0; z-index: 9990; background: rgba(255,255,255,.97); border-bottom: 1px solid #E4EAF0; height: 72px; padding: 0 14px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; }
body.admin-bar .isph-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .isph-header { top: 46px; } }
.isph-menu-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: flex-start; background: none !important; border: 0 !important; padding: 0; cursor: pointer; color: #1B2A4A !important; box-shadow: none; outline: none; }
.isph-menu-btn:hover, .isph-menu-btn:focus { background: none !important; color: #1B2A4A !important; }
.isph-menu-btn:focus-visible { outline: 2px solid #2F9ED0; outline-offset: 2px; }
.isph-logo { justify-self: center; width: 150px; height: 38px; display: block; }
.isph-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.isph-icons { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.isph-icon { position: relative; display: flex; color: #1B2A4A !important; text-decoration: none; }
.isph-icon:hover { color: #2F9ED0 !important; }
.isph-badge { position: absolute; top: -8px; right: -10px; background: #8EC33F; color: #fff; font: 700 10px/1 'Inter', sans-serif; border-radius: 999px; min-width: 16px; height: 16px; display: none; align-items: center; justify-content: center; padding: 0 4px; }
.isph-badge.isph-show { display: flex; }
.isph-nav { position: absolute; left: 14px; right: 14px; top: 64px; display: none; flex-direction: column; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 16px 45px rgba(9,35,74,.12); }
.isph-open .isph-nav { display: flex; }
.isph-nav a { font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; padding: 13px; color: #1B2A4A !important; font-weight: 600; font-size: 15px; border-bottom: 1px solid #E4EAF0; text-decoration: none; }
.isph-nav a:last-child { border-bottom: 0; }
.isph-nav a.isph-wide { display: none; }
.isph-nav a.isph-active { color: #2F9ED0 !important; }
@media (min-width: 961px) {
  .isph-header { height: 72px; padding: 0 40px; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .isph-menu-btn { display: none; }
  .isph-logo { grid-column: 1; grid-row: 1; justify-self: start; width: 180px; height: 40px; }
  .isph-nav { grid-column: 2; grid-row: 1; position: static; display: flex !important; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; box-shadow: none; border-radius: 0; white-space: nowrap; }
  .isph-nav a { padding: 0; border: 0; }
  .isph-nav a:hover { color: #2F9ED0 !important; }
  .isph-nav a.isph-wide { display: inline; }
  .isph-icons { grid-column: 3; grid-row: 1; gap: 20px; }
}

/* Cart drawer */
.isph-drawer { display: none; position: fixed; inset: 0; z-index: 99990; background: rgba(9,20,38,.5); font-family: 'Poppins', 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; }
.isph-drawer.isph-d-open { display: block; }
.isph-drawer * { box-sizing: border-box; }
.isph-d-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 90%; max-width: 400px; background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(9,20,38,.2); animation: isphSlide .25s ease; }
@keyframes isphSlide { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .isph-d-panel { animation: none; } }
.isph-d-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #E4EAF0; }
.isph-d-head h3 { margin: 0; font-size: 18px; color: #1B2A4A; }
.isph-d-close { background: none !important; border: 0 !important; padding: 6px; cursor: pointer; display: flex; color: #1B2A4A !important; }
.isph-d-body { flex: 1; overflow-y: auto; padding: 8px 20px; transition: opacity .15s; }
.isph-d-empty { padding: 40px 0; text-align: center; color: #8797A5; font-size: 14px; }
.isph-d-empty a { display: inline-block; margin-top: 14px; color: #2F9ED0; font-weight: 700; text-decoration: none; }
.isph-d-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #E4EAF0; }
.isph-d-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #F7FAFC; flex-shrink: 0; }
.isph-d-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.isph-d-info { flex: 1; min-width: 0; }
.isph-d-name { font-size: 14px; font-weight: 700; color: #1B2A4A; margin: 0 0 4px; line-height: 1.35; }
.isph-d-meta { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 6px; }
.isph-d-price { font-size: 14px; font-weight: 700; color: #1B2A4A; }
.isph-d-qty { display: inline-flex; align-items: center; border: 1px solid #E4EAF0; border-radius: 8px; overflow: hidden; }
.isph-d-qty span { min-width: 30px; text-align: center; font-size: 13px; font-weight: 700; color: #1B2A4A; }
.isph-d-qty button { width: 30px; height: 30px; border: 0 !important; border-radius: 0 !important; background: #F7FAFC !important; color: #1B2A4A !important; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.isph-d-qty button:hover { background: #EAF6FB !important; }
.isph-d-remove { background: none !important; border: 0 !important; padding: 2px; cursor: pointer; color: #8797A5 !important; font-size: 12px; text-decoration: underline; }
.isph-d-foot { padding: 16px 20px 20px; border-top: 1px solid #E4EAF0; }
.isph-d-sub { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 15px; color: #1B2A4A; }
.isph-d-sub strong { font-size: 19px; }
.isph-d-checkout, .isph-d-view { display: flex; align-items: center; justify-content: center; width: 100%; border-radius: 11px; font-weight: 700; text-decoration: none; }
.isph-d-checkout { min-height: 48px; background: #8EC33F; color: #fff !important; font-size: 15px; margin-bottom: 10px; }
.isph-d-view { min-height: 44px; background: #fff; color: #1B2A4A !important; border: 1px solid #E4EAF0; font-size: 14px; }

/* ── Layout, footer, prose, blog (new site) ── */
html { -webkit-text-size-adjust: 100%; }
.site-body { margin: 0; font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: #1B2A4A; background: #fff; line-height: 1.6; }
.site-main { min-height: 60vh; }
.site-shell .site-main { min-height: 0; }   /* pages in the original design have no minimum height */
.site-body a { color: #1F7FAE; }
.prose-wrap, .list-wrap { max-width: 820px; margin: 0 auto; padding: 36px 18px 56px; }
.list-wrap { max-width: 1100px; }
.prose-wrap.center { text-align: center; padding-top: 80px; }
.prose-title { font-size: clamp(26px, 5vw, 38px); line-height: 1.2; margin: 6px 0 18px; font-weight: 800; color: #1B2A4A; text-wrap: balance; }
.post-meta { margin: 0; font-size: 13px; color: #64748B; }
.post-hero { display: block; width: 100%; height: auto; border-radius: 14px; margin: 0 0 22px; }
.prose { font-size: 17px; line-height: 1.75; color: #2A3A55; }
.prose h2, .prose h3 { color: #1B2A4A; line-height: 1.3; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid #E4EAF0; padding: 8px 10px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; color: #1B2A4A !important; border: 1px solid #E4EAF0; border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; padding-bottom: 14px; }
.card:hover { box-shadow: 0 10px 28px rgba(11,27,43,.10); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #EAF6FB; }
.card-title { font-weight: 700; padding: 4px 14px 0; line-height: 1.35; }
.card-excerpt { font-size: 14px; color: #64748B; padding: 0 14px; line-height: 1.5; }
.related { max-width: 1100px; margin: 0 auto; padding: 0 18px 56px; }
.related h2 { font-size: 22px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 32px; font-size: 15px; }
.site-footer { background: #2F9ED0; color: #fff; margin-top: 40px; }
.site-footer a { color: #fff !important; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer-inner { max-width: 1100px; margin: 0 auto; padding: 40px 18px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.site-footer p { margin: 0 0 6px; font-size: 14.5px; }
.site-footer-logo { display: block; margin-bottom: 12px; filter: brightness(0) invert(1); }
.site-footer-legal { border-top: 1px solid rgba(255,255,255,.25); text-align: center; font-size: 12.5px; padding: 14px 18px; }
@media (max-width: 760px) { .site-footer-inner { grid-template-columns: 1fr; gap: 22px; } }

/* the old theme sets Poppins on every link; the header uses the homepage's Inter */
.isph-header .isph-nav a { font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; }

/* Top bar: identical to the homepage's. Phones/tablets match the mobile home page (stacked, small, regular weight); desktop matches the desktop home page. */
body .isph-promo { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 7px 12px; font: 400 12px/1.4 'Poppins', 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; text-align: center; }
body .isph-promo a { font-weight: 700; }
@media (min-width: 961px) {
  body .isph-promo { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 32px; padding: 9px 40px; font: 600 12.5px/normal 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; }
  body .isph-promo a { font-weight: inherit; }
}
body .isph-promo a { font-family: inherit; }

/* Logo and icons sit exactly where the homepage's do. */
body .isph-header { grid-template-columns: 48px 1fr 48px; }
body .isph-icons { gap: 14px; }
@media (min-width: 961px) {
  body .isph-header { height: 72.8px; padding-left: max(40px, calc((100% - 1600px) / 2 + 40px)); padding-right: max(40px, calc((100% - 1600px) / 2 + 40px)); grid-template-columns: 1fr auto 1fr; }
  body .isph-icons { gap: 20px; }
}
