/*
Theme Name:   GradeGuard
Theme URI:    https://shop.swizzwatches.com
Description:  Child theme for GradeGuard — refurbished mobiles, laptops and desktops. Direction A, "verified bench": ink and deep green, mono for every measured value.
Author:       GradeGuard
Template:     blocksy
Version:      0.5.0
Text Domain:  gradeguard
*/

:root{
  /* ground + ink */
  --gg-paper:#F3F5F4;
  --gg-surface:#FFFFFF;
  --gg-surface-2:#EEF1EF;
  --gg-ink:#16211D;
  --gg-body:#2B3833;
  --gg-secondary:#55665F;
  --gg-muted:#5F706A;          /* 5.2:1 on white */
  --gg-muted-2:#66776F;        /* 4.7:1 on white */
  /* brand */
  --gg-brand:#0B5C48;
  --gg-brand-soft:#E6F0EC;
  --gg-verified:#0B7A56;       /* 4.9:1 on white */
  /* single call to action — ink on amber is 5.2:1; white on amber is 3.2:1 and fails AA */
  --gg-cta:#E2701A;
  --gg-cta-ink:#16211D;
  --gg-alert:#A82A1E;
  /* lines */
  --gg-line:#E2E7E4;
  --gg-line-2:#D6DCD9;
  --gg-line-3:#C3CDC8;
}

/* ---------------------------------------------------------------
   Condition block on the product page.
   The measured values are set in mono on purpose: a number someone
   can check should not look like marketing copy.
   --------------------------------------------------------------- */
.gg-condition{
  margin:20px 0;padding:18px;border:1px solid var(--gg-line);
  border-radius:8px;background:var(--gg-surface);
}
.gg-condition__chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.gg-chip{
  font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;font-weight:600;letter-spacing:.04em;
  padding:4px 8px;border-radius:3px;
  background:#F1F3F2;color:var(--gg-secondary);white-space:nowrap;
}
.gg-chip--grade{background:var(--gg-brand);color:#fff}
.gg-chip--batt{background:var(--gg-brand-soft);color:var(--gg-brand)}

.gg-condition__rows{
  display:grid;grid-template-columns:auto 1fr;gap:8px 18px;
  margin:0 0 14px;font-size:14px;
}
.gg-condition__rows dt{color:var(--gg-secondary);margin:0}
.gg-condition__rows dd{margin:0;font-weight:600;color:var(--gg-ink)}

.gg-condition__flaws{
  border-top:1px solid var(--gg-line);padding-top:14px;margin-bottom:12px;font-size:14px;
}
.gg-condition__flaws strong{display:block;margin-bottom:8px;color:var(--gg-ink)}
.gg-condition__flaws ul{margin:0;padding-left:18px;color:var(--gg-secondary);line-height:1.6}
.gg-condition__flaws li{margin-bottom:5px}

.gg-condition__qc{
  margin:0;font-size:13px;line-height:1.55;color:var(--gg-muted);
  border-top:1px solid var(--gg-line);padding-top:12px;
}

/* Ad slots: reserve height in CSS so a filled slot never shifts the page.
   Never collapse an unfilled slot — that costs as much layout shift as
   inserting one. Only ever rendered inside .gg-ads-on. */
.gg-ad{display:block;margin:28px auto;text-align:center;contain:layout}
.gg-ad::before{
  content:"Advertisement";display:block;
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:10px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gg-muted-2);margin-bottom:6px;
}
.gg-ad--incontent{min-height:280px}
@media (min-width:768px){.gg-ad--incontent{min-height:310px}}
.gg-ad--sidebar{min-height:630px}
.gg-ads-off .gg-ad{display:none}

/* ---------------------------------------------------------------
   Homepage. Section rhythm comes from padding on each group, not
   from margins on their children, so blocks can be reordered in the
   editor without the spacing collapsing.
   --------------------------------------------------------------- */
.gg-eyebrow{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--gg-brand);font-weight:600;margin:0 0 14px;
}
.gg-eyebrow--light{color:#7FA396}
.gg-h2{font-size:clamp(21px,3.2vw,29px);line-height:1.18;letter-spacing:-.025em;font-weight:700;color:var(--gg-ink);margin:0 0 16px;text-wrap:balance}
.gg-h2--light{color:#fff}

.gg-hero{padding:44px 0 40px;background:var(--gg-surface)}
.gg-hero__h1{
  font-size:clamp(30px,5.2vw,50px);line-height:1.08;letter-spacing:-.035em;
  font-weight:700;margin:0 0 16px;max-width:19ch;text-wrap:balance;color:var(--gg-ink);
}
.gg-hero__sub{font-size:clamp(15px,1.7vw,18px);line-height:1.6;color:var(--gg-secondary);max-width:56ch;margin:0 0 26px}
.gg-hero__cta{gap:10px}

/* one CTA colour, ink on amber — white on this amber is 3.2:1 and fails AA */
.gg-btn .wp-block-button__link{border-radius:6px;padding:15px 26px;font-weight:600;font-size:15px;min-height:48px}
.gg-btn--cta .wp-block-button__link{background:var(--gg-cta);color:var(--gg-cta-ink);border:1.5px solid var(--gg-cta)}
.gg-btn--cta .wp-block-button__link:hover{background:#C9620F;border-color:#C9620F;color:var(--gg-cta-ink)}
.gg-btn--ghost .wp-block-button__link{background:transparent;color:var(--gg-ink);border:1.5px solid var(--gg-ink)}
.gg-btn--ghost .wp-block-button__link:hover{background:var(--gg-ink);color:#fff}
.gg-btn--dark .wp-block-button__link{background:var(--gg-brand);color:#fff;border:1.5px solid var(--gg-brand)}
.gg-btn--dark .wp-block-button__link:hover{background:#08402F;border-color:#08402F}

.gg-cats{padding:0 0 44px;background:var(--gg-surface)}
.gg-cats__row{gap:12px}
.gg-cat{margin:0}
.gg-cat a{
  display:flex;flex-direction:column;gap:5px;text-decoration:none;
  border:1px solid var(--gg-line);border-radius:8px;padding:20px;
  min-height:96px;justify-content:center;transition:border-color .15s,transform .15s;
}
.gg-cat a:hover{border-color:var(--gg-brand);transform:translateY(-1px)}
.gg-cat strong{font-size:17px;color:var(--gg-ink);letter-spacing:-.015em}
.gg-cat span{font-size:13px;color:var(--gg-muted)}

.gg-stock{padding:44px 0;background:var(--gg-paper)}
.gg-grades{padding:44px 0;background:var(--gg-ink);color:#C9D6D1}
.gg-grade-table table{border-collapse:collapse;width:100%;font-size:14px}
.gg-grade-table th{
  text-align:left;font-family:"IBM Plex Mono",monospace;font-size:10px;
  letter-spacing:.1em;text-transform:uppercase;color:#7FA396;
  padding:10px 14px;border-bottom:1px solid #2A3833;font-weight:600;
}
.gg-grade-table td{padding:12px 14px;border-bottom:1px solid #22302B;color:#C9D6D1}
.gg-grade-table td:first-child{font-family:"IBM Plex Mono",monospace;font-weight:600;color:#4CC79C;white-space:nowrap}
.gg-grade-table td:last-child{font-family:"IBM Plex Mono",monospace;color:#9DB5AC;text-align:right;white-space:nowrap}
.gg-grades__note{font-size:14px;line-height:1.6;color:#9DB5AC;margin:18px 0 0}
.gg-grades__note a{color:#4CC79C;text-decoration:underline}

.gg-shop{padding:44px 0;background:var(--gg-surface)}
.gg-shop p{font-size:15.5px;line-height:1.65;color:var(--gg-secondary);max-width:64ch}
.gg-shop__cod{
  background:var(--gg-brand-soft);border-radius:8px;padding:16px 18px;
  color:var(--gg-brand)!important;font-size:15px!important;margin-top:18px;
}
.gg-sell{padding:40px 0;background:var(--gg-paper)}
.gg-sell p{font-size:15.5px;line-height:1.65;color:var(--gg-secondary);max-width:60ch;margin-bottom:22px}
.gg-guides{padding:44px 0 56px;background:var(--gg-surface)}
.gg-guide-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.gg-guide-list li{border:1px solid var(--gg-line);border-radius:8px;padding:16px}
.gg-guide-list a{font-size:15px;font-weight:600;color:var(--gg-ink);line-height:1.35;text-decoration:none}
.gg-guide-list a:hover{color:var(--gg-brand)}

@media (max-width:781px){
  .gg-hero{padding:32px 0 30px}
  .gg-cats__row{gap:10px}
}

/* ---------------------------------------------------------------
   Buy flow. One action per listing card — it opens the product
   page — and two on the product page, both landing on the cart.
   --------------------------------------------------------------- */
.gg-order-now{
  display:block!important;width:100%;text-align:center;
  background:var(--gg-cta)!important;color:var(--gg-cta-ink)!important;
  border:1.5px solid var(--gg-cta)!important;border-radius:6px!important;
  padding:13px 18px!important;font-weight:600!important;font-size:14.5px!important;
  min-height:46px;text-decoration:none!important;margin-top:10px!important;
}
.gg-order-now:hover{background:#C9620F!important;border-color:#C9620F!important;color:var(--gg-cta-ink)!important}
.gg-order-now[aria-disabled="true"]{
  background:transparent!important;color:var(--gg-muted)!important;
  border-color:var(--gg-line-2)!important;font-weight:500!important;
}

/* Product page: Add to cart stays the quiet one, Buy now carries the accent. */
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
/* Buy now also submits name="add-to-cart", so it has to be excluded here or
   this higher-specificity rule wins and strips its accent colour. */
.woocommerce div.product form.cart .button[name="add-to-cart"]:not(.gg-buy-now),
.woocommerce div.product .single_add_to_cart_button:not(.gg-buy-now){
  background:transparent!important;color:var(--gg-ink)!important;
  border:1.5px solid var(--gg-ink)!important;border-radius:6px!important;
  padding:14px 22px!important;font-weight:600!important;min-height:48px;
}
.woocommerce div.product .single_add_to_cart_button:hover{background:var(--gg-ink)!important;color:#fff!important}
.woocommerce div.product form.cart .button.gg-buy-now,
.gg-buy-now{
  background:var(--gg-cta)!important;color:var(--gg-cta-ink)!important;
  border:1.5px solid var(--gg-cta)!important;border-radius:6px!important;
  padding:14px 26px!important;font-weight:700!important;font-size:15px!important;min-height:48px;
}
.woocommerce div.product form.cart .button.gg-buy-now:hover,
.gg-buy-now:hover{background:#C9620F!important;border-color:#C9620F!important;color:var(--gg-cta-ink)!important}

/* --- Catalogue price block ------------------------------------------- */
.gg-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem .7rem}
.gg-price__now{font-size:1.5rem;font-weight:650;color:var(--gg-ink);letter-spacing:-.01em}
.gg-price__mrp{font-size:.8125rem;color:var(--gg-muted);text-transform:uppercase;letter-spacing:.06em}
.gg-price__mrp del{text-decoration-thickness:1px;opacity:.85}
.gg-price__off{font-size:.75rem;font-weight:600;color:var(--gg-brand);background:var(--gg-brand-soft);
  border-radius:2px;padding:.2em .5em;letter-spacing:.02em}
.gg-price-note{margin:.35rem 0 1rem;font-size:.8125rem;line-height:1.45;color:var(--gg-muted);max-width:46ch}

/* --- Loop flash ------------------------------------------------------- */
.gg-flash{position:absolute;top:10px;left:10px;z-index:2;font-size:.6875rem;font-weight:650;
  letter-spacing:.08em;text-transform:uppercase;padding:.35em .6em;border-radius:2px;line-height:1}
.gg-flash--grade{background:var(--gg-brand);color:#fff}
.gg-flash--out{background:var(--gg-alert);color:#fff}

/* --- Sold-out card treatment: dimmed, never hidden -------------------- */
.woocommerce ul.products li.product.outofstock .woocommerce-loop-product__link img{filter:grayscale(1);opacity:.55}
.woocommerce ul.products li.product.outofstock .price{opacity:.6}

/* --- Condition block -------------------------------------------------- */
.gg-condition{border:1px solid var(--gg-line);border-radius:4px;padding:1rem 1.15rem;margin:1.25rem 0;background:var(--gg-surface)}
.gg-condition__chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.9rem}
.gg-chip{font-size:.75rem;font-weight:600;letter-spacing:.03em;padding:.3em .6em;border-radius:2px;
  background:var(--gg-paper);color:var(--gg-secondary);border:1px solid var(--gg-line)}
.gg-chip--grade{background:var(--gg-brand);color:#fff;border-color:var(--gg-brand)}
.gg-chip--batt{background:var(--gg-brand-soft);color:var(--gg-brand);border-color:transparent}
.gg-condition__rows{display:grid;grid-template-columns:minmax(8rem,auto) 1fr;gap:.35rem 1.25rem;margin:0 0 .9rem;font-size:.875rem}
.gg-condition__rows dt{color:var(--gg-muted)}
.gg-condition__rows dd{margin:0;color:var(--gg-body)}
.gg-condition__flaws strong{display:block;font-size:.8125rem;text-transform:uppercase;letter-spacing:.06em;
  color:var(--gg-muted);margin-bottom:.4rem}
.gg-condition__flaws ul{margin:0 0 .9rem;padding-left:1.1rem;font-size:.875rem;line-height:1.55;color:var(--gg-body)}
.gg-condition__flaws li{margin-bottom:.3rem}
.gg-condition__qc{margin:0;font-size:.8125rem;color:var(--gg-verified);line-height:1.5}
@media (max-width:480px){.gg-condition__rows{grid-template-columns:1fr}.gg-condition__rows dt{margin-top:.4rem}}

/* ===============================================================
   GRADEGUARD COMPONENT LAYER v1 — append to gradeguard/style.css
   Assumes the :root token block already at the top of style.css.
   Light mode only, white ground, legible at 14px on 360px.
   =============================================================== */

/* ---------- 1. SELF-HOSTED FACES -------------------------------
   Files verified in gradeguard/fonts/. SG is variable 400..900,
   upm 2048, typoAsc 2000 / typoDesc -528 / gap 0.
   Plex Mono is static, upm 1000, asc 1025 / desc -275 / gap 0.
   Rupee U+20B9 lives in Google's latin-ext cut, so it ships as a
   separate unicode-range face — without it every ₹ on the site
   falls back to a system font.
   --------------------------------------------------------------- */
@font-face{
  font-family:"Schibsted Grotesk";
  font-style:normal;font-weight:400 900;font-display:swap;
  src:url("fonts/schibsted-grotesk-var-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2122,U+2190-2193,U+2212,U+2713,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Schibsted Grotesk";
  font-style:normal;font-weight:400 900;font-display:swap;
  src:url("fonts/schibsted-grotesk-var-rupee.woff2") format("woff2");
  unicode-range:U+20B9;
}
@font-face{
  font-family:"IBM Plex Mono";
  font-style:normal;font-weight:500;font-display:swap;
  src:url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+2000-206F,U+2212;
}
@font-face{
  font-family:"IBM Plex Mono";
  font-style:normal;font-weight:500;font-display:swap;
  src:url("fonts/ibm-plex-mono-500-rupee.woff2") format("woff2");
  unicode-range:U+20B9;
}
@font-face{
  font-family:"IBM Plex Mono";
  font-style:normal;font-weight:600;font-display:swap;
  src:url("fonts/ibm-plex-mono-600.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+2000-206F,U+2212;
}

/* Metric-matched fallbacks. Measured, not guessed:
   SG avg lowercase advance 0.5163em, Roboto 0.4899em -> 105.4%.
   ascent-override = (2000/2048)/1.054 = 92.7%; descent 24.5%.
   Plex Mono and every system mono are both 0.600em -> 100%. */
@font-face{
  font-family:"SG Fallback";
  src:local("Roboto"),local("Helvetica Neue"),local("Arial"),local("Liberation Sans");
  size-adjust:105.4%;ascent-override:92.7%;descent-override:24.5%;line-gap-override:0%;
}
@font-face{
  font-family:"Plex Mono Fallback";
  src:local("Roboto Mono"),local("DejaVu Sans Mono"),local("Menlo"),local("Consolas"),local("Courier New");
  size-adjust:100%;ascent-override:102.5%;descent-override:27.5%;line-gap-override:0%;
}

:root{
  --gg-font-sans:"Schibsted Grotesk","SG Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --gg-font-mono:"IBM Plex Mono","Plex Mono Fallback",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  /* 4px spacing scale. Every gap, pad and margin below is from this list. */
  --gg-1:4px;--gg-2:8px;--gg-3:12px;--gg-4:16px;--gg-5:20px;
  --gg-6:24px;--gg-8:32px;--gg-10:40px;--gg-14:56px;--gg-18:72px;

  /* Type scale. 1.125 at body sizes, loosening to 1.2 for display. */
  --gg-t-mono:11px;--gg-t-xs:12px;--gg-t-sm:13px;--gg-t-base:14px;
  --gg-t-md:15px;--gg-t-lg:16px;--gg-t-xl:18px;--gg-t-2xl:21px;

  /* Exactly three radii. Anything rounder reads as a template. */
  --gg-r-chip:3px;--gg-r-ctl:6px;--gg-r-card:10px;

  /* Exactly two shadows. Neutral-tinted, never coloured, never a glow. */
  --gg-sh-1:0 1px 2px rgba(22,33,29,.05);
  --gg-sh-2:0 4px 16px -4px rgba(22,33,29,.10);
  --gg-focus:0 0 0 3px rgba(11,92,72,.28);
}

/* ---------- 2. BASE RHYTHM ------------------------------------- */
/* Size, line-height and letter-spacing for body and h1-h6 come from the
   theme mods (Blocksy emits them as --theme-font-size etc. per element and
   per breakpoint). Redeclaring them here would silently win and throw away
   the responsive steps, so this rule only sets what the mods cannot. */
body{font-family:var(--gg-font-sans);color:var(--gg-body);background:var(--gg-surface);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,h5,h6{color:var(--gg-ink);text-wrap:balance}
p{max-width:68ch}
a{color:var(--gg-brand)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gg-brand);outline-offset:2px;border-radius:var(--gg-r-ctl)}
:where(.gg-num,.price,.amount,.woocommerce-Price-amount,.gg-condition__rows dd,
  .wc-block-components-totals-item__value,.wc-block-components-product-price){
  font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.gg-num{font-family:var(--gg-font-mono);font-weight:500;letter-spacing:-.01em}

/* ---------- 3. BUTTONS ----------------------------------------- */
/* One accent. Amber is reserved for the single primary action in a
   viewport; everything else is ink outline or deep green. */
.gg-b{display:inline-flex;align-items:center;justify-content:center;gap:var(--gg-2);
  min-height:48px;padding:13px 22px;border-radius:var(--gg-r-ctl);border:1.5px solid transparent;
  font:600 var(--gg-t-md)/1.2 var(--gg-font-sans);letter-spacing:-.005em;
  text-decoration:none;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease}
.gg-b--cta{background:var(--gg-cta);border-color:var(--gg-cta);color:var(--gg-cta-ink)}
.gg-b--cta:hover{background:#C9620F;border-color:#C9620F;color:var(--gg-cta-ink)}
.gg-b--solid{background:var(--gg-brand);border-color:var(--gg-brand);color:#fff}
.gg-b--solid:hover{background:#08402F;border-color:#08402F;color:#fff}
.gg-b--ghost{background:transparent;border-color:var(--gg-ink);color:var(--gg-ink)}
.gg-b--ghost:hover{background:var(--gg-ink);color:#fff}
.gg-b--quiet{background:transparent;border-color:var(--gg-line-2);color:var(--gg-ink);font-weight:500}
.gg-b--quiet:hover{border-color:var(--gg-ink)}
.gg-b[disabled],.gg-b[aria-disabled="true"]{background:transparent;border-color:var(--gg-line-2);
  color:var(--gg-muted);cursor:not-allowed;font-weight:500}
.gg-b--full{width:100%}

/* ---------- 4. BADGES AND CHIPS -------------------------------- */
.gg-chip{display:inline-flex;align-items:center;gap:var(--gg-1);
  font-family:var(--gg-font-mono);font-size:var(--gg-t-mono);font-weight:600;letter-spacing:.04em;
  padding:4px 8px;border-radius:var(--gg-r-chip);background:#F1F3F2;color:var(--gg-secondary);white-space:nowrap}
.gg-chip--grade{background:var(--gg-brand);color:#fff}
.gg-chip--batt{background:var(--gg-brand-soft);color:var(--gg-brand)}
.gg-chip--verified{background:#E4F3EC;color:#0A6647}
.gg-chip--warn{background:#FBEDE4;color:#8A4409}
.gg-chip--outline{background:transparent;border:1px solid var(--gg-line-2);color:var(--gg-muted)}
.gg-chip--save{background:#E4F3EC;color:#0A6647;font-size:var(--gg-t-xs)}
/* Sale flash on cards: one badge, top-left, never a starburst, never red. */
.gg-badge{position:absolute;top:var(--gg-2);left:var(--gg-2);z-index:2;
  font-family:var(--gg-font-mono);font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  padding:4px 7px;border-radius:var(--gg-r-chip);background:var(--gg-ink);color:#fff}
.gg-badge--save{background:#0A6647}

/* ---------- 5. PRODUCT CARDS (Blocksy woo loop) ---------------- */
.woocommerce ul.products{display:grid;gap:var(--gg-4);margin:0;padding:0;list-style:none}
.woocommerce ul.products li.product{
  position:relative;display:flex;flex-direction:column;margin:0;padding:0;
  background:var(--gg-surface);border:1px solid var(--gg-line);border-radius:var(--gg-r-card);
  overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}
.woocommerce ul.products li.product:hover{border-color:var(--gg-line-3);box-shadow:var(--gg-sh-1)}
.woocommerce ul.products li.product .ct-media-container,
.woocommerce ul.products li.product img{aspect-ratio:1/1;width:100%;height:auto;object-fit:contain;
  background:#FAFBFA;display:block}
.woocommerce ul.products li.product > a:not(.button),
.woocommerce ul.products li.product .ct-woo-card-extra{padding:0}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:var(--gg-t-base);line-height:1.35;font-weight:600;color:var(--gg-ink);
  letter-spacing:-.012em;margin:0;padding:var(--gg-3) var(--gg-3) 0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.woocommerce ul.products li.product .price{padding:var(--gg-2) var(--gg-3) 0;margin:0;display:flex;
  align-items:baseline;flex-wrap:wrap;gap:var(--gg-2);color:var(--gg-ink)}
.woocommerce ul.products li.product .gg-card-meta{padding:var(--gg-2) var(--gg-3) 0;display:flex;
  flex-wrap:wrap;gap:var(--gg-1)}
.woocommerce ul.products li.product .gg-order-now,
.woocommerce ul.products li.product .button{margin:var(--gg-3);width:calc(100% - var(--gg-6))}
/* Blocksy hover-reveal action rail: off. Hidden controls are a desktop-only
   affordance and they make a card look busy. */
.ct-woo-card-actions{display:none!important}

/* Price and savings. Struck price is small and muted; the live price is the
   only bold number; the saving is stated in rupees, not as a fake percent. */
.price del,.price del .amount{color:var(--gg-muted-2)!important;font-size:var(--gg-t-sm);
  font-weight:400;text-decoration:line-through;opacity:1;order:2}
.price ins,.price > .amount,.price ins .amount{text-decoration:none;font-weight:700;
  font-size:var(--gg-t-lg);color:var(--gg-ink);letter-spacing:-.02em;order:1}
.gg-save{order:3;font-family:var(--gg-font-mono);font-size:var(--gg-t-xs);font-weight:600;
  color:#0A6647;background:#E4F3EC;padding:2px 6px;border-radius:var(--gg-r-chip);white-space:nowrap}
.gg-price-note{display:block;width:100%;order:4;font-size:var(--gg-t-xs);color:var(--gg-muted);
  font-weight:400;letter-spacing:0}

/* ---------- 6. STOCK -------------------------------------------
   Stock is a fact, not a scare. No timers, no "only 2 left!!!". */
.gg-stockline{display:inline-flex;align-items:center;gap:6px;font-size:var(--gg-t-sm);
  font-weight:500;color:var(--gg-verified)}
.gg-stockline::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.gg-stockline--low{color:#8A4409}
.gg-stockline--out{color:var(--gg-muted)}
.woocommerce div.product .stock.in-stock{color:var(--gg-verified);font-weight:500;font-size:var(--gg-t-base)}
.woocommerce div.product .stock.out-of-stock{color:var(--gg-muted);font-weight:500}

/* ---------- 7. TRUST STRIP -------------------------------------
   Facts the buyer can verify. Never icons-plus-superlatives. */
.gg-trust{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;
  background:var(--gg-line);border:1px solid var(--gg-line);border-radius:var(--gg-r-card);
  overflow:hidden;margin:var(--gg-6) 0}
.gg-trust__item{background:var(--gg-surface);padding:var(--gg-4) var(--gg-3);display:flex;
  flex-direction:column;gap:var(--gg-1)}
.gg-trust__k{font-family:var(--gg-font-mono);font-size:var(--gg-t-mono);letter-spacing:.1em;
  text-transform:uppercase;color:var(--gg-muted-2);font-weight:600}
.gg-trust__v{font-size:var(--gg-t-base);font-weight:600;color:var(--gg-ink);line-height:1.35}
.gg-trust--inline{display:flex;flex-wrap:wrap;gap:var(--gg-2);background:none;border:0;padding:0}
.gg-trust--inline .gg-trust__item{border:1px solid var(--gg-line);border-radius:var(--gg-r-ctl);
  padding:var(--gg-2) var(--gg-3);flex-direction:row;align-items:center;gap:var(--gg-2)}

/* ---------- 8. TABLES ------------------------------------------ */
.gg-table{width:100%;border-collapse:collapse;font-size:var(--gg-t-base);
  border:1px solid var(--gg-line);border-radius:var(--gg-r-card);overflow:hidden}
.gg-table thead th{text-align:left;background:var(--gg-surface-2);color:var(--gg-secondary);
  font-family:var(--gg-font-mono);font-size:var(--gg-t-mono);letter-spacing:.1em;text-transform:uppercase;
  font-weight:600;padding:10px var(--gg-3);border-bottom:1px solid var(--gg-line-2);white-space:nowrap}
.gg-table td{padding:12px var(--gg-3);border-bottom:1px solid var(--gg-line);color:var(--gg-body);
  vertical-align:top;line-height:1.5}
.gg-table tbody tr:last-child td{border-bottom:0}
.gg-table td:first-child{color:var(--gg-ink);font-weight:600}
.gg-table .gg-num,.gg-table td[data-num]{font-family:var(--gg-font-mono);font-weight:500;
  text-align:right;white-space:nowrap}
.gg-tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:var(--gg-5) 0}
/* WooCommerce attribute table gets the same treatment. */
.woocommerce table.shop_attributes{border:1px solid var(--gg-line);border-radius:var(--gg-r-card);
  border-collapse:collapse;width:100%;font-size:var(--gg-t-base)}
.woocommerce table.shop_attributes th{background:var(--gg-surface-2);text-align:left;font-weight:600;
  color:var(--gg-secondary);padding:10px var(--gg-3);width:40%;border-bottom:1px solid var(--gg-line)}
.woocommerce table.shop_attributes td{padding:10px var(--gg-3);border-bottom:1px solid var(--gg-line);
  font-family:var(--gg-font-mono);font-weight:500;color:var(--gg-ink);font-style:normal}
.woocommerce table.shop_attributes td p{margin:0}

/* ---------- 9. FORMS ------------------------------------------- */
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=search],
input[type=password],select,textarea,
.wc-block-components-text-input input.components-text-control__input{
  width:100%;min-height:48px;padding:12px var(--gg-3);
  font:400 var(--gg-t-md)/1.4 var(--gg-font-sans);color:var(--gg-ink);
  background:var(--gg-surface);border:1px solid var(--gg-line-2);border-radius:var(--gg-r-ctl);
  box-shadow:none;transition:border-color .14s ease,box-shadow .14s ease;-webkit-appearance:none;appearance:none}
input:focus,select:focus,textarea:focus,
.wc-block-components-text-input input.components-text-control__input:focus{
  border-color:var(--gg-brand);box-shadow:var(--gg-focus);outline:0}
input::placeholder,textarea::placeholder{color:#8A9992}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2355665F' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right var(--gg-3) center;padding-right:36px}
label,.wc-block-components-text-input label{font-size:var(--gg-t-sm);font-weight:600;color:var(--gg-secondary);
  letter-spacing:0;margin-bottom:6px;display:block}
.gg-field{margin-bottom:var(--gg-4)}
.gg-field__help{font-size:var(--gg-t-xs);color:var(--gg-muted);margin-top:6px;line-height:1.45}
.gg-field__err,.wc-block-components-validation-error{font-size:var(--gg-t-xs);color:var(--gg-alert);
  font-weight:600;margin-top:6px}
.wc-block-components-validation-error p{margin:0}
input[aria-invalid="true"],.has-error input{border-color:var(--gg-alert)}
input[type=checkbox],input[type=radio]{width:20px;height:20px;min-height:0;accent-color:var(--gg-brand);
  flex:none;margin-right:var(--gg-2)}
.gg-imei-field{font-family:var(--gg-font-mono);letter-spacing:.06em}

/* ---------- 10. CART AND CHECKOUT BLOCKS ------------------------
   COD-only, zero extra charges: the summary must show that the
   displayed price is the paid price, with no empty tax or fee rows. */
.wc-block-components-sidebar-layout{gap:var(--gg-6)}
.wc-block-components-sidebar,.wc-block-cart__sidebar,.wc-block-checkout__sidebar{
  background:var(--gg-surface-2);border:1px solid var(--gg-line);border-radius:var(--gg-r-card);
  padding:var(--gg-5)}
.wc-block-components-title,.wc-block-cart__totals-title,
.wc-block-components-checkout-step__title{font-family:var(--gg-font-sans);color:var(--gg-ink);
  font-weight:700;letter-spacing:-.018em}
.wc-block-components-checkout-step{border:0;padding:0;margin:0 0 var(--gg-6)}
.wc-block-components-checkout-step__heading{margin:0 0 var(--gg-2)}
.wc-block-components-checkout-step__title{font-size:var(--gg-t-xl)}
.wc-block-components-checkout-step__description{font-size:var(--gg-t-sm);color:var(--gg-muted);margin-bottom:var(--gg-3)}
.wc-block-components-totals-wrapper{border-top:1px solid var(--gg-line-2);padding:var(--gg-3) 0}
.wc-block-components-totals-item{font-size:var(--gg-t-base);color:var(--gg-secondary);
  display:flex;justify-content:space-between;gap:var(--gg-3);padding:2px 0}
.wc-block-components-totals-item__value{font-family:var(--gg-font-mono);font-weight:500;color:var(--gg-ink)}
.wc-block-components-totals-footer-item{font-size:var(--gg-t-xl);color:var(--gg-ink);font-weight:700}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-size:var(--gg-t-2xl);font-weight:600}
/* No GST line, no COD fee, no coupon row, no express payments. */
.wc-block-components-totals-taxes,.wc-block-components-totals-footer-item-tax,
.wc-block-components-totals-coupon,.wc-block-components-totals-coupon-link,
.wc-block-components-express-payment,.wc-block-components-express-payment-continue-rule,
.wp-block-woocommerce-checkout-express-payment-block,
.wp-block-woocommerce-cart-express-payment-block,
.wc-block-components-totals-shipping__change-address-button{display:none!important}
.wc-block-components-totals-shipping .wc-block-components-totals-item__value{color:var(--gg-verified);font-weight:600}
.wc-block-checkout__shipping-method-option,.wc-block-components-radio-control__option{
  border:1px solid var(--gg-line-2);border-radius:var(--gg-r-ctl);padding:var(--gg-3);margin-bottom:var(--gg-2)}
.wc-block-checkout__shipping-method-option--selected,
.wc-block-components-radio-control__option-checked{border-color:var(--gg-brand);background:var(--gg-brand-soft)}
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
button.wc-block-components-checkout-place-order-button{
  min-height:52px!important;border-radius:var(--gg-r-ctl)!important;
  background:var(--gg-cta)!important;color:var(--gg-cta-ink)!important;border:1.5px solid var(--gg-cta)!important;
  font:700 var(--gg-t-lg)/1.2 var(--gg-font-sans)!important;letter-spacing:-.005em}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover{background:#C9620F!important;border-color:#C9620F!important}
/* every other wc block button stays quiet: one accent per viewport */
.wc-block-components-button:not(.wc-block-cart__submit-button):not(.wc-block-components-checkout-place-order-button){
  min-height:44px;border-radius:var(--gg-r-ctl);background:transparent;color:var(--gg-ink);
  border:1.5px solid var(--gg-line-2);font:600 var(--gg-t-base)/1.2 var(--gg-font-sans)}
.wc-block-components-button:not(.wc-block-cart__submit-button):not(.wc-block-components-checkout-place-order-button):hover{
  border-color:var(--gg-ink);background:transparent;color:var(--gg-ink)}
.wc-block-cart-items__header{font-family:var(--gg-font-mono);font-size:var(--gg-t-mono);
  letter-spacing:.1em;text-transform:uppercase;color:var(--gg-muted-2);border-bottom:1px solid var(--gg-line-2)}
.wc-block-cart-items__row{border-bottom:1px solid var(--gg-line);padding:var(--gg-4) 0}
.wc-block-cart-item__image img{border:1px solid var(--gg-line);border-radius:var(--gg-r-ctl);background:#FAFBFA}
.wc-block-components-product-name{font-size:var(--gg-t-base);font-weight:600;color:var(--gg-ink);
  line-height:1.35;text-decoration:none}
.wc-block-components-product-price__value{font-family:var(--gg-font-mono);font-weight:500;color:var(--gg-ink)}
.wc-block-components-quantity-selector{border:1px solid var(--gg-line-2);border-radius:var(--gg-r-ctl);
  max-width:118px;background:var(--gg-surface)}
.wc-block-components-quantity-selector__button{min-width:40px;min-height:44px;color:var(--gg-ink);font-size:18px}
.wc-block-components-quantity-selector__input{min-height:44px;font-family:var(--gg-font-mono);
  font-weight:600;color:var(--gg-ink);border:0;box-shadow:none}
.wc-block-cart-item__remove-link{font-size:var(--gg-t-xs);color:var(--gg-muted);text-decoration:underline}
.wc-block-components-order-summary-item__quantity{background:var(--gg-ink);color:#fff;
  font-family:var(--gg-font-mono);border:0}
/* COD reassurance panel, rendered above the place-order button. */
.gg-cod{border:1px solid var(--gg-line);border-left:3px solid var(--gg-verified);
  border-radius:var(--gg-r-ctl);background:var(--gg-brand-soft);padding:var(--gg-3) var(--gg-4);
  margin:var(--gg-4) 0;font-size:var(--gg-t-base);line-height:1.55;color:#0A4A38}
.gg-cod strong{color:#083426}
.gg-cod__amt{font-family:var(--gg-font-mono);font-weight:600}

/* ---------- 11. BREADCRUMBS ------------------------------------ */
.ct-breadcrumbs,.woocommerce-breadcrumb,.gg-crumbs{
  font-size:var(--gg-t-sm);color:var(--gg-muted);margin-bottom:var(--gg-4);
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;line-height:1.4}
.ct-breadcrumbs a,.woocommerce-breadcrumb a,.gg-crumbs a{color:var(--gg-secondary);text-decoration:none}
.ct-breadcrumbs a:hover,.woocommerce-breadcrumb a:hover,.gg-crumbs a:hover{color:var(--gg-brand);text-decoration:underline}
.ct-breadcrumbs .separator,.gg-crumbs .sep{color:var(--gg-line-3)}
.ct-breadcrumbs [aria-current],.gg-crumbs [aria-current]{color:var(--gg-ink);font-weight:600}

/* ---------- 12. PAGINATION ------------------------------------- */
.ct-pagination,.woocommerce-pagination{margin:var(--gg-8) 0 0}
.ct-pagination .page-numbers,.woocommerce-pagination .page-numbers{
  display:flex;flex-wrap:wrap;gap:var(--gg-2);list-style:none;padding:0;margin:0;justify-content:center}
.ct-pagination .page-numbers li .page-numbers,
.woocommerce-pagination .page-numbers li .page-numbers,
a.page-numbers,span.page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;
  padding:0 var(--gg-3);border:1px solid var(--gg-line-2);border-radius:var(--gg-r-ctl);
  font-family:var(--gg-font-mono);font-size:var(--gg-t-sm);font-weight:500;
  color:var(--gg-ink);text-decoration:none;background:var(--gg-surface)}
a.page-numbers:hover{border-color:var(--gg-ink)}
.page-numbers.current{background:var(--gg-ink);border-color:var(--gg-ink);color:#fff}
.page-numbers.dots{border-color:transparent;background:none;color:var(--gg-muted)}

/* ---------- 13. NOTICES ---------------------------------------- */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice,
.wc-block-components-notice-banner{
  border:1px solid var(--gg-line);border-left-width:3px;border-radius:var(--gg-r-ctl);
  background:var(--gg-surface-2);color:var(--gg-ink);padding:var(--gg-3) var(--gg-4);
  font-size:var(--gg-t-base);line-height:1.5;margin:0 0 var(--gg-4);list-style:none;display:block}
.woocommerce-message,.wc-block-components-notice-banner.is-success{border-left-color:var(--gg-verified);background:#EDF7F2}
.woocommerce-info,.wc-block-components-notice-banner.is-info{border-left-color:var(--gg-brand);background:var(--gg-brand-soft)}
.woocommerce-error,.wc-block-components-notice-banner.is-error{border-left-color:var(--gg-alert);background:#FBEFED}
.wc-block-components-notice-banner>svg{fill:currentColor;flex:none}
.woocommerce-message .button,.woocommerce-info .button{float:none;margin-top:var(--gg-2);
  display:inline-flex;min-height:40px;padding:8px 16px;border-radius:var(--gg-r-ctl);
  background:transparent;border:1.5px solid var(--gg-ink);color:var(--gg-ink);font-weight:600;font-size:var(--gg-t-sm)}
.gg-note{border:1px solid var(--gg-line);border-radius:var(--gg-r-ctl);padding:var(--gg-3) var(--gg-4);
  background:var(--gg-surface-2);font-size:var(--gg-t-sm);color:var(--gg-secondary);line-height:1.55}

/* ---------- 14. SECTION RHYTHM --------------------------------- */
.gg-sec{padding:var(--gg-14) 0}
.gg-sec--tight{padding:var(--gg-10) 0}
.gg-sec--paper{background:var(--gg-paper)}
.gg-sec--ink{background:var(--gg-ink);color:#C9D6D1}
.gg-sec__head{margin-bottom:var(--gg-6);max-width:60ch}
.gg-rule{border:0;border-top:1px solid var(--gg-line);margin:var(--gg-8) 0}

/* ---------- 15. RESPONSIVE -------------------------------------
   360px is the floor (Galaxy A-series, Redmi). At 360 the content
   box is 360 - 2*16 = 328px, so nothing may assume >320px.
   --------------------------------------------------------------- */
.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:600px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gg-5)}}
@media (min-width:1000px){.woocommerce ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media (max-width:599.98px){
  :root{--gg-14:40px;--gg-18:48px}
  p{max-width:none}
  /* Two cards at 360px leaves 156px each — clamp the title, shrink the pad,
     and drop the price note so the CTA is not pushed below the fold. */
  .woocommerce ul.products{gap:var(--gg-2)}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size:var(--gg-t-sm);padding:var(--gg-2) var(--gg-2) 0;min-height:2.7em}
  .woocommerce ul.products li.product .price{padding:6px var(--gg-2) 0;gap:6px}
  .woocommerce ul.products li.product .price ins,
  .woocommerce ul.products li.product .price > .amount{font-size:var(--gg-t-md)}
  .woocommerce ul.products li.product .gg-price-note{display:none}
  .woocommerce ul.products li.product .gg-card-meta{padding:6px var(--gg-2) 0}
  .woocommerce ul.products li.product .gg-card-meta .gg-chip:nth-child(n+3){display:none}
  .woocommerce ul.products li.product .gg-order-now,
  .woocommerce ul.products li.product .button{margin:var(--gg-2);width:calc(100% - var(--gg-4));
    padding:11px 8px!important;font-size:var(--gg-t-sm)!important;min-height:44px}
  /* Product page: two actions stack, each full width. */
  .woocommerce div.product form.cart{flex-direction:column}
  .woocommerce div.product form.cart .button,
  .woocommerce div.product .single_add_to_cart_button{width:100%}
  /* Sidebar cards lose their inset so they are not a box inside a box. */
  .wc-block-cart__sidebar,.wc-block-checkout__sidebar,.wc-block-components-sidebar{
    padding:var(--gg-4);border-radius:var(--gg-r-ctl)}
  .wc-block-components-sidebar-layout{gap:var(--gg-5)}
  /* Cart table headers are meaningless on one column. */
  .wc-block-cart-items__header{display:none}
  .gg-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gg-trust__v{font-size:var(--gg-t-sm)}
  .gg-condition{padding:var(--gg-3);margin:var(--gg-4) 0}
  .gg-condition__rows{grid-template-columns:1fr;gap:2px var(--gg-3);font-size:var(--gg-t-base)}
  .gg-condition__rows dt{font-size:var(--gg-t-xs);text-transform:uppercase;letter-spacing:.06em;
    font-family:var(--gg-font-mono);margin-top:var(--gg-2)}
  .gg-table{font-size:var(--gg-t-sm)}
  .gg-table td,.gg-table thead th{padding:9px var(--gg-2)}
  /* A sticky buy bar is the one place a fixed element earns its keep. */
  .gg-buybar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;gap:var(--gg-2);
    align-items:center;padding:var(--gg-2) var(--gg-3) calc(var(--gg-2) + env(safe-area-inset-bottom));
    background:var(--gg-surface);border-top:1px solid var(--gg-line-2);box-shadow:0 -2px 12px rgba(22,33,29,.06)}
  .gg-buybar__price{font-family:var(--gg-font-mono);font-weight:600;font-size:var(--gg-t-lg);
    color:var(--gg-ink);white-space:nowrap}
  .gg-buybar .gg-b{flex:1;min-height:46px;padding:11px 14px}
  body.gg-has-buybar{padding-bottom:78px}
}
@media (min-width:600px) and (max-width:999.98px){
  .wc-block-components-sidebar-layout{flex-direction:column}
  .gg-trust{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:1000px){.gg-buybar{display:none}}

/* Every interactive thing clears 44x44 even where the visual box is smaller. */
a.gg-tap,.gg-tap{position:relative}
.gg-tap::after{content:"";position:absolute;inset:50% 0 0 50%;
  width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;
    scroll-behavior:auto!important}
}
@media print{.gg-buybar,.gg-ad,.ct-breadcrumbs{display:none!important}}

/* ---------- 16. RECONCILIATION ---------------------------------
   style.css accumulated two independent chip/flash/condition
   definitions during the build. Two systems for one component is
   exactly what makes a storefront read as basic, so this block
   collapses them onto the token scale rather than leaving the
   cascade to pick a winner property by property.
   --------------------------------------------------------------- */
.gg-chip{border:0;background:#F1F3F2;font-family:var(--gg-font-mono);
  font-size:var(--gg-t-mono);padding:4px 8px;border-radius:var(--gg-r-chip);line-height:1.3}
.gg-chip--grade{border:0;background:var(--gg-brand);color:#fff}
.gg-chip--batt{border:0;background:var(--gg-brand-soft);color:var(--gg-brand)}
/* .gg-flash is the older name for .gg-badge — same geometry, one look. */
.gg-flash{font-family:var(--gg-font-mono);font-size:10px;font-weight:600;letter-spacing:.08em;
  padding:4px 7px;border-radius:var(--gg-r-chip);top:var(--gg-2);left:var(--gg-2)}
.gg-flash--grade{background:var(--gg-ink);color:#fff}
/* Sold-out reads as unavailable, not as an error. Alert red is reserved
   for things the buyer did wrong, never for stock state. */
.gg-flash--out{background:var(--gg-surface-2);color:var(--gg-muted);border:1px solid var(--gg-line-2)}
.gg-condition{border-radius:var(--gg-r-card);padding:var(--gg-4) var(--gg-5);margin:var(--gg-5) 0}
.gg-condition__rows{grid-template-columns:minmax(8rem,auto) 1fr;gap:var(--gg-2) var(--gg-5);
  font-size:var(--gg-t-base)}
.gg-condition__rows dt{color:var(--gg-secondary)}
.gg-condition__rows dd{font-family:var(--gg-font-mono);font-weight:500;color:var(--gg-ink)}
.gg-price__now{font-family:var(--gg-font-mono);font-size:var(--gg-t-2xl);font-weight:600;
  letter-spacing:-.02em}
.gg-price__mrp{font-family:var(--gg-font-mono);font-size:var(--gg-t-sm);text-transform:none;
  letter-spacing:0;color:var(--gg-muted-2)}
.gg-price__off{font-family:var(--gg-font-mono);font-size:var(--gg-t-xs);border-radius:var(--gg-r-chip);
  background:#E4F3EC;color:#0A6647;padding:2px 6px;letter-spacing:0}

/* ===============================================================
   HEADER + FOOTER — Blocksy builder chrome.
   The builder owns layout and spacing (theme mods); this file only
   styles the HTML that lives inside the `text` / widget items,
   which the builder cannot reach.
   =============================================================== */

/* --- top bar: the trust strip + shop address ------------------- */
.gg-topstrip{
  display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;
  font-size:12.5px;line-height:1.3;letter-spacing:.005em;
}
.gg-topstrip__i{display:inline-flex;align-items:center;white-space:nowrap}
.gg-topstrip__i + .gg-topstrip__i::before{
  content:"";width:3px;height:3px;border-radius:50%;
  background:currentColor;opacity:.45;margin-right:18px;margin-left:-18px;
}
.gg-topstrip__i b{font-weight:600;margin-right:.3em}
.gg-topstrip__i--free{opacity:.85}
.gg-addr a{text-decoration:none;font-size:12.5px;white-space:nowrap}
.gg-addr a:hover{text-decoration:underline}

/* The strip is the single most useful line on a phone, so it scrolls
   horizontally rather than wrapping to three lines and eating the fold. */
@media (max-width:999.98px){
  header#header [data-row="top"] .ct-container{overflow:hidden}
  .gg-topstrip{
    flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;font-size:12px;
  }
  .gg-topstrip::-webkit-scrollbar{display:none}
  .gg-topstrip__i--free{display:none}
}
@media (max-width:1199.98px){.gg-addr{display:none}}

/* --- main bar ------------------------------------------------- */
/* The search box is the widest thing in the row on desktop; cap it so the
   logo and the account cluster keep their optical margins. */
header#header [data-row="middle"] [data-id="search-input"]{max-width:660px;width:100%}
header#header .gg-track{white-space:nowrap}

/* Sticky main bar: hairline instead of a heavy shadow until it moves. */
header#header [data-sticky] [data-row="middle"]{
  border-bottom:1px solid var(--gg-line);
}

/* --- footer trust bar (top row) -------------------------------- */
.gg-fbar{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 28px;
}
.gg-fbar__i{display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:1.45}
.gg-fbar__i strong{color:var(--gg-ink);font-weight:650;font-size:13.5px}
.gg-fbar__i span{color:var(--gg-muted)}
@media (max-width:899.98px){.gg-fbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:519.98px){.gg-fbar{grid-template-columns:1fr;gap:14px}}

/* --- footer link columns --------------------------------------- */
.ct-footer .widget-title{margin:0 0 14px}
.gg-flist{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.gg-flist li{margin:0}
.gg-flist a{
  text-decoration:none;font-size:14px;line-height:1.45;color:var(--gg-secondary);
}
.gg-flist a:hover,.gg-flist a:focus-visible{color:var(--gg-ink);text-decoration:underline}

/* --- footer contact block -------------------------------------- */
.gg-contact{font-style:normal;font-size:14px;line-height:1.6;color:var(--gg-secondary);margin:0 0 14px}
.gg-contact strong{color:var(--gg-ink)}
.gg-contact-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:7px;font-size:13.5px}
.gg-contact-list li{display:grid;grid-template-columns:78px 1fr;gap:10px;align-items:baseline}
.gg-contact-list span{
  font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--gg-muted-2);
}
.gg-contact-list a{color:var(--gg-secondary);text-decoration:none}
.gg-contact-list a:hover{color:var(--gg-ink);text-decoration:underline}
/* Placeholders the owner still has to supply are marked, not hidden. */
.gg-contact-list em,.gg-legal em{
  font-style:normal;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11.5px;
  padding:1px 5px;border:1px dashed var(--gg-line-3);border-radius:3px;color:var(--gg-muted-2);
}
.gg-contact-note{font-size:12.5px;line-height:1.55;color:var(--gg-muted);margin:0}

/* --- bottom bar: the statutory line ---------------------------- */
.gg-legal{display:block;color:var(--gg-muted);max-width:78ch}
.gg-legal strong{color:var(--gg-body)}
.gg-legal a{color:var(--gg-secondary)}
.ct-footer [data-row="bottom"] .ct-footer-menu a{font-size:12.5px}

/* --- mega menu ------------------------------------------------- */
.ct-column-heading > .ct-menu-link,
.ct-column-heading > span{
  font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10.5px!important;letter-spacing:.12em;text-transform:uppercase;
  color:var(--gg-muted-2)!important;
}
.ct-mega-menu-columns-4 .sub-menu .sub-menu a{font-size:14px}

/* Menu badge ("Cash today" on Sell your device). */
.ct-menu-badge{letter-spacing:.02em}

/* ---------------------------------------------------------------
   PAGE COPY — long-form policy, FAQ, tracking, 404, thank-you.
   Added by the pages-content pass. Measure is capped at 68ch so a
   policy page is readable; the tables inside them are not.
   --------------------------------------------------------------- */
.gg-lede{
  font-size:clamp(1.0625rem,0.98rem + 0.42vw,1.25rem);
  line-height:1.55;
  color:var(--gg-ink);
  max-width:68ch;
}
.entry-content > p,
.entry-content > ul,
.entry-content > ol{max-width:68ch}
.entry-content h2{margin-top:2.25em}
.entry-content h3{margin-top:1.75em}

/* The statute citation under a policy heading. It is deliberately quiet:
   the requirement is evidence, not a trust badge. */
.gg-note{
  max-width:68ch;
  font-size:.8125rem;
  line-height:1.6;
  color:var(--gg-muted);
  border-left:2px solid var(--gg-line-2);
  padding:.5rem 0 .5rem .9rem;
  margin-block:1.25rem;
}
.gg-strip{
  max-width:none;
  font-size:.875rem;
  background:var(--gg-brand-soft);
  color:var(--gg-ink);
  padding:.7rem .9rem;
  border-radius:6px;
}

/* Wide content must scroll inside itself, never push the page sideways. */
.entry-content .wp-block-table{overflow-x:auto}
.entry-content .wp-block-table table{min-width:34rem;font-size:.9375rem}
.entry-content .wp-block-table th{
  background:var(--gg-surface-2);
  color:var(--gg-ink);
  font-weight:600;
  text-align:left;
}
.entry-content .wp-block-table td,
.entry-content .wp-block-table th{border-color:var(--gg-line);padding:.6rem .75rem}

/* FAQ accordion — core <details>, no JavaScript, and it stays open for
   in-page search because the browser expands a match on Ctrl+F. */
.wp-block-details{
  max-width:68ch;
  border:1px solid var(--gg-line);
  border-radius:8px;
  background:var(--gg-surface);
  padding:0;
  margin-block:.6rem;
}
.wp-block-details > summary{
  cursor:pointer;
  padding:.95rem 1.1rem;
  font-weight:600;
  color:var(--gg-ink);
  line-height:1.4;
  list-style-position:outside;
}
.wp-block-details > summary:hover{background:var(--gg-surface-2)}
.wp-block-details > summary:focus-visible{outline:2px solid var(--gg-brand);outline-offset:2px}
.wp-block-details[open] > summary{border-bottom:1px solid var(--gg-line)}
.wp-block-details > :not(summary){padding-inline:1.1rem}
.wp-block-details > :not(summary):last-child{padding-bottom:1rem}

/* Guest order tracking */
.gg-track-form{max-width:26rem}
.gg-track-form label{display:block;font-weight:600;margin-bottom:.3rem;color:var(--gg-ink)}
.gg-track-form input{
  width:100%;
  padding:.7rem .8rem;
  border:1.5px solid var(--gg-line-3);
  border-radius:6px;
  font:inherit;
  font-variant-numeric:tabular-nums;
}
.gg-track-form input:focus{border-color:var(--gg-brand);outline:2px solid var(--gg-brand-soft)}
.gg-track-error{
  max-width:40rem;
  background:#FCEDEB;
  border-left:3px solid var(--gg-alert);
  color:var(--gg-ink);
  padding:.8rem 1rem;
  border-radius:4px;
}
.gg-track-result{
  max-width:40rem;
  border:1px solid var(--gg-line);
  border-radius:10px;
  padding:1.25rem 1.4rem;
  background:var(--gg-surface);
}
.gg-track-result h2{margin-top:0;font-family:var(--gg-mono,ui-monospace,monospace)}
.gg-track-status{color:var(--gg-verified)}
.gg-tracking{
  font-variant-numeric:tabular-nums;
  background:var(--gg-brand-soft);
  padding:.7rem .9rem;
  border-radius:6px;
}

/* Order received + 404 */
.gg-thankyou{
  border:1px solid var(--gg-line);
  border-left:3px solid var(--gg-verified);
  border-radius:8px;
  padding:1.25rem 1.5rem;
  margin-block:1.5rem;
  background:var(--gg-surface);
}
.gg-thankyou h2{margin-top:0}
.gg-404{padding-block:3rem 4rem}
.gg-404__h1{font-size:clamp(1.75rem,1.4rem + 1.6vw,2.5rem);margin-bottom:.4rem}
.gg-404 ul{max-width:68ch}
.gg-404__search{margin-top:2rem;max-width:26rem}

@media (max-width:640px){
  .entry-content .wp-block-table table{min-width:30rem}
  .wp-block-details > summary{padding:.85rem .95rem}
}
