/*
Theme Name: UK Imports
Description: Custom theme for UK Imports, Inc. — ported from the RedChip-built mockup (site/index.html) approved by the client. Mesh-plan phase 1 (theme scaffold -> front-page parity); WooCommerce templates are phase 2.
Author: RedChip Technologies
Version: 0.1.0-demo
Text Domain: uki
*/


  :root{
    --navy:#0d1f3c;
    --navy-700:#16305a;
    --navy-600:#1d3a6b;
    --red:#b1202c;
    --red-dark:#8d1820;
    --cream:#f6efe2;
    --cream-2:#efe6d4;
    --parchment:#fbf7ee;
    --ink:#1a1a1a;
    --ink-soft:#3a3a3a;
    --muted:#6b6557;
    --line:#e0d6c0;
    --gold:#b08a3e;
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth}
  body{
    font-family:'Inter',system-ui,sans-serif;
    color:var(--ink);
    background:var(--cream);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{font-family:'Fraunces',Georgia,serif;font-weight:600;letter-spacing:-.01em;color:var(--navy);line-height:1.1}
  a{color:inherit;text-decoration:none}
  img{max-width:100%;display:block}
  .wrap{max-width:1240px;margin:0 auto;padding:0 24px}
  .eyebrow{
    font-family:'Inter',sans-serif;font-weight:600;font-size:.78rem;
    letter-spacing:.22em;text-transform:uppercase;color:var(--red);
    display:inline-flex;align-items:center;gap:.6rem;
  }
  .eyebrow::before{content:"";width:28px;height:1px;background:var(--red);display:inline-block}

  /* ===== Top utility bar ===== */
  .topbar{background:var(--navy);color:#e9e3d4;font-size:.82rem;letter-spacing:.02em}
  .topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:9px 24px;flex-wrap:wrap}
  .topbar a{color:#e9e3d4;opacity:.9}
  .topbar a:hover{opacity:1;color:#fff}
  .topbar .tb-left{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
  .topbar .tb-right{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
  .topbar .dot{width:5px;height:5px;border-radius:50%;background:var(--red);display:inline-block;margin-right:8px;vertical-align:middle}

  /* ===== Header ===== */
  header.site{
    background:var(--parchment);
    border-bottom:1px solid var(--line);
    position:sticky;top:0;z-index:60;
    box-shadow:0 1px 0 rgba(0,0,0,.02);
  }
  header.site .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 24px}
  .logo{display:flex;align-items:center;gap:14px}
  .logo img{height:54px;width:auto;max-width:260px;object-fit:contain}
  nav.primary{display:flex;gap:30px;align-items:center}
  nav.primary a{
    font-size:.95rem;font-weight:500;color:var(--navy);
    position:relative;padding:6px 0;transition:color .2s;
  }
  nav.primary a::after{
    content:"";position:absolute;left:0;right:100%;bottom:0;height:2px;
    background:var(--red);transition:right .25s ease;
  }
  nav.primary a:hover{color:var(--red)}
  nav.primary a:hover::after,nav.primary a:focus-visible::after{right:0}
  .nav-cta{display:flex;gap:12px;align-items:center}
  .btn{
    display:inline-flex;align-items:center;gap:.5rem;
    font-family:'Inter',sans-serif;font-weight:600;font-size:.9rem;
    padding:11px 20px;border-radius:3px;cursor:pointer;border:1.5px solid transparent;
    transition:all .18s ease;letter-spacing:.01em;white-space:nowrap;
  }
  .btn-navy{background:var(--navy);color:#fff}
  .btn-navy:hover{background:var(--navy-700)}
  .btn-red{background:var(--red);color:#fff}
  .btn-red:hover{background:var(--red-dark)}
  .btn-outline{background:transparent;color:var(--navy);border-color:var(--navy)}
  .btn-outline:hover{background:var(--navy);color:#fff}
  .btn-ghost-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
  .btn-ghost-light:hover{background:#fff;color:var(--navy);border-color:#fff}
  .btn-lg{padding:14px 26px;font-size:1rem}
  .menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px}
  .menu-toggle span{display:block;width:24px;height:2px;background:var(--navy);margin:5px 0;transition:.3s}

  /* ===== Hero ===== */
  .hero{position:relative;background:var(--navy);overflow:hidden;color:#fff}
  .hero::before{
    content:"";position:absolute;inset:0;
    background:linear-gradient(90deg,rgba(13,31,60,.96) 0%,rgba(13,31,60,.85) 42%,rgba(13,31,60,.55) 70%,rgba(13,31,60,.25) 100%);
    z-index:2;
  }
  .hero-img{position:absolute;inset:0;z-index:1}
  .hero-img img{width:100%;height:100%;object-fit:cover;object-position:center}
  .hero .wrap{position:relative;z-index:3;padding:110px 24px 130px}
  .hero-eyebrow{color:#e8c87a;font-family:'Inter',sans-serif;font-weight:600;font-size:.8rem;letter-spacing:.24em;text-transform:uppercase;display:flex;align-items:center;gap:.7rem;margin-bottom:26px}
  .hero-eyebrow::before{content:"";width:32px;height:1px;background:#e8c87a}
  .hero h1{color:#fff;font-size:clamp(2.4rem,5.2vw,4.2rem);font-weight:500;max-width:18ch;line-height:1.05;margin-bottom:24px}
  .hero h1 em{font-style:italic;font-weight:400;color:#e8c87a}
  .hero p.lead{font-size:1.18rem;max-width:58ch;color:#e7e1d2;font-weight:300;line-height:1.6;margin-bottom:34px}
  .hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:54px}
  .hero-stats{display:flex;gap:46px;flex-wrap:wrap;padding-top:30px;border-top:1px solid rgba(255,255,255,.18);max-width:760px}
  .hero-stat .n{font-family:'Fraunces',serif;font-size:2.2rem;font-weight:600;color:#fff;line-height:1}
  .hero-stat .l{font-size:.86rem;color:#c7c0ad;letter-spacing:.04em;margin-top:6px}

  /* ===== Section base ===== */
  section{padding:96px 0}
  .sec-head{max-width:780px;margin-bottom:56px}
  .sec-head h2{font-size:clamp(2rem,3.6vw,3rem);margin:16px 0 18px;font-weight:500}
  .sec-head p{color:var(--ink-soft);font-size:1.08rem;max-width:62ch}
  .center{text-align:center}
  .center .sec-head{margin-left:auto;margin-right:auto}

  /* ===== Category grid ===== */
  .cats{background:var(--cream)}
  /* 12 tracks, 4 tiles/row (each spans 3) so a PARTIAL last row can always
     fill the full width no matter the tile count (Derek's call 2026-08-11):
     1 leftover spans 12, 2 span 6 each, 3 span 4 each. The count changes on
     its own — empty categories auto-hide (Cereal & Mixes today) and the two
     Beverages categories are still waiting on tiles — so this must be
     count-agnostic. The remainder selectors live inside per-breakpoint media
     queries below because "items in the last row" depends on items-per-row:
     an item starts the final partial row when its :nth-child remainder and
     :nth-last-child position agree. Stretched tiles drop the 4:5 ratio for
     the banner treatment (auto height, min-height) so a 50% or 100% tile
     doesn't grow comically tall. */
  .cat-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:22px}
  .cat-grid .cat{grid-column:span 3}
  @media(min-width:1025px){
    /* 4/row: leftover of 1 */
    .cat-grid .cat:last-child:nth-child(4n+1){grid-column:span 12;aspect-ratio:auto;min-height:280px}
    .cat-grid .cat:last-child:nth-child(4n+1) .cat-body{padding:26px 30px 28px}
    .cat-grid .cat:last-child:nth-child(4n+1) h3{font-size:1.6rem}
    /* leftover of 2 */
    .cat-grid .cat:nth-last-child(2):nth-child(4n+1),
    .cat-grid .cat:last-child:nth-child(4n+2){grid-column:span 6;aspect-ratio:auto;min-height:280px}
    /* leftover of 3 */
    .cat-grid .cat:nth-last-child(3):nth-child(4n+1),
    .cat-grid .cat:nth-last-child(2):nth-child(4n+2),
    .cat-grid .cat:last-child:nth-child(4n+3){grid-column:span 4;aspect-ratio:auto;min-height:280px}
  }
  /* 3/row range is BOUNDED on both sides — inside the shared
     @media(max-width:1024px) block these 3n rules would keep matching at
     phone widths and fight the 2/row rules (e.g. 10 tiles: even at 2/row,
     but 10 = 3n+1 would full-width the last tile). */
  @media(max-width:1024px) and (min-width:621px){
    .cat-grid .cat{grid-column:span 4}
    .cat-grid .cat:last-child:nth-child(3n+1){grid-column:span 12;aspect-ratio:auto;min-height:280px}
    .cat-grid .cat:nth-last-child(2):nth-child(3n+1),
    .cat-grid .cat:last-child:nth-child(3n+2){grid-column:span 6;aspect-ratio:auto;min-height:280px}
  }
  .cat{position:relative;border-radius:4px;overflow:hidden;aspect-ratio:4/5;background:var(--navy);cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}
  .cat:hover{transform:translateY(-4px);box-shadow:0 18px 38px -18px rgba(13,31,60,.5)}
  .cat img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ease;filter:brightness(.78) saturate(1.05)}
  .cat:hover img{transform:scale(1.06);filter:brightness(.66) saturate(1.1)}
  .cat-body{position:absolute;left:0;right:0;bottom:0;padding:22px 22px 24px;z-index:2;color:#fff}
  .cat-body .num{font-family:'Fraunces',serif;font-size:.78rem;color:#e8c87a;letter-spacing:.18em;text-transform:uppercase;margin-bottom:6px}
  .cat-body h3{color:#fff;font-size:1.32rem;font-weight:600;margin-bottom:4px}
  .cat-body .count{font-size:.82rem;color:#d8d2c2;font-weight:300}
  .cat::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to top,rgba(13,31,60,.94) 0%,rgba(13,31,60,.6) 30%,rgba(13,31,60,.18) 58%,transparent 80%)}
  .cat-cta{position:absolute;top:16px;right:16px;z-index:3;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.12);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;color:#fff;border:1px solid rgba(255,255,255,.25);transition:.2s}
  .cat:hover .cat-cta{background:var(--red);border-color:var(--red)}

  /* ===== Countries we import from ===== */
  .origins{background:var(--navy);color:#e7e1d2}
  .origins .eyebrow{color:#e8c87a}
  .origins .eyebrow::before{background:#e8c87a}
  .origins .sec-head p{color:#c7c0ad}
  .origin-grid{
    display:grid;grid-template-columns:repeat(5,1fr);gap:1px;margin-top:20px;
    background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.14);border-radius:4px;overflow:hidden;
  }
  .origin{background:var(--navy-700);padding:26px 20px;transition:background .2s ease}
  .origin:hover{background:var(--navy-600)}
  .origin b{font-family:'Fraunces',serif;font-weight:600;font-size:1.14rem;color:#fff;display:block}
  .origin .o-sub{display:block;font-family:'Inter',sans-serif;font-weight:400;font-size:.82rem;color:#c7c0ad;margin-top:6px;line-height:1.4}
  .brand-strip{margin-top:30px;text-align:center;color:#c7c0ad;font-size:.9rem}

  /* ===== Two ways to buy ===== */
  .hybrid{background:var(--cream)}
  .two-col{display:grid;grid-template-columns:1fr;gap:28px;max-width:680px;margin-inline:auto}
  .way{
    border-radius:5px;overflow:hidden;background:#fff;border:1px solid var(--line);
    display:flex;flex-direction:column;
  }
  .way-head{padding:38px 38px 24px;position:relative}
  .way-head .tag{font-family:'Inter',sans-serif;font-weight:600;font-size:.74rem;letter-spacing:.2em;text-transform:uppercase;padding:5px 11px;border-radius:2px;display:inline-block;margin-bottom:18px}
  .way-wholesale .tag{background:var(--navy);color:#fff}
  .way-dtc .tag{background:var(--red);color:#fff}
  .way h3{font-size:1.9rem;margin-bottom:12px;font-weight:600}
  .way-head p{color:var(--ink-soft);font-size:1rem;margin-bottom:22px}
  .way ul{list-style:none;padding:0 38px 14px;flex:1}
  .way ul li{display:flex;gap:14px;padding:14px 0;border-bottom:1px dashed var(--line);align-items:flex-start}
  .way ul li:last-child{border-bottom:none}
  .way ul li .ico{flex-shrink:0;width:34px;height:34px;border-radius:50%;background:var(--cream-2);display:flex;align-items:center;justify-content:center;color:var(--navy);font-size:.95rem;font-weight:700}
  .way-dtc ul li .ico{color:var(--red)}
  .way ul li .t{font-weight:600;font-size:.98rem;color:var(--navy);margin-bottom:2px}
  .way ul li .d{font-size:.9rem;color:var(--muted);line-height:1.5}
  .way-foot{padding:26px 38px 38px;border-top:1px solid var(--line)}
  .way-foot .btn{width:100%;justify-content:center}

  /* ===== About / Operations ===== */
  .about{background:var(--navy);color:#e7e1d2;position:relative;overflow:hidden}
  .about-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:60px;align-items:center}
  .about-img{position:relative;border-radius:4px;overflow:hidden;box-shadow:0 30px 60px -25px rgba(0,0,0,.6)}
  .about-img img{width:100%;height:560px;object-fit:cover}
  .about-img .badge{
    position:absolute;bottom:24px;left:24px;background:var(--parchment);
    padding:18px 22px;border-radius:3px;color:var(--navy);
    border-left:3px solid var(--red);
  }
  .about-img .badge .y{font-family:'Fraunces',serif;font-size:2.6rem;font-weight:700;line-height:1}
  .about-img .badge .l{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:6px}
  .about h2{color:#fff;font-size:clamp(2rem,3.6vw,3rem);margin:18px 0 24px;font-weight:500}
  .about .eyebrow{color:#e8c87a}
  .about .eyebrow::before{background:#e8c87a}
  .about p{color:#d3cdbb;font-size:1.06rem;margin-bottom:18px;line-height:1.7}
  .about p strong{color:#fff;font-weight:600}
  .markets{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:30px}
  .market{display:flex;gap:12px;align-items:center;padding:14px 16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:3px}
  .market .m-ico{font-size:1.3rem;color:#e8c87a;width:30px;text-align:center}
  .market .m-t{font-weight:600;color:#fff;font-size:.94rem}
  .market .m-d{font-size:.78rem;color:#a8a294}

  /* ===== Seasonal ===== */
  .seasonal{background:var(--cream-2);position:relative}
  .seasonal-inner{
    background:linear-gradient(135deg,#2a0d12 0%,#3d161c 50%,#0d1f3c 100%);
    color:#fff;border-radius:6px;overflow:hidden;position:relative;
  }
  .seasonal-inner::before{
    content:"";position:absolute;inset:0;
    background-image:radial-gradient(circle at 80% 20%,rgba(232,200,122,.12),transparent 40%);
  }
  .seasonal-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;position:relative;z-index:2}
  .seasonal-text{padding:64px 60px}
  .seasonal-text .eyebrow{color:#e8c87a;margin-bottom:18px}
  .seasonal-text .eyebrow::before{background:#e8c87a}
  .seasonal-text h2{color:#fff;font-size:clamp(2rem,3.4vw,2.8rem);margin-bottom:18px;font-weight:500}
  .seasonal-text h2 em{color:#e8c87a;font-style:italic}
  .seasonal-text p{color:#d3cdbb;font-size:1.06rem;margin-bottom:28px;max-width:52ch}
  .seasonal-items{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:32px}
  .s-item{display:flex;gap:10px;align-items:center;color:#e7e1d2;font-size:.92rem;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.1)}
  .s-item .check{color:#e8c87a;font-weight:700}
  .seasonal-img{background:url('assets/cat-holiday.jpg') center/cover no-repeat;min-height:100%;position:relative}
  .seasonal-img::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,rgba(42,13,18,.4),transparent 30%)}

  /* ===== Footer ===== */
  footer.site{background:var(--navy);color:#c7c0ad;padding:80px 0 30px}
  .foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;margin-bottom:60px}
  .foot-brand .logo img{background:#fff;padding:12px 16px;border-radius:8px;height:auto;width:186px;margin-bottom:22px}
  .foot-brand p{font-size:.94rem;color:#b7b09e;line-height:1.7;margin-bottom:20px;max-width:36ch}
  .foot-brand .tag{font-family:'Fraunces',serif;font-style:italic;color:#e8c87a;font-size:1.05rem;max-width:38ch;line-height:1.5}
  .foot-col h4{color:#fff;font-family:'Inter',sans-serif;font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;margin-bottom:18px}
  .foot-col ul{list-style:none}
  .foot-col ul li{margin-bottom:11px}
  .foot-col ul li a{font-size:.94rem;color:#b7b09e;transition:color .2s}
  .foot-col ul li a:hover{color:#e8c87a}
  .foot-contact li{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px;font-size:.94rem;color:#b7b09e}
  .foot-contact .fc-ico{color:#e8c87a;flex-shrink:0;margin-top:2px}
  .foot-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:28px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;font-size:.84rem;color:#8f8979}
  .foot-bottom a{color:#8f8979}
  .foot-bottom a:hover{color:#e8c87a}

  /* ============================================================
     Phase 2 (mesh-plan): Woo templates + order sheet + pages.
     woocommerce_enqueue_styles is filtered off (functions.php) so every
     Woo-rendered element below (shop grid, single product, cart/checkout
     redirect target, My Account, login form, notices, tables) needs a base
     style from the theme — this section is that base layer, in the mockup's
     tokens (navy/red/cream, Fraunces/Inter).
     ============================================================ */

  /* ---- Page hero band (Order Form / Wholesale Information / Shop/Category) ---- */
  .page-hero{background:var(--navy);color:#fff;padding:64px 0 56px}
  .page-hero .wrap{max-width:900px}
  .page-hero h1{color:#fff;font-size:clamp(1.9rem,4vw,2.8rem);margin:14px 0 12px;font-weight:500}
  .page-hero .lead{color:#e7e1d2;font-size:1.05rem;max-width:62ch;font-weight:300}
  .page-hero .eyebrow{color:#e8c87a}
  .page-hero .eyebrow::before{background:#e8c87a}
  .page-hero-note{margin-top:18px;font-size:.92rem;color:#c7c0ad}
  .page-hero-note a{color:#e8c87a;text-decoration:underline;font-weight:600}

  .page-content{background:var(--cream);padding:64px 0 96px}
  .wrap-narrow{max-width:820px}
  /* Round-4, item 1: wider container for pages that host the order-form
     table — prose pages stay at wrap-narrow's reading width, but a data
     grid (thumb/name/pack/UPC/price/stock/qty columns) needs more room to
     avoid wrapping the "In Stock" badge and product names. */
  .wrap-order{max-width:1160px}
  .page-content h2{margin:36px 0 14px;font-size:1.7rem}
  .page-content h2:first-child{margin-top:0}
  .page-content h3{margin:26px 0 10px;font-size:1.25rem}
  .page-content p{margin-bottom:16px;color:var(--ink-soft);font-size:1.02rem;line-height:1.7}
  .page-content ul,.page-content ol{margin:0 0 18px 22px;color:var(--ink-soft)}
  .page-content li{margin-bottom:8px;line-height:1.6}
  .page-content strong{color:var(--navy)}
  /* :not(:where(.btn)) — round-3 polish bugfix: this rule's specificity
     (class+type) was beating .btn/.btn-red/.btn-outline (single class), so
     any themed button rendered inside .page-content (the order-sheet submit
     button, and now the dashboard's quick-action buttons) silently lost its
     white/navy text color to red-on-red and picked up an unwanted underline.
     :where(.btn) always resolves to zero specificity, so wrapping it inside
     :not() excludes .btn elements WITHOUT raising this selector's own
     specificity — .woocommerce-MyAccount-navigation's nav-tab links (a
     separate, higher-specificity rule below) are unaffected either way. */
  .page-content a:not(:where(.btn)){color:var(--red);text-decoration:underline}
  .page-content a:not(:where(.btn)):hover{color:var(--red-dark)}
  .page-content .callout{background:#fff;border:1px solid var(--line);border-left:4px solid var(--red);border-radius:4px;padding:22px 26px;margin:30px 0}
  .page-content .callout h3{margin-top:0}
  .page-content table{width:100%;border-collapse:collapse;margin:18px 0 26px;background:#fff}
  .page-content table th,.page-content table td{padding:10px 14px;border:1px solid var(--line);text-align:left;font-size:.95rem}
  .page-content table th{background:var(--navy);color:#fff;font-weight:600}

  /* ---- Order sheet page: wrap the plugin's [uki_order_sheet] table in the
     page-content prose container so the whole page shares one look. ---- */
  .page-content .uki-order-sheet{margin-top:0}

  /* ---- Product grid (/shop/ and every product_cat archive) ---- */
  .shop-grid-section{background:var(--cream);padding:56px 0 96px}
  .cat-crumbs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:40px}
  .cat-chip{font-size:.82rem;font-weight:600;padding:7px 14px;border-radius:20px;background:#fff;border:1px solid var(--line);color:var(--navy);transition:.18s}
  .cat-chip:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
  /* ---- /shop/ facet bar (2026-08-10): chips double as multi-select toggles.
     Active = filled, matching the hover treatment; the NEW chip carries the
     red accent so the computed badge and its filter read as one system. ---- */
  .facet-bar{margin-bottom:36px}
  .facet-bar .cat-crumbs{margin-bottom:10px}
  .facet-bar .facet-flags{margin-bottom:0;align-items:center}
  .cat-chip.is-active{background:var(--navy);color:#fff;border-color:var(--navy)}
  .chip-new{color:var(--red);border-color:var(--red)}
  .chip-new:hover,.chip-new.is-active{background:var(--red);color:#fff;border-color:var(--red)}
  .facet-clear{color:var(--red);border-style:dashed}
  .facet-clear:hover{background:var(--red);color:#fff;border-color:var(--red)}
  .facet-count{margin-left:auto;font-size:.84rem;font-weight:600;color:var(--muted);white-space:nowrap}
  .shop-filter-empty{color:var(--muted);padding:40px 0 10px}
  .p-card.is-filtered-out{display:none}
  /* reveal-in-waves: shop-filter.js hides only below-the-fold cards, then the
     IntersectionObserver fades each in; both classes are removed after the
     transition so the normal hover transition returns. */
  .p-card.reveal-pending{opacity:0;transform:translateY(16px)}
  .p-card.reveal-pending.is-in{opacity:1;transform:none;transition:opacity .55s ease,transform .55s ease}
  @media (prefers-reduced-motion:reduce){.p-card.reveal-pending{opacity:1;transform:none}}
  .product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
  /* Round-4, item 2: navy product-image panels moved to white. Reasoning
     (Derek): white hides cutout-clipping artifacts and reads correctly for
     white-topped bags / clear bottles that fought the navy background.
     Because a white image panel would otherwise merge straight into the
     white text body below it, the card gets its own hairline border and the
     image panel gets a warm-gray fill + a border BETWEEN image and text —
     two visually distinct zones in one bordered card, instead of one flat
     navy block. Category tiles (.cat, further up) are untouched — those are
     photographs, not cutouts, and stay on navy per the brief. */
  .p-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;box-shadow:0 1px 0 rgba(0,0,0,.02);transition:transform .25s ease,box-shadow .25s ease}
  .p-card:hover{transform:translateY(-4px);border-color:var(--navy);box-shadow:0 18px 32px -18px rgba(13,31,60,.28)}
  /* Explicit px height (not aspect-ratio) — a percentage max-height on the
     <img> inside an aspect-ratio'd flex item doesn't reliably resolve
     against the parent's computed size (caught in phase-2 QA: images were
     rendering at native pixel height, uncontained, breaking card/grid
     layout). A definite height sidesteps the ambiguity entirely. */
  .p-thumb{display:flex;align-items:center;justify-content:center;height:200px;flex-shrink:0;background:#f7f5f1;border-bottom:1px solid var(--line);padding:18px}
  .p-thumb img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(13,31,60,.14))}
  /* flex:1 makes the white body fill whatever height the grid row stretches
     the card to (CSS Grid's default align-items:stretch equalizes .p-card
     height across a row) — without this, a short title leaves the fixed-
     height thumb + auto-height body short of the stretched card height, and
     the navy .p-card background shows through as a filler strip beneath the
     white body. p-price gets margin-top:auto so it still sits flush at the
     bottom of the (now variable-height) body on short-title cards. */
  .p-body{display:flex;flex-direction:column;flex:1 1 auto;gap:4px;padding:18px 18px 22px;background:#fff}
  .p-cat{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--red);font-weight:600}
  .p-name{font-family:'Fraunces',serif;font-weight:600;color:var(--navy);font-size:1.05rem;line-height:1.3}
  .p-pack{font-size:.84rem;color:var(--muted)}
  .p-price{margin-top:auto;padding-top:8px;font-weight:700;color:var(--navy);font-size:1.02rem}
  /* Plain text, not a link — the whole card is already the click target
     (nesting an <a> here would split the outer <a>; see archive-product.php). */
  .p-price .uki-signin-price{display:inline-block;font-weight:600;font-size:.82rem;color:var(--red)}
  .shop-empty{color:var(--muted);padding:40px 0}
  .shop-order-cta{margin-top:52px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-weight:600;color:var(--navy)}

  /* ---- Single product ---- */
  .product-page{background:var(--cream);padding:56px 0 96px}
  .product-grid-single{display:grid;grid-template-columns:.85fr 1fr;gap:56px;align-items:start}
  /* Round-4, item 2: matches the shop-grid card treatment — white/warm-gray
     panel with a hairline border instead of the navy gradient, same reasons
     (hides cutout-clipping artifacts, works with white/transparent
     packaging). */
  .product-media{background:#f7f5f1;border:1px solid var(--line);border-radius:8px;padding:36px;display:flex;align-items:center;justify-content:center;position:sticky;top:96px}
  .product-media img{max-height:520px;width:auto;margin:0 auto;filter:drop-shadow(0 14px 22px rgba(13,31,60,.16))}
  .product-media-placeholder{width:100%;aspect-ratio:1/1;background:var(--line);border-radius:4px}
  .product-summary .p-cat-link{font-size:.78rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--red)}
  .product-summary h1.product_title{font-family:'Fraunces',serif;font-size:clamp(1.8rem,3vw,2.4rem);font-weight:600;color:var(--navy);margin:12px 0 14px}
  .product-summary .price{display:block;font-size:1.4rem;font-weight:700;color:var(--navy);margin-bottom:18px}
  .product-summary .price a.uki-signin-price{font-size:1rem;font-weight:600}
  .product-summary .woocommerce-product-details__short-description p{color:var(--ink-soft);line-height:1.7;margin-bottom:14px}
  .uki-product-meta{display:flex;flex-direction:column;gap:8px;margin:18px 0 22px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:4px}
  .uki-product-meta .meta-row{display:flex;justify-content:space-between;font-size:.92rem;border-bottom:1px dashed var(--line);padding-bottom:8px}
  .uki-product-meta .meta-row:last-child{border-bottom:none;padding-bottom:0}
  .uki-product-meta .meta-label{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;font-weight:600}
  .uki-order-cta{margin-top:8px}
  .uki-where-to-buy{background:#fff;border:1px solid var(--line);border-left:4px solid var(--navy)}
  .uki-where-to-buy h4{font-family:'Fraunces',serif;color:var(--navy)}
  .uki-where-to-buy a{color:var(--red)}

  /* ---- WooCommerce base (styles.enqueue disabled — this replaces it) ---- */
  .woocommerce-notices-wrapper{max-width:1240px;margin:24px auto 0;padding:0 24px}
  .woocommerce-message,.woocommerce-error,.woocommerce-info{list-style:none;background:#fff;border-left:4px solid var(--navy);border-radius:3px;padding:14px 18px;margin-bottom:16px;font-size:.94rem;color:var(--ink)}
  .woocommerce-error{border-left-color:var(--red)}
  .woocommerce-message a.wc-forward,.woocommerce-info a.wc-forward{color:var(--red);font-weight:600;text-decoration:underline;margin-left:6px}

  .woocommerce-account .page-content .wrap-narrow,
  .woocommerce-page .page-content .wrap-narrow{max-width:960px}
  .woocommerce-MyAccount-navigation ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 32px;padding:0;border-bottom:1px solid var(--line)}
  .woocommerce-MyAccount-navigation li{margin:0}
  .woocommerce-MyAccount-navigation li a{display:inline-block;padding:10px 16px;font-weight:600;font-size:.92rem;color:var(--navy);border-radius:4px 4px 0 0;text-decoration:none}
  .woocommerce-MyAccount-navigation li.is-active a{background:var(--navy);color:#fff}
  .woocommerce-MyAccount-navigation li a:hover{color:var(--red)}
  .woocommerce-MyAccount-content{background:#fff;border:1px solid var(--line);border-radius:4px;padding:32px}
  .woocommerce-MyAccount-content p{margin-bottom:14px;color:var(--ink-soft);line-height:1.7}

  .woocommerce form .form-row{margin-bottom:16px}
  .woocommerce form label{display:block;font-weight:600;font-size:.88rem;color:var(--navy);margin-bottom:6px}
  .woocommerce form .required{color:var(--red)}
  .woocommerce form input.input-text,
  .woocommerce form textarea,
  .woocommerce form select{width:100%;padding:11px 13px;border:1.5px solid var(--line);border-radius:3px;font-family:'Inter',sans-serif;font-size:.96rem;background:#fff;color:var(--ink)}
  .woocommerce form input.input-text:focus,
  .woocommerce form textarea:focus{outline:none;border-color:var(--navy)}
  .woocommerce form .show-password-input{top:12px}
  .woocommerce-form-login__rememberme{display:inline-flex;align-items:center;gap:8px;font-weight:400;font-size:.9rem;color:var(--ink-soft)}
  .woocommerce button.button,.woocommerce input.button,.woocommerce a.button,
  .woocommerce #respond input#submit{
    display:inline-flex;align-items:center;gap:.5rem;font-family:'Inter',sans-serif;font-weight:600;font-size:.9rem;
    padding:12px 22px;border-radius:3px;cursor:pointer;border:1.5px solid transparent;background:var(--navy);color:#fff;transition:all .18s ease;
  }
  .woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce a.button:hover{background:var(--navy-700)}
  .woocommerce-form-login button[type="submit"]{background:var(--red)}
  .woocommerce-form-login button[type="submit"]:hover{background:var(--red-dark)}
  .u-columns{display:grid;grid-template-columns:1fr 1fr;gap:40px}
  .u-columns .col-1,.u-columns .col-2{background:#fff}
  @media(max-width:700px){.u-columns{grid-template-columns:1fr}}
  .uki-credit-cta{margin-top:18px;padding-top:16px;border-top:1px dashed var(--line);font-size:.92rem;color:var(--ink-soft)}
  .uki-credit-cta a{color:var(--red);font-weight:600;text-decoration:underline}

  /* ---- Account details form (mesh-plan round 3, item 5) ----
     Woo's edit-account template wraps the password fields in a bare
     <fieldset><legend> with zero styling of our own — the browser UA
     stylesheet's default fieldset (inset "groove" border) and legend
     (cramped, no font/color treatment) were the "double borders / stray
     marks / cramped legend" Derek flagged. Reset both to a flat card that
     matches the rest of the form instead of relying on browser defaults. */
  .woocommerce-EditAccountForm .form-row{margin-bottom:20px}
  .woocommerce-EditAccountForm .form-row-first,
  .woocommerce-EditAccountForm .form-row-last{width:100%;float:none}
  .woocommerce-EditAccountForm fieldset{
    border:1px solid var(--line);border-radius:6px;background:var(--parchment);
    padding:30px 26px 6px;margin:6px 0 26px;
  }
  .woocommerce-EditAccountForm fieldset legend{
    padding:0 12px;margin:0 0 0 -12px;width:auto;border:none;float:none;
    font-family:'Fraunces',serif;font-weight:600;font-size:1.08rem;color:var(--navy);
  }
  .woocommerce-EditAccountForm .clear{display:block;height:0;clear:both}

  /* ---- My Account dashboard (mesh-plan round 3, item 6) ---- */
  .uki-dashboard{margin-bottom:8px}
  .uki-dash-hero{
    background:linear-gradient(135deg,var(--navy) 0%,var(--navy-700) 100%);
    color:#fff;border-radius:6px;padding:30px 32px;margin-bottom:26px;
    display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  }
  .uki-dash-greeting h2{color:#fff;font-size:1.5rem;margin:0 0 6px;font-weight:600}
  .uki-dash-greeting p{color:#d3cdbb;font-size:.94rem;margin:0}
  .uki-tier-badge{
    display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.3);color:#e8c87a;border-radius:20px;
    padding:8px 18px;font-family:'Inter',sans-serif;font-weight:600;font-size:.82rem;
    letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  }
  .uki-tier-badge .dot{width:6px;height:6px;border-radius:50%;background:#e8c87a}
  .uki-dash-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
  .uki-dash-card{
    display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--line);
    border-radius:6px;padding:24px 22px;transition:transform .2s ease,box-shadow .2s ease;
  }
  .uki-dash-card:hover{transform:translateY(-3px);box-shadow:0 14px 26px -16px rgba(13,31,60,.35)}
  .uki-dash-card h3{font-size:1.08rem;margin:0;color:var(--navy)}
  .uki-dash-card p{font-size:.88rem;color:var(--muted);margin:0 0 4px;line-height:1.5}
  .uki-dash-card .btn{align-self:flex-start;margin-top:auto}
  @media(max-width:700px){.uki-dash-actions{grid-template-columns:1fr}.uki-dash-hero{flex-direction:column;align-items:flex-start}}

  .shop_table{width:100%;border-collapse:collapse;margin-bottom:24px;font-size:.92rem}
  .shop_table th{background:var(--navy);color:#fff;text-align:left;padding:10px 12px;font-weight:600}
  .shop_table td{padding:10px 12px;border-bottom:1px solid var(--line)}
  .order-again .button{margin-top:4px}
  .woocommerce-order-details,.woocommerce-customer-details{margin-bottom:32px}
  .woocommerce-column--billing-address address{font-style:normal;color:var(--ink-soft);line-height:1.6}

  /* ===== Responsive ===== */
  @media(max-width:1024px){
    .origin-grid{grid-template-columns:repeat(2,1fr)}
    .about-grid{gap:40px}
    .product-grid{grid-template-columns:repeat(3,1fr)}
    .product-grid-single{grid-template-columns:1fr;gap:32px}
    .product-media{position:static}
  }
  @media(max-width:880px){
    nav.primary{display:none;position:absolute;top:100%;left:0;right:0;background:var(--parchment);flex-direction:column;padding:20px 24px;gap:0;border-bottom:1px solid var(--line);box-shadow:0 20px 30px -10px rgba(0,0,0,.15)}
    nav.primary.open{display:flex}
    nav.primary a{padding:14px 0;border-bottom:1px solid var(--line)}
    .menu-toggle{display:block}
    /* once the hamburger appears, drop the redundant text CTAs — keep only Shop.
       Account/Wholesale login lives in the top bar + the menu's Wholesale item. */
    .nav-cta .btn-navy,.nav-cta .btn-outline{display:none}
    .hero .wrap{padding:80px 24px 90px}
    .two-col{grid-template-columns:1fr}
    .about-grid{grid-template-columns:1fr}
    .about-img img{height:420px}
    .seasonal-grid{grid-template-columns:1fr}
    .seasonal-img{min-height:280px;order:-1}
    .seasonal-text{padding:44px 32px}
    .foot-grid{grid-template-columns:1fr 1fr;gap:32px}
  }
  @media(max-width:620px){
    /* slim the 4-row top bar down to one tidy line: drop the decorative location
       (it's in the hero) + the redundant Wholesale Login link; center contact. */
    .topbar .tb-left{display:none}
    .topbar .wrap{justify-content:center;padding:8px 20px}
    .topbar .tb-right{justify-content:center;gap:6px 16px;font-size:.8rem}
    .topbar .tb-right a[href^="#"],.topbar .tb-right a.tb-anchor{display:none}
    section{padding:64px 0}
    /* 2/row (tracks stay 12; tiles span 6) + last-row fill for this width */
    .cat-grid{gap:14px}
    .cat-grid .cat{grid-column:span 6}
    .cat-grid .cat:last-child:nth-child(2n+1){grid-column:span 12;aspect-ratio:auto;min-height:220px}
    .hero-stats{gap:24px}
    .hero-stat .n{font-size:1.7rem}
    .markets{grid-template-columns:1fr}
    .foot-grid{grid-template-columns:1fr}
    .way-head,.way ul,.way-foot{padding-left:24px;padding-right:24px}
    .product-grid{grid-template-columns:repeat(2,1fr);gap:14px}
    .p-thumb{height:150px;padding:12px}
    .page-hero{padding:44px 0 38px}
    .page-content{padding:44px 0 64px}
    .shop-grid-section{padding:36px 0 64px}
    /* x-scroll on the TABLE WRAPPER, never the form — the form's sticky
       submit bar (uki-commerce) can't stick from inside an overflow parent */
    .uki-order-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
    table.uki-order-grid{font-size:.85em;min-width:680px}
    td.uki-thumb{width:52px}
    .uki-thumb-img{width:44px;height:44px}
  }
  @media(max-width:420px){
    .logo img{max-width:200px;height:44px}
  }
  :focus-visible{outline:2px solid var(--red);outline-offset:3px}
  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

  /* ---- catalog nuance: NEW flash, availability, origin/dietary chips, order filter
     (analysis/catalog-nuance-design.md; mu-plugin uki-catalog-nuance.php renders these) */
  .p-thumb{position:relative}
  .uki-flash-new{position:absolute;top:10px;left:10px;background:var(--red);color:#fff;
    font-size:.62rem;font-weight:700;letter-spacing:.12em;padding:3px 8px;border-radius:3px}
  .product-summary .uki-flash-new{position:static;display:inline-block;margin-bottom:10px}
  .uki-card-avail{position:absolute;bottom:10px;left:10px;background:var(--navy-700);color:#fff;
    font-size:.6rem;font-weight:600;letter-spacing:.08em;padding:3px 8px;border-radius:3px}
  .uki-meta-row{margin:6px 0;font-size:.92rem}
  .uki-origin a{color:var(--navy-600);text-decoration:underline}
  .uki-chip{display:inline-block;font-size:.66rem;font-weight:700;letter-spacing:.08em;
    padding:3px 10px;border-radius:20px;margin-right:6px;text-decoration:none}
  .uki-chip-vegan{background:#e9f2ec;color:#1f7a4d}
  .uki-chip-kosher{background:#eef3f9;color:var(--navy)}
  .uki-chip-non-gmo{background:#fdf4e3;color:#8a6a1f}
  .uki-avail-note{color:var(--navy-600);font-size:.88rem;font-style:italic}
  .uki-new-tag{color:var(--red);font-size:.68rem;font-weight:700;letter-spacing:.1em;margin-left:4px}
  .uki-badge.uki-pre{background:#fdf4e3;color:#8a6a1f}
  .uki-badge.uki-orl{background:var(--navy-700);color:#fff}
  .uki-order-filter{margin:0 0 14px}
  #uki-order-filter-box{width:min(420px,100%);padding:10px 14px;border:1px solid #c9cfd8;
    border-radius:6px;font-size:.95rem}
  .uki-filter-count{font-size:.85rem;color:#697585;margin-left:10px}
  .uki-row-hidden{display:none}
  @media print{
    .uki-order-filter{display:none}
    .uki-row-hidden{display:table-row}
  }
  .uki-pagination{margin:34px 0 6px;text-align:center}
  .uki-pagination .page-numbers{display:inline-block;padding:8px 14px;margin:0 3px;
    border:1px solid #c9cfd8;border-radius:6px;color:var(--navy);text-decoration:none;font-size:.92rem}
  .uki-pagination .page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}
  .uki-pagination .page-numbers.dots{border:0}
