/* ═══════════════════════════════════════════════
   LINKWI THEME — MAIN STYLESHEET
═══════════════════════════════════════════════ */
:root{
  --primary:#0B5FD9;--primary-light:#EEF4FC;--primary-dark:#094CAE;
  --bg:#F6F8FB;--fg:#0B1220;--card:#FFFFFF;
  --muted:#EEF1F6;--muted-fg:#64748B;--border:rgba(11,18,32,.08);
  --dark-bg:#0B1220;--emerald:#10B981;--radius:12px;
  --shadow-sm:0 1px 3px rgba(11,18,32,.06);
  --shadow-md:0 4px 16px rgba(11,18,32,.08);
  --shadow-lg:0 12px 40px rgba(11,18,32,.12);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'DM Sans',system-ui,sans-serif;background:var(--bg);color:var(--fg);line-height:1.6;padding-top:4rem}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{cursor:pointer;font-family:inherit}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-family:'Outfit',system-ui,sans-serif;font-weight:800;line-height:1.1;letter-spacing:-.02em}

/* Layout */
.linkwi-container{width:100%;max-width:1280px;margin:0 auto;padding:0 1.5rem;box-sizing:border-box}

/* Defensive width guard for WooCommerce archive/shop pages specifically —
   ensures the hero, category pills, and product grid always use the same
   1280px content width as the rest of the site, regardless of any
   third-party or legacy WooCommerce CSS that might otherwise apply. */
body.woocommerce-page .shop-hero{width:100%}
body.woocommerce-page .shop-hero .linkwi-container,
body.woocommerce-page .shop-cat-filter,
body.woocommerce-page .products-grid,
body.woocommerce-page .empty-state{
  width:100%;
  max-width:1280px;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}
.section{padding:5rem 0}
.section--white{background:#fff}
.section--bg{background:var(--bg)}
.section--dark{background:var(--dark-bg);color:#fff}

/* Section Label */
.section-label{display:inline-flex;align-items:center;gap:.5rem;font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--primary);margin-bottom:.75rem}
.section-label::before{content:'';display:block;width:1.75rem;height:2px;background:var(--primary);border-radius:9px}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:'DM Sans',sans-serif;font-weight:600;border-radius:8px;border:none;cursor:pointer;transition:all .18s ease;white-space:nowrap;text-decoration:none}
.btn--sm{padding:.45rem 1rem;font-size:.8rem}
.btn--md{padding:.6rem 1.25rem;font-size:.9rem}
.btn--lg{padding:.85rem 1.75rem;font-size:1rem}
.btn--primary{background:var(--primary);color:#fff}
.btn--primary:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 6px 20px rgba(11,95,217,.35)}
.btn--secondary{background:var(--primary-light);color:var(--primary)}
.btn--secondary:hover{background:#dce9ff}
.btn--outline{background:transparent;color:var(--fg);border:1.5px solid var(--border)}
.btn--outline:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}
.btn--ghost{background:transparent;color:var(--muted-fg)}
.btn--ghost:hover{color:var(--fg)}
.btn--ghost-white{background:rgba(255,255,255,.1);color:rgba(255,255,255,.85)}
.btn--ghost-white:hover{background:rgba(255,255,255,.2);color:#fff}

/* Tags */
.tag{display:inline-flex;align-items:center;padding:.2rem .6rem;border-radius:6px;font-size:.7rem;font-weight:700}
.tag--blue{background:#EEF4FF;color:var(--primary)}
.tag--green{background:#D1FAE5;color:#065F46}
.tag--gray{background:var(--muted);color:var(--muted-fg)}

/* ── HEADER ── */
:root{
  --header-logo-height:20px;
  --header-button-height:34px;
}
@media(max-width:1023px){:root{--header-logo-height:18px;--header-button-height:30px;}}
@media(max-width:639px){:root{--header-logo-height:16px;--header-button-height:26px;}}

.site-header{position:fixed;top:0;left:0;right:0;z-index:1000;height:4rem;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--border);display:flex;align-items:center}
.header-inner{width:100%;max-width:1280px;margin:0 auto;padding:0 1.5rem;display:flex;align-items:center;gap:2rem}
.site-logo{font-family:'Outfit',sans-serif;font-size:1.35rem;font-weight:900;color:var(--fg);letter-spacing:-.03em;text-decoration:none;display:flex;align-items:center;height:var(--header-logo-height);max-width:220px;overflow:hidden;flex-shrink:0}
.site-logo span{color:var(--primary)}

/* Header logo (both the Customizer-uploaded logo AND the bundled LinkWi
   logo file share the .custom-logo-link/.custom-logo classes — see
   linkwi_logo() in functions.php). The rendered height is pinned to the
   exact same CSS variable used by the header's action buttons
   (.header-right .btn), so the logo and the Buy Now button are always
   precisely the same height — not an estimate, not a max-height ceiling.
   width:auto + object-fit:contain preserve the logo's aspect ratio; it
   can never stretch, squash, or overflow the fixed-height header. */
.header-inner .custom-logo-link{
  display:flex;
  align-items:center;
  flex-shrink:0;
  max-width:220px;
  overflow:hidden;
}
.header-inner .custom-logo-link img.custom-logo{
  height:var(--header-logo-height);
  width:auto;
  max-width:100%;
  object-fit:contain;
  display:block;
}
@media(max-width:639px){
  .header-inner .custom-logo-link{max-width:150px;}
}
.header-right .btn{height:var(--header-button-height);box-sizing:border-box}

.primary-nav{display:flex;align-items:center;gap:.25rem;flex:1}
.nav-item{position:relative}
.nav-link{display:flex;align-items:center;gap:.3rem;padding:.5rem .75rem;font-size:.875rem;font-weight:600;color:var(--fg);border-radius:6px;transition:background .15s,color .15s;cursor:pointer;background:none;border:none;white-space:nowrap}
.nav-link:hover,.nav-item:hover>.nav-link{color:var(--primary);background:var(--primary-light)}
.nav-link svg{transition:transform .2s}
.nav-item:hover>.nav-link svg{transform:rotate(180deg)}
.nav-dropdown{position:absolute;top:calc(100% + .5rem);left:0;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:.75rem;min-width:240px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:all .18s ease;z-index:200}
.nav-item:hover>.nav-dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.nav-dropdown--wide{min-width:480px;display:grid;grid-template-columns:1fr 1fr;gap:.25rem}
.dropdown-item{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem;border-radius:8px;transition:background .14s;cursor:pointer;text-decoration:none;color:inherit}
.dropdown-item:hover{background:var(--bg)}
.dropdown-icon{width:2rem;height:2rem;background:var(--primary-light);color:var(--primary);border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.dropdown-label{font-size:.8rem;font-weight:700;color:var(--fg);margin-bottom:.1rem}
.dropdown-desc{font-size:.72rem;color:var(--muted-fg);line-height:1.4}
.header-right{display:flex;align-items:center;gap:.75rem;margin-left:auto}
.cart-btn{position:relative;display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:8px;background:var(--muted);color:var(--fg);border:none;cursor:pointer;transition:background .15s;text-decoration:none}
.cart-btn:hover{background:var(--primary-light);color:var(--primary)}
.cart-count{position:absolute;top:-.3rem;right:-.3rem;background:var(--primary);color:#fff;font-size:.6rem;font-weight:700;min-width:1.1rem;height:1.1rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.cart-count.hidden{display:none}
.mobile-toggle{display:none;flex-direction:column;gap:5px;padding:.5rem;background:none;border:none;cursor:pointer}
.mobile-toggle span{display:block;width:22px;height:2px;background:var(--fg);border-radius:2px;transition:all .25s}
.mobile-nav{position:fixed;top:4rem;left:0;right:0;bottom:0;background:#fff;z-index:999;overflow-y:auto;padding:1.5rem;display:none}
.mobile-nav.open{display:block}
.mobile-nav-group{margin-bottom:1.5rem}
.mobile-nav-group__label{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-fg);margin-bottom:.5rem}
.mobile-nav-link{display:block;padding:.6rem .75rem;font-size:.9rem;font-weight:600;color:var(--fg);border-radius:6px;text-decoration:none;transition:background .14s}
.mobile-nav-link:hover{background:var(--bg);color:var(--primary)}
@media(max-width:1023px){.primary-nav{display:none}.mobile-toggle{display:flex}}

/* ── FOOTER ── */
.site-footer{background:var(--dark-bg);color:rgba(255,255,255,.75)}
.footer-newsletter{padding:3rem 0;border-bottom:1px solid rgba(255,255,255,.08)}
.footer-newsletter__inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.footer-newsletter h3{font-size:1.35rem;color:#fff;margin-bottom:.25rem}
.footer-newsletter p{font-size:.875rem;color:rgba(255,255,255,.55)}
.newsletter-form{display:flex;gap:.5rem}
.newsletter-form input{padding:.65rem 1rem;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;font-size:.875rem;width:260px;outline:none}
.newsletter-form input::placeholder{color:rgba(255,255,255,.35)}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2.5rem;padding:3rem 0;border-bottom:1px solid rgba(255,255,255,.08)}
.footer-col__label{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.35);margin-bottom:1rem}
.footer-col a{display:block;font-size:.875rem;color:rgba(255,255,255,.65);margin-bottom:.6rem;transition:color .15s}
.footer-col a:hover{color:#fff}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 0;flex-wrap:wrap;gap:1rem}
.footer-contact{display:flex;gap:1.5rem;flex-wrap:wrap;padding:1rem 0;border-top:1px solid rgba(255,255,255,.07);font-size:.8rem;color:#9CA3AF}
.footer-contact a,.footer-contact span{display:inline-flex;align-items:center;gap:.4rem;color:#9CA3AF;transition:color .15s}
.footer-contact a:hover{color:#fff}
.footer-social{display:flex;gap:.6rem}
.footer-social__link{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:8px;background:rgba(255,255,255,.06);color:#9CA3AF;transition:all .15s}
.footer-social__link:hover{background:var(--primary);color:#fff}

/* ── Announcement bar ── */
.linkwi-announcement-bar{background:var(--fg);color:#fff;text-align:center;font-size:.8rem;font-weight:600;padding:.55rem 1rem}
.linkwi-announcement-bar a{color:#fff;text-decoration:underline;text-underline-offset:2px}

/* ── Sticky header toggle ── */
.site-header--static{position:static}
body.linkwi-header-static{padding-top:0}
.footer-logo{font-family:'Outfit',sans-serif;font-size:1.1rem;font-weight:900;color:#fff;display:flex;align-items:center;max-height:2rem;max-width:200px;overflow:hidden}
.footer-logo span{color:var(--primary)}
.footer-bottom .custom-logo-link{display:flex;align-items:center;flex-shrink:0;max-width:200px;overflow:hidden}
.footer-bottom .custom-logo-link img.custom-logo{height:auto;width:auto;max-height:2rem;max-width:100%;object-fit:contain;display:block;filter:brightness(0) invert(1)}
.footer-copy{font-size:.8rem;color:rgba(255,255,255,.35)}
@media(max-width:767px){.footer-grid{grid-template-columns:1fr 1fr}.footer-newsletter__inner{flex-direction:column;align-items:flex-start}.newsletter-form{width:100%;flex-direction:column}.newsletter-form input{width:100%}}

/* ── HERO ── */
.hero{position:relative;min-height:88vh;display:flex;align-items:center;overflow:hidden;background:linear-gradient(135deg,#F4F7FC 0%,#EBF2FF 50%,#F4F7FC 100%)}
.hero-bg-grid{position:absolute;inset:0;pointer-events:none;opacity:.4}
.hero-inner{position:relative;max-width:1280px;margin:0 auto;padding:5rem 1.5rem;width:100%;display:grid;grid-template-columns:1fr 460px;gap:4rem;align-items:center}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;background:#fff;border:1px solid var(--border);border-radius:9999px;padding:.4rem .9rem;font-size:.72rem;font-weight:700;color:var(--primary);margin-bottom:1.75rem;box-shadow:var(--shadow-sm)}
.hero-badge-dot{width:.4rem;height:.4rem;background:var(--emerald);border-radius:50%}
.hero h1{font-size:clamp(2.8rem,5.5vw,4.2rem);font-weight:900;color:var(--fg);line-height:1.02;letter-spacing:-.03em;margin-bottom:1.5rem}
.hero h1 .accent{color:var(--primary)}
.hero-sub{font-size:1.1rem;color:var(--muted-fg);line-height:1.7;margin-bottom:2rem;max-width:500px}
.hero-ctas{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:2.5rem}
.hero-trust{display:flex;flex-wrap:wrap;gap:1.5rem}
.hero-trust-item{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--muted-fg)}
.hero-trust-item svg{color:var(--primary)}
.hero-products{display:flex;flex-direction:column;gap:.75rem}
.hero-product-main{background:#fff;border:1px solid var(--border);border-radius:1rem;padding:1.25rem;cursor:pointer;transition:box-shadow .18s;text-decoration:none;color:inherit;display:block}
.hero-product-main:hover{box-shadow:var(--shadow-md)}
.hero-product-main-inner{display:flex;align-items:center;gap:1.25rem}
.hero-product-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.hero-product-mini{background:#fff;border:1px solid var(--border);border-radius:1rem;padding:1rem;cursor:pointer;transition:box-shadow .18s;text-decoration:none;color:inherit;display:block}
.hero-product-mini:hover{box-shadow:var(--shadow-md)}
.hero-product-hub{background:linear-gradient(135deg,#EEF2FF,#E0EAFF);border-color:rgba(11,95,217,.1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;text-align:center}
@media(max-width:1023px){.hero-inner{grid-template-columns:1fr}.hero-products{display:none}}

/* ── CATEGORY CARDS ── */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.cat-card{border-radius:1rem;padding:2rem;border:1px solid var(--border);display:flex;flex-direction:column}
.cat-card--blue{background:linear-gradient(135deg,#EEF4FF,#E0EAFF)}
.cat-card--green{background:linear-gradient(135deg,#EFF9F5,#D8F5EA)}
.cat-card--purple{background:linear-gradient(135deg,#F4F0FF,#E8DFFE)}
.cat-card__img{height:9rem;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem}
.cat-card__sub{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--primary);margin-bottom:.25rem}
.cat-card h3{font-size:1.35rem;font-weight:800;margin-bottom:.5rem}
.cat-card p{font-size:.875rem;color:var(--muted-fg);line-height:1.6;margin-bottom:1rem;flex:1}
.cat-card__benefits{margin-bottom:1.5rem}
.cat-card__benefits li{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:var(--fg);margin-bottom:.35rem}
.cat-card__benefits li svg{color:var(--primary);flex-shrink:0}
@media(max-width:767px){.cat-grid{grid-template-columns:1fr}}

/* ── PRODUCT CARDS ── */
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;width:100%}
.product-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .18s,transform .18s}
.product-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.product-card__img{background:var(--muted);height:10rem;display:flex;align-items:center;justify-content:center;position:relative}
.product-card__badge{position:absolute;top:.75rem;left:.75rem}
.product-card__body{padding:1.25rem;flex:1;display:flex;flex-direction:column}
.product-card__name{font-size:.9rem;font-weight:800;margin-bottom:.25rem}
.product-card__tagline{font-size:.78rem;color:var(--muted-fg);line-height:1.5;margin-bottom:.75rem;flex:1}
.product-card__price{font-size:1.35rem;font-weight:900;margin-bottom:.75rem}
.product-card__actions{display:flex;gap:.5rem}
@media(max-width:1023px){.products-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:639px){.products-grid{grid-template-columns:1fr}}

/* ── SOLUTION SELECTOR ── */
.solution-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-bottom:1.5rem}
.solution-option{display:flex;align-items:flex-start;gap:1rem;padding:1.25rem;border-radius:.75rem;border:2px solid var(--border);background:var(--card);cursor:pointer;text-align:left;transition:all .15s;width:100%;font-family:inherit}
.solution-option:hover{border-color:rgba(11,95,217,.3);background:var(--muted)}
.solution-option.active{border-color:var(--primary);background:var(--primary-light)}
.solution-icon{width:2.5rem;height:2.5rem;border-radius:.6rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--muted);transition:background .15s}
.solution-option.active .solution-icon{background:var(--primary);color:#fff}
.solution-option__label{font-size:.875rem;font-weight:700;margin-bottom:.15rem}
.solution-option.active .solution-option__label{color:var(--primary)}
.solution-option__desc{font-size:.78rem;color:var(--muted-fg);line-height:1.4}
.solution-result{background:linear-gradient(90deg,#EEF4FF,#E4EDFF);border:1px solid rgba(11,95,217,.1);border-radius:1rem;padding:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.solution-result__rec{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--primary);margin-bottom:.25rem}
.solution-result__name{font-size:1.2rem;font-weight:800;margin-bottom:.25rem}
.solution-result__desc{font-size:.85rem;color:var(--muted-fg)}
@media(max-width:639px){.solution-grid{grid-template-columns:1fr}}

/* ── MATTER SECTION (dark) ── */
.matter-section{position:relative;padding:5rem 0;background:var(--dark-bg);color:#fff;overflow:hidden}
.matter-dots{position:absolute;inset:0;pointer-events:none;opacity:.08}
.matter-inner{position:relative;max-width:1280px;margin:0 auto;padding:0 1.5rem;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.matter-badge{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.1);border-radius:9999px;padding:.35rem .9rem;font-size:.72rem;font-weight:700;color:#93C5FD;margin-bottom:1.5rem}
.matter-badge-dot{width:.4rem;height:.4rem;background:#60A5FA;border-radius:50%}
.matter-section h2{font-size:clamp(2rem,3.5vw,2.75rem);font-weight:900;margin-bottom:1rem}
.matter-desc{font-size:1rem;color:#D1D5DB;line-height:1.7;margin-bottom:1rem}
.matter-subdesc{font-size:.9rem;color:#9CA3AF;line-height:1.7;margin-bottom:2rem}
.matter-ctas{display:flex;gap:.75rem;flex-wrap:wrap}
.matter-devices-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.matter-device-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);border-radius:.75rem;padding:1.25rem;display:flex;flex-direction:column;align-items:center;gap:.5rem;text-align:center}
.matter-device-icon{width:2.5rem;height:2.5rem;border-radius:.6rem;display:flex;align-items:center;justify-content:center}
.matter-device-label{font-size:.75rem;font-weight:600;color:#D1D5DB}
@media(max-width:1023px){.matter-inner{grid-template-columns:1fr;gap:2.5rem}}
@media(max-width:639px){.matter-devices-grid{grid-template-columns:repeat(2,1fr)}}

/* ── WHY LINKWI ── */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.why-card{padding:1.5rem;border-radius:1rem;border:1px solid var(--border);transition:border-color .15s,background .15s}
.why-card:hover{border-color:rgba(11,95,217,.2);background:#F8FAFF}
.why-card__icon{width:2.5rem;height:2.5rem;background:var(--primary-light);color:var(--primary);border-radius:.75rem;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.why-card h3{font-size:1rem;font-weight:800;margin-bottom:.5rem}
.why-card p{font-size:.83rem;color:var(--muted-fg);line-height:1.6}
@media(max-width:1023px){.why-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:639px){.why-grid{grid-template-columns:1fr}}

/* ── TECH RESOURCES ── */
.tech-resources{padding:3.5rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--bg)}
.tech-resources__label{font-size:.82rem;font-weight:700;color:var(--muted-fg);margin-bottom:1.25rem}
.tech-resources-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.tech-resource-card{display:flex;align-items:center;gap:1rem;padding:1.25rem;background:var(--card);border:1px solid var(--border);border-radius:.75rem;cursor:pointer;text-align:left;transition:border-color .15s,background .15s;text-decoration:none;color:inherit;font-family:inherit;width:100%}
.tech-resource-card:hover{border-color:rgba(11,95,217,.2);background:#F8FAFF}
.tech-resource-icon{width:2.5rem;height:2.5rem;background:var(--muted);border-radius:.6rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s}
.tech-resource-card:hover .tech-resource-icon{background:var(--primary-light);color:var(--primary)}
.tech-resource-icon svg{color:var(--muted-fg);transition:color .15s}
.tech-resource-card:hover .tech-resource-icon svg{color:var(--primary)}
.tech-resource-text{flex:1;min-width:0}
.tech-resource-text strong{display:block;font-size:.875rem;font-weight:700;margin-bottom:.1rem}
.tech-resource-text span{font-size:.75rem;color:var(--muted-fg)}
.tech-resource-arrow{color:var(--muted-fg);flex-shrink:0;transition:color .15s}
.tech-resource-card:hover .tech-resource-arrow{color:var(--primary)}
@media(max-width:1023px){.tech-resources-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:639px){.tech-resources-grid{grid-template-columns:1fr}}

/* ── STORE CTA ── */
.store-cta{background:linear-gradient(135deg,var(--primary),#3B6FE8);color:#fff;padding:5rem 0;text-align:center}
.store-cta h2{font-size:2.5rem;font-weight:900;margin-bottom:1rem}
.store-cta p{font-size:1.1rem;color:rgba(255,255,255,.8);margin-bottom:2rem;max-width:520px;margin-inline:auto}
.store-cta__btns{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* ── JOURNAL ── */
.journal-hero{background:linear-gradient(135deg,#F4F7FC,#EBF2FF);padding:5rem 0 3rem;text-align:center;border-bottom:1px solid var(--border)}
.journal-hero h1{font-size:clamp(2.2rem,4vw,3.2rem);font-weight:900;margin-bottom:.75rem}
.journal-hero p{font-size:1.05rem;color:var(--muted-fg);max-width:520px;margin:0 auto}
.journal-nav{position:sticky;top:4rem;z-index:100;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.journal-nav-inner{max-width:1280px;margin:0 auto;padding:0 1.5rem;display:flex;align-items:center;gap:1rem;overflow-x:auto;scrollbar-width:none}
.journal-nav-inner::-webkit-scrollbar{display:none}
.journal-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.75rem 1rem;font-size:.83rem;font-weight:600;color:var(--muted-fg);border-bottom:2px solid transparent;cursor:pointer;background:none;border-left:none;border-right:none;border-top:none;white-space:nowrap;transition:color .14s,border-color .14s;font-family:inherit}
.journal-pill:hover{color:var(--primary);border-bottom-color:rgba(11,95,217,.3)}
.journal-pill.active{color:var(--primary);border-bottom-color:var(--primary)}
.journal-search-wrap{margin-left:auto;padding:.5rem 0;flex-shrink:0}
.journal-search{display:flex;align-items:center;gap:.5rem;background:var(--muted);border-radius:8px;padding:.4rem .75rem;width:200px;transition:width .2s}
.journal-search:focus-within{width:260px;background:var(--primary-light)}
.journal-search svg{color:var(--muted-fg);flex-shrink:0}
.journal-search input{background:none;border:none;outline:none;font-size:.85rem;width:100%;color:var(--fg)}
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.article-card{background:var(--card);border:1px solid var(--border);border-radius:1rem;overflow:hidden;cursor:pointer;transition:box-shadow .18s,transform .18s;display:flex;flex-direction:column}
.article-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.article-card .article-thumb{width:100%;height:160px}
.article-card__body{padding:1.25rem;flex:1;display:flex;flex-direction:column}
.article-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.6rem}
.article-meta__date{font-size:.72rem;color:var(--muted-fg)}
.article-card__title{font-size:.95rem;font-weight:800;margin-bottom:.5rem;line-height:1.35;flex:1}
.article-card__excerpt{font-size:.8rem;color:var(--muted-fg);line-height:1.55;margin-bottom:.75rem}
.article-card__footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto}
.article-time{display:flex;align-items:center;gap:.3rem;font-size:.72rem;color:var(--muted-fg)}
.article-thumb{display:flex;align-items:center;justify-content:center;flex-shrink:0}
.article-thumb__icon{opacity:.85}
@media(max-width:1023px){.article-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:639px){.article-grid{grid-template-columns:1fr}}

/* Featured Stories */
.featured-stories{padding:4rem 0}
.featured-stories h2{font-size:1.75rem;font-weight:800;margin-bottom:1.5rem}
.featured-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:1.5rem}
.featured-main{border-radius:1rem;overflow:hidden;background:var(--card);border:1px solid var(--border);cursor:pointer;transition:box-shadow .18s;text-decoration:none;color:inherit;display:block}
.featured-main:hover{box-shadow:var(--shadow-md)}
.featured-main .article-thumb{height:220px;width:100%}
.featured-main__body{padding:1.5rem}
.featured-side{display:flex;flex-direction:column;gap:1rem}
.featured-side-card{display:flex;gap:1rem;background:var(--card);border:1px solid var(--border);border-radius:.75rem;overflow:hidden;cursor:pointer;transition:box-shadow .18s;text-decoration:none;color:inherit}
.featured-side-card:hover{box-shadow:var(--shadow-sm)}
.featured-side-card .article-thumb{width:100px;height:80px;flex-shrink:0}
.featured-side-card__body{padding:.75rem .75rem .75rem 0;flex:1}
@media(max-width:1023px){.featured-grid{grid-template-columns:1fr}}

/* Buying Guides */
.buying-guides{padding:4rem 0;border-top:1px solid var(--border)}
.buying-guides h2{font-size:1.75rem;font-weight:800;margin-bottom:1.5rem}
.guides-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.guide-card{border-radius:.75rem;overflow:hidden;cursor:pointer;border:1px solid var(--border);background:var(--card);display:flex;flex-direction:column;transition:box-shadow .18s;text-decoration:none;color:inherit}
.guide-card:hover{box-shadow:var(--shadow-md)}
.guide-card .article-thumb{height:100px;width:100%}
.guide-card__body{padding:1rem;flex:1}
.guide-card__title{font-size:.875rem;font-weight:800;margin-bottom:.35rem}
.guide-card__desc{font-size:.75rem;color:var(--muted-fg);line-height:1.5}
.guide-card__meta{display:flex;align-items:center;gap:.35rem;margin-top:.5rem;font-size:.7rem;color:var(--muted-fg)}
@media(max-width:767px){.guides-grid{grid-template-columns:1fr 1fr}}
@media(max-width:639px){.guides-grid{grid-template-columns:1fr}}

/* Matter Spotlight */
.matter-spotlight{margin:4rem 0;background:var(--dark-bg);border-radius:1rem;padding:3rem;display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;color:#fff}
.matter-spotlight h2{font-size:1.75rem;font-weight:900;margin-bottom:.75rem}
.matter-spotlight p{font-size:.9rem;color:rgba(255,255,255,.65);line-height:1.7;margin-bottom:1.5rem}
.matter-spotlight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}
.matter-spotlight-item{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:.5rem;padding:.75rem;text-align:center}
.matter-spotlight-item__icon{width:2rem;height:2rem;border-radius:.4rem;margin:0 auto .4rem;display:flex;align-items:center;justify-content:center}
.matter-spotlight-item__label{font-size:.7rem;color:rgba(255,255,255,.65)}
@media(max-width:1023px){.matter-spotlight{grid-template-columns:1fr}}

/* Popular Articles */
.popular-articles{padding:4rem 0;border-top:1px solid var(--border)}
.popular-articles h2{font-size:1.75rem;font-weight:800;margin-bottom:1.5rem}
.popular-list{display:flex;flex-direction:column;gap:.75rem}
.popular-item{display:flex;align-items:center;gap:1.25rem;padding:1rem 1.25rem;background:var(--card);border:1px solid var(--border);border-radius:.75rem;cursor:pointer;transition:box-shadow .15s;text-decoration:none;color:inherit}
.popular-item:hover{box-shadow:var(--shadow-sm)}
.popular-item__num{font-size:1.1rem;font-weight:900;color:var(--muted-fg);width:2rem;flex-shrink:0;font-family:'JetBrains Mono',monospace}
.popular-item__thumb{width:3.5rem;height:2.75rem;border-radius:.4rem;overflow:hidden;flex-shrink:0}
.popular-item__thumb .article-thumb{width:100%;height:100%}
.popular-item__title{font-size:.875rem;font-weight:700;flex:1;line-height:1.4}
.popular-item__time{font-size:.72rem;color:var(--muted-fg)}

/* Journal Newsletter */
.journal-newsletter{background:linear-gradient(135deg,var(--primary),#3B6FE8);color:#fff;border-radius:1rem;padding:3rem;display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center;margin:4rem 0}
.journal-newsletter h2{font-size:1.5rem;font-weight:900;margin-bottom:.5rem}
.journal-newsletter p{font-size:.9rem;color:rgba(255,255,255,.75)}
.journal-newsletter-form{display:flex;gap:.5rem}
.journal-newsletter-form input{padding:.65rem 1rem;border-radius:8px;border:none;background:rgba(255,255,255,.15);color:#fff;font-size:.875rem;width:240px;outline:none}
.journal-newsletter-form input::placeholder{color:rgba(255,255,255,.5)}
@media(max-width:1023px){.journal-newsletter{grid-template-columns:1fr}.journal-newsletter-form{flex-direction:column}.journal-newsletter-form input{width:100%}}

/* Article detail */
.article-layout{max-width:1280px;margin:0 auto;padding:3rem 1.5rem 5rem;display:grid;grid-template-columns:1fr 280px;gap:3rem;align-items:start}
.article-header h1{font-size:clamp(1.8rem,3vw,2.5rem);font-weight:900;line-height:1.1;margin-bottom:1rem}
.article-header__meta{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;color:var(--muted-fg);font-size:.83rem}
.article-body{font-size:1rem;line-height:1.75;color:var(--fg)}
.article-body h2{font-size:1.5rem;font-weight:800;margin:2rem 0 .75rem}
.article-body h3{font-size:1.15rem;font-weight:800;margin:1.5rem 0 .5rem}
.article-body p{margin-bottom:1rem}
.article-body ul{margin:0 0 1rem 1.25rem;list-style:disc}
.article-body ul li{margin-bottom:.4rem}
.article-body .callout{border-radius:.75rem;padding:1.25rem 1.5rem;margin:1.5rem 0;border-left:4px solid}
.article-body .callout--tip{background:#EFF9F5;border-color:var(--emerald)}
.article-body .callout--warning{background:#FFFBEB;border-color:#F59E0B}
.article-body .callout--technical{background:var(--primary-light);border-color:var(--primary)}
.article-body .callout__title{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.4rem}
.article-body .callout p{margin:0;font-size:.875rem}
.toc-box{background:var(--card);border:1px solid var(--border);border-radius:.75rem;padding:1.25rem;margin-bottom:1.5rem}
.toc-box__title{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-fg);margin-bottom:.75rem}
.toc-box a{display:flex;align-items:center;gap:.5rem;font-size:.83rem;color:var(--muted-fg);padding:.4rem 0;border-bottom:1px solid var(--border);text-decoration:none;transition:color .14s}
.toc-box a:last-child{border-bottom:none}
.toc-box a:hover{color:var(--primary)}
@media(max-width:1023px){.article-layout{grid-template-columns:1fr}}

/* Product detail */
.product-detail-layout{max-width:1280px;margin:0 auto;padding:2.5rem 1.5rem;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start}
.product-detail-img{background:#fff;border:1px solid var(--border);border-radius:1rem;height:340px;display:flex;align-items:center;justify-content:center}
.product-detail-info h1{font-size:2rem;font-weight:900;margin-bottom:.5rem}
.product-detail-tagline{font-size:1rem;color:var(--muted-fg);margin-bottom:1.5rem}
.product-detail-price{font-size:2.5rem;font-weight:900;margin-bottom:.35rem}
.product-detail-stock{font-size:.875rem;color:var(--emerald);font-weight:600;margin-bottom:1.5rem}
.product-detail-benefits{margin-bottom:2rem}
.product-detail-benefits li{display:flex;align-items:center;gap:.6rem;font-size:.9rem;margin-bottom:.5rem}
.product-detail-benefits li svg{color:var(--primary);flex-shrink:0}
.product-detail-actions{display:flex;gap:.75rem;margin-bottom:1.5rem;flex-wrap:wrap}
.product-detail-actions>.btn--lg{min-width:9rem}

/* ── "Buy on Amazon" button (native theme feature, not a plugin) ── */
:root{
  --amazon-btn-radius:8px;
  --amazon-btn-color:#0B1220;
  --amazon-btn-hover:#0B5FD9;
}
.btn--amazon{border-radius:var(--amazon-btn-radius);transition:transform .18s ease,background .18s ease,border-color .18s ease,color .18s ease}
.btn--amazon svg{flex-shrink:0}
.btn--amazon-logo{height:13px;width:auto;flex-shrink:0;object-fit:contain;display:block}
.btn--amazon-extlink{opacity:.55;margin-left:.1rem}
.btn--amazon-outline{background:#fff;color:var(--amazon-btn-color);border:1.5px solid var(--border)}
.btn--amazon-outline:hover{border-color:var(--amazon-btn-hover);color:var(--amazon-btn-hover);transform:translateY(-1px)}
.btn--amazon-filled{background:var(--amazon-btn-color);color:#fff;border:1.5px solid var(--amazon-btn-color)}
.btn--amazon-filled:hover{background:var(--amazon-btn-hover);border-color:var(--amazon-btn-hover);transform:translateY(-1px)}
.btn--amazon:focus-visible{outline:2px solid var(--amazon-btn-hover);outline-offset:2px}
@media(max-width:479px){.product-detail-actions>.btn--lg{min-width:100%}}
.tab-nav{display:flex;border-bottom:2px solid var(--border);gap:.5rem;margin-bottom:2rem}
.tab-btn{padding:.75rem 1.25rem;font-size:.875rem;font-weight:700;color:var(--muted-fg);border:none;background:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;transition:color .14s,border-color .14s;font-family:inherit}
.tab-btn:hover{color:var(--primary)}
.tab-btn.active{color:var(--primary);border-bottom-color:var(--primary)}
.tab-panel{display:none}
.tab-panel.active{display:block}
.specs-table{width:100%;border-collapse:collapse}
.specs-table td{padding:.75rem 1rem;border-bottom:1px solid var(--border);font-size:.875rem}
.specs-table td:first-child{font-weight:700;width:40%;color:var(--muted-fg)}
.faq-item{border-bottom:1px solid var(--border)}
.faq-btn{width:100%;display:flex;align-items:center;justify-content:space-between;padding:1.25rem 0;font-size:.95rem;font-weight:700;color:var(--fg);background:none;border:none;cursor:pointer;text-align:left;font-family:inherit;gap:1rem}
.faq-btn svg{flex-shrink:0;transition:transform .2s;color:var(--muted-fg)}
.faq-item.open .faq-btn svg{transform:rotate(180deg);color:var(--primary)}
.faq-body{max-height:0;overflow:hidden;transition:max-height .3s ease}
.faq-body p{padding-bottom:1.25rem;font-size:.875rem;color:var(--muted-fg);line-height:1.7}
.faq-item.open .faq-body{max-height:400px}
@media(max-width:1023px){.product-detail-layout{grid-template-columns:1fr;gap:2rem}}

/* ── Firmware Downloads page ── */
.firmware-panel-layout{display:grid;grid-template-columns:140px 1fr;gap:2rem;align-items:start}
@media(max-width:639px){.firmware-panel-layout{grid-template-columns:1fr}}

/* ── Real product photos (replaces the SVG placeholder wherever a featured image exists) ── */
.linkwi-product-photo{max-width:100%;object-fit:contain;display:block}
.product-card__img .linkwi-product-photo{max-height:9rem}
.product-detail-img .linkwi-product-photo{max-height:300px;padding:1.5rem}
.cat-card__img .linkwi-product-photo{max-height:8rem}
.hero-product-main-inner .linkwi-product-photo{width:96px;height:96px;object-fit:contain;flex-shrink:0}
.hero-product-grid .linkwi-product-photo,.hero-product-hub .linkwi-product-photo{max-width:80px;max-height:80px;object-fit:contain}

/* ── Quantity input: remove native browser spin buttons, cross-browser ── */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-input[type=number]{-moz-appearance:textfield;appearance:textfield}

/* ── WooCommerce sorting dropdown + result count (fired via woocommerce_before_shop_loop) ── */
.woocommerce-result-count{font-size:.875rem;color:var(--muted-fg);margin:0 0 1rem}
.woocommerce-ordering{margin:0 0 1.5rem;display:inline-block}
.woocommerce-ordering select.orderby{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  font-family:'DM Sans',sans-serif;font-size:.875rem;font-weight:600;color:var(--fg);
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .75rem center;background-size:16px;
  border:1.5px solid var(--border);border-radius:var(--radius);
  padding:.6rem 2.25rem .6rem 1rem;cursor:pointer;transition:border-color .15s,box-shadow .15s;
}
.woocommerce-ordering select.orderby:hover{border-color:var(--primary)}
.woocommerce-ordering select.orderby:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(11,95,217,.12)}
@media(max-width:479px){.woocommerce-ordering select.orderby{width:100%}}

/* ── Shop / Archive */
.shop-hero{background:linear-gradient(135deg,#F4F7FC,#EBF2FF);padding:4rem 0;border-bottom:1px solid var(--border)}
.shop-hero h1{font-size:2.5rem;font-weight:900;margin-bottom:.5rem}
.shop-hero p{font-size:1rem;color:var(--muted-fg)}
.shop-cat-filter{display:flex;gap:.5rem;flex-wrap:wrap;padding:1.5rem 0;border-bottom:1px solid var(--border);margin-bottom:2rem}
.shop-cat-btn{padding:.4rem 1rem;border-radius:9999px;font-size:.83rem;font-weight:600;border:1.5px solid var(--border);background:var(--card);cursor:pointer;transition:all .14s;font-family:inherit}
.shop-cat-btn:hover{border-color:var(--primary);color:var(--primary)}
.shop-cat-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}

/* Cart / Checkout */
.cart-layout,.checkout-layout{max-width:1024px;margin:0 auto;padding:3rem 1.5rem;display:grid;grid-template-columns:1fr 340px;gap:2.5rem;align-items:start}
.cart-item-row{display:flex;align-items:center;gap:1.25rem;padding:1.25rem 0;border-bottom:1px solid var(--border)}
.cart-item-img{width:70px;height:70px;background:var(--muted);border-radius:.5rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cart-item-name{font-size:.95rem;font-weight:700;margin-bottom:.2rem}
.cart-item-sub{font-size:.8rem;color:var(--muted-fg)}
.cart-summary{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;position:sticky;top:5.5rem}
.cart-summary h3{font-size:1rem;font-weight:800;margin-bottom:1.25rem}
.cart-summary-row{display:flex;justify-content:space-between;font-size:.875rem;margin-bottom:.6rem}
.cart-summary-row.total{font-weight:800;font-size:1rem;padding-top:.75rem;border-top:1px solid var(--border);margin-top:.5rem}
.checkout-stepper{display:flex;align-items:center;gap:.5rem;margin-bottom:2rem}
.step-dot{width:2rem;height:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:800;background:var(--muted);color:var(--muted-fg);border:2px solid var(--border)}
.step-dot.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.step-dot.done{background:var(--emerald);color:#fff;border-color:var(--emerald)}
.step-line{flex:1;height:2px;background:var(--border)}
.step-line.done{background:var(--emerald)}
.checkout-field label{display:block;font-size:.8rem;font-weight:700;margin-bottom:.35rem;color:var(--muted-fg)}
.checkout-field input,.checkout-field select{width:100%;padding:.65rem .9rem;border:1.5px solid var(--border);border-radius:8px;font-size:.9rem;background:var(--card);transition:border-color .15s;outline:none;font-family:inherit}
.checkout-field input:focus,.checkout-field select:focus{border-color:var(--primary)}
.checkout-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
@media(max-width:767px){.cart-layout,.checkout-layout{grid-template-columns:1fr}.checkout-fields-grid{grid-template-columns:1fr}}

/* ── JOURNAL SINGLE (single-post.php) ── */
.linkwi-container-narrow{max-width:760px;margin:0 auto;padding:0 1.5rem}
.journal-single-header{padding:3rem 0 2rem;background:linear-gradient(135deg,#F4F7FC,#EBF2FF);border-bottom:1px solid var(--border)}
.journal-single-breadcrumb{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;font-size:.8rem;color:var(--muted-fg);margin-bottom:1.25rem}
.journal-single-breadcrumb a{color:var(--muted-fg);transition:color .14s}
.journal-single-breadcrumb a:hover{color:var(--primary)}
.journal-single-breadcrumb svg{color:var(--muted-fg);flex-shrink:0}
.journal-category-badge{display:inline-flex;align-items:center;padding:.3rem .75rem;border-radius:6px;font-size:.72rem;font-weight:700;color:#fff;margin-bottom:1rem}
.journal-category-badge-lg{font-size:.75rem;padding:.35rem .85rem}
.journal-single-title{font-size:clamp(1.9rem,3.5vw,2.75rem);font-weight:900;line-height:1.12;letter-spacing:-.02em;margin-bottom:1rem}
.journal-single-meta{display:flex;align-items:center;gap:.6rem;font-size:.85rem;color:var(--muted-fg)}
.journal-single-featured-image{padding:2.5rem 0 0}
.journal-single-featured-image img{width:100%;border-radius:1rem;box-shadow:var(--shadow-md)}
.journal-single-content{padding:2.5rem 0}
.journal-single-content p{margin-bottom:1.1rem;line-height:1.8}
.journal-single-content h2{font-size:1.5rem;font-weight:800;margin:2rem 0 .75rem}
.journal-single-content h3{font-size:1.15rem;font-weight:800;margin:1.5rem 0 .5rem}
.journal-single-content ul,.journal-single-content ol{margin:0 0 1.1rem 1.25rem}
.journal-single-content ul{list-style:disc}
.journal-single-content ol{list-style:decimal}
.journal-single-content li{margin-bottom:.4rem;line-height:1.7}
.journal-single-content img{border-radius:.75rem;margin:1.5rem 0}
.journal-single-footer{padding:2.5rem 0 3.5rem;border-top:1px solid var(--border)}
.journal-single-share{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;font-size:.85rem;color:var(--muted-fg)}
.journal-share-btn{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:8px;background:var(--muted);color:var(--muted-fg);transition:all .15s}
.journal-share-btn:hover{background:var(--primary-light);color:var(--primary)}
.journal-back-link{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:700;color:var(--primary);text-decoration:none}
.journal-back-link:hover{text-decoration:underline}
.journal-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:1.5rem}
.journal-related-card{display:block}
.journal-related-image,.journal-related-placeholder{display:block;width:100%;height:160px;border-radius:1rem;overflow:hidden;margin-bottom:.85rem}
.journal-related-image img{width:100%;height:100%;object-fit:cover}
.journal-related-placeholder{display:flex;align-items:center;justify-content:center}
.journal-related-card h4{font-size:.95rem;font-weight:800;margin-bottom:.4rem;line-height:1.35}
.journal-related-card h4 a{color:var(--fg);transition:color .14s}
.journal-related-card h4 a:hover{color:var(--primary)}
.journal-related-card p{font-size:.8rem;color:var(--muted-fg);line-height:1.55}
@media(max-width:767px){.journal-related-grid{grid-template-columns:1fr}}

/* ── WOOCOMMERCE COMPATIBILITY (cart / checkout / my account) ──
   Cart, Checkout, and My Account render via WooCommerce shortcodes
   inside page.php, using WooCommerce's own default markup/classes —
   this maps that markup onto the same design tokens used everywhere
   else in the theme, without changing any visual design decisions. */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews{
  background:var(--primary-light);color:var(--primary);border-radius:.6rem;padding:1rem 1.25rem;
  font-size:.875rem;margin-bottom:1.5rem;list-style:none;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.woocommerce-error{background:#FEF2F2;color:#B91C1C}
.woocommerce-message .button,.woocommerce-error .button{margin-left:auto}
.woocommerce table.shop_table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-bottom:2rem}
.woocommerce table.shop_table th{background:var(--muted);text-align:left;font-size:.8rem;font-weight:700;padding:.85rem 1rem}
.woocommerce table.shop_table td{padding:.85rem 1rem;border-top:1px solid var(--border);font-size:.875rem;vertical-align:middle}
.woocommerce table.shop_table td.product-thumbnail img{width:64px;border-radius:.5rem}
.woocommerce .quantity .qty{width:3.5rem;padding:.5rem;border:1px solid var(--border);border-radius:6px;font-family:inherit}
.woocommerce a.remove{color:var(--muted-fg)!important;font-size:1.25rem!important}
.woocommerce a.remove:hover{color:#EF4444!important;background:none!important}
.woocommerce .cart-collaterals .cart_totals{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;max-width:420px;margin-left:auto}
.woocommerce .cart_totals table{width:100%}
.woocommerce .cart_totals table th,.woocommerce .cart_totals table td{padding:.6rem 0;border-top:1px solid var(--border);font-size:.875rem}
.woocommerce .cart_totals .order-total th,.woocommerce .cart_totals .order-total td{font-weight:800;font-size:1rem}
.woocommerce form .form-row{margin-bottom:1rem}
.woocommerce form .form-row label{display:block;font-size:.8rem;font-weight:700;margin-bottom:.35rem;color:var(--muted-fg)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row select,.woocommerce form .form-row textarea{
  width:100%;padding:.65rem .9rem;border:1.5px solid var(--border);border-radius:8px;font-size:.9rem;background:var(--card);
  transition:border-color .15s;outline:none;font-family:inherit}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row select:focus{border-color:var(--primary)}
.woocommerce-checkout #payment{background:var(--muted);border-radius:var(--radius);padding:1.5rem;margin-top:1.5rem}
.woocommerce-checkout #payment ul.payment_methods{list-style:none;margin-bottom:1rem}
.woocommerce-checkout #payment div.payment_box{background:var(--card);border-radius:.5rem;padding:1rem;margin-top:.75rem;font-size:.85rem}
.woocommerce button.button,.woocommerce a.button,.woocommerce input.button,.woocommerce #place_order{
  display:inline-flex;align-items:center;gap:.5rem;font-family:'DM Sans',sans-serif;font-weight:600;
  border-radius:8px;border:none;cursor:pointer;transition:all .18s ease;background:var(--primary);color:#fff;
  padding:.75rem 1.5rem;font-size:.9rem;white-space:nowrap;text-decoration:none}
.woocommerce button.button:hover,.woocommerce a.button:hover,.woocommerce #place_order:hover{background:var(--primary-dark)}
.woocommerce-MyAccount-navigation ul{list-style:none;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--border)}
.woocommerce-MyAccount-navigation li:last-child{border-bottom:none}
.woocommerce-MyAccount-navigation li a{display:block;padding:.85rem 1.1rem;font-size:.875rem;font-weight:600;color:var(--fg);transition:background .14s}
.woocommerce-MyAccount-navigation li a:hover{background:var(--muted)}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--primary-light);color:var(--primary)}
.woocommerce-MyAccount-content{margin-top:2rem}
.woocommerce-account .woocommerce{display:grid;grid-template-columns:220px 1fr;gap:2.5rem;align-items:start}
@media(max-width:767px){.woocommerce-account .woocommerce{grid-template-columns:1fr}}
.woocommerce-pagination ul.page-numbers{display:flex;justify-content:center;gap:.5rem;list-style:none;padding:2.5rem 0 0}
.woocommerce-pagination .page-numbers{width:2.25rem;height:2.25rem;border-radius:6px;display:flex;align-items:center;justify-content:center;
  font-size:.875rem;font-weight:700;border:1.5px solid var(--border);background:var(--card);text-decoration:none;color:var(--fg);transition:all .14s}
.woocommerce-pagination .page-numbers.current,.woocommerce-pagination .page-numbers:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
.linkwi-page-prev{transform:rotate(180deg)}

/* Breadcrumb */
.breadcrumb{padding:1rem 0}
.breadcrumb ol{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.breadcrumb__item{display:flex;align-items:center;gap:.5rem;font-size:.8rem}
.breadcrumb__item::after{content:'/';color:var(--muted-fg)}
.breadcrumb__item:last-child::after{display:none}
.breadcrumb__item a{color:var(--muted-fg);text-decoration:none;transition:color .14s}
.breadcrumb__item a:hover{color:var(--primary)}
.breadcrumb__item--active span{color:var(--fg);font-weight:600}

/* Utility */
.hidden{display:none!important}
.empty-state{text-align:center;padding:6rem 1.5rem}
.empty-state h2{font-size:1.75rem;font-weight:900;margin-bottom:.75rem}
.empty-state p{color:var(--muted-fg);margin-bottom:2rem}
.pagination{display:flex;justify-content:center;gap:.5rem;padding:2.5rem 0}
.page-number{width:2.25rem;height:2.25rem;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:700;border:1.5px solid var(--border);background:var(--card);cursor:pointer;transition:all .14s;text-decoration:none;color:var(--fg)}
.page-number:hover,.page-number.current{background:var(--primary);color:#fff;border-color:var(--primary)}
.site-main{min-height:60vh}
.qty-control{display:flex;align-items:center;gap:.5rem}
.qty-btn{width:2.25rem;height:2.25rem;border-radius:6px;border:1px solid var(--border);background:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .14s}
.qty-btn:hover{background:var(--primary-light);color:var(--primary)}
.qty-input{width:3rem;height:2.25rem;text-align:center;border:1px solid var(--border);border-radius:6px;font-size:.9rem;font-weight:700;font-family:'JetBrains Mono',monospace}
