/* ==========================================================================
   চরকা / Charka — storefront stylesheet
   Every colour, radius, font and width below comes from CSS variables that
   the admin panel writes on each page load (see inc/functions.php:theme_css).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--body-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.18; margin: 0 0 .5rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hint { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }
.lead { font-size: 1.05rem; color: var(--muted); }

.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }
.section-surface { background: var(--surface); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0; }
.section-head p { color: var(--muted); margin: .5rem 0 0; }

/* --------------------------------------------------------- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: .72rem 1.5rem; border-radius: var(--btn-radius);
  font-family: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: .5rem; }
.btn-link:hover { background: none; color: var(--brand); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------ form fields ---- */
.field { display: grid; gap: .35rem; margin-bottom: 16px; }
.field > span { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .9rem; font-family: inherit; font-size: .95rem;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; border-color: var(--brand);
}
.field textarea { resize: vertical; }
.field-qty { max-width: 150px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 14px; padding: 0; }

/* ------------------------------------------------------------ alerts --- */
.alert { margin: 16px 0; padding: .8rem 1.1rem; border-radius: var(--radius); border: 1px solid #bfe4cd; background: #e9f7ee; color: #14612f; font-size: .92rem; }
.alert-error { background: #fdecec; border-color: #f3c3c3; color: #8c1c1c; }

/* ------------------------------------------------- topbar & header ----- */
.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 9px; }

.site-header { background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--border); z-index: 60; }
.site-header.is-sticky { position: sticky; top: 0; }
.header-in { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: auto; }
.brand-text { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700; color: var(--brand); }

.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.main-nav a { padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search-form { display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: var(--btn-radius); padding: 3px 6px 3px 14px; background: #fff; }
.search-form input { border: 0; outline: 0; background: none; font: inherit; font-size: .9rem; width: 150px; padding: .35rem 0; color: var(--text); }
.search-form button { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 4px; }
.cart-link { position: relative; display: flex; align-items: center; color: inherit; padding: 4px; }
.cart-count { position: absolute; top: -4px; right: -8px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #241d00; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-backdrop { display: none; }

/* -------------------------------------------------------------- hero --- */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(450px, 64vh, 660px); color: #fff; overflow: hidden; background: var(--brand-dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0a1027 0%, rgba(10,16,39,.35) 65%, rgba(10,16,39,.1) 100%); }
.hero-inner { position: relative; padding-block: 60px; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); margin-bottom: 1rem; max-width: 17ch; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 52ch; opacity: .94; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; opacity: .8; margin-bottom: .8rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-center { text-align: center; }
.hero-center .hero-inner { max-width: 780px; margin-inline: auto; }
.hero-center h1, .hero-center .hero-sub { max-width: none; margin-inline: auto; }
.hero-center .hero-buttons { justify-content: center; }

/* ------------------------------------------------------------- slider --- */
.slider { position: relative; overflow: hidden; background: var(--brand-dark); color: #fff; }
.slider .slides { position: relative; }
.slider .slide { display: none; position: relative; align-items: center; min-height: clamp(430px, 64vh, 660px); overflow: hidden; }
.slider .slide.is-active { display: flex; }
.slider-h-short .slide { min-height: clamp(300px, 44vh, 460px); }
.slider-h-tall .slide { min-height: clamp(520px, 82vh, 820px); }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0a1027 0%, rgba(10,16,39,.35) 65%, rgba(10,16,39,.1) 100%); }
.slide-inner { position: relative; padding-block: 60px; width: 100%; }
.slide-inner h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: .8rem; max-width: 18ch; }
.slide-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 52ch; opacity: .94; }
.slide-inner .btn { margin-top: 22px; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(10,16,39,.35); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.slide-arrow:hover { background: #fff; color: var(--brand); border-color: #fff; }
.slide-arrow.prev { left: 18px; }
.slide-arrow.next { right: 18px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.slide-dots button.is-active { background: #fff; width: 26px; }

/* ---------------------------------------------------------- features --- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.feature-icon { font-size: 1.9rem; line-height: 1; }
.feature h4 { margin: .7rem 0 .25rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }

/* -------------------------------------------------------- categories --- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-label { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.94); border-radius: var(--btn-radius); padding: .6rem .8rem; text-align: center; color: var(--brand); display: grid; }
.cat-label strong { font-size: .98rem; }
.cat-label small { color: var(--muted); font-size: .75rem; }

/* ------------------------------------------------------ product grid --- */
.p-grid { display: grid; gap: 24px; }
.p-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.p-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.p-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.p-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.p-card:hover { box-shadow: 0 16px 38px rgba(18,28,66,.12); transform: translateY(-3px); }
.p-card-media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--surface); }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; }
.tag-sale { left: auto; right: 12px; background: var(--accent); color: #241d00; }
.sold-out { position: absolute; inset: auto 0 0 0; background: rgba(29,35,51,.82); color: #fff; text-align: center; font-size: .78rem; padding: 6px; letter-spacing: .08em; text-transform: uppercase; }
.p-card-body { display: flex; flex-direction: column; gap: 5px; padding: 15px 16px 17px; flex: 1; }
.p-card-cat { margin: 0; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-card-title { margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.p-card-price { display: flex; align-items: baseline; gap: 9px; margin-top: 2px; }
.p-card-price strong { font-size: 1.1rem; color: var(--brand); }
.p-card-price del { font-size: .87rem; color: var(--muted); }
.p-card-form { margin-top: auto; padding-top: 10px; }

/* ------------------------------------------------------ promo banner --- */
.promo { background: var(--surface); }
.promo-in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 46px; padding-block: 64px; }
.promo-text h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.promo-text p { color: var(--muted); max-width: 48ch; }
.promo-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); }
.wide-video { width: 100%; max-height: 580px; border-radius: var(--radius); background: #000; }

/* ------------------------------------------------------ testimonials --- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.stars { color: var(--accent); letter-spacing: 3px; margin-bottom: .5rem; }
.quote p { font-size: .96rem; }
.quote cite { display: block; font-style: normal; font-weight: 600; }
.quote cite span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }

/* --------------------------------------------------------- newsletter -- */
.newsletter { background: var(--brand); color: #fff; padding: 48px 0; }
.newsletter-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.newsletter h3 { margin: 0; font-size: 1.7rem; }
.newsletter p { margin: .25rem 0 0; opacity: .85; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { border: 0; border-radius: var(--btn-radius); padding: .82rem 1.15rem; font: inherit; font-size: .93rem; min-width: 270px; }
.newsletter-form .btn { background: var(--accent); border-color: var(--accent); color: #241d00; }
.newsletter-form .btn:hover { background: #fff; border-color: #fff; color: var(--brand); }

/* ------------------------------------------------------------ footer --- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 58px 0 22px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr) 1.2fr; gap: 34px; }
.footer-logo { width: 118px; background: #fff; border-radius: 12px; padding: 9px; margin-bottom: 14px; }
.footer-about p { max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: .85rem; }
.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.socials a:hover { background: #fff; color: var(--footer-bg); border-color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .84rem; opacity: .85; }

/* ------------------------------------------------- page head / crumbs -- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 42px 0; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0; }
.page-head p { margin: .4rem 0 0; color: var(--muted); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; margin: 0 4px; }

/* -------------------------------------------------------------- shop --- */
.shop-wrap { display: grid; grid-template-columns: 235px 1fr; gap: 38px; padding: 40px 0 70px; }
.shop-aside h4 { font-size: 1rem; margin-bottom: .8rem; }
.filter-list { list-style: none; display: grid; gap: .1rem; }
.filter-list a { display: flex; justify-content: space-between; gap: 10px; padding: .45rem .6rem; border-radius: 8px; color: var(--muted); font-size: .93rem; }
.filter-list a span { opacity: .6; font-size: .8rem; }
.filter-list a:hover { background: var(--surface); color: var(--brand); }
.filter-list a.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.filter-list a.is-active span { opacity: .8; }
.shop-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.shop-bar input, .shop-bar select { padding: .6rem .9rem; border: 1px solid var(--border); border-radius: var(--btn-radius); font: inherit; font-size: .9rem; background: #fff; }
.shop-bar input { flex: 1; min-width: 180px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a { min-width: 40px; text-align: center; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 9px; font-size: .9rem; }
.pager a.is-active, .pager a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h1 { color: var(--text); }

/* ---------------------------------------------------- single product -- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-bottom: 70px; }
.gallery-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery-stage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 76px; height: 95px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: none; cursor: pointer; }
.gallery-thumbs button.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-video { width: 100%; margin-top: 14px; border-radius: var(--radius); background: #000; }
.product-info h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: .2rem 0 .7rem; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 1rem; }
.price-line strong { font-size: 1.9rem; color: var(--brand); }
.price-line del { color: var(--muted); }
.stock-pill { font-size: .78rem; padding: 3px 12px; border-radius: 999px; background: #e8f5ec; color: #14612f; }
.stock-pill.no { background: #fdecec; color: #8c1c1c; }
.buy-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 20px 0 28px; }
.buy-notes { list-style: none; margin: 16px 0 0; display: grid; gap: .3rem; font-size: .84rem; color: var(--muted); }
.product-desc { margin-top: 8px; }

/* -------------------------------------------------------------- prose -- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--brand); text-decoration: underline; }

/* --------------------------------------------------------------- cart -- */
.cart-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-head, .cart-row { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; gap: 14px; align-items: center; padding: 14px 18px; }
.cart-head { background: var(--surface); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cart-row { border-top: 1px solid var(--border); }
.cart-product { display: flex; gap: 14px; align-items: center; }
.cart-product img { width: 74px; height: 92px; object-fit: cover; border-radius: 9px; }
.cart-name { font-weight: 600; }
.cart-opts { margin: .2rem 0 0; font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.qty-box { width: 78px; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.remove-x { color: #b03636; font-weight: 700; }
.cart-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 26px; flex-wrap: wrap; margin-top: 24px; }
.cart-sum { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sum-line { display: flex; justify-content: space-between; gap: 14px; padding: .45rem 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.sum-line small { color: var(--muted); }
.sum-total { font-size: 1.15rem; font-weight: 700; color: var(--brand); border-bottom: 0; padding-top: .7rem; }
.cart-sum .btn { margin-top: 14px; }

/* ---------------------------------------------------------- checkout --- */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 38px; padding: 40px 0 70px; align-items: start; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 12px; cursor: pointer; background: #fff; }
.pay-option:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.pay-option span { display: grid; }
.pay-option small { color: var(--muted); font-size: .84rem; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.order-card h3 { margin-bottom: .8rem; }

/* ------------------------------------------------------------- thanks -- */
.thanks { max-width: 640px; text-align: center; padding: 70px 20px 90px; }
.thanks-tick { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 2.1rem; }
.order-ref { font-size: 1.05rem; }

/* ------------------------------------------------------------- extras -- */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.24); z-index: 70; }
.maintenance { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 30px; }

/* --------------------------------------------------------- responsive -- */
@media (max-width: 1024px) {
  .feature-grid, .cat-grid, .p-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-in, .product-layout, .checkout-layout, .shop-wrap { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .hide-md { display: none; }
  .shop-aside { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-list a { border: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .burger { display: flex; }
  .hide-sm { display: none; }
  .search-form { display: none; }
  .header-in { gap: 12px; }
  .brand { margin-right: auto; }
  .main-nav {
    position: fixed; inset: 0 38% 0 0; z-index: 80;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; color: var(--text); padding: 84px 26px;
    transform: translateX(-102%); transition: transform .3s ease;
    box-shadow: 0 0 50px rgba(0,0,0,.25); overflow-y: auto;
  }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 75; }
  .main-nav a { width: 100%; padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .p-grid.cols-2, .p-grid.cols-3, .p-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { min-width: 0; flex: 1; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr auto; gap: 10px; }
  .cart-product { grid-column: 1 / -1; }
  .cart-row > div[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 420px) {
  .p-grid.cols-2, .p-grid.cols-3, .p-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Component layouts (Site settings → Components)
   ========================================================== */

/* centred header: logo on its own row, menu underneath */
.site-header.h-center .header-in { flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 10px; }
.site-header.h-center .brand { order: -1; width: 100%; justify-content: center; }
.site-header.h-center .burger { position: absolute; left: 14px; }
.site-header.h-center .main-nav { order: 3; width: 100%; justify-content: center; margin: 0; }
.site-header.h-center .header-actions { margin-left: 0; }

/* split header: brand left, menu centred, actions right */
.site-header.h-split .main-nav { margin-inline: auto; }

/* shop sidebar on the right */
.shop-wrap.side-right { grid-template-columns: 1fr 235px; }
.shop-wrap.side-right .shop-aside { order: 2; }
.shop-wrap.no-side { grid-template-columns: 1fr; }

/* product gallery on the right */
.product-layout.gallery-right .gallery { order: 2; }

/* centred footer */
.site-footer.f-center .footer-bottom { justify-content: center; text-align: center; }

/* text-style add-to-bag button */
.btn-link.btn-block { text-decoration: underline; }

/* custom HTML components */
.custom-block { padding-top: 48px; padding-bottom: 48px; }
.custom-block + .custom-block { padding-top: 0; }

/* ============================================================
   Effects (Site settings → Effects)
   ========================================================== */

.p-card-media, .cat-card { overflow: hidden; }

/* product image hover */
.fx-img-zoom .p-card-media img, .fx-img-zoom .cat-card img { transition: transform var(--fx-speed, .32s) ease; }
.fx-img-zoom .p-card:hover .p-card-media img, .fx-img-zoom .cat-card:hover img { transform: scale(1.08); }
.fx-img-fade .p-card-media img, .fx-img-fade .cat-card img { transition: opacity var(--fx-speed, .32s) ease; }
.fx-img-fade .p-card:hover .p-card-media img, .fx-img-fade .cat-card:hover img { opacity: .86; }
.fx-img-gray .p-card-media img, .fx-img-gray .cat-card img { filter: grayscale(65%); transition: filter var(--fx-speed, .32s) ease; }
.fx-img-gray .p-card:hover .p-card-media img, .fx-img-gray .cat-card:hover img { filter: grayscale(0); }

/* product card hover */
.fx-card-lift .p-card { transition: transform var(--fx-speed, .32s) ease, box-shadow var(--fx-speed, .32s) ease; }
.fx-card-lift .p-card:hover { transform: translateY(-7px); box-shadow: 0 22px 48px rgba(18,28,66,.16); }
.fx-card-shadow .p-card { transition: box-shadow var(--fx-speed, .32s) ease; }
.fx-card-shadow .p-card:hover { transform: none; box-shadow: 0 20px 46px rgba(18,28,66,.18); }

/* product title hover */
.fx-title-underline .p-card-title a:hover { text-decoration: underline; }
.fx-title-color .p-card-title a:hover { color: var(--brand); }

/* button hover */
.fx-btn-grow .btn { transition: transform var(--fx-speed, .32s) ease, background .2s, color .2s; }
.fx-btn-grow .btn:hover { transform: scale(1.035); }
.fx-btn-none .btn:hover { background: var(--brand); border-color: var(--brand); transform: none; }
.fx-btn-none .btn-outline:hover, .fx-btn-none .btn-ghost:hover { background: transparent; color: var(--brand); border-color: var(--brand); }

/* menu hover */
.fx-menu-pill .main-nav a { padding: 6px 12px; border: 0; border-radius: 999px; transition: background .2s; }
.fx-menu-pill .main-nav a:hover { border: 0; background: var(--surface); }
.fx-menu-none .main-nav a:hover { border-bottom-color: transparent; color: inherit; }

/* scroll reveal */
.fx-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--fx-speed, .32s) ease, transform var(--fx-speed, .32s) ease; }
.fx-reveal.fx-rv-fade .reveal { transform: none; }
.fx-reveal.fx-rv-zoom .reveal { transform: scale(.95); }
.fx-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
