/*
 * Jithr — Storefront (loud-ecommerce) stylesheet.
 * Sourced from the Rasin design spec; tokens mirror theme.json exactly.
 * Loaded by functions.php on front-end + editor.
 */
/* ============================================================
   RASIN — homepage stylesheet (WordPress / Gutenberg + theme.json)
   All tokens below mirror theme.json preset/custom names exactly.
   Build everything on top of these — do not invent a parallel set.
   ============================================================ */
:root{
  /* --- color presets ---
     Not redeclared here: WordPress outputs them from theme.json merged with the
     site's global styles. Redeclaring them in this later stylesheet would undo a
     customer's brand accent. */

  /* Font, size, spacing, radius and shadow presets are not redeclared either:
     theme.json and the active style variation (skin) own them. */

  /* --- derived accent tints (NOT theme.json tokens — add to theme.json custom if reused) --- */
  --wp--custom--accent-soft:color-mix(in oklab, var(--wp--preset--color--accent) 12%, var(--wp--preset--color--surface));
  --wp--custom--accent-line:color-mix(in oklab, var(--wp--preset--color--accent) 32%, var(--wp--preset--color--surface));
  --wp--custom--accent-text:color-mix(in oklab, var(--wp--preset--color--accent) 72%, var(--wp--preset--color--ink));
  --wp--custom--ring:color-mix(in oklab, var(--wp--preset--color--accent) 38%, transparent);

}

*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--wp--preset--color--base);
  color:var(--wp--preset--color--text);
  font-family:var(--wp--preset--font-family--sans);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}

/* Design sections are built from core Group blocks, whose default "flow" layout
   adds a block-gap margin above every child. The design sets its own spacing,
   so those margins are reset inside design sections (low specificity: any
   design rule below still wins). Post content keeps the normal flow gap. */
:where(.utility-bar,.site-header,.site-footer,.container) .is-layout-flow:where(:not(.wp-block-post-content,.entry-content)) > *,
:where(.utility-bar,.site-header,.site-footer,.container).is-layout-flow > *{margin-block:0;}
/* Template level: header, main and footer sit flush; full-bleed mains hold design sections only. */
:where(.wp-site-blocks) > *{margin-block-start:0;}
main.alignfull.is-layout-flow > *,main.alignfull > .is-layout-flow:where(.wp-block-woocommerce-product-collection,.wp-block-post-content) > *{margin-block-start:0;}
a{text-decoration:none;color:inherit;}
::selection{background:var(--wp--custom--accent-soft);}

/* shared layout primitive: every content section centers an 1180px container */
.container{
  max-width:1180px;
  margin:0 auto;
  padding-inline:var(--wp--preset--spacing--60);
}

/* image placeholders — gray slots that keep each slot's exact ratio/radius */
.ph{
  background:var(--wp--preset--color--surface-alt);
  display:flex;align-items:center;justify-content:center;
  color:var(--wp--preset--color--muted);
  font-family:var(--wp--preset--font-family--mono);
  font-size:.75rem;letter-spacing:.06em;text-align:center;
}

/* ---- buttons (core/button) ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:inherit;font-weight:600;cursor:pointer;border:none;
  border-radius:var(--wp--custom--radius--medium);
  transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,opacity .2s ease;
}
.btn-primary{
  background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);
  font-size:.9375rem;padding:14px 28px;box-shadow:var(--wp--preset--shadow--small);
}
.btn-primary:hover{background:var(--wp--preset--color--accent-strong);}
.btn-ghost{
  background:transparent;color:var(--wp--preset--color--ink);
  font-size:.9375rem;padding:14px 22px;border:1px solid var(--wp--preset--color--line);
}
.btn-ghost:hover{border-color:var(--wp--preset--color--ink);}
.btn-dark{
  background:var(--wp--preset--color--ink);color:var(--wp--preset--color--base);
  font-size:.9375rem;padding:13px 26px;
}
.btn-dark:hover{opacity:.88;}

/* shared section rhythm */
.section{padding-block:var(--wp--preset--spacing--80);}          /* 48px */
.section--divided{border-top:1px solid var(--wp--preset--color--line);}
.section-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  flex-wrap:wrap;gap:12px;margin-bottom:28px;
}
.eyebrow{
  font-family:var(--wp--preset--font-family--mono);
  font-size:.75rem;color:var(--wp--custom--accent-text);
  letter-spacing:.1em;margin-bottom:8px;
}
.section-title{
  font-size:1.75rem;font-weight:700;color:var(--wp--preset--color--ink);margin:0;
}
.link-more{
  font-size:var(--wp--preset--font-size--small);font-weight:600;
  color:var(--wp--custom--accent-text);cursor:pointer;
}

/* ============================================================
   1. HEADER  —  STATIC
   ============================================================ */
/* dark top utility bar */
.utility-bar{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--base);}
.utility-bar .container{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;flex-wrap:wrap;
  padding-block:9px;font-size:.78125rem;
}
.utility-links{display:flex;align-items:center;gap:18px;}
.utility-links span{cursor:pointer;opacity:.82;}
.utility-links span:hover{opacity:1;}

/* main header bar (sticky) */
.site-header{
  position:sticky;top:0;z-index:50;
  background:color-mix(in oklab, var(--wp--preset--color--surface) 88%, transparent);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--wp--preset--color--line);
}
.header-inner{
  display:flex;align-items:center;gap:28px;
  padding-block:16px;
}
.brand{display:flex;align-items:center;gap:11px;flex-shrink:0;}
.brand-mark{
  width:34px;height:34px;border-radius:var(--wp--custom--radius--small);
  background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:1.125rem;box-shadow:var(--wp--preset--shadow--small);
}
.brand-name{font-size:var(--wp--preset--font-size--large);font-weight:700;color:var(--wp--preset--color--ink);}
.brand-logo img,img.brand-logo{display:block;height:40px;width:auto;max-width:160px;object-fit:contain;}

.header-inner .search{
  flex:1;display:flex;align-items:center;max-width:560px;
  background:var(--wp--preset--color--surface-alt);
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--medium);overflow:hidden;
}
.header-inner .search:focus-within{border-color:var(--wp--preset--color--accent);box-shadow:0 0 0 4px var(--wp--custom--ring);}
.search-icon{padding-inline:14px;color:var(--wp--preset--color--muted);font-size:.9375rem;}
.header-inner .search input{
  font:inherit;flex:1;border:none;background:transparent;
  padding-block:11px;font-size:.9375rem;outline:none;color:var(--wp--preset--color--ink);
}

.header-actions{
  display:flex;align-items:center;gap:22px;flex-shrink:0;
  font-size:.8125rem;color:var(--wp--preset--color--text);
}
.header-actions .action{display:flex;align-items:center;gap:7px;cursor:pointer;}
.cart-btn{
  display:inline-flex;align-items:center;gap:8px;font:inherit;cursor:pointer;border:none;
  background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);
  padding:9px 16px;border-radius:var(--wp--custom--radius--medium);font-weight:600;font-size:.8125rem;
  transition:background-color .2s ease;
}
.cart-btn:hover{background:var(--wp--preset--color--accent-strong);}
.cart-count{background:color-mix(in oklab,var(--wp--preset--color--accent-contrast) 25%,transparent);border-radius:999px;padding:0 7px;font-size:.75rem;}

/* category nav row */
.site-nav{border-top:1px solid var(--wp--preset--color--line);}
.site-nav .container{
  display:flex;align-items:center;gap:26px;height:46px;
  font-size:var(--wp--preset--font-size--small);font-weight:500;
}
.site-nav a{color:var(--wp--preset--color--text);cursor:pointer;white-space:nowrap;}
.site-nav a:hover{color:var(--wp--custom--accent-text);}
.site-nav .nav-promo{color:var(--wp--custom--accent-text);font-weight:600;margin-inline-start:auto;}

/* ============================================================
   2. HERO  —  STATIC
   ============================================================ */
.hero{
  display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;
  padding-block:var(--wp--preset--spacing--90) 3.5rem;  /* 64px top / 56px bottom */
}
.hero-title{
  font-size:3.375rem;line-height:1.15;font-weight:700;   /* 54px */
  color:var(--wp--preset--color--ink);margin:0 0 22px;
}
.hero-text{
  font-size:1.125rem;line-height:1.8;                     /* 18px */
  color:var(--wp--preset--color--text);margin:0 0 32px;max-width:480px;
}
.hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:36px;}
.hero-stats{display:flex;gap:32px;flex-wrap:wrap;}
.stat-num{font-size:var(--wp--preset--font-size--x-large);font-weight:700;color:var(--wp--preset--color--ink);}
.stat-label{font-size:.8125rem;color:var(--wp--preset--color--muted);}
.stat-rule{width:1px;background:var(--wp--preset--color--line);}

.hero-media{position:relative;}
.hero-image{
  aspect-ratio:4/3;border-radius:var(--wp--custom--radius--large);
  border:1px solid var(--wp--preset--color--line);overflow:hidden;
}
.discount-badge{
  position:absolute;bottom:-18px;inset-inline-start:-18px;
  background:var(--wp--preset--color--surface);
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--medium);
  box-shadow:var(--wp--preset--shadow--large);
  padding:16px 20px;display:flex;align-items:center;gap:14px;
}
.discount-badge .pct{
  width:42px;height:42px;border-radius:var(--wp--custom--radius--small);
  background:var(--wp--custom--accent-soft);color:var(--wp--custom--accent-text);
  display:flex;align-items:center;justify-content:center;font-weight:700;
}
.discount-badge .b-title{font-size:.9375rem;font-weight:700;color:var(--wp--preset--color--ink);}
.discount-badge .b-sub{font-size:.75rem;color:var(--wp--preset--color--muted);}

/* ============================================================
   3. CATEGORIES  —  STATIC  (6-up grid; tiles repeat)
   ============================================================ */
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:var(--wp--preset--spacing--50);}
.category-tile{
  background:var(--wp--preset--color--surface);
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--large);
  padding:22px 16px;text-align:center;cursor:pointer;
  box-shadow:var(--wp--preset--shadow--small);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.category-tile:hover{border-color:var(--wp--custom--accent-line);box-shadow:var(--wp--preset--shadow--medium);}
.category-badge{
  width:56px;height:56px;border-radius:999px;
  background:var(--wp--custom--accent-soft);color:var(--wp--custom--accent-text);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 14px;font-size:var(--wp--preset--font-size--large);font-weight:700;
}
.category-name{font-size:var(--wp--preset--font-size--small);font-weight:600;color:var(--wp--preset--color--ink);margin-bottom:3px;}
.category-count{font-family:var(--wp--preset--font-family--mono);font-size:.6875rem;color:var(--wp--preset--color--muted);}

/* ============================================================
   4. FEATURED PRODUCTS  —  DYNAMIC / WooCommerce
   The .product-card block below is the SINGLE unit repeated inside
   the WooCommerce product loop. Everything else here is static chrome.
   ============================================================ */
.filter-pills{display:flex;gap:8px;}
.pill{
  font:inherit;font-weight:600;font-size:.8125rem;cursor:pointer;
  border:1px solid var(--wp--preset--color--line);
  background:var(--wp--preset--color--surface);color:var(--wp--preset--color--text);
  padding:8px 16px;border-radius:999px;transition:all .2s ease;
}
.pill:hover{border-color:var(--wp--custom--accent-line);}
.pill.is-active{
  border-color:var(--wp--preset--color--accent);
  background:var(--wp--custom--accent-soft);
  color:var(--wp--custom--accent-text);
}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;} /* 20px gap */

/* ---- SINGLE PRODUCT CARD (WooCommerce loop unit) ---- */
.product-card{
  background:var(--wp--preset--color--surface);
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--large);
  overflow:hidden;box-shadow:var(--wp--preset--shadow--small);
  transition:box-shadow .2s ease,border-color .2s ease;
}
.product-card:hover{box-shadow:var(--wp--preset--shadow--medium);border-color:var(--wp--custom--accent-line);}
.product-media{
  position:relative;aspect-ratio:1;
  background:var(--wp--preset--color--surface-alt);
  border-bottom:1px solid var(--wp--preset--color--line);
}
.product-badge{
  position:absolute;top:12px;inset-inline-start:12px;
  font-size:.6875rem;font-weight:600;padding:4px 9px;
  border-radius:var(--wp--custom--radius--small);
  background:var(--wp--preset--color--ink);color:var(--wp--preset--color--base);
}
.product-wish{
  position:absolute;top:10px;inset-inline-end:10px;
  width:30px;height:30px;border-radius:999px;
  background:var(--wp--preset--color--surface);
  border:1px solid var(--wp--preset--color--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--wp--preset--color--muted);font-size:.875rem;cursor:pointer;
}
.product-body{padding:var(--wp--preset--spacing--50);}
.product-brand{font-size:.6875rem;color:var(--wp--preset--color--muted);margin-bottom:8px;}
.product-name{
  font-size:.9375rem;font-weight:600;color:var(--wp--preset--color--ink);
  line-height:1.5;margin-bottom:10px;min-height:46px;
}
.product-rating{display:flex;align-items:center;gap:6px;margin-bottom:14px;font-size:.8125rem;}
.product-rating .star{color:var(--wp--preset--color--warning);}
.product-rating .score{font-weight:600;color:var(--wp--preset--color--ink);}
.product-rating .count{color:var(--wp--preset--color--muted);}
.product-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.product-price{display:flex;align-items:baseline;gap:7px;}
.product-price .now{font-size:1.125rem;font-weight:700;color:var(--wp--preset--color--ink);}
.product-price .was{font-size:.8125rem;color:var(--wp--preset--color--muted);text-decoration:line-through;}
.add-btn{
  font:inherit;font-weight:600;font-size:.8125rem;cursor:pointer;
  border:1px solid var(--wp--preset--color--line);
  background:var(--wp--preset--color--surface);color:var(--wp--preset--color--ink);
  padding:8px 14px;border-radius:var(--wp--custom--radius--medium);transition:all .2s ease;
}
.add-btn:hover{
  background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);
  border-color:var(--wp--preset--color--accent);
}
/* ---- end single product card ---- */

/* ============================================================
   5. SMART-HOME PROMO SPLIT  —  STATIC
   ============================================================ */
.promo{
  display:grid;grid-template-columns:1.1fr 1fr;
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--large);overflow:hidden;
  background:var(--wp--preset--color--surface);box-shadow:var(--wp--preset--shadow--small);
}
.promo-copy{padding:52px;display:flex;flex-direction:column;justify-content:center;}
.promo-title{font-size:2rem;font-weight:700;color:var(--wp--preset--color--ink);line-height:1.3;margin:0 0 14px;} /* 32px */
.promo-text{font-size:var(--wp--preset--font-size--medium);line-height:1.8;color:var(--wp--preset--color--text);margin:0 0 28px;max-width:420px;}
.promo-copy .btn{align-self:flex-start;}
.promo-media{
  background:var(--wp--preset--color--surface-alt);
  border-inline-start:1px solid var(--wp--preset--color--line);
  min-height:300px;
}

/* ============================================================
   6. BEST SELLERS  —  STATIC (2-col numbered cards)
   ============================================================ */
.bestseller-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--wp--preset--spacing--50);}
.bestseller-card{
  background:var(--wp--preset--color--surface);
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--large);
  padding:var(--wp--preset--spacing--50);
  display:flex;gap:var(--wp--preset--spacing--50);align-items:center;
  box-shadow:var(--wp--preset--shadow--small);transition:border-color .2s ease;
}
.bestseller-card:hover{border-color:var(--wp--custom--accent-line);}
.bestseller-rank{
  width:92px;height:92px;flex-shrink:0;
  border-radius:var(--wp--custom--radius--medium);
  background:var(--wp--preset--color--surface-alt);
  border:1px solid var(--wp--preset--color--line);
  padding:8px;
  font-family:var(--wp--preset--font-family--mono);font-size:.8125rem;font-weight:600;
  color:var(--wp--custom--accent-text);
}
.bestseller-info{flex:1;min-width:0;}
.bestseller-info .b-brand{font-size:.6875rem;color:var(--wp--preset--color--muted);margin-bottom:4px;}
.bestseller-info .b-name{font-size:.9375rem;font-weight:600;color:var(--wp--preset--color--ink);line-height:1.5;margin-bottom:6px;}
.bestseller-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.bestseller-meta .price{font-size:var(--wp--preset--font-size--medium);font-weight:700;color:var(--wp--preset--color--ink);}
.bestseller-meta .sold{font-family:var(--wp--preset--font-family--mono);font-size:.6875rem;color:var(--wp--preset--color--muted);}
.bestseller-add{
  width:40px;height:40px;flex-shrink:0;
  border-radius:var(--wp--custom--radius--medium);
  background:var(--wp--custom--accent-soft);color:var(--wp--custom--accent-text);
  border:none;font-size:var(--wp--preset--font-size--large);cursor:pointer;
  transition:background-color .2s ease,color .2s ease;
}
.bestseller-add:hover{background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);}

/* ============================================================
   7. VALUE PROPS  —  STATIC (4-up)
   ============================================================ */
.values{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;}
.value-icon{
  width:42px;height:42px;border-radius:var(--wp--custom--radius--medium);
  background:var(--wp--custom--accent-soft);color:var(--wp--custom--accent-text);
  display:flex;align-items:center;justify-content:center;font-size:1.125rem;margin-bottom:14px;
}
.value-title{font-size:var(--wp--preset--font-size--medium);font-weight:600;color:var(--wp--preset--color--ink);margin-bottom:6px;}
.value-desc{font-size:.84375rem;line-height:1.7;color:var(--wp--preset--color--muted);}

/* ============================================================
   8. TESTIMONIALS  —  STATIC (3-up star cards)
   ============================================================ */
.testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;}
.testimonial{
  background:var(--wp--preset--color--surface);
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--large);
  padding:28px;box-shadow:var(--wp--preset--shadow--small);
}
.testimonial-stars{font-size:var(--wp--preset--font-size--small);color:var(--wp--preset--color--warning);margin-bottom:14px;}
.testimonial-quote{font-size:.9375rem;line-height:1.8;color:var(--wp--preset--color--text);margin:0 0 22px;}
.testimonial-author{display:flex;align-items:center;gap:12px;}
.testimonial-avatar{
  width:42px;height:42px;border-radius:999px;
  background:var(--wp--custom--accent-soft);color:var(--wp--custom--accent-text);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:var(--wp--preset--font-size--medium);
}
.testimonial-name{font-size:var(--wp--preset--font-size--small);font-weight:600;color:var(--wp--preset--color--ink);}
.testimonial-city{font-size:.75rem;color:var(--wp--preset--color--muted);}

/* ============================================================
   9. NEWSLETTER  —  STATIC
   ============================================================ */
.newsletter{
  background:var(--wp--preset--color--surface-alt);
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--large);
  padding:var(--wp--preset--spacing--80);
  display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center;
}
.newsletter-title{font-size:1.625rem;font-weight:700;color:var(--wp--preset--color--ink);margin:0 0 10px;} /* 26px */
.newsletter-text{font-size:.9375rem;line-height:1.7;color:var(--wp--preset--color--text);margin:0;max-width:440px;}
.newsletter-form{display:flex;gap:10px;min-width:380px;}
.newsletter-form input{
  font:inherit;flex:1;border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--medium);padding:13px 16px;font-size:.9375rem;
  outline:none;background:var(--wp--preset--color--surface);color:var(--wp--preset--color--ink);
}
.newsletter-form input:focus{border-color:var(--wp--preset--color--accent);box-shadow:0 0 0 4px var(--wp--custom--ring);}
.newsletter-form .btn{white-space:nowrap;padding:13px 26px;}

/* ============================================================
   10. FOOTER  —  STATIC
   ============================================================ */
.site-footer{border-top:1px solid var(--wp--preset--color--line);background:var(--wp--preset--color--surface);}
.site-footer .container{padding-block:56px 32px;}
.footer-grid{
  display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px;
  padding-bottom:36px;border-bottom:1px solid var(--wp--preset--color--line);
}
.footer-brand .brand{margin-bottom:16px;}
.footer-brand-mark{
  width:30px;height:30px;border-radius:var(--wp--custom--radius--small);
  background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:var(--wp--preset--font-size--medium);
}
.footer-about{font-size:var(--wp--preset--font-size--small);line-height:1.8;color:var(--wp--preset--color--muted);margin:0 0 18px;max-width:300px;}
.social{display:flex;gap:8px;}
.social-link{
  width:36px;height:36px;border-radius:var(--wp--custom--radius--small);
  border:1px solid var(--wp--preset--color--line);
  display:flex;align-items:center;justify-content:center;
  font-size:.875rem;color:var(--wp--preset--color--text);cursor:pointer;transition:all .2s ease;
}
.social-link:hover{border-color:var(--wp--preset--color--accent);color:var(--wp--custom--accent-text);}
.footer-col-title{font-size:.8125rem;font-weight:600;color:var(--wp--preset--color--ink);margin-bottom:14px;}
.footer-col a{display:block;font-size:var(--wp--preset--font-size--small);margin-bottom:11px;color:var(--wp--preset--color--muted);cursor:pointer;}
.footer-col a:hover{color:var(--wp--custom--accent-text);}
.footer-bottom{
  padding-top:24px;display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:14px;
}
.copyright{font-size:.8125rem;color:var(--wp--preset--color--muted);}
.payments{display:flex;gap:8px;align-items:center;}
.payments-label{font-size:.75rem;color:var(--wp--preset--color--muted);margin-inline-end:6px;}
.pay-mark{
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--small);
  padding:6px 11px;font-family:var(--wp--preset--font-family--mono);
  font-size:.6875rem;font-weight:600;color:var(--wp--preset--color--text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .hero{grid-template-columns:1fr;gap:40px;}
  .category-grid{grid-template-columns:repeat(3,1fr);}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .promo{grid-template-columns:1fr;}
  .promo-media{border-inline-start:none;border-top:1px solid var(--wp--preset--color--line);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .newsletter{grid-template-columns:1fr;}
  .newsletter-form{min-width:0;}
}
@media (max-width:640px){
  .header-inner{flex-wrap:wrap;}
  .header-inner .search{order:3;flex-basis:100%;max-width:none;}
  .site-nav .container{overflow-x:auto;}
  .hero-title{font-size:2.5rem;}                       /* 40px */
  .category-grid{grid-template-columns:repeat(2,1fr);}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .bestseller-grid{grid-template-columns:1fr;}
  .values{grid-template-columns:1fr 1fr;}
  .testimonials{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .promo-copy{padding:32px;}
  .newsletter{padding:var(--wp--preset--spacing--70);}
}

/* ============================================================
   TOKEN ALIASES — short names used by the design exports
   resolve to the theme.json tokens.
   ============================================================ */
:root{
  --bg:var(--wp--preset--color--base);
  --surface:var(--wp--preset--color--surface);
  --surface-2:var(--wp--preset--color--surface-alt);
  --ink:var(--wp--preset--color--ink);
  --text:var(--wp--preset--color--text);
  --muted:var(--wp--preset--color--muted);
  --line:var(--wp--preset--color--line);
  --accent:var(--wp--preset--color--accent);
  --accent-strong:var(--wp--preset--color--accent-strong);
  --accent-contrast:var(--wp--preset--color--accent-contrast);
  --accent-soft:var(--wp--custom--accent-soft);
  --accent-line:var(--wp--custom--accent-line);
  --accent-text:var(--wp--custom--accent-text);
  --ring:var(--wp--custom--ring);
  --r-sm:var(--wp--custom--radius--small);
  --r-md:var(--wp--custom--radius--medium);
  --r-lg:var(--wp--custom--radius--large);
  --shadow-sm:var(--wp--preset--shadow--small);
  --shadow-md:var(--wp--preset--shadow--medium);
  --shadow-lg:var(--wp--preset--shadow--large);
  --mono:var(--wp--preset--font-family--mono);
}

/* ============================================================
   GLOBAL CORE-BLOCK POLISH — any core Gutenberg block/widget
   added later renders on-brand (theme.json covers color/type/buttons).
   ============================================================ */
.wp-block-search__input,
input[type="text"],input[type="email"],input[type="tel"],input[type="url"],
input[type="search"],input[type="number"],input[type="password"],textarea,select{
  font-family:inherit;font-size:var(--wp--preset--font-size--medium);color:var(--wp--preset--color--ink);
  background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--medium);padding:.7rem 1rem;outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
input:focus,textarea:focus,select:focus,.wp-block-search__input:focus{
  border-color:var(--wp--preset--color--accent);box-shadow:0 0 0 4px var(--wp--custom--ring);
}
.wp-block-table table{border-collapse:collapse;width:100%;font-size:var(--wp--preset--font-size--small);}
.wp-block-table th,.wp-block-table td{border:1px solid var(--wp--preset--color--line);padding:.7rem 1rem;text-align:start;}
.wp-block-table thead th{background:var(--wp--preset--color--surface-alt);color:var(--wp--preset--color--ink);font-weight:600;}
.wp-block-table tbody tr:nth-child(even){background:var(--wp--preset--color--surface-alt);}
.wp-block-quote{border-inline-start:3px solid var(--wp--preset--color--accent);padding-inline-start:var(--wp--preset--spacing--60);margin-inline:0;color:var(--wp--preset--color--ink);}
.wp-block-quote cite,.wp-block-pullquote cite{color:var(--wp--preset--color--muted);font-style:normal;}
.wp-block-pullquote{border-top:1px solid var(--wp--preset--color--line);border-bottom:1px solid var(--wp--preset--color--line);padding:var(--wp--preset--spacing--70) 0;}
.wp-block-list li{margin-block:.35em;}
.wp-block-separator:not(.is-style-wide):not(.is-style-dots){border-color:var(--wp--preset--color--line);}
.wp-block-image img{border-radius:var(--wp--custom--radius--medium);}
.wp-block-image figcaption,figcaption{color:var(--wp--preset--color--muted);font-size:var(--wp--preset--font-size--small);}
.wp-block-code,.wp-block-preformatted{background:var(--wp--preset--color--surface-alt);border:1px solid var(--wp--preset--color--line);border-radius:var(--wp--custom--radius--small);padding:var(--wp--preset--spacing--50);font-family:var(--wp--preset--font-family--mono);font-size:var(--wp--preset--font-size--small);}
.wp-block-navigation a:hover{color:var(--wp--custom--accent-text);}

/* ============================================================
   BLOCK MAPPING — the design classes applied to core / WooCommerce
   block markup (homepage sections, header, footer, product cards).
   ============================================================ */

/* header template part: let the sticky bar stick to the page, not to <header> */
header.wp-block-template-part:has(> .site-header),
header.wp-block-template-part:has(> .utility-bar){display:contents;}
.utility-bar p{margin:0;}
.utility-links a{opacity:.82;color:inherit;}
.utility-links a:hover{opacity:1;text-decoration:none;}

/* brand: logo or letter mark + site title */
.brand .wp-block-site-logo{line-height:0;}
.brand .brand-mark,.brand .footer-brand-mark{margin:0;}
.brand .brand-name{margin:0;line-height:1.3;}
.brand .brand-name a{color:inherit;text-decoration:none;}
.site-footer .brand .wp-block-site-logo img{height:34px;}

/* product search (core/search, product variation) */
.wp-block-search.search{flex:1;max-width:560px;background:none;border:0;overflow:visible;}
.wp-block-search.search .wp-block-search__inside-wrapper{
  display:flex;align-items:center;padding:0;width:100%;
  background:var(--wp--preset--color--surface-alt);
  border:1px solid var(--wp--preset--color--line);
  border-radius:var(--wp--custom--radius--medium);overflow:hidden;
}
.wp-block-search.search .wp-block-search__inside-wrapper:focus-within{border-color:var(--wp--preset--color--accent);box-shadow:0 0 0 4px var(--wp--custom--ring);}
.wp-block-search.search .wp-block-search__input{
  flex:1;border:0;background:transparent;box-shadow:none;border-radius:0;
  padding:11px 4px;font-size:.9375rem;color:var(--wp--preset--color--ink);min-width:0;
}
.wp-block-search.search .wp-block-search__input:focus{box-shadow:none;border:0;}
.wp-block-search.search .wp-block-search__button{
  order:-1;margin:0;padding:0 14px;background:transparent;border:0;
  color:var(--wp--preset--color--muted);box-shadow:none;
}
.wp-block-search.search .wp-block-search__button svg{width:20px;height:20px;fill:currentColor;}

/* header actions: account + mini cart */
.header-actions .wc-block-customer-account a{display:flex;align-items:center;gap:7px;color:var(--wp--preset--color--text);font-size:.8125rem;text-decoration:none;}
.header-actions .wc-block-customer-account svg{width:20px;height:20px;}
.header-actions .wp-block-woocommerce-mini-cart.cart-btn{padding:0;}
.cart-btn .wc-block-mini-cart__button{
  display:inline-flex;align-items:center;gap:8px;padding:9px 16px;
  color:var(--wp--preset--color--accent-contrast);font:inherit;font-weight:600;font-size:.8125rem;
}
.cart-btn .wc-block-mini-cart__button:hover{opacity:1;}
.cart-btn .wc-block-mini-cart__icon{width:22px;height:22px;}
.cart-btn .wc-block-mini-cart__badge{
  background:var(--wp--preset--color--accent-contrast);color:var(--wp--preset--color--accent);
  border:0;font-weight:700;
}
.cart-btn .wc-block-mini-cart__amount{display:none;}

/* category row: core/navigation */
.site-nav .wp-block-navigation{flex:1;font-size:var(--wp--preset--font-size--small);font-weight:500;}
.site-nav .wp-block-navigation__container{gap:26px;width:100%;flex-wrap:nowrap;}
.site-nav .wp-block-navigation-item__content{color:var(--wp--preset--color--text);white-space:nowrap;}
.site-nav .wp-block-navigation-item__content:hover{color:var(--wp--custom--accent-text);text-decoration:none;}
.site-nav .wp-block-navigation-item.nav-promo{margin-inline-start:auto;}
.site-nav .nav-promo .wp-block-navigation-item__content{color:var(--wp--custom--accent-text);font-weight:600;}

/* buttons: core/button with the design's button classes */
.wp-block-button.btn-primary > .wp-block-button__link,
.wp-block-button.btn-ghost > .wp-block-button__link,
.wp-block-button.btn-dark > .wp-block-button__link{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:inherit;font-weight:600;font-size:.9375rem;line-height:1.5;
  border-radius:var(--wp--custom--radius--medium);border:1px solid transparent;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease,opacity .2s ease;
}
.wp-block-button.btn-primary > .wp-block-button__link{background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);padding:14px 28px;box-shadow:var(--wp--preset--shadow--small);}
.wp-block-button.btn-primary > .wp-block-button__link:hover{background:var(--wp--preset--color--accent-strong);text-decoration:none;}
.wp-block-button.btn-ghost > .wp-block-button__link{background:transparent;color:var(--wp--preset--color--ink);padding:14px 22px;border-color:var(--wp--preset--color--line);}
.wp-block-button.btn-ghost > .wp-block-button__link:hover{border-color:var(--wp--preset--color--ink);text-decoration:none;}
.wp-block-button.btn-dark > .wp-block-button__link{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--base);padding:13px 26px;}
.wp-block-button.btn-dark > .wp-block-button__link:hover{opacity:.88;text-decoration:none;}
.wp-block-buttons.filter-pills{gap:8px;}
.wp-block-button.pill > .wp-block-button__link{
  font-weight:600;font-size:.8125rem;line-height:1.4;
  border:1px solid var(--wp--preset--color--line);
  background:var(--wp--preset--color--surface);color:var(--wp--preset--color--text);
  padding:8px 16px;border-radius:999px;transition:all .2s ease;
}
.wp-block-button.pill > .wp-block-button__link:hover{border-color:var(--wp--custom--accent-line);text-decoration:none;}
.wp-block-button.pill.is-active > .wp-block-button__link{border-color:var(--wp--preset--color--accent);background:var(--wp--custom--accent-soft);color:var(--wp--custom--accent-text);}

/* "more" links carry a direction-aware arrow */
.link-more a{color:var(--wp--custom--accent-text);}
.link-more a::after{content:" →";}
.rtl .link-more a::after{content:" ←";}

/* hero */
.stat-rule{align-self:stretch;min-height:40px;}
.hero-media{position:relative;}
figure.hero-image{margin:0;}
.hero-image img{width:100%;height:100%;object-fit:cover;}
.discount-badge p{margin:0;}

/* category tiles: the whole tile is the link */
.category-tile{position:relative;}
.category-name a{color:inherit;}
.category-name a::after{content:"";position:absolute;inset:0;border-radius:inherit;}
.category-name a:hover{text-decoration:none;}

/* promo image */
figure.promo-media{margin:0;min-height:300px;}
.promo-media img{width:100%;height:100%;min-height:300px;object-fit:cover;}
.promo-copy .wp-block-buttons{align-self:flex-start;}

/* product loops: WooCommerce Product Collection with the design card */
.wp-block-woocommerce-product-collection .wc-block-product-template.product-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;
  list-style:none;margin:0;padding:0;
}
.wc-block-product-template.product-grid > .wc-block-product{margin:0;padding:0;width:auto;max-width:none;}
.wc-block-product > .product-card{height:100%;display:flex;flex-direction:column;}
.product-card .product-body{flex:1;display:flex;flex-direction:column;}
.product-card .product-foot{margin-top:auto;}
.product-media .wc-block-components-product-image{margin:0;height:100%;}
.product-media .wc-block-components-product-image a{display:block;height:100%;}
.product-media .wc-block-components-product-image img{width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:0;}
.product-media .product-badge{margin:0;z-index:1;}
h3.product-name,.product-name{font-size:.9375rem;font-weight:600;line-height:1.5;}
.product-name a{color:var(--wp--preset--color--ink);}
.product-name a:hover{color:var(--wp--custom--accent-text);text-decoration:none;}
.product-price .wc-block-components-product-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;font-size:1.125rem;font-weight:700;color:var(--wp--preset--color--ink);margin:0;}
.product-price del,.bestseller-meta .price del{order:2;font-size:.8125rem;font-weight:400;color:var(--wp--preset--color--muted);}
.product-price ins,.bestseller-meta .price ins{text-decoration:none;}
.add-btn.wp-block-button{margin:0;width:auto;}
.add-btn .wp-block-button__link{
  font:inherit;font-weight:600;font-size:.8125rem;line-height:1.4;white-space:nowrap;
  border:1px solid var(--wp--preset--color--line);
  background:var(--wp--preset--color--surface);color:var(--wp--preset--color--ink);
  padding:8px 14px;border-radius:var(--wp--custom--radius--medium);transition:all .2s ease;
}
.add-btn .wp-block-button__link:hover{background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);border-color:var(--wp--preset--color--accent);}
.add-btn .added_to_cart{display:none;}

/* best sellers: ranked cards, rank from a CSS counter */
.wp-block-woocommerce-product-collection .wc-block-product-template.bestseller-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:var(--wp--preset--spacing--50);
  list-style:none;margin:0;padding:0;counter-reset:jithr-rank;
}
.wc-block-product-template.bestseller-grid > .wc-block-product{margin:0;padding:0;width:auto;max-width:none;counter-increment:jithr-rank;}
.bestseller-card{height:100%;}
.bestseller-rank::before{content:counter(jithr-rank,decimal-leading-zero);}
.rtl .bestseller-rank::before{content:"٠" counter(jithr-rank,arabic-indic);}
.bestseller-info .b-name{font-size:.9375rem;font-weight:600;line-height:1.5;margin:0 0 6px;}
.bestseller-info .b-name a{color:var(--wp--preset--color--ink);}
.bestseller-meta .price .wc-block-components-product-price{font-size:var(--wp--preset--font-size--medium);font-weight:700;color:var(--wp--preset--color--ink);display:flex;gap:6px;align-items:baseline;}
.bestseller-meta p{margin:0;}
.bestseller-add.wp-block-button{margin:0;flex-shrink:0;}
.bestseller-add .wp-block-button__link{
  width:40px;height:40px;padding:0;font-size:0;line-height:0;
  border-radius:var(--wp--custom--radius--medium);border:0;
  background:var(--wp--custom--accent-soft);color:var(--wp--custom--accent-text);
  display:flex;align-items:center;justify-content:center;
}
.bestseller-add .wp-block-button__link::before{content:"+";font-size:1.25rem;line-height:1;}
.bestseller-add .wp-block-button__link.loading::before{content:"…";}
.bestseller-add .wp-block-button__link.added::before{content:"✓";}
.bestseller-add .wp-block-button__link:hover{background:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent-contrast);}
.bestseller-add .added_to_cart{display:none;}

/* values, testimonials, newsletter */
h3.value-title{font-size:var(--wp--preset--font-size--medium);line-height:1.5;}
.testimonial-author p{margin:0;}
.newsletter .wp-block-buttons.newsletter-form{min-width:0;justify-content:flex-end;}

/* footer */
.footer-col p{margin:0;}
.wp-block-social-links.social{gap:8px;padding:0;margin:0;}
.wp-block-social-links.social .wp-social-link{
  background:transparent;color:var(--wp--preset--color--text);
  border:1px solid var(--wp--preset--color--line);border-radius:var(--wp--custom--radius--small);
  margin:0;transition:all .2s ease;
}
.wp-block-social-links.social .wp-social-link a{padding:9px;}
.wp-block-social-links.social .wp-social-link svg{width:16px;height:16px;}
.wp-block-social-links.social .wp-social-link:hover{border-color:var(--wp--preset--color--accent);color:var(--wp--custom--accent-text);transform:none;}
.footer-bottom p{margin:0;}

@media (max-width:1024px){
  .wp-block-woocommerce-product-collection .wc-block-product-template.product-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:640px){
  .wp-block-woocommerce-product-collection .wc-block-product-template.bestseller-grid{grid-template-columns:1fr;}
  .header-actions .wc-block-customer-account .label{display:none;}
  .site-nav .wp-block-navigation{overflow-x:auto;}
  .newsletter .wp-block-buttons.newsletter-form{justify-content:flex-start;}
}
.add-btn .wp-block-button__link.wc-block-components-product-button__button{min-height:0;height:auto;white-space:nowrap;margin:0;}
/* the design's button classes sit on the core/button wrapper: only the link is styled */
.wp-block-button.btn,.wp-block-button.btn-primary,.wp-block-button.btn-ghost,.wp-block-button.btn-dark,.wp-block-button.pill{background:none;border:0;padding:0;box-shadow:none;border-radius:0;font-size:inherit;}
/* grid tracks may shrink below their content on small screens (no horizontal scroll) */
.wp-block-woocommerce-product-collection .wc-block-product-template.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.category-grid{grid-template-columns:repeat(6,minmax(0,1fr));}
@media (max-width:1024px){
  .wp-block-woocommerce-product-collection .wc-block-product-template.product-grid,
  .wp-block-woocommerce-product-collection .wc-block-product-template.product-grid.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:640px){
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .product-card .product-body{padding:12px;}
  .product-card .product-foot{flex-wrap:wrap;}
  .product-card .add-btn.wp-block-button,.product-card .add-btn .wp-block-button__link{width:100%;}
  .hero-title{overflow-wrap:anywhere;}
}
