/*
Theme Name:  Zaptronics
Theme URI:   https://zaptronics.co.nz
Author:      Zaptronics Ltd
Author URI:  https://zaptronics.co.nz
Description: Custom WooCommerce theme for Zaptronics.co.nz — precision experimental physics components.
Version:     1.0.22
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License:     Proprietary
Text Domain: zaptronics
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand colours */
    --zap-navy:       #0D1B2A;
    --zap-blue:       #1A6BCC;
    --zap-blue-mid:   #5AAAF5;
    --zap-blue-lt:    #EBF3FC;
    --zap-blue-bdr:   #B8D0EA;

    /* Greys */
    --zap-gray-dk:    #374F63;
    --zap-gray-mid:   #4F6679;
    --zap-gray-lt:    #EEF2F7;

    /* Semantic */
    --zap-amber:      #E6B800;
    --zap-amber-dk:   #2A1E00;
    --zap-green:      #0F6945;
    --zap-green-lt:   #D0EDE3;
    --zap-orange:     #8A4D00;
    --zap-orange-lt:  #FDECD0;
    --zap-red:        #A01E1E;

    /* Surfaces */
    --zap-surface:    #FFFFFF;
    --zap-bg:         #F5F7FA;      /* lighter — less grey fatigue */
    --zap-border:     rgba(13,27,42,0.14);

    /* Text hierarchy — all pass WCAG AA on white */
    --zap-text:       #0D1B2A;      /* 17:1 on white */
    --zap-text-2:     #1E2D3D;      /* warm near-black — easier on eyes */
    --zap-text-3:     #3D5469;      /* 7:1 on white  — captions, labels */

    /* Typography stacks */
    --zap-sans:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --zap-serif:  'Georgia', 'Times New Roman', serif;
    --zap-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Courier New', monospace;

    /* Type scale */
    --zap-text-xs:    11px;
    --zap-text-sm:    13px;
    --zap-text-base:  16px;
    --zap-text-md:    18px;
    --zap-text-lg:    22px;
    --zap-text-xl:    28px;
    --zap-text-2xl:   36px;

    /* Spacing */
    --zap-space-xs:   6px;
    --zap-space-sm:   12px;
    --zap-space-md:   20px;
    --zap-space-lg:   32px;
    --zap-space-xl:   48px;

    /* Shape */
    --zap-radius:     8px;
    --zap-radius-lg:  12px;
    --zap-shadow:     0 1px 4px rgba(0,0,0,0.10);
    --zap-shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --zap-focus:      0 0 0 3px rgba(26,107,204,0.25); /* focus ring */

    /* Sticky layout heights */
    --zap-nav-h:        58px;
    --zap-bc-h:         42px;
    --zap-sticky-top:   100px;
}

/* ── Google Fonts — Inter + JetBrains Mono loaded once ───────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family:           var(--zap-sans);
    background:            var(--zap-bg);
    color:                 var(--zap-text);
    font-size:             18px;          /* comfortable reading size */
    line-height:           1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Sensible defaults for content elements */
p    { line-height: 1.8; margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--zap-text); }

a { color: var(--zap-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.zap-site-header {
    position:   sticky;
    top:        0;
    z-index:    201;                /* above everything */
}

.zap-nav {
    background:  var(--zap-navy);
    display:     flex;
    align-items: center;
    padding:     0 32px;
    height:      var(--zap-nav-h);
    gap:         28px;
    position:    relative;          /* header wrapper handles sticky */
    z-index:     201;
}

.zap-nav__logo {
    display:     flex;
    align-items: center;
    gap:         10px;
    text-decoration: none;
    flex-shrink: 0;
}

.zap-nav__wordmark {
    font-family:    var(--zap-serif);
    font-size:      19px;           /* was 17px */
    font-weight:    700;
    color:          #fff;
    letter-spacing: -0.5px;
}

.zap-nav__wordmark em {
    font-family:    var(--zap-mono);
    font-style:     normal;
    font-weight:    400;
    color:          var(--zap-blue-mid);
    letter-spacing: 1px;
}

.zap-nav__links {
    display:    flex;
    gap:        24px;
    flex:       1;
    list-style: none;
}

.zap-nav__links a {
    font-family:    var(--zap-mono);
    font-size:      13px;
    letter-spacing: 0.5px;
    color:          #B8D0E8;
    text-decoration: none;
    transition:     color 0.15s;
}

.zap-nav__links a:hover,
.zap-nav__links .current-menu-item > a { color: #fff; }

.zap-nav__actions { display: flex; gap: 8px; align-items: center; }

.zap-nav__btn {
    width:        34px;
    height:       34px;
    border-radius: 7px;
    border:       0.5px solid rgba(255,255,255,0.15);
    background:   transparent;
    display:      flex;
    align-items:  center;
    justify-content: center;
    cursor:       pointer;
    color:        #A8C4DC;
    position:     relative;
    text-decoration: none;
}

.zap-nav__btn:hover { background: rgba(255,255,255,0.09); color: #fff; text-decoration: none; }

.zap-nav__cart-count {
    position:    absolute;
    top:         -5px;
    right:       -5px;
    background:  var(--zap-amber);
    color:       var(--zap-amber-dk);
    font-size:   9px;
    font-family: var(--zap-mono);
    font-weight: 700;
    border-radius: 3px;
    padding:     1px 4px;
    min-width:   16px;
    text-align:  center;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.zap-breadcrumb {
    background:    var(--zap-surface);
    border-bottom: 1px solid var(--zap-border);
    padding:       11px 32px;
    display:       flex;
    gap:           8px;
    align-items:   center;
    flex-wrap:     wrap;
    position:      sticky;
    top:           var(--zap-nav-h);
    z-index:       199;             /* below nav, above content */
}

.zap-breadcrumb a {
    font-family:    var(--zap-sans);
    font-size:      12px;
    font-weight:    500;
    letter-spacing: 0;
    color:          var(--zap-gray-dk);
    text-decoration: none;
}

.zap-breadcrumb a:hover { color: var(--zap-blue); }

.zap-breadcrumb__sep  { color: var(--zap-blue-bdr); font-size: 12px; }
.zap-breadcrumb__curr {
    font-family:    var(--zap-sans);
    font-size:      12px;
    font-weight:    600;
    letter-spacing: 0;
    color:          var(--zap-text);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.zap-footer {
    background:  var(--zap-navy);
    padding:     24px 32px;
    display:     flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap:   wrap;
    gap:         14px;
}

.zap-footer__brand {
    font-family:    var(--zap-mono);
    font-size:      13px;           /* was 11px */
    letter-spacing: 0.8px;
    color:          var(--zap-blue-mid);
}

.zap-footer__links { display: flex; gap: 20px; list-style: none; }

.zap-footer__links a {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 1px;
    color:          #7A9DB8;        /* brighter than before */
    text-decoration: none;
}

.zap-footer__links a:hover { color: #A8C4DC; }

.zap-footer__copy {
    font-family: var(--zap-mono);
    font-size:   11px;
    color:       #5A7A94;
}

/* ============================================================
   TAGS & BADGES
   ============================================================ */
.zap-tag {
    display:        inline-block;
    font-family:    var(--zap-mono);
    font-size:      10px;           /* was 8px */
    letter-spacing: 0.5px;
    padding:        3px 9px;        /* was 2px 8px */
    border-radius:  4px;
    font-weight:    600;
}

.zap-tag--blue   { background: var(--zap-blue);     color: #fff; }
.zap-tag--green  { background: var(--zap-green-lt);  color: var(--zap-green); }
.zap-tag--amber  { background: var(--zap-orange-lt); color: var(--zap-orange); }
.zap-tag--navy   { background: var(--zap-navy);      color: var(--zap-blue-mid); }
.zap-tag--new    { background: var(--zap-blue);      color: #fff; }
.zap-tag--sale   { background: var(--zap-amber);     color: var(--zap-amber-dk); }

/* ============================================================
   BUTTONS
   ============================================================ */
.zap-btn {
    display:        inline-block;
    font-family:    var(--zap-mono);
    font-size:      12px;           /* was 10px */
    letter-spacing: 1.5px;
    padding:        11px 22px;
    border-radius:  7px;
    border:         none;
    cursor:         pointer;
    text-decoration: none;
    transition:     background 0.15s, color 0.15s;
    white-space:    nowrap;
}

.zap-btn--primary { background: var(--zap-blue); color: #fff; }
.zap-btn--primary:hover { background: #155ab0; color: #fff; text-decoration: none; }

.zap-btn--outline { background: transparent; color: var(--zap-blue); border: 1.5px solid var(--zap-blue); }
.zap-btn--outline:hover { background: var(--zap-blue); color: #fff; text-decoration: none; }

/* ============================================================
   SECTION LABEL (small caps divider)
   ============================================================ */
.zap-section-label {
    font-family:    var(--zap-sans);
    font-size:      13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color:          var(--zap-text-3);
    margin-bottom:  20px;
    display:        flex;
    align-items:    center;
    gap:            12px;
    font-weight:    700;
}

.zap-section-label::after { content: ''; flex: 1; height: 1px; background: var(--zap-border); }

/* ============================================================
   SHOP HERO
   ============================================================ */
.zap-shop-hero {
    background:    var(--zap-navy);
    padding:       48px 32px 44px;
    display:       flex;
    gap:           32px;
    align-items:   center;
    border-bottom: 1px solid #1A3A54;
}

.zap-shop-hero__eyebrow {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 1px;
    color:          var(--zap-blue-mid);
    margin-bottom:  12px;
}

.zap-shop-hero__heading {
    font-family:    var(--zap-serif);
    font-size:      36px;           /* was 30px */
    font-weight:    700;
    color:          #fff;
    line-height:    1.15;
    margin-bottom:  12px;
    letter-spacing: -0.5px;
}

.zap-shop-hero__heading em { color: var(--zap-blue-mid); font-style: normal; }

.zap-shop-hero__sub {
    font-size:     15px;            /* was 13px */
    color:         #A8C4DC;         /* brighter than --zap-gray-mid */
    line-height:   1.65;
    margin-bottom: 22px;
    max-width:     440px;
}

/* ============================================================
   CATEGORY CHIP STRIP
   ============================================================ */
.zap-cat-strip {
    background:    var(--zap-surface);
    border-bottom: 1px solid var(--zap-border);
    padding:       16px 32px;
    display:       flex;
    gap:           8px;
    flex-wrap:     wrap;
}

.zap-cat-chip {
    font-family:    var(--zap-mono);
    font-size:      12px;           /* was 10px */
    letter-spacing: 1px;
    padding:        7px 16px;
    border-radius:  20px;
    border:         1px solid var(--zap-border);
    color:          var(--zap-text-2);
    cursor:         pointer;
    text-decoration: none;
    transition:     all 0.15s;
}

.zap-cat-chip:hover,
.zap-cat-chip--active {
    background: var(--zap-blue);
    color: #fff;
    border-color: var(--zap-blue);
    text-decoration: none;
}

/* ============================================================
   FEATURED PRODUCT CARDS
   ============================================================ */
.zap-featured { background: var(--zap-surface); border-bottom: 1px solid var(--zap-border); padding: 28px 32px; }

.zap-featured__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.zap-feat-card {
    border:         1.5px solid var(--zap-blue);
    border-radius:  var(--zap-radius-lg);
    background:     var(--zap-surface);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    transition:     box-shadow 0.15s;
}

.zap-feat-card:hover { box-shadow: 0 4px 18px rgba(26,107,204,0.15); }

.zap-feat-card__img {
    height:          120px;
    background:      var(--zap-blue-lt);
    display:         flex;
    align-items:     center;
    justify-content: center;
    border-bottom:   1px solid var(--zap-blue-bdr);
    position:        relative;
}

.zap-feat-card__flag { position: absolute; top: 10px; left: 10px; }

.zap-feat-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.zap-feat-card__cat {
    font-family:    var(--zap-mono);
    font-size:      10px;           /* was 8px */
    letter-spacing: 1.5px;
    color:          var(--zap-text-3);
    margin-bottom:  5px;
    font-weight:    600;
}

.zap-feat-card__name {
    font-size:     16px;            /* was 14px */
    font-weight:   600;
    color:         var(--zap-text);
    margin-bottom: 7px;
    line-height:   1.3;
}

.zap-feat-card__desc {
    font-size:     15px;
    color:         var(--zap-text-2);
    line-height:   1.7;
    flex:          1;
    margin-bottom: 16px;
}

.zap-feat-card__foot { display: flex; justify-content: space-between; align-items: center; }

.zap-feat-card__price {
    font-family: var(--zap-mono);
    font-size:   18px;              /* was not set */
    font-weight: 700;
    color:       var(--zap-blue);
}

/* ============================================================
   CATEGORY SECTION HEADERS
   ============================================================ */
.zap-cat-section { padding: 32px 32px 10px; }

.zap-cat-header {
    display:        flex;
    align-items:    flex-end;
    gap:            16px;
    margin-bottom:  20px;
    border-bottom:  1px solid var(--zap-border);
    padding-bottom: 14px;
}

.zap-cat-header__icon {
    width:           44px;
    height:          44px;
    border-radius:   var(--zap-radius);
    background:      var(--zap-blue-lt);
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    border:          1px solid var(--zap-blue-bdr);
}

.zap-cat-header__title {
    font-family:    var(--zap-serif);
    font-size:      22px;           /* was 18px */
    font-weight:    700;
    color:          var(--zap-text);
    letter-spacing: -0.3px;
}

.zap-cat-header__sub {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 1.5px;
    color:          var(--zap-text-3);
    margin-top:     3px;
}

.zap-cat-header__count {
    font-family:    var(--zap-mono);
    font-size:      11px;
    letter-spacing: 1.5px;
    color:          var(--zap-text-3);
    margin-left:    auto;
    padding-bottom: 3px;
}

/* ============================================================
   PRODUCT GRID CARDS
   ============================================================ */
.zap-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }

.zap-prod-card {
    background:    var(--zap-surface);
    border-radius: var(--zap-radius);
    border:        1px solid var(--zap-border);
    overflow:      hidden;
    cursor:        pointer;
    transition:    border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display:       block;
    color:         var(--zap-text);
}

.zap-prod-card:hover {
    border-color: var(--zap-blue);
    box-shadow:   var(--zap-shadow-md);
    text-decoration: none;
}

.zap-prod-card__img {
    height:          100px;         /* was 90px */
    background:      var(--zap-blue-lt);
    display:         flex;
    align-items:     center;
    justify-content: center;
    border-bottom:   1px solid var(--zap-blue-bdr);
}

.zap-prod-card__body  { padding: 12px 14px; }
.zap-prod-card__sku   {
    font-family:    var(--zap-mono);
    font-size:      10px;           /* was 8px */
    letter-spacing: 1px;
    color:          var(--zap-text-3);
    margin-bottom:  4px;
}
.zap-prod-card__name  { font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.zap-prod-card__foot  { display: flex; justify-content: space-between; align-items: center; }
.zap-prod-card__price { font-family: var(--zap-mono); font-size: 15px; font-weight: 700; color: var(--zap-blue); }

.zap-stock--in  { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--zap-green); }
.zap-stock--low { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--zap-orange); }

/* ============================================================
   CATEGORY LANDING — HERO
   ============================================================ */
.zap-cat-hero {
    background: var(--zap-navy);
    padding:    44px 32px 40px;
    display:    flex;
    gap:        32px;
    align-items: flex-start;
}

.zap-cat-hero__eyebrow {
    font-family:    var(--zap-mono);
    font-size:      11px;
    letter-spacing: 1px;
    color:          var(--zap-blue-mid);
    margin-bottom:  12px;
    display:        flex;
    align-items:    center;
    gap:            10px;
}

.zap-cat-hero__eyebrow::before {
    content: '';
    display: inline-block;
    width:   20px;
    height:  1px;
    background: var(--zap-blue-mid);
}

.zap-cat-hero__heading {
    font-family:    var(--zap-serif);
    font-size:      36px;
    font-weight:    700;
    color:          #fff;
    line-height:    1.15;
    margin-bottom:  14px;
    letter-spacing: -0.5px;
}

.zap-cat-hero__lead {
    font-size:   16px;              /* was 14px */
    color:       #A8C4DC;
    line-height: 1.7;
    max-width:   440px;
}

.zap-cat-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 22px; }

.zap-cat-meta__item { display: flex; flex-direction: column; gap: 4px; }
.zap-cat-meta__label {
    font-family:    var(--zap-mono);
    font-size:      10px;           /* was 8px */
    letter-spacing: 1.5px;
    color:          #5A7A94;
}
.zap-cat-meta__val {
    font-family: var(--zap-mono);
    font-size:   13px;              /* was 11px */
    color:       #A8C4DC;
}

/* ============================================================
   WHAT IS IT SECTION
   ============================================================ */
.zap-what { background: var(--zap-surface); padding: 36px 32px; border-bottom: 1px solid var(--zap-border); }

.zap-what__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.zap-what__body h2 {
    font-family:    var(--zap-serif);
    font-size:      24px;           /* was 20px */
    font-weight:    700;
    margin-bottom:  16px;
    letter-spacing: -0.3px;
}

.zap-what__body p {
    font-size:     17px;
    color:         var(--zap-text-2);
    line-height:   1.85;
    margin-bottom: 18px;
    max-width:     68ch;
}

.zap-what__diagram {
    background:    var(--zap-blue-lt);
    border-radius: var(--zap-radius-lg);
    border:        1px solid var(--zap-blue-bdr);
    padding:       28px;
    display:       flex;
    align-items:   center;
    justify-content: center;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.zap-steps { padding: 36px 32px; background: var(--zap-bg); border-bottom: 1px solid var(--zap-border); }

.zap-steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.zap-step-card {
    background:    var(--zap-surface);
    border-radius: var(--zap-radius);
    border:        1px solid var(--zap-border);
    padding:       20px;
}

.zap-step-card__num   {
    font-family: var(--zap-mono);
    font-size:   28px;
    font-weight: 700;
    color:       var(--zap-blue-bdr);
    margin-bottom: 10px;
}
.zap-step-card__title {
    font-size:     17px;
    font-weight:   600;
    color:         var(--zap-text);
    margin-bottom: 9px;
}
.zap-step-card__body  {
    font-size:   16px;
    color:       var(--zap-text-2);
    line-height: 1.75;
}

/* ============================================================
   MEDIA GRID
   ============================================================ */
.zap-media { padding: 36px 32px; background: var(--zap-surface); border-bottom: 1px solid var(--zap-border); }

.zap-media__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }

.zap-media__item {
    border-radius: var(--zap-radius);
    overflow:      hidden;
    background:    var(--zap-navy);
    border:        1px solid #1A3A54;
    cursor:        pointer;
}

.zap-media__item:hover { border-color: var(--zap-blue); }

.zap-media__thumb { position: relative; display: flex; align-items: center; justify-content: center; background: #071420; }
.zap-media__thumb--lg { height: 200px; }
.zap-media__thumb--sm { height: 140px; }

.zap-media__play-btn {
    width:          42px;
    height:         42px;
    border-radius:  50%;
    background:     rgba(26,107,204,0.85);
    display:        flex;
    align-items:    center;
    justify-content: center;
    color:          #fff;
    font-size:      16px;
    position:       absolute;
}

.zap-media__caption { padding: 10px 14px; }
.zap-media__caption p {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 1px;
    color:          #7A9DB8;
}

/* ============================================================
   RESOURCE CHIPS
   ============================================================ */
.zap-resources { padding: 24px 32px; background: var(--zap-bg); border-bottom: 1px solid var(--zap-border); }
.zap-resources__row { display: flex; gap: 10px; flex-wrap: wrap; }

.zap-resource-chip {
    display:     flex;
    align-items: center;
    gap:         12px;
    background:  var(--zap-surface);
    border:      1px solid var(--zap-border);
    border-radius: var(--zap-radius);
    padding:     12px 16px;
    cursor:      pointer;
    text-decoration: none;
    transition:  border-color 0.15s;
    color:       var(--zap-text);
}

.zap-resource-chip:hover { border-color: var(--zap-blue); text-decoration: none; }

.zap-resource-chip__icon  { font-size: 20px; color: var(--zap-blue); }
.zap-resource-chip__title {
    font-family:    var(--zap-mono);
    font-size:      12px;           /* was 10px */
    letter-spacing: 1px;
    color:          var(--zap-text);
    margin-bottom:  2px;
}
.zap-resource-chip__sub { font-size: 14px; color: var(--zap-text-2); }

/* ============================================================
   COMPONENT LIST CARDS (category page)
   ============================================================ */
.zap-comp-list { padding: 36px 32px; background: var(--zap-surface); }
.zap-comp-list__items { display: flex; flex-direction: column; gap: 16px; }

.zap-comp-card {
    border:        1px solid var(--zap-border);
    border-radius: var(--zap-radius-lg);
    overflow:      hidden;
    display:       grid;
    grid-template-columns: 130px 1fr auto;
    transition:    border-color 0.15s, box-shadow 0.15s;
}

.zap-comp-card:hover { border-color: var(--zap-blue); box-shadow: var(--zap-shadow-md); }

.zap-comp-card__img {
    background:  var(--zap-blue-lt);
    display:     flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--zap-blue-bdr);
}

.zap-comp-card__body { padding: 18px 20px; }

.zap-comp-card__meta   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.zap-comp-card__sku    {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 1.5px;
    color:          var(--zap-text-3);
    background:     var(--zap-blue-lt);
    padding:        3px 9px;
    border-radius:  3px;
}
.zap-comp-card__name   {
    font-family:    var(--zap-serif);
    font-size:      18px;           /* was 16px */
    font-weight:    700;
    color:          var(--zap-text);
    margin-bottom:  7px;
    letter-spacing: -0.2px;
}
.zap-comp-card__desc   {
    font-size:     16px;
    color:         var(--zap-text-2);
    line-height:   1.8;
    margin-bottom: 18px;
}

.zap-comp-card__specs  { display: flex; gap: 20px; flex-wrap: wrap; }
.zap-comp-spec__label  {
    font-family:    var(--zap-mono);
    font-size:      10px;           /* was 8px */
    letter-spacing: 1px;
    color:          var(--zap-text-3);
}
.zap-comp-spec__val    {
    font-family: var(--zap-mono);
    font-size:   12px;              /* was 10px */
    color:       var(--zap-text-2);
}

.zap-comp-card__aside {
    padding:         16px 18px;
    display:         flex;
    flex-direction:  column;
    align-items:     flex-end;
    justify-content: space-between;
    border-left:     1px solid var(--zap-border);
    min-width:       140px;
}

.zap-comp-card__price     { font-family: var(--zap-mono); font-size: 22px; font-weight: 700; color: var(--zap-blue); }
.zap-comp-card__price-sub { font-family: var(--zap-mono); font-size: 11px; color: var(--zap-text-3); margin-top: 2px; }

.zap-comp-card__actions { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }

.zap-btn--sm {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 1px;
    padding:        8px 14px;
    border-radius:  5px;
    cursor:         pointer;
    border:         none;
    white-space:    nowrap;
}

.zap-btn--sm-primary  { background: var(--zap-blue); color: #fff; }
.zap-btn--sm-primary:hover { background: #155ab0; }
.zap-btn--sm-outline  { background: transparent; color: var(--zap-gray-dk); border: 1px solid var(--zap-border); }
.zap-btn--sm-outline:hover { border-color: var(--zap-blue); color: var(--zap-blue); }

/* ============================================================
   PRODUCT DETAIL — HERO
   ============================================================ */
.zap-single-product { background: var(--zap-surface); padding: 36px 32px; border-bottom: 1px solid var(--zap-border); }

.zap-product-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }

.zap-product-gallery__main {
    background:    var(--zap-blue-lt);
    border-radius: var(--zap-radius-lg);
    border:        1px solid var(--zap-blue-bdr);
    height:        260px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    margin-bottom: 14px;
    overflow:      hidden;
}

.zap-product-gallery__main img { max-height: 100%; width: auto; }

.zap-product-gallery__thumbs { display: flex; gap: 10px; }

.zap-product-gallery__thumb {
    width:        62px;
    height:       62px;
    border-radius: var(--zap-radius);
    background:   var(--zap-blue-lt);
    border:       1px solid var(--zap-blue-bdr);
    overflow:     hidden;
    cursor:       pointer;
    display:      flex;
    align-items:  center;
    justify-content: center;
}

.zap-product-gallery__thumb.active { border: 2px solid var(--zap-blue); }

.zap-product-info__sku-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.zap-product-info__sku {
    font-family:    var(--zap-mono);
    font-size:      12px;           /* was 9px */
    letter-spacing: 0.8px;
    color:          var(--zap-text-3);
}

.zap-product-info__name {
    font-family:    var(--zap-serif);
    font-size:      30px;           /* was 26px */
    font-weight:    700;
    color:          var(--zap-text);
    line-height:    1.15;
    margin-bottom:  12px;
    letter-spacing: -0.5px;
}

.zap-product-info__tagline {
    font-size:     17px;
    color:         var(--zap-text-2);
    line-height:   1.8;
    margin-bottom: 22px;
    max-width:     60ch;
}

.zap-product-info__compat-label {
    font-family:    var(--zap-mono);
    font-size:      10px;           /* was 8px */
    letter-spacing: 1.5px;
    color:          var(--zap-text-3);
    margin-bottom:  9px;
    font-weight:    600;
}

.zap-product-info__compat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.zap-compat-chip {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 0.5px;
    padding:        5px 12px;
    border-radius:  20px;
    border:         1.5px solid var(--zap-blue);
    color:          var(--zap-blue);
    background:     var(--zap-blue-lt);
    cursor:         pointer;
    text-decoration: none;
    transition:     all 0.15s;
}

.zap-compat-chip:hover { background: var(--zap-blue); color: #fff; text-decoration: none; }

/* Buy box */
.zap-buy-box { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.zap-buy-box__price     { font-family: var(--zap-mono); font-size: 34px; font-weight: 700; color: var(--zap-blue); }
.zap-buy-box__price-sub { font-family: var(--zap-mono); font-size: 11px; color: var(--zap-text-3); margin-top: 3px; }

.zap-qty {
    display:       flex;
    align-items:   center;
    border:        1px solid #ccc;
    border-radius: 7px;
    overflow:      hidden;
}

.zap-qty__btn {
    width:      36px;
    height:     44px;
    background: #f5f5f5;
    border:     none;
    font-size:  20px;
    cursor:     pointer;
    color:      var(--zap-gray-dk);
}

.zap-qty__btn:hover { background: #e8e8e8; }

.zap-qty__input {
    width:        40px;
    height:       44px;
    text-align:   center;
    border:       none;
    border-left:  1px solid #ccc;
    border-right: 1px solid #ccc;
    font-family:  var(--zap-mono);
    font-size:    15px;
    color:        var(--zap-text);
    background:   #fff;
}

.zap-btn--wish {
    width:        44px;
    height:       44px;
    border-radius: 7px;
    border:       1px solid #ccc;
    background:   transparent;
    cursor:       pointer;
    color:        var(--zap-gray-dk);
    font-size:    20px;
    display:      flex;
    align-items:  center;
    justify-content: center;
}

.zap-btn--wish:hover { border-color: var(--zap-blue); color: var(--zap-blue); }

.zap-delivery-row { display: flex; gap: 20px; flex-wrap: wrap; padding: 16px 0 0; border-top: 1px solid var(--zap-border); }
.zap-delivery-item { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--zap-text-2); }
.zap-delivery-item__icon { font-size: 18px; color: var(--zap-blue); }
.zap-delivery-item strong { font-weight: 600; color: var(--zap-text); }

/* ============================================================
   PRODUCT TABS
   ============================================================ */
.zap-product-tabs {
    background:    var(--zap-surface);
    border-bottom: 1px solid var(--zap-border);
    padding:       0 32px;
    display:       flex;
    position:      sticky;
    top:           var(--zap-sticky-top);   /* nav + breadcrumb */
    z-index:       98;              /* below breadcrumb */
}

.zap-product-tab {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 1.5px;
    padding:        16px 18px;
    cursor:         pointer;
    color:          var(--zap-gray-dk);
    border-bottom:  2.5px solid transparent;
    margin-bottom:  -1px;
    transition:     color 0.15s;
    text-decoration: none;
    background:     none;
    border-top:     none;
    border-left:    none;
    border-right:   none;
}

.zap-product-tab:hover { color: var(--zap-text); text-decoration: none; }
.zap-product-tab.active { color: var(--zap-blue); border-bottom-color: var(--zap-blue); }

.zap-tab-panel { display: none; }
.zap-tab-panel.active { display: block; }

/* ============================================================
   OVERVIEW TAB
   ============================================================ */
.zap-overview { padding: 40px 36px; background: var(--zap-surface); }

.zap-overview__grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }

.zap-overview__body h2 {
    font-family:    var(--zap-serif);
    font-size:      24px;
    font-weight:    700;
    margin-bottom:  16px;
    letter-spacing: -0.3px;
}

.zap-overview__body p  {
    font-size:     17px;
    color:         var(--zap-text-2);
    line-height:   1.85;
    margin-bottom: 18px;
    max-width:     68ch;  /* ~70 chars — optimal reading line length */
}

.zap-overview__body h3 {
    font-family:    var(--zap-sans);
    font-size:      13px;
    letter-spacing: 0.06em;
    color:          var(--zap-text-3);
    margin:         32px 0 14px;
    font-weight:    600;
    text-transform: uppercase;
}


.zap-overview__body :where(ul, ol):not(.zap-feat-list) {
    font-size:     17px;
    color:         var(--zap-text-2);
    line-height:   1.85;
    max-width:     68ch;
    margin:        0 0 22px 0.55rem;
    padding-left:  1.35rem;
}

.zap-overview__body :where(ul, ol):not(.zap-feat-list) li {
    margin-bottom: 8px;
    padding-left:  0.25rem;
}

.zap-overview__body :where(ul, ol):not(.zap-feat-list) li::marker {
    color:       var(--zap-blue);
    font-weight: 700;
}

.zap-feat-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.zap-feat-list li {
    font-size:   17px;
    color:       var(--zap-text-2);
    line-height: 1.75;
    display:     flex;
    gap:         14px;
    max-width:   68ch;
}
.zap-feat-list li::before { content: '·'; color: var(--zap-blue); font-size: 22px; line-height: 1.0; flex-shrink: 0; }

/* Quick specs sidebar */
.zap-quick-specs {
    background:    var(--zap-surface);
    border-radius: var(--zap-radius-lg);
    border:        1px solid var(--zap-border);
    overflow:      hidden;
    box-shadow:    var(--zap-shadow);
}

.zap-quick-specs__head { background: var(--zap-navy); padding: 13px 18px; }
.zap-quick-specs__head p {
    font-family:    var(--zap-mono);
    font-size:      11px;           /* was 9px */
    letter-spacing: 0.8px;
    color:          var(--zap-blue-mid);
}

.zap-quick-specs__row {
    display:         flex;
    justify-content: space-between;
    align-items:     baseline;
    padding:         13px 20px;
    border-bottom:   1px solid var(--zap-border);
    gap:             16px;
}

.zap-quick-specs__row:last-child { border-bottom: none; }
.zap-quick-specs__label {
    font-family:    var(--zap-sans);
    font-size:      14px;
    font-weight:    500;
    color:          var(--zap-gray-dk);
    flex-shrink:    0;
}
.zap-quick-specs__val {
    font-family: var(--zap-mono);
    font-size:   14px;
    font-weight: 500;
    color:       var(--zap-text);
    text-align:  right;
}

/* ============================================================
   FULL SPECS TAB
   ============================================================ */
.zap-specs { padding: 40px 36px; background: var(--zap-surface); border-top: 1px solid var(--zap-border); }
.zap-specs h2 { font-family: var(--zap-serif); font-size: 24px; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.3px; }

.zap-spec-group { margin-bottom: 32px; }
.zap-spec-group__title {
    font-family:    var(--zap-sans);
    font-size:      13px;
    font-weight:    700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color:          var(--zap-text-3);
    margin-bottom:  14px;
    padding-bottom: 10px;
    border-bottom:  2px solid var(--zap-border);
}

.zap-spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--zap-border); border-radius: var(--zap-radius); overflow: hidden; }
.zap-spec-table tr { border-bottom: 1px solid var(--zap-border); }
.zap-spec-table tr:last-child { border-bottom: none; }
.zap-spec-table td { padding: 16px 20px; font-size: 16px; vertical-align: top; line-height: 1.75; }
.zap-spec-table td:first-child {
    font-family:    var(--zap-sans);
    font-size:      15px;
    font-weight:    600;
    color:          var(--zap-text);
    width:          240px;
    background:     #F4F8FC;
}
.zap-spec-note { font-size: 13px; color: var(--zap-text-3); font-style: italic; margin-top: 6px; line-height: 1.6; }

/* ============================================================
   DOCUMENTS TAB
   ============================================================ */
.zap-docs { padding: 36px 32px; background: var(--zap-bg); border-top: 1px solid var(--zap-border); }
.zap-docs h2 { font-family: var(--zap-serif); font-size: 24px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.3px; }
.zap-docs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.zap-doc-card {
    background:    var(--zap-surface);
    border-radius: var(--zap-radius);
    border:        1px solid var(--zap-border);
    padding:       16px;
    display:       flex;
    gap:           14px;
    align-items:   flex-start;
    cursor:        pointer;
    text-decoration: none;
    transition:    border-color 0.15s;
    color:         var(--zap-text);
}

.zap-doc-card:hover { border-color: var(--zap-blue); text-decoration: none; }

.zap-doc-card__icon {
    width:        40px;
    height:       40px;
    border-radius: var(--zap-radius);
    background:   var(--zap-blue-lt);
    display:      flex;
    align-items:  center;
    justify-content: center;
    color:        var(--zap-blue);
    font-size:    20px;
    flex-shrink:  0;
}

.zap-doc-card__title {
    font-family:    var(--zap-mono);
    font-size:      12px;           /* was 10px */
    letter-spacing: 1px;
    color:          var(--zap-text);
    margin-bottom:  4px;
    font-weight:    600;
}
.zap-doc-card__sub { font-size: 14px; color: var(--zap-text-3); line-height: 1.5; }

/* ============================================================
   BUILD GUIDE BANNER
   ============================================================ */
.zap-build-banner {
    background:    var(--zap-blue-lt);
    border:        1.5px solid var(--zap-blue);
    margin:        0 32px 32px;
    border-radius: var(--zap-radius-lg);
    padding:       24px 28px;
    display:       flex;
    align-items:   center;
    gap:           20px;
}

.zap-build-banner__icon {
    width:        50px;
    height:       50px;
    border-radius: var(--zap-radius);
    background:   var(--zap-blue);
    display:      flex;
    align-items:  center;
    justify-content: center;
    color:        #fff;
    font-size:    24px;
    flex-shrink:  0;
}

.zap-build-banner__text { flex: 1; }
.zap-build-banner__text h3 { font-family: var(--zap-serif); font-size: 19px; font-weight: 700; color: var(--zap-text); margin-bottom: 6px; }
.zap-build-banner__text p  { font-size: 14px; color: var(--zap-text-2); line-height: 1.6; }

/* ============================================================
   BUILD GUIDES TAB
   ============================================================ */
.zap-guides { padding: 36px 32px; background: var(--zap-bg); }
.zap-guides h2 { font-family: var(--zap-serif); font-size: 24px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.3px; }
.zap-guide-list { display: flex; flex-direction: column; gap: 12px; }

.zap-guide-card {
    background:    var(--zap-surface);
    border:        1px solid var(--zap-border);
    border-radius: var(--zap-radius);
    padding:       18px 20px;
    display:       flex;
    align-items:   center;
    gap:           18px;
    cursor:        pointer;
    text-decoration: none;
    color:         var(--zap-text);
    transition:    border-color 0.15s;
}

.zap-guide-card:hover { border-color: var(--zap-blue); text-decoration: none; }

.zap-guide-card__num   { font-family: var(--zap-mono); font-size: 26px; color: var(--zap-blue-bdr); flex-shrink: 0; width: 40px; }
.zap-guide-card__title { font-size: 17px; font-weight: 600; color: var(--zap-text); margin-bottom: 6px; }
.zap-guide-card__sub   { font-size: 16px; color: var(--zap-text-2); line-height: 1.65; }
.zap-guide-card__tags  { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.zap-guide-card__tag   {
    font-family:    var(--zap-mono);
    font-size:      10px;           /* was 8px */
    letter-spacing: 0.5px;
    padding:        3px 8px;
    border-radius:  3px;
    border:         1px solid var(--zap-blue-bdr);
    color:          var(--zap-gray-dk);
}
.zap-guide-card__arrow { color: var(--zap-blue); font-size: 20px; flex-shrink: 0; margin-left: auto; }

/* ============================================================
   RELATED COMPONENTS
   ============================================================ */
.zap-related { padding: 36px 32px; background: var(--zap-surface); border-top: 1px solid var(--zap-border); }

.zap-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.zap-rel-card {
    background:    var(--zap-bg);
    border-radius: var(--zap-radius);
    border:        1px solid var(--zap-border);
    overflow:      hidden;
    cursor:        pointer;
    text-decoration: none;
    display:       block;
    color:         var(--zap-text);
    transition:    border-color 0.15s, box-shadow 0.15s;
}

.zap-rel-card:hover { border-color: var(--zap-blue); box-shadow: var(--zap-shadow-md); text-decoration: none; }

.zap-rel-card__img   { height: 90px; background: var(--zap-blue-lt); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--zap-blue-bdr); }
.zap-rel-card__body  { padding: 12px 14px; }
.zap-rel-card__sku   { font-family: var(--zap-mono); font-size: 10px; letter-spacing: 1px; color: var(--zap-text-3); margin-bottom: 4px; }
.zap-rel-card__name  { font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 5px; }
.zap-rel-card__exps  { font-family: var(--zap-mono); font-size: 9px; letter-spacing: 1px; color: var(--zap-text-3); margin-bottom: 8px; }
.zap-rel-card__foot  { display: flex; justify-content: space-between; align-items: center; }
.zap-rel-card__price { font-family: var(--zap-mono); font-size: 14px; font-weight: 700; color: var(--zap-blue); }
.zap-stock-g { font-family: var(--zap-mono); font-size: 10px; color: var(--zap-green); font-weight: 600; }
.zap-stock-a { font-family: var(--zap-mono); font-size: 10px; color: var(--zap-orange); font-weight: 600; }

/* ============================================================
   ABOUT BAND (trust badges)
   ============================================================ */
.zap-about-band {
    background:  var(--zap-blue-lt);
    padding:     28px 32px;
    display:     flex;
    gap:         28px;
    align-items: center;
    border-top:  1px solid var(--zap-blue-bdr);
    border-bottom: 1px solid var(--zap-blue-bdr);
}

.zap-about-band h3 { font-family: var(--zap-serif); font-size: 18px; font-weight: 700; color: var(--zap-navy); margin-bottom: 7px; }
.zap-about-band p  { font-size: 14px; color: var(--zap-gray-dk); line-height: 1.65; max-width: 440px; }

.zap-trust-badges { display: flex; gap: 20px; flex-shrink: 0; flex-wrap: wrap; }

.zap-trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.zap-trust-item__icon {
    width:        42px;
    height:       42px;
    border-radius: var(--zap-radius);
    background:   var(--zap-surface);
    border:       1px solid var(--zap-blue-bdr);
    display:      flex;
    align-items:  center;
    justify-content: center;
    font-size:    20px;
    color:        var(--zap-blue);
}

.zap-trust-item__label {
    font-family:    var(--zap-mono);
    font-size:      10px;           /* was 8px */
    letter-spacing: 1px;
    color:          var(--zap-gray-dk);
    text-align:     center;
    line-height:    1.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .zap-product-grid   { grid-template-columns: repeat(3, 1fr); }
    .zap-related__grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .zap-product-layout,
    .zap-overview__grid,
    .zap-what__grid       { grid-template-columns: 1fr; }

    .zap-featured__grid,
    .zap-steps__grid,
    .zap-docs__grid        { grid-template-columns: repeat(2, 1fr); }

    .zap-product-grid      { grid-template-columns: repeat(2, 1fr); }
    .zap-media__grid       { grid-template-columns: 1fr; }

    .zap-comp-card         { grid-template-columns: 90px 1fr; }
    .zap-comp-card__aside  { display: none; }

    .zap-nav__links        { display: none; }
    .zap-shop-hero,
    .zap-cat-hero          { flex-direction: column; }
}

@media (max-width: 600px) {
    .zap-nav             { padding: 0 18px; }
    .zap-breadcrumb,
    .zap-cat-strip,
    .zap-shop-hero,
    .zap-cat-hero,
    .zap-cat-section,
    .zap-featured,
    .zap-what,
    .zap-steps,
    .zap-media,
    .zap-resources,
    .zap-comp-list,
    .zap-single-product,
    .zap-overview,
    .zap-specs,
    .zap-docs,
    .zap-guides,
    .zap-related,
    .zap-about-band,
    .zap-build-banner    { padding-left: 18px; padding-right: 18px; }

    .zap-build-banner    { flex-direction: column; align-items: flex-start; margin: 0 0 20px; }

    .zap-featured__grid,
    .zap-steps__grid,
    .zap-docs__grid,
    .zap-product-grid,
    .zap-related__grid   { grid-template-columns: 1fr; }

    .zap-shop-hero__heading,
    .zap-cat-hero__heading { font-size: 28px; }
}
.zap-page-wrap,
.zap-woo-wrap {
    font-size: 17px;
    color: var(--zap-text);
}

.zap-page__content {
    font-size: 17px;
    line-height: 1.75;
}

.zap-page__content p,
.zap-page__content li { color: var(--zap-text-2); }
.zap-page__content h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.03; margin-bottom: 0.45em; }
.zap-page__content h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; margin: 1.3em 0 0.55em; }
.zap-page__content h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; margin: 1.1em 0 0.45em; }

.woocommerce,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
    color: var(--zap-text);
    font-size: 16px;
}

.woocommerce table.shop_table,
.wc-block-cart-items,
.wc-block-components-sidebar,
.wc-block-components-totals-wrapper,
.wc-block-components-panel,
.wc-block-components-order-summary,
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce form.checkout,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
    background: #FFFFFF;
    border: 1px solid rgba(6,21,36,0.12) !important;
    border-radius: var(--zap-radius-lg);
    box-shadow: var(--zap-shadow);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.wc-block-cart-items th,
.wc-block-cart-items td,
.wc-block-cart-item__product,
.wc-block-components-totals-item,
.wc-block-components-product-name,
.wc-block-components-formatted-money-amount {
    font-size: 16px;
    color: var(--zap-text);
}

.woocommerce table.shop_table th,
.wc-block-cart-items th,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: var(--zap-mono);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #315A7A;
    text-transform: uppercase;
}

.wc-block-cart-item__product .wc-block-cart-item__wrap,
.wc-block-components-product-metadata,
.wc-block-components-product-details,
.woocommerce .product-name,
.woocommerce .product-price,
.woocommerce .product-subtotal {
    color: var(--zap-text-2);
}

.wc-block-components-product-name,
.woocommerce .product-name a {
    font-weight: 800;
    color: var(--zap-text);
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-form .wc-block-components-select .wc-block-components-select__select {
    min-height: 46px;
    border: 1px solid rgba(6,21,36,0.20) !important;
    border-radius: 10px !important;
    background: #FFFFFF;
    color: var(--zap-text);
    font-size: 16px;
    padding: 10px 12px;
}

.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.wc-block-components-text-input input:focus {
    box-shadow: var(--zap-focus) !important;
    border-color: var(--zap-blue) !important;
    outline: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
    border-radius: var(--zap-radius-lg) !important;
    border: 1px solid rgba(6,21,36,0.14) !important;
    box-shadow: var(--zap-shadow);
    font-size: 16px;
}

.woocommerce-message,
.wc-block-components-notice-banner.is-success { background: #ECFFF7 !important; color: #063D2C !important; }
.woocommerce-info,
.wc-block-components-notice-banner.is-info { background: #EEF7FF !important; color: #0B3459 !important; }
.woocommerce-error,
.wc-block-components-notice-banner.is-error { background: #FFF1F0 !important; color: #7A1A12 !important; }

/* Slightly richer utility/detail elements */
.zap-stock--in,
.zap-stock--low {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 4px rgba(8,126,90,0.10);
}
.zap-stock--low { box-shadow: 0 0 0 4px rgba(155,91,0,0.12); }
.zap-stock-g,
.zap-stock-a { font-size: 11px; font-weight: 800; }

.zap-media__item {
    border-radius: var(--zap-radius-lg);
    border: 1px solid rgba(41,168,255,0.24);
    box-shadow: var(--zap-shadow);
}
.zap-media__caption p { font-size: 11px; color: #B8CADC; font-weight: 700; }
.zap-media__play-btn { width: 52px; height: 52px; background: rgba(0,111,230,0.92); }

.zap-about-band {
    background:
        radial-gradient(circle at 80% 30%, rgba(23,213,255,0.18), transparent 18rem),
        linear-gradient(135deg, #F1F9FF 0%, #DCEEFF 100%);
    padding: clamp(34px, 4vw, 56px) 36px;
}
.zap-about-band h3 { font-size: clamp(24px, 2.4vw, 34px); }

/* build-banner duplicate removed — see primary definition above */
.zap-build-banner__text h3 { font-size: 19px; }

/* Responsive readability improvements */
@media (max-width: 900px) {
    .zap-nav { padding: 0 22px; }
    .zap-shop-hero,
    .zap-cat-hero,
    .zap-single-product,
    .zap-overview,
    .zap-specs,
    .zap-docs,
    .zap-guides,
    .zap-related,
    .zap-media,
    .zap-steps,
    .zap-what,
    .zap-comp-list { padding-left: 24px; padding-right: 24px; }
    .zap-product-layout,
    .zap-overview__grid { grid-template-columns: 1fr; }
    .zap-product-gallery__main { height: 300px; }
    .zap-product-tabs { top: 64px; overflow-x: auto; padding: 0 20px; }
    .zap-product-tab { white-space: nowrap; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .zap-nav { height: 58px; padding: 0 16px; }
    .zap-nav__wordmark { font-size: 18px; }
    .zap-shop-hero,
    .zap-cat-hero { padding: 42px 20px; }
    .zap-breadcrumb { padding: 12px 20px; }
    .zap-product-gallery__main { height: 240px; }
    .zap-feat-card__img,
    .zap-prod-card__img,
    .zap-rel-card__img { height: 150px; }
    .zap-comp-card { grid-template-columns: 1fr; }
    .zap-comp-card__img { min-height: 150px; border-right: 0; border-bottom: 1px solid rgba(0,111,230,0.22); }
    .zap-buy-box { flex-direction: column; align-items: stretch; }
    .zap-qty { width: fit-content; }
    .zap-footer { padding: 28px 20px; }
}


/* ============================================================
   ZAPTRONICS PATCH 1.1.1 — WooCommerce block layout + mobile
   Fixes narrow-screen container compression and gives the Cart /
   Checkout order summary a cleaner, more premium treatment.
   ============================================================ */

/* Replace the old inline page sizing with a predictable shell. */
.zap-page-shell {
    width: min(100%, 1160px);
    max-width: 100%;
    margin-inline: auto;
    padding: clamp(28px, 4.8vw, 58px) clamp(18px, 4vw, 38px);
}

.zap-page-shell,
.zap-page-wrap,
.zap-woo-wrap,
.zap-page,
.zap-page__content,
.zap-page__content > *,
.woocommerce,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
    min-width: 0;
    max-width: 100%;
}

/* Woo blocks sometimes inherit alignwide/alignfull rules from WP global styles.
   On a custom theme page shell, those rules can cause odd shrinking and overflow. */
.zap-page__content .alignwide,
.zap-page__content .alignfull,
.zap-page__content .wp-block-woocommerce-cart.alignwide,
.zap-page__content .wp-block-woocommerce-cart.alignfull,
.zap-page__content .wp-block-woocommerce-checkout.alignwide,
.zap-page__content .wp-block-woocommerce-checkout.alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Make modern Woo block layouts wrap gracefully instead of squeezing the outer shell. */
.wc-block-cart,
.wp-block-woocommerce-filled-cart-block,
.wc-block-components-sidebar-layout,
.wc-block-checkout {
    display: flex;
    gap: clamp(20px, 3vw, 36px);
    align-items: flex-start;
    width: 100%;
}

.wc-block-cart__main,
.wc-block-components-main {
    flex: 1 1 650px;
    min-width: 0;
    padding-right: 0 !important;
}

.wc-block-cart__sidebar,
.wc-block-components-sidebar {
    flex: 0 1 370px;
    min-width: min(100%, 300px);
    max-width: 100%;
    width: 100%;
    margin: 0 !important;
}

/* Cart / checkout summary card */
.wc-block-components-sidebar,
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-order-summary {
    background:
        radial-gradient(circle at 100% 0%, rgba(41,168,255,0.10), transparent 14rem),
        linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
    border: 1px solid rgba(6,21,36,0.14) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 44px rgba(6,21,36,0.12);
}

.wc-block-components-sidebar,
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
    padding: 20px !important;
    overflow: hidden;
}

.wc-block-components-sidebar > *,
.wp-block-woocommerce-cart-order-summary-block > *,
.wp-block-woocommerce-checkout-order-summary-block > * {
    min-width: 0;
}

.wc-block-cart__totals-title,
.wc-block-components-title,
.wp-block-woocommerce-cart-order-summary-heading-block,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title {
    font-family: var(--zap-serif);
    font-size: clamp(22px, 2.2vw, 30px) !important;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--zap-text);
    margin: 0 0 16px !important;
    padding: 0 !important;
}

/* Remove the stacked-box look inside the summary; keep separators instead. */
.wc-block-components-sidebar .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper,
.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-sidebar .wc-block-components-order-summary,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-panel,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 14px 0 !important;
    margin: 0 !important;
}

.wc-block-components-sidebar .wc-block-components-totals-wrapper + .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-wrapper + .wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper + .wc-block-components-totals-wrapper {
    border-top: 1px solid rgba(6,21,36,0.12) !important;
}

.wc-block-components-totals-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 7px 0 !important;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-product-price,
.wc-block-components-formatted-money-amount {
    color: var(--zap-text) !important;
    font-size: 16px !important;
    line-height: 1.35;
}

.wc-block-components-totals-item__value,
.wc-block-components-formatted-money-amount {
    font-weight: 800;
    white-space: nowrap;
}

.wc-block-components-totals-footer-item {
    margin-top: 8px;
    padding-top: 16px !important;
    border-top: 1px solid rgba(6,21,36,0.16);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: var(--zap-mono);
    font-size: 12px !important;
    font-weight: 900;
    letter-spacing: 0.13em;
    color: #315A7A !important;
    text-transform: uppercase;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
    font-size: 22px !important;
    letter-spacing: -0.03em;
    color: #004FA6 !important;
}

/* Coupon accordion / dropdown in the sidebar */
.wc-block-components-panel__button,
.wc-block-components-totals-coupon-link,
.wc-block-components-totals-coupon .wc-block-components-panel__button {
    width: 100%;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(6,21,36,0.14) !important;
    border-radius: 14px !important;
    background: #FFFFFF !important;
    color: var(--zap-text) !important;
    font-family: var(--zap-sans) !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    padding: 12px 14px !important;
    box-shadow: 0 8px 20px rgba(6,21,36,0.06);
    text-transform: none !important;
}

.wc-block-components-panel__button:hover,
.wc-block-components-totals-coupon-link:hover {
    border-color: rgba(0,111,230,0.38) !important;
    background: #F3F9FF !important;
    color: var(--zap-blue) !important;
    text-decoration: none;
}

.wc-block-components-panel__button svg,
.wc-block-components-panel__button .wc-block-components-panel__button-icon {
    opacity: 0.75;
}

.wc-block-components-totals-coupon__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 12px;
}

.wc-block-components-totals-coupon__input,
.wc-block-components-totals-coupon__button {
    min-width: 0;
}

/* Primary checkout/proceed buttons */
.wc-block-cart__submit,
.wc-block-components-sidebar .wc-block-components-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
    width: 100%;
}

.wc-block-components-button,
.wc-block-components-button:not(.is-link),
.wc-block-components-button.wc-block-cart__submit-button {
    min-height: 54px;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-transform: none;
    box-shadow: 0 12px 26px rgba(0,111,230,0.24) !important;
}

/* Prevent tables and line items from forcing mobile overflow. */
.wc-block-cart-items,
.wc-block-cart-items__row,
.wc-block-cart-item__wrap,
.wc-block-components-product-name,
.wc-block-components-product-metadata,
.woocommerce table.shop_table {
    min-width: 0;
    max-width: 100%;
}

.wc-block-components-product-name,
.wc-block-cart-item__product .wc-block-components-product-name {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .zap-page-shell {
        padding-inline: 16px;
        padding-top: 28px;
        padding-bottom: 36px;
    }

    .wc-block-cart,
    .wp-block-woocommerce-filled-cart-block,
    .wc-block-components-sidebar-layout,
    .wc-block-checkout {
        display: block !important;
        width: 100% !important;
    }

    .wc-block-cart__main,
    .wc-block-cart__sidebar,
    .wc-block-components-main,
    .wc-block-components-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .wc-block-cart__sidebar,
    .wc-block-components-sidebar {
        margin-top: 22px !important;
    }

    .wc-block-components-sidebar,
    .wp-block-woocommerce-cart-order-summary-block,
    .wp-block-woocommerce-checkout-order-summary-block {
        padding: 18px !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 480px) {
    .zap-page-shell {
        padding-inline: 12px;
    }

    .wc-block-components-sidebar,
    .wp-block-woocommerce-cart-order-summary-block,
    .wp-block-woocommerce-checkout-order-summary-block {
        padding: 15px !important;
        border-radius: 18px !important;
    }

    .wc-block-components-totals-coupon__form {
        grid-template-columns: 1fr;
    }

    .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
    .wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
        font-size: 20px !important;
    }
}


.zap-page__header { margin-bottom: 26px; }
.zap-page__header h1 {
    font-family: var(--zap-serif);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--zap-text);
}

/* ============================================================
   ZAPTRONICS PATCH 1.2.0 — Homepage landing page
   Adds a bold front page with experiment carousel, highlighted
   products, shop CTA, and article/news cards.
   ============================================================ */

.zap-home {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 111, 230, 0.10), transparent 26rem),
        radial-gradient(circle at 90% 28%, rgba(23, 213, 255, 0.10), transparent 28rem),
        var(--zap-bg);
}

.zap-home a { text-decoration: none; }

.zap-home-hero {
    position: relative;
    min-height: clamp(620px, 74vh, 820px);
    padding: clamp(64px, 8vw, 118px) clamp(22px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.72fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: center;
    background:
        radial-gradient(circle at 74% 20%, rgba(79, 160, 238, 0.28), transparent 24rem),
        radial-gradient(circle at 14% 80%, rgba(244, 196, 48, 0.11), transparent 22rem),
        linear-gradient(135deg, #061524 0%, #0A2135 52%, #071927 100%);
    color: #fff;
    border-bottom: 1px solid rgba(79, 160, 238, 0.26);
}

.zap-home-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(79,160,238,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,160,238,0.16) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 42%, black, transparent 78%);
    pointer-events: none;
}

.zap-home-hero__tracks {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.zap-home-hero__tracks::before,
.zap-home-hero__tracks::after {
    content: '';
    position: absolute;
    inset: auto auto 11% 6%;
    width: min(42vw, 560px);
    height: min(42vw, 560px);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(236, 251, 255, 0.105), rgba(79, 160, 238, 0.055) 36%, transparent 70%);
    filter: blur(2px);
    opacity: 0.66;
}

.zap-home-hero__tracks::after {
    inset: 7% -7% auto auto;
    width: min(36vw, 480px);
    height: min(36vw, 480px);
    opacity: 0.44;
}

.zap-cloud-chamber-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.94;
    filter: saturate(1.12) contrast(1.08);
    mix-blend-mode: screen;
}

/* CSS fallback for no-JS / canvas failure. The live animation hides these spans. */
.zap-track {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, rgba(236, 251, 255, 0.92) 20%, rgba(79, 160, 238, 0.95) 62%, transparent 100%);
    box-shadow: 0 0 18px rgba(79,160,238,0.72), 0 0 42px rgba(23,213,255,0.30);
    transform-origin: left center;
    opacity: 0.72;
}

.zap-home-hero__tracks.is-live .zap-track { display: none; }

.zap-track--one { width: 36vw; left: 53%; top: 18%; transform: rotate(-18deg); }
.zap-track--two { width: 22vw; right: 4%; top: 47%; transform: rotate(28deg); opacity: 0.44; }
.zap-track--three { width: 30vw; left: 8%; bottom: 16%; transform: rotate(-9deg); opacity: 0.38; }
.zap-track--four { width: 18vw; left: 46%; bottom: 25%; transform: rotate(36deg); opacity: 0.30; }

@media (prefers-reduced-motion: reduce) {
    .zap-cloud-chamber-canvas { opacity: 0.58; }
}

.zap-home-hero__content,
.zap-home-hero__panel {
    position: relative;
    z-index: 1;
}

.zap-home-kicker {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    color: var(--zap-blue-mid);
    font-family: var(--zap-mono);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.zap-home-kicker::before {
    content: '';
    width: 38px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--zap-blue-mid), rgba(79,160,238,0));
}

.zap-home-hero h1 {
    max-width: 920px;
    margin: 0;
    color: #fff;
    font-family: var(--zap-serif);
    font-size: clamp(52px, 8vw, 112px);
    line-height: 0.91;
    letter-spacing: -0.075em;
    text-wrap: balance;
}

.zap-home-hero__lead {
    max-width: 720px;
    margin: clamp(22px, 2.5vw, 34px) 0 0;
    color: #CFE0EF;
    font-size: clamp(18px, 1.75vw, 24px);
    line-height: 1.55;
    text-wrap: pretty;
}

.zap-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.zap-home-btn {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 16px 24px;
    font-family: var(--zap-mono);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.zap-home-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.zap-home-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #006FE6 0%, #15B9FF 100%);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 18px 44px rgba(0, 111, 230, 0.34);
}

.zap-home-btn--primary:hover {
    color: #fff;
    box-shadow: 0 22px 54px rgba(0, 111, 230, 0.44);
}

.zap-home-btn--secondary {
    color: #EAF6FF;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(207,224,239,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.zap-home-btn--secondary:hover {
    color: #fff;
    border-color: rgba(79,160,238,0.75);
    background: rgba(79,160,238,0.14);
}

.zap-home-hero__panel {
    border: 1px solid rgba(118, 186, 255, 0.26);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 20%, rgba(23, 213, 255, 0.18), transparent 16rem),
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
    box-shadow: 0 30px 80px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.10);
    padding: clamp(22px, 3vw, 36px);
    backdrop-filter: blur(14px);
}

.zap-home-scope {
    position: relative;
    min-height: 250px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(79,160,238,0.20), transparent 11rem),
        linear-gradient(135deg, rgba(6,21,36,0.56), rgba(10,33,53,0.30));
    border: 1px solid rgba(79,160,238,0.20);
}

.zap-home-scope::before,
.zap-home-scope::after {
    content: '';
    position: absolute;
    inset: 26px;
    border: 1px solid rgba(79,160,238,0.24);
    border-radius: 50%;
}

.zap-home-scope::after {
    inset: 58px;
    border-color: rgba(244,196,48,0.24);
}

.zap-home-scope__core {
    position: relative;
    z-index: 1;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 0 0 12px rgba(79,160,238,0.08), 0 26px 58px rgba(0,0,0,0.22);
}

.zap-home-scope__beam {
    position: absolute;
    width: 74%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.82), rgba(79,160,238,0.96), transparent);
    transform: rotate(-22deg);
    box-shadow: 0 0 18px rgba(79,160,238,0.72);
}

.zap-home-scope__beam--alt {
    width: 48%;
    transform: rotate(31deg) translateY(52px);
    opacity: 0.54;
}

.zap-home-stat-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.zap-home-stat-grid > div {
    padding: 17px 18px;
    border: 1px solid rgba(207,224,239,0.15);
    border-radius: 18px;
    background: rgba(6,21,36,0.30);
}

.zap-home-stat-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--zap-blue-mid);
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.zap-home-stat-grid strong {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
}

.zap-home-stat-grid p {
    margin: 5px 0 0;
    color: #AFC5D9;
    font-size: 14px;
    line-height: 1.55;
}

.zap-home-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #FFFFFF;
    border-bottom: 1px solid rgba(6,21,36,0.11);
}

.zap-home-strip__item {
    min-height: 120px;
    padding: 24px clamp(18px, 3vw, 34px);
    border-right: 1px solid rgba(6,21,36,0.10);
    color: var(--zap-text);
    transition: background 0.18s ease, color 0.18s ease;
}

.zap-home-strip__item:hover {
    background: #F1F8FF;
    text-decoration: none;
}

.zap-home-strip__item span {
    display: block;
    margin-bottom: 8px;
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.zap-home-strip__item strong {
    display: block;
    max-width: 280px;
    color: var(--zap-text);
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.18;
}

.zap-home-strip__item--shop {
    background: linear-gradient(135deg, #006FE6 0%, #0EAFFF 100%);
}

.zap-home-strip__item--shop span,
.zap-home-strip__item--shop strong { color: #fff; }
.zap-home-strip__item--shop:hover { background: linear-gradient(135deg, #005EC4 0%, #006FE6 100%); }

.zap-home-section {
    padding: clamp(54px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.zap-home-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 3vw, 38px);
}

.zap-home-section__head h2,
.zap-home-shop-cta h2 {
    margin: 0;
    max-width: 870px;
    color: var(--zap-text);
    font-family: var(--zap-serif);
    font-size: clamp(34px, 4.5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.zap-home-link {
    flex: 0 0 auto;
    color: var(--zap-blue);
    font-family: var(--zap-mono);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.zap-home-link:hover { color: #004FA6; text-decoration: none; }

.zap-home-carousel__controls {
    display: flex;
    gap: 10px;
}

.zap-home-carousel__button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(6,21,36,0.16);
    border-radius: 16px;
    background: #fff;
    color: var(--zap-text);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(6,21,36,0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.zap-home-carousel__button:hover {
    transform: translateY(-1px);
    color: var(--zap-blue);
    border-color: rgba(0,111,230,0.34);
}

.zap-home-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 420px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    scrollbar-width: thin;
}

.zap-home-exp-card {
    scroll-snap-align: start;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    color: var(--zap-text);
    border: 1px solid rgba(6,21,36,0.13);
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 50px rgba(6,21,36,0.10);
    transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease;
}

.zap-home-exp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,111,230,0.36);
    box-shadow: 0 24px 64px rgba(6,21,36,0.14);
    text-decoration: none;
}

.zap-home-exp-card__visual {
    position: relative;
    min-height: 210px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(23,213,255,0.18), transparent 13rem),
        linear-gradient(135deg, #081A2D 0%, #113454 100%);
}

.zap-home-exp-card__visual::before,
.zap-home-exp-card__visual::after {
    content: '';
    position: absolute;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.92), rgba(79,160,238,0.96), transparent);
    box-shadow: 0 0 18px rgba(79,160,238,0.72);
}

.zap-home-exp-card__visual::before { width: 72%; transform: rotate(-17deg); }
.zap-home-exp-card__visual::after { width: 46%; transform: rotate(31deg) translateY(44px); opacity: 0.42; }

.zap-home-exp-card__visual img {
    position: relative;
    z-index: 1;
    width: min(78%, 290px);
    max-height: 165px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.28));
}

.zap-home-exp-card__visual span {
    position: relative;
    z-index: 1;
    font-size: 72px;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.28));
}

.zap-home-exp-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.zap-home-exp-card__body > p {
    margin: 0 0 9px;
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.zap-home-exp-card h3 {
    margin: 0 0 11px;
    color: var(--zap-text);
    font-family: var(--zap-serif);
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.zap-home-exp-card__desc {
    color: var(--zap-text-2);
    font-size: 16px;
    line-height: 1.65;
}

.zap-home-exp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}

.zap-home-exp-card__meta span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid rgba(0,111,230,0.20);
    border-radius: 99px;
    padding: 5px 10px;
    background: #F1F8FF;
    color: #174E80;
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.zap-home-shop-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 0 clamp(20px, 5vw, 72px);
    padding: clamp(34px, 5vw, 58px);
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(23, 213, 255, 0.24), transparent 18rem),
        linear-gradient(135deg, #061524 0%, #0A2740 100%);
    box-shadow: 0 24px 68px rgba(6,21,36,0.20);
}

.zap-home-shop-cta h2 { color: #fff; max-width: 980px; }
.zap-home-shop-cta .zap-home-kicker { margin-bottom: 12px; }

.zap-home-product-grid,
.zap-home-journal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.zap-home-product-card,
.zap-home-article-card,
.zap-home-empty-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(6,21,36,0.13);
    border-radius: 24px;
    background: #fff;
    color: var(--zap-text);
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(6,21,36,0.09);
    transition: transform 0.20s ease, border-color 0.20s ease, box-shadow 0.20s ease;
}

.zap-home-product-card:hover,
.zap-home-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,111,230,0.36);
    box-shadow: 0 22px 60px rgba(6,21,36,0.14);
    text-decoration: none;
}

.zap-home-product-card__image {
    position: relative;
    min-height: 190px;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at 80% 20%, rgba(23,213,255,0.15), transparent 12rem),
        linear-gradient(135deg, #EAF6FF 0%, #F9FCFF 100%);
    border-bottom: 1px solid rgba(0,111,230,0.12);
}

.zap-home-product-card__image img {
    width: 100%;
    max-height: 146px;
    object-fit: contain;
}

.zap-home-product-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    border-radius: 99px;
    background: var(--zap-amber);
    color: var(--zap-amber-dk);
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
    padding: 6px 10px;
}

.zap-home-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.zap-home-product-card__body > p,
.zap-home-article-card > span {
    margin: 0 0 8px;
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.zap-home-product-card h3,
.zap-home-article-card h3 {
    margin: 0;
    color: var(--zap-text);
    font-family: var(--zap-serif);
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.zap-home-product-card__foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
}

.zap-home-product-card__foot span {
    color: var(--zap-blue);
    font-family: var(--zap-mono);
    font-size: 16px;
    font-weight: 900;
}

.zap-home-product-card__foot em,
.zap-home-article-card em {
    color: var(--zap-blue);
    font-family: var(--zap-mono);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
}

.zap-home-section--journal {
    background: #FFFFFF;
    border-top: 1px solid rgba(6,21,36,0.10);
}

.zap-home-journal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.zap-home-article-card {
    min-height: 300px;
    padding: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0,111,230,0.08), transparent 13rem),
        #FFFFFF;
}

.zap-home-article-card p {
    margin: 14px 0 24px;
    color: var(--zap-text-2);
    font-size: 16px;
    line-height: 1.68;
}

.zap-home-article-card em { margin-top: auto; }

.zap-home-empty-card {
    grid-column: 1 / -1;
    padding: 28px;
    color: var(--zap-text-2);
    font-size: 17px;
    line-height: 1.65;
}

@media (max-width: 1120px) {
    .zap-home-hero {
        grid-template-columns: 1fr;
    }

    .zap-home-hero__panel {
        max-width: 780px;
    }

    .zap-home-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zap-home-strip,
    .zap-home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .zap-home-hero {
        min-height: auto;
        padding-top: 56px;
        padding-bottom: 54px;
    }

    .zap-home-hero h1 {
        font-size: clamp(46px, 13vw, 78px);
    }

    .zap-home-section__head,
    .zap-home-shop-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .zap-home-carousel__controls {
        align-self: flex-start;
    }

    .zap-home-stat-grid,
    .zap-home-journal-grid {
        grid-template-columns: 1fr;
    }

    .zap-home-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .zap-home-shop-cta {
        margin-inline: 18px;
        padding: 30px;
    }
}

@media (max-width: 620px) {
    .zap-home-hero {
        padding-inline: 18px;
    }

    .zap-home-kicker {
        font-size: 10px;
        letter-spacing: 0.15em;
    }

    .zap-home-kicker::before { width: 24px; }

    .zap-home-hero__lead {
        font-size: 17px;
    }

    .zap-home-hero__actions,
    .zap-home-btn {
        width: 100%;
    }

    .zap-home-hero__panel {
        border-radius: 24px;
        padding: 18px;
    }

    .zap-home-scope { min-height: 210px; }

    .zap-home-strip,
    .zap-home-product-grid {
        grid-template-columns: 1fr;
    }

    .zap-home-strip__item {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(6,21,36,0.10);
    }

    .zap-home-carousel {
        grid-auto-columns: minmax(278px, 86vw);
        margin-inline: -4px;
    }

    .zap-home-exp-card {
        min-height: 430px;
        border-radius: 24px;
    }

    .zap-home-exp-card__visual {
        min-height: 180px;
    }

    .zap-home-exp-card__body {
        padding: 20px;
    }

    .zap-home-product-card__image {
        min-height: 170px;
    }

    .zap-home-section__head h2,
    .zap-home-shop-cta h2 {
        font-size: clamp(34px, 11vw, 52px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .zap-home-btn,
    .zap-home-product-card,
    .zap-home-article-card,
    .zap-home-exp-card,
    .zap-home-carousel__button {
        transition: none;
    }

    .zap-home-btn:hover,
    .zap-home-product-card:hover,
    .zap-home-article-card:hover,
    .zap-home-exp-card:hover,
    .zap-home-carousel__button:hover {
        transform: none;
    }
}

/* ============================================================
   LAB NOTEBOOK — BLOG ARCHIVE, SINGLE POSTS & HOME CARDS
   ============================================================ */
.zap-lab-page {
    position: relative;
    width: min(1460px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 30px 0 76px;
}

.zap-lab-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
    gap: 28px;
    align-items: stretch;
    margin: 18px 0 32px;
    padding: clamp(34px, 5vw, 74px);
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(126, 204, 255, 0.22);
    background:
        radial-gradient(circle at 82% 12%, rgba(23, 213, 255, 0.24), transparent 21rem),
        radial-gradient(circle at 0% 100%, rgba(79, 160, 238, 0.18), transparent 25rem),
        linear-gradient(135deg, #061524 0%, #0B2337 54%, #102B43 100%);
    box-shadow: 0 32px 84px rgba(6, 21, 36, 0.22);
    color: #fff;
}

.zap-lab-hero::before,
.zap-lab-hero::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 54%;
    right: -8%;
    background: linear-gradient(90deg, transparent, rgba(117, 218, 255, 0.92), transparent);
    transform: rotate(-11deg);
    opacity: 0.82;
}

.zap-lab-hero::before { top: 28%; }
.zap-lab-hero::after { top: 52%; width: 38%; opacity: 0.48; }

.zap-lab-hero__copy { position: relative; z-index: 1; max-width: 900px; }
.zap-lab-hero h1 {
    margin: 0;
    color: #fff;
    font-family: var(--zap-serif);
    font-size: clamp(48px, 7.2vw, 104px);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.zap-lab-hero p:not(.zap-lab-kicker) {
    margin: 22px 0 0;
    max-width: 760px;
    color: rgba(235, 247, 255, 0.88);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
}

.zap-lab-kicker {
    margin: 0 0 14px;
    color: #A8E9FF;
    font-family: var(--zap-mono);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.zap-lab-kicker span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.zap-lab-kicker span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #17D5FF;
    box-shadow: 0 0 18px rgba(23, 213, 255, 0.9);
}

.zap-lab-hero__scope {
    position: relative;
    z-index: 1;
    min-height: 260px;
    border-radius: 26px;
    border: 1px solid rgba(168, 233, 255, 0.24);
    background:
        linear-gradient(90deg, rgba(168,233,255,0.06) 1px, transparent 1px),
        linear-gradient(rgba(168,233,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(23,213,255,0.13), transparent 54%),
        rgba(255,255,255,0.045);
    background-size: 28px 28px, 28px 28px, auto, auto;
    overflow: hidden;
}

.zap-lab-hero__scope span {
    position: absolute;
    left: 12%;
    right: 6%;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #B9F1FF, transparent);
    box-shadow: 0 0 22px rgba(23, 213, 255, 0.5);
    transform-origin: center;
}

.zap-lab-hero__scope span:nth-child(1) { top: 32%; transform: rotate(-13deg); }
.zap-lab-hero__scope span:nth-child(2) { top: 46%; left: 24%; transform: rotate(8deg); opacity: 0.7; }
.zap-lab-hero__scope span:nth-child(3) { top: 62%; left: 4%; transform: rotate(-4deg); opacity: 0.56; }
.zap-lab-hero__scope span:nth-child(4) { top: 74%; left: 36%; transform: rotate(18deg); opacity: 0.44; }

.zap-lab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
    gap: 28px;
    align-items: start;
}

.zap-lab-layout--single {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.zap-lab-main,
.zap-lab-article {
    min-width: 0;
}

.zap-lab-section-head {
    margin: 0 0 20px;
}

.zap-lab-section-head h2 {
    margin: 0;
    color: var(--zap-text);
    font-family: var(--zap-serif);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.zap-lab-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.zap-lab-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(6, 21, 36, 0.12);
    background: #fff;
    box-shadow: 0 18px 50px rgba(6,21,36,0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.zap-lab-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,111,230,0.34);
    box-shadow: 0 24px 66px rgba(6,21,36,0.14);
}

.zap-lab-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #071524;
    overflow: hidden;
}

.zap-lab-card__image img,
.zap-home-article-card__image img,
.zap-lab-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zap-lab-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.zap-lab-card__meta,
.zap-lab-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 12px;
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zap-lab-card h3 {
    margin: 0;
    font-family: var(--zap-serif);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.zap-lab-card h3 a { color: var(--zap-text); }
.zap-lab-card h3 a:hover { color: var(--zap-blue); text-decoration: none; }

.zap-lab-card p {
    margin: 14px 0 18px;
    color: var(--zap-text-2);
    font-size: 17px;
    line-height: 1.66;
}

.zap-lab-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.zap-lab-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    max-width: 100%;
    padding: 7px 10px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(0,111,230,0.18);
    background: #EAF6FF;
    color: #164B78;
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.10em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.zap-lab-chip:hover { text-decoration: none; border-color: rgba(0,111,230,0.42); }
.zap-lab-chip--product { background: #F7F0D6; color: #5C4210; border-color: rgba(186,117,23,0.22); }

.zap-lab-read-more {
    margin-top: auto;
    color: var(--zap-blue);
    font-family: var(--zap-mono);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zap-lab-read-more:hover { text-decoration: none; color: #004FAD; }

.zap-lab-sidebar {
    position: sticky;
    top: 76px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.zap-lab-side-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(6,21,36,0.12);
    background: #fff;
    box-shadow: 0 14px 42px rgba(6,21,36,0.07);
    padding: 22px;
}

.zap-lab-side-card--dark {
    background:
        radial-gradient(circle at 100% 0%, rgba(23,213,255,0.20), transparent 14rem),
        linear-gradient(135deg, #071524 0%, #0B2B45 100%);
    border-color: rgba(168,233,255,0.22);
    color: #fff;
}

.zap-lab-side-card h2 {
    margin: 0 0 12px;
    color: inherit;
    font-family: var(--zap-serif);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.zap-lab-side-card h3 {
    margin: 18px 0 8px;
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.zap-lab-side-card p {
    margin: 0 0 16px;
    color: var(--zap-text-2);
    font-size: 15px;
    line-height: 1.6;
}

.zap-lab-side-card--dark p { color: rgba(235,247,255,0.78); }
.zap-lab-side-card--dark a { color: #A8E9FF; font-weight: 800; }

.zap-lab-side-card__kicker {
    margin: 0 0 9px !important;
    color: #A8E9FF !important;
    font-family: var(--zap-mono);
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.zap-lab-recent-list,
.zap-lab-link-list,
.zap-lab-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zap-lab-recent-list li + li,
.zap-lab-link-list li + li,
.zap-lab-product-list li + li {
    border-top: 1px solid rgba(6,21,36,0.08);
}

.zap-lab-recent-list a,
.zap-lab-link-list a {
    display: block;
    padding: 12px 0;
    color: var(--zap-text);
}

.zap-lab-recent-list a:hover,
.zap-lab-link-list a:hover {
    color: var(--zap-blue);
    text-decoration: none;
}

.zap-lab-recent-list span {
    display: block;
    margin: 0 0 3px;
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zap-lab-recent-list strong,
.zap-lab-link-list a {
    font-size: 15px;
    line-height: 1.35;
}

.zap-lab-link-list--pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zap-lab-link-list--pills li + li { border-top: none; }
.zap-lab-link-list--pills a {
    padding: 7px 10px;
    border-radius: 999px;
    background: #EAF6FF;
    color: #164B78;
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zap-lab-product-list a {
    display: grid;
    grid-template-columns: 50px minmax(0,1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    color: var(--zap-text);
}

.zap-lab-product-list a:hover { color: var(--zap-blue); text-decoration: none; }
.zap-lab-product-list span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    background: #EAF6FF;
}

.zap-lab-product-list img { width: 100%; height: 100%; object-fit: cover; }
.zap-lab-product-list strong { min-width: 0; font-size: 14px; line-height: 1.3; }

.zap-lab-article {
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(6,21,36,0.12);
    background: #fff;
    box-shadow: 0 20px 60px rgba(6,21,36,0.08);
}

.zap-lab-article__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 0;
    min-height: 420px;
    background:
        radial-gradient(circle at 0% 0%, rgba(0,111,230,0.12), transparent 22rem),
        #F8FBFF;
}

.zap-lab-article__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(30px, 5vw, 58px);
}

.zap-lab-article__copy h1 {
    margin: 0;
    color: var(--zap-text);
    font-family: var(--zap-serif);
    font-size: clamp(44px, 6.2vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.zap-lab-article__image {
    min-height: 360px;
    background: #071524;
}

.zap-lab-article__content {
    width: min(850px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(34px, 5vw, 70px) 0;
    color: var(--zap-text);
    font-size: 18px;
    line-height: 1.78;
}

.zap-lab-article__content > * + * { margin-top: 1.25em; }
.zap-lab-article__content h2,
.zap-lab-article__content h3,
.zap-lab-article__content h4 {
    margin-top: 1.8em;
    color: var(--zap-text);
    font-family: var(--zap-serif);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.zap-lab-article__content h2 { font-size: clamp(34px, 4vw, 52px); }
.zap-lab-article__content h3 { font-size: clamp(26px, 3vw, 36px); }
.zap-lab-article__content p,
.zap-lab-article__content .wp-block-paragraph {
    margin: 0 0 1.35em;
}
.zap-lab-article__content a { font-weight: 750; }
.zap-lab-article__content ul,
.zap-lab-article__content ol { padding-left: 1.3em; }
.zap-lab-article__content li + li { margin-top: 0; }
.zap-lab-article__content blockquote {
    margin: 1.8em 0;
    padding: 22px 26px;
    border-left: 5px solid var(--zap-blue);
    border-radius: 0 18px 18px 0;
    background: #EAF6FF;
    color: #143956;
    font-size: 20px;
}

.zap-lab-article__content pre,
.zap-lab-article__content code {
    font-family: var(--zap-mono);
}

.zap-lab-article__content pre {
    overflow-x: auto;
    padding: 20px;
    border-radius: 18px;
    background: #071524;
    color: #DFF8FF;
    font-size: 15px;
    line-height: 1.65;
}

.zap-lab-article__connections {
    margin: 0 clamp(24px, 5vw, 60px) clamp(24px, 5vw, 60px);
    padding: 26px;
    border-radius: 24px;
    background: #F8FBFF;
    border: 1px solid rgba(0,111,230,0.14);
}

.zap-lab-article__connections h2 {
    margin: 0 0 16px;
    font-family: var(--zap-serif);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.zap-lab-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    background:
        linear-gradient(90deg, rgba(168,233,255,0.08) 1px, transparent 1px),
        linear-gradient(rgba(168,233,255,0.08) 1px, transparent 1px),
        radial-gradient(circle at 72% 22%, rgba(23,213,255,0.24), transparent 13rem),
        linear-gradient(135deg, #071524 0%, #0B2B45 100%);
    background-size: 24px 24px, 24px 24px, auto, auto;
    color: #A8E9FF;
    text-align: center;
}

.zap-lab-image-placeholder span {
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.zap-lab-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.zap-lab-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(6,21,36,0.12);
    background: #fff;
    color: var(--zap-text);
    font-weight: 800;
}

.zap-lab-pagination .page-numbers.current,
.zap-lab-pagination .page-numbers:hover {
    background: var(--zap-blue);
    color: #fff;
    text-decoration: none;
}

.zap-lab-empty {
    padding: 36px;
    border-radius: 28px;
    border: 1px solid rgba(6,21,36,0.12);
    background: #fff;
}

.zap-lab-empty h2 {
    margin: 0 0 8px;
    font-family: var(--zap-serif);
    font-size: 38px;
    letter-spacing: -0.05em;
}

/* Home page "From the lab notebook" cards now use featured images. */
.zap-home-article-card {
    min-height: 0;
    padding: 0;
}

.zap-home-article-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #071524;
}

.zap-home-article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.zap-home-article-card__body > span {
    margin: 0 0 8px;
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.zap-home-article-card__body p {
    margin: 14px 0 18px;
}

.zap-home-article-card__body .zap-lab-chips {
    margin-bottom: 18px;
}

.zap-home-article-card__body em {
    margin-top: auto;
}

@media (max-width: 1180px) {
    .zap-lab-layout,
    .zap-lab-layout--single {
        grid-template-columns: 1fr;
    }

    .zap-lab-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .zap-lab-page {
        width: min(100% - 36px, 1460px);
        padding-top: 20px;
    }

    .zap-lab-hero,
    .zap-lab-article__hero {
        grid-template-columns: 1fr;
    }

    .zap-lab-hero__scope {
        min-height: 190px;
    }

    .zap-lab-card-grid,
    .zap-lab-sidebar {
        grid-template-columns: 1fr;
    }

    .zap-lab-article__image {
        order: -1;
        min-height: 280px;
    }
}

@media (max-width: 620px) {
    .zap-lab-page {
        width: 100%;
        padding-inline: 14px;
    }

    .zap-lab-hero,
    .zap-lab-card,
    .zap-lab-article {
        border-radius: 24px;
    }

    .zap-lab-hero,
    .zap-lab-article__copy {
        padding: 28px 22px;
    }

    .zap-lab-card__body,
    .zap-home-article-card__body,
    .zap-lab-side-card {
        padding: 20px;
    }

    .zap-lab-article__content {
        width: calc(100% - 36px);
        font-size: 17px;
    }

    .zap-lab-hero h1,
    .zap-lab-article__copy h1 {
        letter-spacing: -0.055em;
    }
}

/* ============================================================
   LAB NOTEBOOK PATCH 1.3.1 — HOME CARD & SINGLE HERO FIXES
   ============================================================ */
/* The homepage article card is itself a link. Related chips must render
   as static spans there, otherwise nested <a> tags make browsers split the
   card into separate grid items. These rules keep the card vertically locked. */
.zap-home-journal-grid {
    align-items: stretch;
}

.zap-home-article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.zap-home-article-card__image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
}

.zap-home-article-card__image img,
.zap-home-article-card__image .zap-lab-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zap-home-article-card__body {
    min-width: 0;
}

.zap-home-article-card__body h3 {
    margin: 0;
    color: var(--zap-text);
    font-family: var(--zap-serif);
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.04;
    letter-spacing: -0.052em;
}

.zap-home-article-card__body .zap-lab-chips {
    pointer-events: none;
}

.zap-home-article-card__body .zap-lab-chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Single-entry hero: reset the browser's default figure margins and constrain
   the featured image so it cannot overlap the title or dominate the page. */
.zap-lab-article__hero {
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
}

.zap-lab-article__copy {
    position: relative;
    z-index: 2;
}

.zap-lab-article__image {
    display: block;
    margin: 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #071524;
}

.zap-lab-article__image img,
.zap-lab-article__image .zap-lab-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 901px) {
    .zap-lab-article__hero {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    }

    .zap-lab-article__image {
        min-height: 360px;
        max-height: 520px;
        align-self: stretch;
    }
}

@media (max-width: 900px) {
    .zap-lab-article__image {
        order: -1;
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: 360px;
    }

    .zap-lab-article__copy h1 {
        font-size: clamp(38px, 9vw, 68px);
        line-height: 0.98;
    }
}

@media (max-width: 620px) {
    .zap-home-article-card__image {
        aspect-ratio: 16 / 10;
    }

    .zap-lab-article__image {
        max-height: 260px;
        border-radius: 0;
    }

    .zap-lab-article__copy h1 {
        font-size: clamp(34px, 11vw, 54px);
    }
}


/* ============================================================
   PRODUCT IMAGE PATCH 1.3.2 — bigger, cleaner product media
   ============================================================ */
.zap-product-gallery {
    min-width: 0;
}

.zap-product-gallery__main {
    min-height: clamp(360px, 38vw, 540px);
    padding: clamp(22px, 3vw, 42px);
}

.zap-product-gallery__main img,
.zap-product-gallery__main-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.zap-product-gallery__thumb img,
.zap-product-gallery__thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

@media (min-width: 1100px) {
    .zap-product-layout {
        grid-template-columns: minmax(440px, 560px) minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .zap-product-gallery__main {
        min-height: clamp(320px, 62vw, 520px);
        height: auto;
    }
}

@media (max-width: 600px) {
    .zap-product-gallery__main {
        min-height: 280px;
        padding: 18px;
    }
}

/* ============================================================
   PRODUCT IMAGE PATCH 1.3.3 — always rounded + full-size lightbox
   ============================================================ */
.zap-product-gallery__main {
    border-radius: clamp(18px, 2vw, 28px) !important;
    overflow: hidden;
}

.zap-product-gallery__zoom {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: inherit;
    cursor: zoom-in;
}

.zap-product-gallery__zoom img,
.zap-product-gallery__main img,
.zap-product-gallery__main-img {
    display: block;
    width: auto !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: clamp(16px, 1.8vw, 24px) !important;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(6, 21, 36, 0.10);
}

.zap-product-gallery__zoom:focus-visible {
    outline: 3px solid rgba(0, 111, 230, 0.45);
    outline-offset: 4px;
}

.zap-product-gallery__zoom-hint {
    position: absolute;
    right: 18px;
    bottom: 16px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(13, 27, 42, 0.78);
    color: #FFFFFF;
    font-family: var(--zap-mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.zap-product-gallery__zoom:hover .zap-product-gallery__zoom-hint,
.zap-product-gallery__zoom:focus-visible .zap-product-gallery__zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.zap-product-gallery__thumb {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    border-style: solid;
}

.zap-product-gallery__thumb img,
.zap-product-gallery__thumb-img {
    border-radius: calc(var(--zap-radius) - 2px) !important;
}

body.zap-lightbox-open {
    overflow: hidden;
}

.zap-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 56px);
    background:
        radial-gradient(circle at 50% 40%, rgba(23, 213, 255, 0.16), transparent 34rem),
        rgba(5, 13, 22, 0.86);
    backdrop-filter: blur(14px);
}

.zap-image-lightbox__stage {
    max-width: min(1180px, 94vw);
    max-height: 90vh;
    padding: clamp(10px, 1.8vw, 22px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: clamp(20px, 2.2vw, 34px);
    background: rgba(241, 248, 255, 0.08);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.zap-image-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 44px);
    width: auto;
    height: auto;
    border-radius: clamp(16px, 1.8vw, 26px);
    background: #FFFFFF;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.26);
}

.zap-image-lightbox__close {
    appearance: none;
    -webkit-appearance: none;
    position: fixed;
    top: clamp(14px, 2vw, 28px);
    right: clamp(14px, 2vw, 28px);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 34px;
    line-height: 40px;
    cursor: pointer;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.zap-image-lightbox__close:hover,
.zap-image-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

@media (max-width: 680px) {
    .zap-product-gallery__zoom img,
    .zap-product-gallery__main img,
    .zap-product-gallery__main-img {
        width: 100% !important;
        height: auto !important;
        max-height: 100%;
    }

    .zap-product-gallery__zoom-hint {
        opacity: 1;
        transform: none;
        right: 12px;
        bottom: 12px;
        font-size: 8px;
    }
}

/* ============================================================
   ZAPTRONICS PATCH 1.0.7 — Customer account console
   Branded WooCommerce My Account dashboard, navigation, forms,
   order tables, addresses, and logged-out login/register page.
   ============================================================ */

body.woocommerce-account .zap-page-shell {
    width: min(100%, 1240px);
    padding-top: clamp(28px, 5vw, 64px);
    padding-bottom: clamp(42px, 6vw, 76px);
}

body.woocommerce-account .zap-page,
body.woocommerce-account .zap-page__content,
body.woocommerce-account .woocommerce {
    width: 100%;
}

.zap-account {
    display: grid;
    gap: clamp(22px, 3vw, 34px);
}

.zap-account-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(22px, 4vw, 48px);
    align-items: end;
    min-height: 260px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid rgba(79, 160, 238, 0.28);
    border-radius: clamp(24px, 3vw, 34px);
    background:
        radial-gradient(circle at 78% 12%, rgba(23, 213, 255, 0.23), transparent 24rem),
        radial-gradient(circle at 8% 96%, rgba(244, 196, 48, 0.12), transparent 22rem),
        linear-gradient(135deg, #061524 0%, #0A2135 58%, #071927 100%);
    color: #FFFFFF;
    box-shadow: 0 26px 80px rgba(6, 21, 36, 0.18);
}

.zap-account-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(79,160,238,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,160,238,0.16) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 58% 44%, black, transparent 82%);
    pointer-events: none;
}

.zap-account-hero::after {
    content: '';
    position: absolute;
    right: clamp(20px, 4vw, 56px);
    top: clamp(18px, 3vw, 42px);
    width: clamp(170px, 24vw, 340px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(236, 251, 255, 0.88), rgba(23, 213, 255, 0.52), transparent);
    box-shadow: 0 0 22px rgba(23, 213, 255, 0.42);
    transform: rotate(-14deg);
    pointer-events: none;
}

.zap-account-hero > * {
    position: relative;
    z-index: 1;
}

.zap-account-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9FEAFF;
}

.zap-account-eyebrow::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #17D5FF;
    box-shadow: 0 0 0 5px rgba(23, 213, 255, 0.12), 0 0 18px rgba(23, 213, 255, 0.8);
}

.zap-account-hero h1 {
    margin: 0;
    max-width: 760px;
    font-family: var(--zap-serif);
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    color: #FFFFFF;
}

.zap-account-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(238, 248, 255, 0.86);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.65;
}

.zap-account-hero__panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    min-height: 170px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 4%, rgba(23, 213, 255, 0.22), transparent 12rem),
        rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 18px 52px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.zap-account-hero__panel span {
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(238, 248, 255, 0.68);
}

.zap-account-hero__panel strong {
    color: #FFFFFF;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.zap-account-hero__link {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    padding: 10px 13px;
    border: 1px solid rgba(159, 234, 255, 0.46);
    border-radius: 999px;
    color: #EAFBFF;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
}

.zap-account-hero__link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    text-decoration: none;
}

.zap-account-layout {
    display: grid;
    grid-template-columns: minmax(220px, 282px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}

.zap-account-nav.woocommerce-MyAccount-navigation,
.zap-account-content.woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.zap-account-nav {
    position: sticky;
    top: calc(var(--zap-nav-h) + 22px);
    padding: 16px;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(23, 213, 255, 0.12), transparent 13rem),
        linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%) !important;
    border: 1px solid rgba(6, 21, 36, 0.12) !important;
    box-shadow: 0 16px 44px rgba(6, 21, 36, 0.10) !important;
}

.zap-account-nav__head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 8px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(6, 21, 36, 0.09);
}

.zap-account-nav__dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #17D5FF;
    box-shadow: 0 0 0 6px rgba(23, 213, 255, 0.10), 0 0 18px rgba(23, 213, 255, 0.64);
}

.zap-account-nav__head strong,
.zap-account-nav__head span {
    display: block;
}

.zap-account-nav__head strong {
    color: var(--zap-text);
    font-size: 15px;
    line-height: 1.15;
}

.zap-account-nav__head span {
    margin-top: 2px;
    color: var(--zap-text-3);
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.zap-account-nav ul {
    display: grid;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.zap-account-nav li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.zap-account-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--zap-text-2);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.zap-account-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 111, 230, 0.22);
    background: rgba(0, 111, 230, 0.055);
    color: var(--zap-blue);
    text-decoration: none;
}

.zap-account-nav .is-active a {
    color: #FFFFFF;
    border-color: rgba(23, 213, 255, 0.24);
    background:
        radial-gradient(circle at 92% 0%, rgba(23, 213, 255, 0.28), transparent 8rem),
        linear-gradient(135deg, #0A2135 0%, #0D4B86 100%);
    box-shadow: 0 12px 26px rgba(6, 21, 36, 0.18);
}

.zap-account-nav__icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(0, 111, 230, 0.09);
    color: var(--zap-blue);
    font-size: 14px;
    line-height: 1;
}

.zap-account-nav .is-active .zap-account-nav__icon {
    background: rgba(255, 255, 255, 0.16);
    color: #9FEAFF;
}

.woocommerce-MyAccount-navigation-link--dashboard .zap-account-nav__icon::before { content: '⌁'; }
.woocommerce-MyAccount-navigation-link--orders .zap-account-nav__icon::before { content: '▤'; }
.woocommerce-MyAccount-navigation-link--downloads .zap-account-nav__icon::before { content: '⇩'; }
.woocommerce-MyAccount-navigation-link--edit-address .zap-account-nav__icon::before { content: '⌖'; }
.woocommerce-MyAccount-navigation-link--edit-account .zap-account-nav__icon::before { content: '◉'; }
.woocommerce-MyAccount-navigation-link--customer-logout .zap-account-nav__icon::before { content: '↯'; }

.zap-account-content {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 111, 230, 0.06), transparent 15rem),
        #FFFFFF !important;
    border: 1px solid rgba(6, 21, 36, 0.12) !important;
    box-shadow: 0 16px 44px rgba(6, 21, 36, 0.10) !important;
    overflow: hidden;
}

.zap-account-content > *:first-child { margin-top: 0 !important; }
.zap-account-content > *:last-child { margin-bottom: 0 !important; }

.zap-account-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: clamp(18px, 3vw, 32px);
    align-items: stretch;
    margin-bottom: 26px;
}

.zap-account-welcome h2,
.zap-account-content h2,
.zap-account-content h3,
.woocommerce-account .woocommerce h2,
.woocommerce-account .woocommerce h3 {
    font-family: var(--zap-serif);
    letter-spacing: -0.045em;
    color: var(--zap-text);
}

.zap-account-welcome h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.04;
}

.zap-account-welcome p {
    max-width: 640px;
    margin: 14px 0 0;
    color: var(--zap-text-2);
    font-size: 17px;
    line-height: 1.7;
}

.zap-account-shop-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    padding: 20px;
    border: 1px solid rgba(0, 111, 230, 0.20);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 10%, rgba(23, 213, 255, 0.18), transparent 11rem),
        linear-gradient(180deg, #F7FBFF 0%, #EEF7FF 100%);
    color: var(--zap-text);
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(6, 21, 36, 0.08);
}

.zap-account-shop-card:hover {
    border-color: rgba(0, 111, 230, 0.38);
    transform: translateY(-1px);
    text-decoration: none;
}

.zap-account-shop-card span {
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #315A7A;
}

.zap-account-shop-card strong {
    margin-top: 8px;
    color: var(--zap-blue);
    font-size: 18px;
    line-height: 1.25;
}

.zap-account-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

.zap-account-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 168px;
    padding: 18px;
    border: 1px solid rgba(6, 21, 36, 0.10);
    border-radius: 20px;
    background: #F8FBFF;
    color: var(--zap-text);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(6, 21, 36, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.zap-account-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -46px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(23, 213, 255, 0.12);
    pointer-events: none;
}

.zap-account-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 111, 230, 0.28);
    box-shadow: 0 16px 34px rgba(6, 21, 36, 0.10);
    text-decoration: none;
}

.zap-account-card__icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: auto;
    border-radius: 15px;
    background: #0A2135;
    color: #9FEAFF;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(6, 21, 36, 0.18);
}

.zap-account-card--orders .zap-account-card__icon::before { content: '▤'; }
.zap-account-card--downloads .zap-account-card__icon::before { content: '⇩'; }
.zap-account-card--addresses .zap-account-card__icon::before { content: '⌖'; }
.zap-account-card--details .zap-account-card__icon::before { content: '◉'; }

.zap-account-card__label,
.zap-account-card__text {
    position: relative;
    z-index: 1;
    display: block;
}

.zap-account-card__label {
    margin-top: 20px;
    color: var(--zap-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
}

.zap-account-card__text {
    margin-top: 8px;
    color: var(--zap-text-3);
    font-size: 13px;
    line-height: 1.5;
}

.zap-account-note {
    padding: 20px;
    border: 1px solid rgba(244, 196, 48, 0.28);
    border-radius: 20px;
    background:
        radial-gradient(circle at 0% 0%, rgba(244, 196, 48, 0.10), transparent 15rem),
        #FFFDF7;
}

.zap-account-note h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.zap-account-note p {
    margin: 0;
    color: var(--zap-text-2);
    font-size: 15px;
}

/* Standard Woo endpoint content inside the upgraded account card. */
.zap-account-content .woocommerce-Message,
.zap-account-content .woocommerce-message,
.zap-account-content .woocommerce-info,
.zap-account-content .woocommerce-error {
    margin-bottom: 18px;
}

.zap-account-content mark {
    padding: 2px 7px;
    border-radius: 999px;
    background: #EAF6FF;
    color: #004FA6;
    font-weight: 850;
}

.zap-account-content a:not(.button):not(.zap-account-card):not(.zap-account-shop-card) {
    font-weight: 800;
}

.woocommerce-account .woocommerce table.shop_table,
.zap-account-content table.shop_table {
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(6, 21, 36, 0.07) !important;
}

.zap-account-content table.shop_table th,
.zap-account-content table.shop_table td,
.woocommerce-account .woocommerce table.shop_table th,
.woocommerce-account .woocommerce table.shop_table td {
    padding: 15px 16px !important;
    border-top: 1px solid rgba(6, 21, 36, 0.08) !important;
}

.zap-account-content table.shop_table thead th,
.woocommerce-account .woocommerce table.shop_table thead th {
    border-top: 0 !important;
    background: #F2F8FF;
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.zap-account-content .woocommerce-button,
.zap-account-content .button,
.woocommerce-account .woocommerce .button,
.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce input.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 11px 16px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: var(--zap-blue) !important;
    color: #FFFFFF !important;
    font-family: var(--zap-mono) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(0, 111, 230, 0.20) !important;
    text-decoration: none !important;
}

.zap-account-content .button:hover,
.woocommerce-account .woocommerce .button:hover,
.woocommerce-account .woocommerce button.button:hover,
.woocommerce-account .woocommerce input.button:hover {
    background: #155AB0 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.zap-account-content .woocommerce-Addresses,
.zap-account-content .u-columns.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.zap-account-content .woocommerce-Address,
.zap-account-content .woocommerce-column,
.woocommerce-account .woocommerce .woocommerce-Address,
.woocommerce-account .woocommerce .woocommerce-column {
    width: auto !important;
    float: none !important;
    padding: 20px;
    border: 1px solid rgba(6, 21, 36, 0.10);
    border-radius: 20px;
    background: #F8FBFF;
    box-shadow: 0 10px 26px rgba(6, 21, 36, 0.06);
}

.zap-account-content .woocommerce-Address-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.zap-account-content .woocommerce-Address-title h2,
.zap-account-content .woocommerce-column__title {
    margin: 0 !important;
    font-size: 24px;
    line-height: 1.15;
}

.zap-account-content address {
    color: var(--zap-text-2);
    font-style: normal;
    line-height: 1.7;
}

.zap-account-content form,
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce form.edit-account,
.woocommerce-account .woocommerce form.edit-address {
    border: 1px solid rgba(6, 21, 36, 0.11) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(23, 213, 255, 0.08), transparent 14rem),
        #FFFFFF !important;
    box-shadow: 0 12px 32px rgba(6, 21, 36, 0.07) !important;
    padding: clamp(18px, 3vw, 28px) !important;
}

.zap-account-content fieldset,
.woocommerce-account .woocommerce fieldset {
    margin: 22px 0 0;
    padding: 18px;
    border: 1px solid rgba(6, 21, 36, 0.10);
    border-radius: 18px;
    background: #F8FBFF;
}

.zap-account-content legend,
.woocommerce-account .woocommerce legend {
    padding: 0 8px;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #315A7A;
}

.woocommerce-account .woocommerce .form-row label,
.zap-account-content .form-row label {
    display: block;
    margin-bottom: 7px;
    color: var(--zap-text);
    font-size: 13px;
    font-weight: 850;
}

.woocommerce-account .woocommerce .form-row em,
.woocommerce-account .woocommerce .form-row span em {
    color: var(--zap-text-3);
    font-size: 12px;
}

.woocommerce-account .woocommerce .form-row {
    margin-bottom: 15px !important;
}

/* Logged-out login/register screen. */
.woocommerce-account:not(.logged-in) .woocommerce {
    display: grid;
    gap: 22px;
}

.woocommerce-account:not(.logged-in) .woocommerce::before {
    content: 'Customer account';
    display: block;
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid rgba(79, 160, 238, 0.28);
    border-radius: clamp(24px, 3vw, 34px);
    background:
        radial-gradient(circle at 82% 16%, rgba(23, 213, 255, 0.20), transparent 22rem),
        linear-gradient(135deg, #061524 0%, #0A2135 58%, #071927 100%);
    color: #FFFFFF;
    font-family: var(--zap-serif);
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1;
    letter-spacing: -0.06em;
    box-shadow: 0 24px 70px rgba(6, 21, 36, 0.18);
}

.woocommerce-account:not(.logged-in) .woocommerce h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.08;
}

.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 30px);
}

.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2,
.woocommerce-account:not(.logged-in) .woocommerce .col-1,
.woocommerce-account:not(.logged-in) .woocommerce .col-2 {
    float: none !important;
    width: auto !important;
    min-width: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce form.login,
.woocommerce-account:not(.logged-in) .woocommerce form.register {
    min-height: 100%;
    margin: 0 !important;
}

.woocommerce-account:not(.logged-in) .woocommerce form.login::before,
.woocommerce-account:not(.logged-in) .woocommerce form.register::before {
    content: '';
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 60% 40%, #9FEAFF, transparent 34%),
        linear-gradient(135deg, #0A2135, #0D4B86);
    box-shadow: 0 12px 26px rgba(6, 21, 36, 0.16);
}

.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
}

.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-LostPassword {
    margin-top: 14px;
    font-size: 14px;
}

@media (max-width: 1020px) {
    .zap-account-hero,
    .zap-account-welcome {
        grid-template-columns: 1fr;
    }

    .zap-account-hero__panel,
    .zap-account-shop-card {
        min-height: auto;
    }

    .zap-account-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .zap-account-layout {
        grid-template-columns: 1fr;
    }

    .zap-account-nav {
        position: relative;
        top: auto;
    }

    .zap-account-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zap-account-content .woocommerce-Addresses,
    .zap-account-content .u-columns.woocommerce-Addresses,
    .woocommerce-account:not(.logged-in) .woocommerce .u-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body.woocommerce-account .zap-page-shell {
        padding-inline: 12px;
    }

    .zap-account-hero,
    .zap-account-content,
    .zap-account-nav {
        border-radius: 20px !important;
    }

    .zap-account-hero {
        padding: 24px;
    }

    .zap-account-nav ul,
    .zap-account-cards {
        grid-template-columns: 1fr;
    }

    .zap-account-card {
        min-height: 138px;
    }

    .zap-account-content {
        padding: 18px !important;
    }

    .zap-account-content table.shop_table,
    .woocommerce-account .woocommerce table.shop_table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .woocommerce-account:not(.logged-in) .woocommerce::before {
        padding: 24px;
    }
}

/* ============================================================
   ZAPTRONICS PATCH 1.0.8 — Account address grid fix
   WooCommerce adds clearfix ::before/::after pseudo-elements to
   .col2-set; when that container is turned into a grid, those
   pseudo-elements become invisible grid cells and push the billing
   and shipping cards into a diagonal layout. Hide those ghost cells
   and make the address cards behave as real grid items.
   ============================================================ */

body.woocommerce-account .zap-account-content .woocommerce-Addresses,
body.woocommerce-account .zap-account-content .woocommerce-Addresses.col2-set,
body.woocommerce-account .zap-account-content .u-columns.woocommerce-Addresses,
body.woocommerce-account .zap-account-content .u-columns.woocommerce-Addresses.col2-set {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    gap: clamp(16px, 2.4vw, 24px) !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 20px !important;
    clear: both !important;
}

body.woocommerce-account .zap-account-content .woocommerce-Addresses::before,
body.woocommerce-account .zap-account-content .woocommerce-Addresses::after,
body.woocommerce-account .zap-account-content .u-columns.woocommerce-Addresses::before,
body.woocommerce-account .zap-account-content .u-columns.woocommerce-Addresses::after,
body.woocommerce-account .zap-account-content .col2-set.woocommerce-Addresses::before,
body.woocommerce-account .zap-account-content .col2-set.woocommerce-Addresses::after {
    content: none !important;
    display: none !important;
}

body.woocommerce-account .zap-account-content .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-account .zap-account-content .woocommerce-Addresses .u-column1,
body.woocommerce-account .zap-account-content .woocommerce-Addresses .u-column2,
body.woocommerce-account .zap-account-content .woocommerce-Addresses .col-1,
body.woocommerce-account .zap-account-content .woocommerce-Addresses .col-2 {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    clear: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body.woocommerce-account .zap-account-content .woocommerce-Address {
    display: flex !important;
    flex-direction: column;
    min-height: 138px;
}

body.woocommerce-account .zap-account-content .woocommerce-Address-title {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

body.woocommerce-account .zap-account-content .woocommerce-Address-title h2 {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

body.woocommerce-account .zap-account-content .woocommerce-Address-title a.edit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 140px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(0, 111, 230, 0.16);
    border-radius: 999px;
    background: rgba(0, 111, 230, 0.06);
    color: var(--zap-blue);
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none !important;
}

body.woocommerce-account .zap-account-content .woocommerce-Address-title a.edit:hover {
    background: rgba(0, 111, 230, 0.11);
    border-color: rgba(0, 111, 230, 0.28);
}

body.woocommerce-account .zap-account-content .woocommerce-Address address {
    margin-top: auto;
}

@media (max-width: 860px) {
    body.woocommerce-account .zap-account-content .woocommerce-Addresses,
    body.woocommerce-account .zap-account-content .woocommerce-Addresses.col2-set,
    body.woocommerce-account .zap-account-content .u-columns.woocommerce-Addresses,
    body.woocommerce-account .zap-account-content .u-columns.woocommerce-Addresses.col2-set {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 460px) {
    body.woocommerce-account .zap-account-content .woocommerce-Address-title {
        display: grid !important;
        gap: 10px;
    }

    body.woocommerce-account .zap-account-content .woocommerce-Address-title h2 {
        white-space: normal;
    }

    body.woocommerce-account .zap-account-content .woocommerce-Address-title a.edit {
        width: fit-content;
        max-width: 100%;
    }
}


/* ============================================================
   ZAPTRONICS PATCH 1.0.13 — Compact account hero + stacked addresses
   Keep the customer account page useful without the hero taking over
   the viewport, and give WooCommerce billing/shipping address cards
   enough horizontal room for titles and Edit controls.
   ============================================================ */

body.woocommerce-account .zap-account {
    gap: clamp(18px, 2.4vw, 28px);
}

body.woocommerce-account .zap-account-hero {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: clamp(16px, 3vw, 32px);
    min-height: 0;
    padding: clamp(20px, 3.2vw, 34px);
    border-radius: clamp(20px, 2.4vw, 28px);
}

body.woocommerce-account .zap-account-eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
}

body.woocommerce-account .zap-account-hero h1 {
    font-size: clamp(34px, 4.8vw, 58px);
    letter-spacing: -0.05em;
}

body.woocommerce-account .zap-account-hero p {
    max-width: 620px;
    margin-top: 10px;
    font-size: clamp(14px, 1.35vw, 17px);
    line-height: 1.55;
}

body.woocommerce-account .zap-account-hero__panel {
    align-self: center;
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
}

body.woocommerce-account .zap-account-hero__panel strong {
    font-size: clamp(18px, 2vw, 24px);
}

body.woocommerce-account .zap-account-hero__link {
    margin-top: 6px;
    padding: 8px 11px;
    font-size: 10px;
}

body.woocommerce-account .zap-account-content .woocommerce-Addresses,
body.woocommerce-account .zap-account-content .woocommerce-Addresses.col2-set,
body.woocommerce-account .zap-account-content .u-columns.woocommerce-Addresses,
body.woocommerce-account .zap-account-content .u-columns.woocommerce-Addresses.col2-set {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
}

body.woocommerce-account .zap-account-content .woocommerce-Address {
    min-height: 0;
}

body.woocommerce-account .zap-account-content .woocommerce-Address-title {
    align-items: center;
}

body.woocommerce-account .zap-account-content .woocommerce-Address-title h2 {
    white-space: normal;
}

body.woocommerce-account .zap-account-content .woocommerce-Address-title a.edit {
    min-width: 86px;
    max-width: none;
    padding-inline: 14px;
}

@media (max-width: 1020px) {
    body.woocommerce-account .zap-account-hero {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account .zap-account-hero__panel {
        align-self: stretch;
    }
}

@media (max-width: 600px) {
    body.woocommerce-account .zap-account-hero {
        padding: 20px;
    }
}


/* ============================================================
   BLOG / LAB NOTEBOOK INDEX
   ============================================================ */

.zap-blog-page { background: var(--zap-bg); }

/* Hero */
.zap-blog-hero {
    background:    var(--zap-navy);
    padding:       48px 36px 44px;
    border-bottom: 1px solid #1A3A54;
}

.zap-blog-eyebrow {
    font-family:    var(--zap-sans);
    font-size:      12px;
    font-weight:    600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          var(--zap-blue-mid);
    margin-bottom:  12px;
}

.zap-blog-title {
    font-family:    var(--zap-serif);
    font-size:      42px;
    font-weight:    700;
    color:          #fff;
    line-height:    1.1;
    margin-bottom:  14px;
    letter-spacing: -0.5px;
}

.zap-blog-lead {
    font-size:  18px;
    color:      #A8C4DC;
    line-height: 1.65;
    max-width:  540px;
}

/* Page wrap */
.zap-blog-wrap {
    max-width:  1200px;
    margin:     0 auto;
    padding:    40px 36px 60px;
}

/* Empty state */
.zap-blog-empty {
    background:    var(--zap-surface);
    border-radius: var(--zap-radius-lg);
    border:        1px solid var(--zap-border);
    padding:       60px 40px;
    text-align:    center;
    margin-top:    32px;
}

.zap-blog-empty__icon { font-size: 48px; margin-bottom: 16px; }
.zap-blog-empty h2    { font-family: var(--zap-serif); font-size: 22px; margin-bottom: 10px; }
.zap-blog-empty p     { font-size: 16px; color: var(--zap-text-2); }

/* Shared meta chips */
.zap-blog-cat {
    font-family:    var(--zap-sans);
    font-size:      11px;
    font-weight:    600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background:     var(--zap-blue);
    color:          #fff;
    padding:        3px 9px;
    border-radius:  4px;
}

.zap-blog-date,
.zap-blog-read,
.zap-blog-comments {
    font-family: var(--zap-mono);
    font-size:   13px;
    color:       var(--zap-text-3);
    display:     flex;
    align-items: center;
    gap:         4px;
}

/* ── FEATURED CARDS ──────────────────────────────────────── */
.zap-blog-featured { margin-bottom: 48px; }

.zap-blog-featured__grid {
    display:               grid;
    grid-template-columns: 2fr 1fr;
    gap:                   20px;
    margin-top:            20px;
}

.zap-blog-feat-card {
    background:     var(--zap-surface);
    border-radius:  var(--zap-radius-lg);
    border:         1px solid var(--zap-border);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    transition:     box-shadow 0.15s, border-color 0.15s;
}

.zap-blog-feat-card:hover {
    border-color: var(--zap-blue);
    box-shadow:   var(--zap-shadow-md);
}

/* Image fills top of card, clipped if needed */
.zap-blog-feat-card__img {
    display:    block;
    width:      100%;
    height:     240px;
    overflow:   hidden;
    flex-shrink: 0;
}

.zap-blog-feat-card--lead .zap-blog-feat-card__img { height: 300px; }

.zap-blog-feat-card__img img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    object-position: center;
    display:    block;
    transition: transform 0.3s ease;
}

.zap-blog-feat-card:hover .zap-blog-feat-card__img img { transform: scale(1.03); }

.zap-blog-feat-card__placeholder {
    width:            100%;
    height:           100%;
    background:       var(--zap-blue-lt);
    display:          flex;
    align-items:      center;
    justify-content:  center;
    font-size:        48px;
}

.zap-blog-feat-card__body {
    padding: 22px 24px 24px;
    flex:    1;
    display: flex;
    flex-direction: column;
}

.zap-blog-feat-card__meta {
    display:     flex;
    align-items: center;
    gap:         12px;
    flex-wrap:   wrap;
    margin-bottom: 12px;
}

.zap-blog-feat-card__title {
    font-family:    var(--zap-serif);
    font-weight:    700;
    color:          var(--zap-text);
    line-height:    1.2;
    margin-bottom:  12px;
    letter-spacing: -0.3px;
}

.zap-blog-feat-card--lead .zap-blog-feat-card__title { font-size: 26px; }
.zap-blog-feat-card:not(.zap-blog-feat-card--lead) .zap-blog-feat-card__title { font-size: 19px; }

.zap-blog-feat-card__title a { color: inherit; text-decoration: none; }
.zap-blog-feat-card__title a:hover { color: var(--zap-blue); }

.zap-blog-feat-card__excerpt {
    font-size:     16px;
    color:         var(--zap-text-2);
    line-height:   1.7;
    margin-bottom: 16px;
    flex:          1;
}

.zap-blog-read-more {
    font-family:    var(--zap-mono);
    font-size:      13px;
    font-weight:    600;
    color:          var(--zap-blue);
    text-decoration: none;
    margin-top:     auto;
    padding-top:    12px;
}

.zap-blog-read-more:hover { text-decoration: underline; }

/* ── SORT CONTROLS ───────────────────────────────────────── */
.zap-blog-list-header {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap:   wrap;
    gap:         12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--zap-border);
}

.zap-blog-sort {
    display:     flex;
    align-items: center;
    gap:         4px;
}

.zap-blog-sort__label {
    font-family: var(--zap-sans);
    font-size:   13px;
    color:       var(--zap-text-3);
    margin-right: 6px;
}

.zap-blog-sort__btn {
    font-family:    var(--zap-mono);
    font-size:      12px;
    letter-spacing: 0.5px;
    padding:        6px 14px;
    border-radius:  20px;
    border:         1px solid var(--zap-border);
    color:          var(--zap-text-2);
    text-decoration: none;
    transition:     all 0.15s;
    background:     var(--zap-surface);
}

.zap-blog-sort__btn:hover { border-color: var(--zap-blue); color: var(--zap-blue); text-decoration: none; }
.zap-blog-sort__btn.active { background: var(--zap-blue); color: #fff; border-color: var(--zap-blue); }

/* ── POST LIST ROWS ──────────────────────────────────────── */
.zap-blog-list {
    display:        flex;
    flex-direction: column;
    gap:            2px;
}

.zap-blog-row {
    display:        grid;
    grid-template-columns: 100px 1fr 110px;
    gap:            20px;
    align-items:    center;
    background:     var(--zap-surface);
    border-radius:  var(--zap-radius);
    border:         1px solid var(--zap-border);
    padding:        16px 20px;
    transition:     border-color 0.15s, box-shadow 0.15s;
}

.zap-blog-row:hover {
    border-color: var(--zap-blue);
    box-shadow:   var(--zap-shadow);
}

/* Thumbnail — fills box, clipped */
.zap-blog-row__thumb {
    display:       block;
    width:         100px;
    height:        72px;
    border-radius: var(--zap-radius);
    overflow:      hidden;
    flex-shrink:   0;
    background:    var(--zap-blue-lt);
}

.zap-blog-row__thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    object-position: center;
    display:    block;
}

.zap-blog-row__placeholder {
    width:           100%;
    height:          100%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       24px;
    background:      var(--zap-blue-lt);
}

.zap-blog-row__meta {
    display:       flex;
    align-items:   center;
    gap:           10px;
    flex-wrap:     wrap;
    margin-bottom: 6px;
}

.zap-blog-row__title {
    font-family:   var(--zap-serif);
    font-size:     17px;
    font-weight:   700;
    line-height:   1.3;
    margin-bottom: 5px;
}

.zap-blog-row__title a { color: var(--zap-text); text-decoration: none; }
.zap-blog-row__title a:hover { color: var(--zap-blue); }

.zap-blog-row__excerpt {
    font-size:   14px;
    color:       var(--zap-text-3);
    line-height: 1.55;
    margin-bottom: 6px;
}

/* Aside: big date + read link */
.zap-blog-row__aside {
    display:        flex;
    flex-direction: column;
    align-items:    flex-end;
    gap:            10px;
    text-align:     right;
    flex-shrink:    0;
}

.zap-blog-row__date-big {
    display:        flex;
    flex-direction: column;
    align-items:    flex-end;
    line-height:    1;
}

.zap-blog-row__day {
    font-family: var(--zap-serif);
    font-size:   28px;
    font-weight: 700;
    color:       var(--zap-text);
    line-height: 1;
}

.zap-blog-row__mon {
    font-family: var(--zap-mono);
    font-size:   11px;
    color:       var(--zap-text-3);
    margin-top:  2px;
}

.zap-blog-row__link {
    font-family:    var(--zap-mono);
    font-size:      12px;
    font-weight:    600;
    color:          var(--zap-blue);
    text-decoration: none;
    white-space:    nowrap;
}

.zap-blog-row__link:hover { text-decoration: underline; }

/* ── PAGINATION ──────────────────────────────────────────── */
.zap-blog-pagination {
    display:     flex;
    gap:         6px;
    flex-wrap:   wrap;
    margin-top:  36px;
    justify-content: center;
}

.zap-blog-pagination__btn {
    font-family:    var(--zap-mono);
    font-size:      13px;
    font-weight:    600;
    width:          40px;
    height:         40px;
    display:        flex;
    align-items:    center;
    justify-content: center;
    border-radius:  var(--zap-radius);
    border:         1px solid var(--zap-border);
    background:     var(--zap-surface);
    color:          var(--zap-text-2);
    text-decoration: none;
    transition:     all 0.15s;
}

.zap-blog-pagination__btn:hover { border-color: var(--zap-blue); color: var(--zap-blue); text-decoration: none; }
.zap-blog-pagination__btn.active { background: var(--zap-blue); color: #fff; border-color: var(--zap-blue); }

/* ============================================================
   PRODUCT TILE IMAGE FIX — fill the card top, clip if needed
   ============================================================ */

/* Featured lab building blocks tiles (front-page / shop) */
.zap-feat-card__img img,
.zap-home-product-card__img img,
.zap-prod-card__img img,
.zap-rel-card__img img {
    width:           100%;
    height:          100%;
    object-fit:      cover;
    object-position: center;
    display:         block;
}

/* Make the image containers a consistent height */
.zap-feat-card__img    { height: 200px; }
.zap-prod-card__img    { height: 180px; }
.zap-rel-card__img     { height: 140px; }

/* Ensure overflow is hidden so images clip cleanly */
.zap-feat-card__img,
.zap-prod-card__img,
.zap-rel-card__img {
    overflow: hidden;
}

/* Blog responsive */
@media (max-width: 900px) {
    .zap-blog-featured__grid { grid-template-columns: 1fr; }
    .zap-blog-feat-card--lead .zap-blog-feat-card__img { height: 220px; }
    .zap-blog-feat-card__img { height: 180px; }
    .zap-blog-row { grid-template-columns: 80px 1fr; }
    .zap-blog-row__aside { display: none; }
    .zap-blog-wrap { padding: 28px 20px 48px; }
}

@media (max-width: 600px) {
    .zap-blog-title { font-size: 30px; }
    .zap-blog-hero  { padding: 36px 20px 32px; }
    .zap-blog-row   { grid-template-columns: 1fr; }
    .zap-blog-row__thumb { width: 100%; height: 160px; }
}

/* ============================================================
   Single lab article hero — content-height full-bleed image tint
   ============================================================ */
.zap-lab-article__hero {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    background: #071524;
    isolation: isolate;
}

.zap-lab-article__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(7, 57, 104, 0.62);
}

.zap-lab-article__copy {
    position: relative;
    z-index: 2;
    min-height: 0;
    width: min(860px, 100%);
    padding: clamp(34px, 5vw, 62px);
}

.zap-lab-article__copy h1 {
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.32);
}

.zap-lab-article__copy .zap-lab-kicker span {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    color: #DFF8FF;
}

.zap-lab-article__copy .zap-lab-article__meta {
    color: rgba(255, 255, 255, 0.82);
}

.zap-lab-article__copy .zap-lab-chip {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.62);
    color: #0D2E4F;
}

.zap-lab-article__copy .zap-lab-chip:hover {
    background: #fff;
    color: var(--zap-blue);
}

.zap-lab-article__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    margin: 0;
    overflow: hidden;
    background: #071524;
}

.zap-lab-article__image img,
.zap-lab-article__image .zap-lab-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .zap-lab-article__copy {
        width: 100%;
        padding: clamp(30px, 7vw, 52px) clamp(24px, 6vw, 42px);
    }

    .zap-lab-article__image {
        order: initial;
        aspect-ratio: auto;
        max-height: none;
    }
}

/* ============================================================
   ZAPTRONICS PATCH 1.0.11 — Lab notebook polish pass
   - Blog pagination no longer duplicates featured posts (home.php)
   - More cinematic blog index hero and cards
   - Article excerpts/topics, better content media, previous/next cards
   ============================================================ */

.zap-blog-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 6%, rgba(0,111,230,0.06), transparent 24rem),
        radial-gradient(circle at 92% 20%, rgba(23,213,255,0.08), transparent 20rem),
        var(--zap-bg);
}

.zap-blog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(1200px, calc(100vw - 48px));
    margin: 18px auto 0;
    padding: clamp(42px, 6vw, 86px) clamp(28px, 6vw, 74px);
    border: 1px solid rgba(126, 204, 255, 0.22);
    border-radius: clamp(26px, 3vw, 38px);
    background:
        radial-gradient(circle at 84% 12%, rgba(23, 213, 255, 0.24), transparent 22rem),
        radial-gradient(circle at 0% 100%, rgba(79, 160, 238, 0.20), transparent 26rem),
        linear-gradient(135deg, #061524 0%, #0B2337 54%, #102B43 100%);
    border-bottom: 1px solid rgba(126, 204, 255, 0.22);
    box-shadow: 0 32px 86px rgba(6, 21, 36, 0.18);
}

.zap-blog-hero::before,
.zap-blog-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -8%;
    height: 1px;
    width: 58%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(185, 241, 255, 0.86), transparent);
    box-shadow: 0 0 24px rgba(23, 213, 255, 0.36);
    transform: rotate(-11deg);
    opacity: 0.72;
}

.zap-blog-hero::before { top: 30%; }
.zap-blog-hero::after  { top: 56%; width: 42%; opacity: 0.45; }

.zap-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #A8E9FF;
    font-family: var(--zap-mono);
    font-weight: 900;
    letter-spacing: 0.16em;
}

.zap-blog-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #17D5FF;
    box-shadow: 0 0 18px rgba(23, 213, 255, 0.9);
}

.zap-blog-title {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: clamp(46px, 7vw, 92px);
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.zap-blog-lead {
    max-width: 760px;
    color: rgba(235, 247, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.58;
}

.zap-blog-wrap {
    max-width: 1240px;
    padding-top: clamp(30px, 4vw, 48px);
}

.zap-blog-featured__grid {
    gap: 24px;
}

.zap-blog-feat-card {
    border-radius: 28px;
    border-color: rgba(6, 21, 36, 0.12);
    box-shadow: 0 18px 50px rgba(6, 21, 36, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.zap-blog-feat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 111, 230, 0.34);
    box-shadow: 0 24px 66px rgba(6, 21, 36, 0.14);
}

.zap-blog-feat-card__img {
    position: relative;
    background: #071524;
}

.zap-blog-feat-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 48%, rgba(7, 21, 36, 0.18)),
        rgba(0, 111, 230, 0.08);
}

.zap-blog-feat-card__body {
    padding: clamp(22px, 3vw, 30px);
}

.zap-blog-feat-card--lead .zap-blog-feat-card__title {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.zap-blog-feat-card:not(.zap-blog-feat-card--lead) .zap-blog-feat-card__title {
    font-size: clamp(22px, 2.1vw, 28px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.zap-blog-list-header {
    padding: 18px 20px;
    border: 1px solid rgba(6, 21, 36, 0.10);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 34px rgba(6, 21, 36, 0.06);
}

.zap-blog-sort {
    flex-wrap: wrap;
}

.zap-blog-sort__btn {
    min-height: 34px;
    border-radius: 999px;
    font-weight: 800;
}

.zap-blog-list {
    gap: 12px;
}

.zap-blog-row {
    border-radius: 20px;
    border-color: rgba(6, 21, 36, 0.10);
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(6, 21, 36, 0.045);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.zap-blog-row:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 111, 230, 0.30);
    box-shadow: 0 18px 46px rgba(6, 21, 36, 0.10);
}

.zap-blog-row__thumb {
    border-radius: 16px;
    background: #071524;
}

.zap-blog-row__title {
    font-size: clamp(19px, 1.8vw, 24px);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.zap-blog-row__excerpt {
    max-width: 760px;
    color: var(--zap-text-2);
    font-size: 15px;
}

.zap-blog-read-more,
.zap-blog-row__link {
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.zap-blog-feat-card a:focus-visible,
.zap-blog-row a:focus-visible,
.zap-lab-post-nav__card:focus-visible,
.zap-lab-article__topic:focus-visible {
    outline: 3px solid rgba(23, 213, 255, 0.48);
    outline-offset: 4px;
    border-radius: 12px;
}

.zap-lab-sidebar {
    top: calc(var(--zap-nav-h) + var(--zap-bc-h) + 18px);
}

.zap-lab-article__deck {
    max-width: 760px;
    margin: clamp(16px, 2vw, 22px) 0 0;
    color: rgba(238, 248, 255, 0.88);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.52;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
}

.zap-lab-article__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.zap-lab-article__topic {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid rgba(168, 233, 255, 0.30);
    border-radius: 999px;
    background: rgba(168, 233, 255, 0.14);
    color: #E8FBFF;
    font-family: var(--zap-mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.10em;
    line-height: 1.1;
    text-transform: uppercase;
    text-decoration: none;
}

.zap-lab-article__topic:hover {
    background: rgba(255, 255, 255, 0.20);
    color: #FFFFFF;
    text-decoration: none;
}

.zap-lab-article__content {
    font-size: clamp(17px, 1.5vw, 19px);
}

/* Lab article block spacing: keep paragraphs and headings from visually running together. */
.zap-lab-article__content .wp-block-heading,
.zap-lab-article__content h2,
.zap-lab-article__content h3,
.zap-lab-article__content h4,
.zap-lab-article__content h5,
.zap-lab-article__content h6 {
    margin-bottom: clamp(24px, 1.6vw, 32px);
}

.zap-lab-article__content .wp-block-heading + .wp-block-paragraph,
.zap-lab-article__content .wp-block-heading + p,
.zap-lab-article__content h2 + p,
.zap-lab-article__content h3 + p,
.zap-lab-article__content h4 + p,
.zap-lab-article__content h5 + p,
.zap-lab-article__content h6 + p {
    margin-top: 0;
}

.zap-lab-article__content .wp-block-paragraph,
.zap-lab-article__content p {
    margin-bottom: clamp(22px, 1.5vw, 30px);
}

.zap-lab-article__content .wp-block-paragraph:last-child,
.zap-lab-article__content p:last-child {
    margin-bottom: 0;
}

.zap-lab-article__content > p:first-child {
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.68;
    color: var(--zap-text-2);
}

.zap-lab-article__content .wp-block-image,
.zap-lab-article__content figure {
    margin: 2em 0;
}

.zap-lab-article__content img {
    border-radius: clamp(18px, 2vw, 28px);
    box-shadow: 0 20px 56px rgba(6, 21, 36, 0.12);
}

.zap-lab-article__content figcaption,
.zap-lab-article__content .wp-caption-text {
    margin-top: 10px;
    color: var(--zap-text-3);
    font-family: var(--zap-mono);
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
}

.zap-lab-article__content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 12px 34px rgba(6, 21, 36, 0.07);
}

.zap-lab-article__content th,
.zap-lab-article__content td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(6, 21, 36, 0.09);
    text-align: left;
    vertical-align: top;
}

.zap-lab-article__content th {
    background: #EAF6FF;
    color: #143956;
    font-family: var(--zap-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zap-lab-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 clamp(24px, 5vw, 60px) clamp(24px, 5vw, 60px);
}

.zap-lab-post-nav__card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 132px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(6, 21, 36, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(23, 213, 255, 0.12), transparent 12rem),
        #F8FBFF;
    color: var(--zap-text);
    text-decoration: none;
    box-shadow: 0 14px 38px rgba(6, 21, 36, 0.07);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.zap-lab-post-nav__card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 111, 230, 0.28);
    box-shadow: 0 20px 52px rgba(6, 21, 36, 0.12);
    color: var(--zap-blue);
    text-decoration: none;
}

.zap-lab-post-nav__card span {
    color: #315A7A;
    font-family: var(--zap-mono);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.zap-lab-post-nav__card strong {
    font-family: var(--zap-serif);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.zap-lab-post-nav__card--next {
    text-align: right;
    align-items: flex-end;
}

.zap-lab-post-nav__card--prev::before,
.zap-lab-post-nav__card--next::before {
    color: var(--zap-blue);
    font-family: var(--zap-mono);
    font-size: 18px;
    font-weight: 900;
}

.zap-lab-post-nav__card--prev::before { content: '←'; }
.zap-lab-post-nav__card--next::before { content: '→'; }

@media (max-width: 900px) {
    .zap-blog-hero {
        width: min(100% - 36px, 1200px);
    }

    .zap-blog-list-header {
        align-items: flex-start;
    }

    .zap-lab-sidebar {
        top: auto;
    }
}

@media (max-width: 620px) {
    .zap-blog-hero {
        width: calc(100% - 28px);
        margin-top: 14px;
        border-radius: 24px;
    }

    .zap-blog-title {
        font-size: clamp(38px, 12vw, 58px);
    }

    .zap-blog-list-header {
        padding: 16px;
    }

    .zap-blog-sort {
        align-items: flex-start;
    }

    .zap-blog-sort__label {
        width: 100%;
    }

    .zap-blog-row {
        padding: 14px;
    }

    .zap-blog-row__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .zap-lab-post-nav {
        grid-template-columns: 1fr;
    }

    .zap-lab-post-nav__card--next {
        text-align: left;
        align-items: flex-start;
    }
}

/* ============================================================
   ZAPTRONICS PATCH 1.0.18 — product gallery slideshow + square media
   ============================================================ */
.zap-product-gallery__main {
    aspect-ratio: 1 / 1;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(10px, 1.35vw, 18px) !important;
    border-radius: clamp(22px, 2.4vw, 34px) !important;
    box-sizing: border-box;
    overflow: hidden;
}

.zap-product-gallery__zoom {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    border-radius: clamp(16px, 2vw, 26px) !important;
    overflow: hidden;
}

.zap-product-gallery__zoom img,
.zap-product-gallery__main img,
.zap-product-gallery__main-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: clamp(16px, 2vw, 26px) !important;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.zap-product-gallery__main-img.is-transitioning {
    opacity: 0.72;
    transform: none;
}

.zap-product-gallery__thumb {
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.zap-product-gallery__thumb.active,
.zap-product-gallery__thumb[aria-current="true"] {
    border-color: var(--zap-blue);
    box-shadow: 0 0 0 3px rgba(26, 107, 204, 0.16);
}

.zap-product-gallery__thumb:hover {
    transform: translateY(-1px);
}

.zap-image-lightbox__stage {
    position: relative;
}

.zap-image-lightbox__img {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.zap-image-lightbox__img.is-transitioning {
    opacity: 0.76;
    transform: none;
}

.zap-image-lightbox__nav {
    appearance: none;
    -webkit-appearance: none;
    position: fixed;
    top: 50%;
    z-index: 2;
    width: clamp(44px, 5vw, 62px);
    height: clamp(44px, 5vw, 62px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.13);
    color: #FFFFFF;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 0.86;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);
}

.zap-image-lightbox__nav--prev {
    left: clamp(14px, 3vw, 42px);
}

.zap-image-lightbox__nav--next {
    right: clamp(14px, 3vw, 42px);
}

.zap-image-lightbox__nav:hover,
.zap-image-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    outline: none;
}

@media (max-width: 680px) {
    .zap-product-gallery__main {
        padding: 10px !important;
    }

    .zap-image-lightbox {
        padding-left: 12px;
        padding-right: 12px;
    }

    .zap-image-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 34px;
        background: rgba(5, 13, 22, 0.38);
    }

    .zap-image-lightbox__nav--prev {
        left: 8px;
    }

    .zap-image-lightbox__nav--next {
        right: 8px;
    }
}


/* ============================================================
   ZAPTRONICS PATCH 1.0.19 — gentler product gallery transitions
   ============================================================ */
.zap-product-gallery__zoom img,
.zap-product-gallery__main img,
.zap-product-gallery__main-img {
    transition: opacity 0.7s ease, transform 0.7s ease !important;
}

.zap-product-gallery__main-img.is-transitioning {
    opacity: 0.72 !important;
    transform: none !important;
}

.zap-image-lightbox__img {
    transition: opacity 0.7s ease, transform 0.7s ease !important;
}

.zap-image-lightbox__img.is-transitioning {
    opacity: 0.76 !important;
    transform: none !important;
}


/* ============================================================
   ZAPTRONICS PATCH 1.0.20 — true crossfade product gallery
   New image fades in over the old one; no fade-out pause/snap.
   ============================================================ */
.zap-product-gallery__zoom,
.zap-image-lightbox__stage {
    position: relative;
}

.zap-product-gallery__main-img,
.zap-image-lightbox__img {
    opacity: 1;
    transition: opacity 0.78s ease !important;
}

.zap-product-gallery__main-img.is-fade-in-pending,
.zap-image-lightbox__img.is-fade-in-pending {
    opacity: 0 !important;
}

.zap-product-gallery__fade-img,
.zap-image-lightbox__fade-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.78s ease !important;
}

.zap-product-gallery__fade-img {
    z-index: 1;
    border-radius: clamp(16px, 2vw, 26px) !important;
}

.zap-image-lightbox__fade-img {
    z-index: 1;
    object-fit: contain !important;
    border-radius: clamp(14px, 2vw, 26px) !important;
}

.zap-product-gallery__fade-img.is-leaving,
.zap-image-lightbox__fade-img.is-leaving {
    opacity: 0 !important;
}

.zap-product-gallery__zoom-hint {
    z-index: 3;
}

.zap-image-lightbox__img {
    position: relative;
    z-index: 2;
}


/* ============================================================
   LAB NOTEBOOK COMMENTS
   ============================================================ */
.zap-lab-article__comments {
    margin-top: clamp(34px, 5vw, 64px);
}

.zap-lab-comments {
    border: 1px solid rgba(26, 107, 204, 0.16);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(235,243,252,0.78));
    box-shadow: 0 20px 60px rgba(13, 27, 42, 0.08);
    padding: clamp(24px, 4vw, 42px);
}

.zap-lab-comments__header {
    max-width: 760px;
    margin-bottom: 26px;
}

.zap-lab-comments__header h2,
.zap-lab-comments .comment-reply-title {
    margin: 0 0 10px;
    color: var(--zap-text);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.zap-lab-comments__header p,
.zap-lab-comments__note,
.zap-lab-comments .logged-in-as,
.zap-lab-comments .comment-notes,
.zap-lab-comments__closed {
    color: var(--zap-text-3);
    font-size: 15px;
    line-height: 1.7;
}

.zap-lab-comments__list {
    list-style: none;
    margin: 0 0 34px;
    padding: 0;
}

.zap-lab-comments__list .children {
    list-style: none;
    margin: 18px 0 0 clamp(18px, 4vw, 42px);
    padding: 0;
}

.zap-lab-comments__list .comment,
.zap-lab-comments__list .pingback,
.zap-lab-comments__list .trackback {
    margin: 0;
}

.zap-lab-comments__list > .comment + .comment,
.zap-lab-comments__list > .pingback + .pingback,
.zap-lab-comments__list > .trackback + .trackback {
    margin-top: 18px;
}

.zap-lab-comments .comment-body {
    position: relative;
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 22px;
    background: rgba(255,255,255,0.82);
    padding: 20px;
}

.zap-lab-comments .comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 12px;
}

.zap-lab-comments .comment-author {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 800;
    color: var(--zap-text);
}

.zap-lab-comments .avatar {
    border-radius: 50%;
}

.zap-lab-comments .says {
    color: var(--zap-text-3);
    font-weight: 600;
}

.zap-lab-comments .comment-metadata,
.zap-lab-comments .comment-awaiting-moderation {
    color: var(--zap-text-3);
    font-size: 13px;
}

.zap-lab-comments .comment-content {
    color: var(--zap-text-2);
    line-height: 1.75;
}

.zap-lab-comments .comment-content p {
    margin: 0 0 1em;
}

.zap-lab-comments .comment-content p:last-child {
    margin-bottom: 0;
}

.zap-lab-comments .reply {
    margin-top: 14px;
}

.zap-lab-comments .comment-reply-link,
.zap-lab-comments .comment-edit-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--zap-blue);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.zap-lab-comments .comment-reply-link:hover,
.zap-lab-comments .comment-edit-link:hover {
    color: var(--zap-navy);
}

.zap-lab-comments .comment-navigation {
    margin: 0 0 28px;
}

.zap-lab-comments .comment-navigation .nav-links {
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.zap-lab-comments__form-wrap {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid rgba(13, 27, 42, 0.1);
}

.zap-lab-comments__form p {
    margin: 0 0 18px;
}

.zap-lab-comments__form label {
    display: block;
    margin-bottom: 7px;
    color: var(--zap-text);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.zap-lab-comments__form input[type="text"],
.zap-lab-comments__form input[type="email"],
.zap-lab-comments__form input[type="url"],
.zap-lab-comments__form textarea {
    width: 100%;
    border: 1px solid rgba(13, 27, 42, 0.16);
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    color: var(--zap-text);
    font: inherit;
    line-height: 1.5;
    padding: 13px 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.zap-lab-comments__form textarea {
    resize: vertical;
    min-height: 150px;
}

.zap-lab-comments__form input:focus,
.zap-lab-comments__form textarea:focus {
    outline: 3px solid rgba(90, 170, 245, 0.28);
    border-color: rgba(26, 107, 204, 0.55);
}

.zap-lab-comments__form .form-submit {
    margin-bottom: 0;
}

.zap-lab-comments__form .submit {
    border: 0;
    border-radius: 999px;
    background: var(--zap-blue);
    color: #fff;
    cursor: pointer;
    font-weight: 850;
    letter-spacing: 0.04em;
    padding: 13px 22px;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.zap-lab-comments__form .submit:hover {
    background: var(--zap-navy);
    box-shadow: 0 14px 30px rgba(13, 27, 42, 0.18);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .zap-lab-comments {
        border-radius: 22px;
        padding: 22px;
    }

    .zap-lab-comments__list .children {
        margin-left: 12px;
    }

    .zap-lab-comments .comment-body {
        padding: 16px;
    }
}
