/* =========================================================================
   WCom — core storefront + shared styles
   All colours reference the brand CSS custom properties injected per-request
   by LoadBrandSettings (partials/brand-styles.blade.php).
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--brand-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    color: var(--brand-ink);
    background: var(--brand-bg);
    line-height: 1.55;
    font-size: 15px;
    /* Guard against accidental horizontal scroll. `clip` (unlike `hidden`)
       does not break position:sticky headers. */
    overflow-x: clip;
}
img, canvas, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }

/* Long, unbreakable strings (URLs, tokens) must wrap, not overflow */
.serp-preview__url, .field__hint, .brand-token__var, code, .breadcrumbs { overflow-wrap: anywhere; }

/* Flex/grid items default to min-width:auto, which lets wide content blow out
   the layout on small screens. Reset it on the common layout containers. */
.container, .site-main, .admin-main { min-width: 0; }
.product-grid > *, .admin-grid > *, .kpi-row > *, .cat-grid > *,
.shop-layout > *, .cart-layout > *, .checkout-layout > *, .contact-layout > *,
.pf-grid > *, .product-detail > *, .account-grid > *, .footer__grid > * { min-width: 0; }
a { color: var(--brand-link, var(--brand-navy)); text-decoration: none; }
a:hover { color: var(--brand-orange); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--brand-heading, var(--brand-ink)); font-weight: 700; font-family: var(--brand-heading-font, var(--brand-font, inherit)); }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
p { margin: 0 0 1rem; }
.muted { color: var(--brand-muted); }
.text-brand { color: var(--brand-orange); }
.hidden { display: none !important; }
.ta-right { text-align: right; }
.narrow { max-width: 860px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
/* Vertical only, so it never overrides .container's side padding on .container.section */
.section { padding-top: 40px; padding-bottom: 40px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }

/* ---------------- Buttons ---------------- */
.btn {
    --btn-bg: var(--brand-btn-secondary-bg, var(--brand-navy));
    --btn-text: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: .92rem; line-height: 1;
    padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
    background: var(--btn-bg); color: var(--btn-text); cursor: pointer; transition: .15s ease;
    text-align: center; white-space: nowrap; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-text); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand-btn-primary-bg, var(--brand-orange)); --btn-text: var(--brand-btn-primary-text, #fff); box-shadow: 0 6px 18px -8px var(--brand-btn-primary-bg, var(--brand-orange)); }
.btn--secondary { --btn-bg: var(--brand-btn-secondary-bg, var(--brand-navy-2)); --btn-text: var(--brand-btn-secondary-text, #fff); }
.btn--ghost { background: transparent; color: var(--brand-link, var(--brand-navy)); border-color: var(--brand-line); }
.btn--ghost:hover { background: var(--brand-orange-tint); color: var(--brand-orange); border-color: var(--brand-orange-soft); }
.btn--danger { --btn-bg: var(--brand-danger, #e5484d); --btn-text: #fff; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--sm { padding: 8px 13px; font-size: .82rem; border-radius: 8px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 10px; border-radius: 50%; width: 40px; height: 40px; }
.btn--ai { background: linear-gradient(120deg, var(--brand-orange), var(--brand-navy)); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ai-spark { font-size: 1.05em; }
.link-arrow { font-weight: 600; color: var(--brand-orange); font-size: .9rem; }
.link-arrow::after { content: ' →'; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand-header-bg, #fff); color: var(--brand-header-text, var(--brand-ink)); box-shadow: 0 1px 0 var(--brand-line); }
.site-header .brand, .header__main .icon-btn, .mainnav__link { color: var(--brand-header-text, var(--brand-ink)); }
.topbar { background: var(--brand-navy); color: #cfe0e5; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar__links { display: flex; gap: 18px; }
.topbar__links a { color: #cfe0e5; }
.topbar__links a:hover { color: #fff; }
.header__main { display: flex; align-items: center; gap: 22px; padding: 14px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--brand-ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-orange); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand__logo-img { height: 34px; width: auto; }
.header__burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.header__burger span { width: 22px; height: 2px; background: var(--brand-ink); border-radius: 2px; }

.search { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: 12px; padding: 4px 6px 4px 14px; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: .95rem; padding: 8px 0; color: var(--brand-ink); }
.search button { border: 0; background: var(--brand-orange); color: #fff; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
/* Search inside the mobile drawer (compact pill, above the menu).
   flex:0 0 auto stops it stretching to fill the column-flex drawer height. */
.drawer__search { flex: 0 0 auto; max-width: none; margin: 16px 10px 14px; border-radius: 999px; padding: 2px 4px 2px 14px; }
.drawer__search input { font-size: .9rem; padding: 6px 0; }
.drawer__search button { width: 30px; height: 30px; border-radius: 999px; }
.drawer__search button svg { width: 16px; height: 16px; }
.search__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(6,47,58,.35); overflow: hidden; z-index: 60; }
.search__suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: var(--brand-ink); }
.search__suggest a:hover { background: var(--brand-orange-tint); }
.search__suggest img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.search__suggest .s-price { margin-left: auto; font-weight: 700; color: var(--brand-orange); }

.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-ink); }
.icon-btn:hover { background: var(--brand-orange-tint); color: var(--brand-orange); }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--brand-orange); color: #fff; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.mainnav { border-top: 1px solid var(--brand-line); }
.mainnav__inner { display: flex; gap: 28px; height: 48px; align-items: center; overflow-x: auto; }
.mainnav__link { font-weight: 600; font-size: .92rem; color: var(--brand-header-text, var(--brand-ink)); white-space: nowrap; position: relative; height: 100%; display: inline-flex; align-items: center; }
.mainnav__link:hover { color: var(--brand-orange); }
.mainnav__link.is-active { color: var(--brand-orange); }
.mainnav__link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-orange); border-radius: 3px 3px 0 0; }

/* Profile dropdown */
.profile { position: relative; }
.profile__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.profile__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; box-shadow: 0 22px 44px -20px rgba(6,47,58,.4); padding: 8px; z-index: 70; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; }
.profile.is-open .profile__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.profile__menu a, .profile__signout button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--brand-ink); font-size: .9rem; font-weight: 500; background: none; border: 0; cursor: pointer; }
.profile__menu a:hover, .profile__signout button:hover { background: var(--brand-orange-tint); color: var(--brand-orange); }
.profile__name { display: block; padding: 6px 12px 8px; font-size: .82rem; color: var(--brand-muted); border-bottom: 1px solid var(--brand-line); margin-bottom: 4px; }
.profile__signout { border-top: 1px solid var(--brand-line); margin-top: 4px; padding-top: 4px; }
.profile__signout button { color: var(--brand-danger, #c22); }

/* Mobile slide-in drawer */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6,31,38,.5); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; left: 0; top: 0; height: 100%; width: min(84vw, 320px); background: #fff; box-shadow: 0 0 60px rgba(0,0,0,.35); transform: translateX(-100%); transition: transform .28s ease; display: flex; flex-direction: column; overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--brand-line); }
.drawer__close { background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--brand-muted); cursor: pointer; }
.drawer__nav { display: flex; flex-direction: column; padding: 8px 10px; }
.drawer__nav a { padding: 14px 12px; font-weight: 600; color: var(--brand-ink); border-radius: 10px; }
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--brand-orange-tint); color: var(--brand-orange); }
.drawer__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--brand-line); display: flex; flex-direction: column; gap: 8px; }
.drawer__foot a:not(.btn) { padding: 12px; font-weight: 600; color: var(--brand-ink); border-radius: 10px; }
.drawer__foot a:not(.btn):hover { background: var(--brand-surface); }
body.drawer-open { overflow: hidden; }

/* ---------------- Hero ---------------- */
.hero { background: linear-gradient(120deg, var(--brand-navy), var(--brand-navy-2)); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 70px 20px; }
.hero__text h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.hero__text p { color: #d6e4e8; font-size: 1.1rem; max-width: 34ch; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.12); color: #fff; padding: 6px 14px; border-radius: 30px; font-size: .78rem; font-weight: 600; margin-bottom: 16px; }
.hero__cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero__art { position: relative; height: 320px; }
.hero__blob { position: absolute; inset: 0; background: radial-gradient(circle at 60% 40%, var(--brand-orange), transparent 60%); opacity: .5; filter: blur(10px); }
.hero__card { position: absolute; right: 10%; top: 30%; background: #fff; color: var(--brand-ink); padding: 20px 24px; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.hero__card-badge { display: inline-block; background: var(--brand-orange-tint); color: var(--brand-orange); font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; }

/* ---------------- Redesigned homepage ---------------- */
.hero2 { background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2)); color: #fff; overflow: hidden; }
.hero2__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 70px 20px; }
.hero2__text h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.06; margin-bottom: 14px; }
.hero2__text p { color: #cddde2; font-size: 1.1rem; max-width: 42ch; }
.hero2__cta { display: flex; gap: 12px; margin: 24px 0 18px; flex-wrap: wrap; }
.hero2 .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero2 .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero2__trust { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 0; color: #a9c2c9; font-size: .88rem; }
.hero2__media { position: relative; height: 400px; }
.hero2__tile { position: absolute; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -22px rgba(0,0,0,.55); border: 4px solid rgba(255,255,255,.08); background: #fff; }
.hero2__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero2__tile--0 { width: 56%; height: 74%; top: 6%; left: 4%; z-index: 2; }
.hero2__tile--1 { width: 46%; height: 52%; bottom: 0; right: 2%; z-index: 3; }
.hero2__tile--2 { width: 38%; height: 40%; top: 0; right: 12%; z-index: 1; }
.hero2__glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--brand-orange), transparent 62%); opacity: .55; filter: blur(34px); top: 26%; left: 28%; z-index: 0; }
.hero2__blob { position: absolute; inset: 0; background: radial-gradient(circle at 60% 40%, var(--brand-orange), transparent 60%); opacity: .4; border-radius: 20px; }

.cat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cat-card__img { width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--brand-surface); border: 1px solid var(--brand-line); display: grid; place-items: center; overflow: hidden; transition: .16s; }
.cat-card:hover .cat-card__img { border-color: var(--brand-orange-soft); transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(6,47,58,.4); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__ph { font-size: 2rem; font-weight: 800; color: var(--brand-orange); }
.cat-card__name { font-weight: 600; font-size: .9rem; color: var(--brand-ink); }

.benefits { background: var(--brand-orange-tint); }
.benefits__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 20px; }
.benefit { display: flex; align-items: center; gap: 12px; }
.benefit__ic { font-size: 1.7rem; line-height: 1; }
.benefit strong { display: block; color: var(--brand-navy); }
.benefit span { color: var(--brand-muted); font-size: .84rem; }

.cta-band { background: linear-gradient(120deg, var(--brand-navy), var(--brand-navy-2)); color: #fff; margin-top: 24px; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 44px 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cddde2; margin: 0; }
.cta-band__form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 460px; }
.cta-band__form input { flex: 1; }

@media (max-width: 900px) {
    .hero2__inner { grid-template-columns: 1fr; gap: 26px; padding: 44px 20px; }
    .hero2__media { height: 300px; }
    .benefits__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .hero2__media { height: 240px; }
    .hero2__tile--2 { display: none; }
    .cat-row { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .cta-band__inner { text-align: center; justify-content: center; }
    .cta-band__form { flex-basis: 100%; }
}

/* ---------------- Category tiles / promos ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: var(--brand-radius); font-weight: 600; color: var(--brand-ink); transition: .15s; }
.cat-tile:hover { border-color: var(--brand-orange-soft); background: var(--brand-orange-tint); color: var(--brand-orange); transform: translateY(-2px); }
.cat-tile img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
.promo { background: var(--brand-orange-tint); }
.promo__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 20px; }
.promo__item { display: flex; flex-direction: column; }
.promo__item strong { color: var(--brand-navy); }
.promo__item span { color: var(--brand-muted); font-size: .88rem; }

/* ---------------- Product grid + cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--brand-line); border-radius: var(--brand-radius); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.product-card:hover { box-shadow: 0 18px 40px -22px rgba(6,47,58,.4); transform: translateY(-3px); border-color: var(--brand-orange-soft); }
.product-card__media { position: relative; aspect-ratio: 1; background: var(--brand-surface); display: block; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 20px; color: #fff; }
.badge--sale { background: var(--brand-orange); }
.badge--featured { background: var(--brand-navy); }
.badge--out { background: #6b7280; left: auto; right: 10px; }
.product-card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-muted); font-weight: 600; }
.product-card__title { font-size: .98rem; font-weight: 600; margin: 0; }
.product-card__title a { color: var(--brand-ink); }
.product-card__title a:hover { color: var(--brand-orange); }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.product-card__add { margin-top: 10px; }
.price__now { font-weight: 800; font-size: 1.1rem; color: var(--brand-navy); }
.price__was { text-decoration: line-through; color: var(--brand-muted); font-size: .85rem; margin-left: 6px; }
.stars { position: relative; display: inline-flex; font-size: .9rem; color: #e6c200; }
.stars__bg { color: #d7dee0; }
.stars__fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: #f5b301; }
.stars small { color: var(--brand-muted); margin-left: 4px; }

/* ---------------- Breadcrumbs / page head ---------------- */
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--brand-muted); padding: 20px 0 6px; flex-wrap: wrap; }
.breadcrumbs .current { color: var(--brand-ink); }
.page-head { padding: 14px 0 26px; }
.page-head--row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------------- Minimal shop bar + filters ---------------- */
.shop-page { padding-bottom: 60px; }
.breadcrumbs--slim { padding: 14px 0 8px; font-size: .8rem; }
.shop-bar { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--brand-line); }
.shop-bar__btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--brand-line); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: .9rem; color: var(--brand-ink); cursor: pointer; white-space: nowrap; }
.shop-bar__btn:hover, .shop-bar__btn.is-active { border-color: var(--brand-orange-soft); color: var(--brand-orange); }
.shop-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); }
.shop-chips { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.shop-chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 8px 15px; border-radius: 20px; background: var(--brand-surface); border: 1px solid var(--brand-line); font-size: .85rem; font-weight: 600; color: var(--brand-ink); }
.chip:hover { border-color: var(--brand-orange-soft); color: var(--brand-orange); }
.chip.is-active { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.shop-sort select { border-radius: 10px; padding: 9px 12px; width: auto; }
.shop-filters { background: #fff; border: 1px solid var(--brand-line); border-radius: var(--brand-radius); padding: 18px 20px; margin-bottom: 24px; animation: fade .18s ease; }
.shop-filters__form { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.shop-filters__col h4 { margin: 0 0 8px; font-size: .82rem; }
.shop-filters__col .filters__check { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 2px 0; }
.shop-filters__actions { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 720px) {
    .shop-bar { flex-wrap: wrap; }
    .shop-chips { order: 3; flex-basis: 100%; }
    .shop-filters__form { gap: 16px; }
    .shop-filters__actions { margin-left: 0; flex-basis: 100%; }
    .shop-filters__actions .btn { flex: 1; }
}

/* ---------------- Shop layout (legacy) ---------------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; padding-bottom: 60px; }
.shop-sidebar .filters { background: #fff; border: 1px solid var(--brand-line); border-radius: var(--brand-radius); padding: 20px; position: sticky; top: 130px; display: flex; flex-direction: column; gap: 20px; }
.filters__group h4 { margin-bottom: 10px; font-size: .95rem; }
.filters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.filters__list a { color: var(--brand-muted); font-size: .9rem; padding: 4px 0; }
.filters__list a.is-active, .filters__list a:hover { color: var(--brand-orange); font-weight: 600; }
.filters__price { display: flex; align-items: center; gap: 8px; }
.filters__price input { width: 100%; }
.filters__check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.shop-toolbar__count { color: var(--brand-muted); font-size: .9rem; }
.shop-sort select { margin-left: 6px; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--brand-surface); border-radius: var(--brand-radius); }
.pagination-wrap { margin-top: 30px; display: flex; justify-content: center; }

/* ---------------- Forms ---------------- */
input, select, textarea { font-family: inherit; font-size: .93rem; color: var(--brand-ink); width: 100%; padding: 11px 13px; border: 1px solid var(--brand-line); border-radius: 10px; background: #fff; outline: none; transition: .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px var(--brand-orange-tint); }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=color] { padding: 2px; height: 42px; cursor: pointer; }
label { font-weight: 500; font-size: .9rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-weight: 600; font-size: .85rem; display: block; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row > label { display: flex; flex-direction: column; gap: 6px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.form-actions--split { justify-content: space-between; }
.form-actions--stack { flex-direction: column; }
.switch { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 500; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; }

/* ---------------- Cards / tables / pills ---------------- */
.card { background: #fff; border: 1px solid var(--brand-line); border-radius: var(--brand-radius); padding: 22px; margin-bottom: 20px; }
.card--flush { padding: 0; overflow: hidden; }
.card__title { font-size: 1.05rem; margin-bottom: 16px; }
.card__title--pad { padding: 18px 20px 0; }
.card__title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-muted); padding: 12px 16px; border-bottom: 1px solid var(--brand-line); background: var(--brand-surface); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--brand-line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table--flush th:first-child, .data-table--flush td:first-child { padding-left: 20px; }
.cart-prod { display: flex; align-items: center; gap: 10px; }
.cart-prod img { border-radius: 8px; object-fit: cover; }
.empty-cell { text-align: center; color: var(--brand-muted); padding: 30px !important; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions form { display: inline; }
.pill { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: capitalize; }
.pill--green { background: color-mix(in srgb, var(--brand-success, #1a7f43) 14%, #fff); color: var(--brand-success, #1a7f43); }
.pill--amber { background: color-mix(in srgb, var(--brand-warning, #a9700a) 16%, #fff); color: var(--brand-warning, #a9700a); }
.pill--red { background: color-mix(in srgb, var(--brand-danger, #c22) 14%, #fff); color: var(--brand-danger, #c22); }
.pill--blue { background: #e2eefb; color: #1857a5; }
.pill--gray { background: #eef1f2; color: #55636a; }
.seo-chip { display: inline-grid; place-items: center; min-width: 34px; padding: 3px 6px; border-radius: 8px; font-weight: 700; font-size: .8rem; }
.seo-chip--good { background: #e3f6ea; color: #1a7f43; }
.seo-chip--ok { background: #fff2d9; color: #a9700a; }
.seo-chip--bad { background: #fde5e5; color: #c22; }

/* ---------------- Flash ---------------- */
.flash-wrap { padding: 14px 0 0; }
.flash { padding: 13px 18px; border-radius: 10px; margin-bottom: 12px; font-size: .92rem; }
.flash--success { background: #e3f6ea; color: #1a7f43; border: 1px solid #b8e6c8; }
.flash--error { background: #fde5e5; color: #b52; border: 1px solid #f4c2c2; }
.flash--info { background: var(--brand-orange-tint); color: var(--brand-navy); border: 1px solid var(--brand-orange-soft); }
.flash ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; gap: 6px; }
.pagination__link { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--brand-line); color: var(--brand-ink); font-weight: 600; font-size: .9rem; padding: 0 10px; }
.pagination__link:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.pagination__link.is-active { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }
.pagination__link.is-disabled { opacity: .4; pointer-events: none; }
.pagination__ellipsis { padding: 0 8px; align-self: center; color: var(--brand-muted); }

/* ---------------- Product detail ---------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 10px 0 40px; }
.product-gallery__main { border: 1px solid var(--brand-line); border-radius: var(--brand-radius); overflow: hidden; background: var(--brand-surface); aspect-ratio: 1; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-gallery__thumbs button { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid var(--brand-line); background: none; padding: 0; cursor: pointer; }
.product-gallery__thumbs button.is-active { border-color: var(--brand-orange); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info__cat { text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; font-weight: 700; color: var(--brand-orange); }
.product-info h1 { margin: 8px 0 12px; }
.product-info__meta { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.product-info__price { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.product-info__price .price__now { font-size: 1.9rem; }
.product-info__excerpt { color: var(--brand-muted); }
.stock-line { margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.stock--in { color: #1a7f43; font-weight: 600; }
.stock--out { color: #c22; font-weight: 600; }
.product-buy { display: flex; gap: 12px; margin-bottom: 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--brand-line); border-radius: 10px; overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: var(--brand-surface); font-size: 1.2rem; cursor: pointer; color: var(--brand-ink); }
.qty input { width: 54px; text-align: center; border: 0; border-left: 1px solid var(--brand-line); border-right: 1px solid var(--brand-line); border-radius: 0; }
.product-assurances { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--brand-line); display: grid; gap: 8px; color: var(--brand-muted); font-size: .9rem; }
.product-buy__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.variations { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.variation-select { display: flex; flex-direction: column; gap: 5px; max-width: 320px; }
.variation-select span { font-weight: 600; font-size: .85rem; }
.btn--icon.btn--ghost { width: 48px; padding: 0; font-size: 1.2rem; color: var(--brand-orange); }

/* Wishlist button on cards */
.wishlist-btn { position: absolute; top: 10px; right: 10px; }
.wishlist-btn button { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--brand-line); display: grid; place-items: center; cursor: pointer; color: var(--brand-muted); box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); }
.wishlist-btn button:hover { color: var(--brand-orange); border-color: var(--brand-orange-soft); }
.wishlist-btn.is-active button { color: var(--brand-orange); border-color: var(--brand-orange); }
.wishlist-link { color: var(--brand-header-text, var(--brand-ink)); }

.product-tabs { margin: 20px 0 50px; }
.product-tabs__nav { display: flex; gap: 6px; border-bottom: 2px solid var(--brand-line); margin-bottom: 22px; flex-wrap: wrap; }
.product-tabs__nav button { background: none; border: 0; padding: 12px 18px; font-weight: 600; color: var(--brand-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.product-tabs__nav button.is-active { color: var(--brand-orange); border-color: var(--brand-orange); }
.product-tabs__panel { display: none; }
.product-tabs__panel.is-active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.prose { max-width: 74ch; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose img { border-radius: 10px; margin: 1em 0; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { text-align: left; width: 200px; color: var(--brand-muted); font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--brand-line); }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--brand-line); }
.review { padding: 16px 0; border-bottom: 1px solid var(--brand-line); }
.review__head { display: flex; align-items: center; gap: 12px; }
.review-form { margin-top: 24px; }
.review-form label { display: block; margin-bottom: 12px; }
.review-gate { margin-top: 20px; text-align: center; }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--brand-success, #1a7f43) 14%, #fff); color: var(--brand-success, #1a7f43); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* ---------------- Cart / checkout ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; padding-bottom: 50px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--brand-line); font-size: .8rem; text-transform: uppercase; color: var(--brand-muted); }
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--brand-line); }
.cart-qty { width: 70px; }
.cart-remove { color: #c22; font-size: 1.3rem; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 18px; }
.cart-summary { position: sticky; top: 120px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--brand-line); }
.summary-row--total { font-size: 1.15rem; font-weight: 800; border-bottom: 0; color: var(--brand-navy); }
.summary-row--discount { color: var(--brand-success, #1a7f43); font-weight: 600; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon-form input { flex: 1; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--brand-orange-tint); border: 1px dashed var(--brand-orange-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.coupon-applied strong { color: var(--brand-orange); letter-spacing: .03em; }
.coupon-remove { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--brand-muted); cursor: pointer; }
.coupon-remove:hover { color: var(--brand-danger, #c22); }
.summary-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.summary-lines li { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; color: var(--brand-muted); }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; padding-bottom: 50px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--brand-line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.radio-card small { display: block; color: var(--brand-muted); }
.checkout-secure { text-align: center; color: var(--brand-muted); font-size: .82rem; margin-top: 12px; }

/* ---------------- Confirmation ---------------- */
.confirmation { text-align: center; padding: 40px; }
.confirmation__icon { width: 66px; height: 66px; border-radius: 50%; background: #e3f6ea; color: #1a7f43; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }
.confirmation__meta { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin: 20px 0; }
.confirmation__meta > div { display: flex; flex-direction: column; }
.confirmation__cta { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------------- Floating widgets ---------------- */
.fab-left { position: fixed; left: 18px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 0; transition: .18s; box-shadow: 0 10px 26px -10px rgba(0,0,0,.4); }
.fab--wa { background: #25d366; color: #fff; }
.fab--wa:hover { transform: translateY(-2px); color: #fff; }
/* Back to top — bottom right, solid + clearly visible */
.fab--top { position: fixed; right: 20px; bottom: 24px; z-index: 80; background: var(--brand-navy); color: #fff; box-shadow: 0 12px 28px -8px rgba(6,47,58,.55); }
.fab--top:hover { background: var(--brand-orange); transform: translateY(-3px); }

.fab-currency { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 80; }
.fab-currency__toggle { display: flex; align-items: center; gap: 6px; background: var(--brand-navy); color: #fff; border: 0; padding: 10px 12px; border-radius: 10px 0 0 10px; cursor: pointer; font-weight: 700; font-size: .82rem; box-shadow: 0 10px 26px -10px rgba(0,0,0,.4); writing-mode: initial; }
.fab-currency__menu { position: absolute; right: 100%; top: 0; margin-right: 8px; background: #fff; border: 1px solid var(--brand-line); border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.35); overflow: hidden; min-width: 160px; opacity: 0; visibility: hidden; transform: translateX(8px); transition: .18s; }
.fab-currency.is-open .fab-currency__menu { opacity: 1; visibility: visible; transform: translateX(0); }
.fab-currency__menu a { display: flex; flex-direction: column; padding: 10px 14px; color: var(--brand-ink); }
.fab-currency__menu a small { color: var(--brand-muted); font-size: .74rem; }
.fab-currency__menu a:hover { background: var(--brand-orange-tint); color: var(--brand-orange); }
.fab-currency__menu a.is-active { background: var(--brand-orange-tint); font-weight: 700; }
@media (max-width: 720px) {
    .fab-left { left: 12px; bottom: 16px; }
    .fab { width: 46px; height: 46px; }
    .fab--top { right: 14px; bottom: 18px; }
    .fab-currency__toggle { padding: 8px 10px; font-size: .76rem; }
}

/* ---------------- Payment step ---------------- */
.pay-card { max-width: 520px; margin: 20px auto; text-align: center; }
.pay-head { margin-bottom: 20px; }
.pay-qr { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--brand-line); border-radius: 14px; margin: 10px 0 18px; }
.pay-qr img { width: 260px; height: 260px; }
.pay-upi__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pay-upi__meta > div { display: flex; flex-direction: column; background: var(--brand-surface); border-radius: 10px; padding: 10px; }
.pay-upi__meta span { font-size: .72rem; }
.pay-upi__app { margin-bottom: 12px; }
.pay-note { font-size: .82rem; margin-top: 12px; }
@media (max-width: 480px) { .pay-upi__meta { grid-template-columns: 1fr; } .pay-qr img { width: 220px; height: 220px; } }

/* ---------------- Account / contact ---------------- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; padding-bottom: 50px; }
.account-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--brand-radius); padding: 10px; position: sticky; top: 120px; }
.account-nav a, .account-nav__logout { text-align: left; padding: 11px 14px; border-radius: 9px; color: var(--brand-ink); font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; width: 100%; }
.account-nav a:hover, .account-nav a.is-active { background: var(--brand-orange-tint); color: var(--brand-orange); }
.account-nav__logout { color: var(--brand-danger, #c22); border-top: 1px solid var(--brand-line); margin-top: 6px; }
.account-main { min-width: 0; }
@media (max-width: 820px) { .account-layout { grid-template-columns: 1fr; } .account-nav { position: static; flex-direction: row; flex-wrap: wrap; } .account-nav a, .account-nav__logout { width: auto; } }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 30px; }
.account-tile { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 26px; color: var(--brand-ink); }
.account-tile__num { font-size: 2rem; font-weight: 800; color: var(--brand-orange); }
.account-tile--logout button { background: none; border: 0; color: #c22; font-weight: 600; cursor: pointer; font-size: 1rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; padding-bottom: 50px; }
.contact-form label { display: block; margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; }

/* ---------------- Blog ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.blog-card { padding: 0; overflow: hidden; margin: 0; }
.blog-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card__body { padding: 18px; }
.blog-card__body h3 { margin: 6px 0 8px; }
.blog-card__body h3 a { color: var(--brand-ink); }
.blog-card__body h3 a:hover { color: var(--brand-orange); }
.blog-card__body p { color: var(--brand-muted); font-size: .92rem; }

/* ---------------- Membership plans ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; padding-bottom: 40px; align-items: start; }
.plan-card { position: relative; background: #fff; border: 1px solid var(--brand-line); border-radius: var(--brand-radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.plan-card--featured { border-color: var(--brand-orange); box-shadow: 0 18px 40px -22px rgba(253,85,35,.5); }
.plan-card__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-orange); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.plan-card__name { font-size: 1.2rem; margin: 4px 0 0; }
.plan-card__price { display: flex; align-items: baseline; gap: 8px; }
.plan-card__amount { font-size: 2rem; font-weight: 800; color: var(--brand-navy); }
.plan-card__was { text-decoration: line-through; color: var(--brand-muted); font-weight: 600; }
.plan-card__term { color: var(--brand-muted); font-size: .88rem; }
.plan-card__desc { color: var(--brand-muted); font-size: .92rem; margin: 4px 0; }
.plan-card__features { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.plan-card__features li { position: relative; padding-left: 24px; font-size: .92rem; }
.plan-card__features li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-success, #1a7f43); font-weight: 800; }
.plan-card__cover { font-size: .82rem; margin-top: auto; padding-top: 8px; }

/* Product-page membership CTA + member download box */
.member-cta { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 14px 16px; border: 1px dashed var(--brand-orange-soft); background: var(--brand-orange-tint); border-radius: 12px; color: var(--brand-ink); }
.member-cta:hover { border-color: var(--brand-orange); }
.member-cta__icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; background: var(--brand-orange); color: #fff; border-radius: 50%; font-size: 1.05rem; }
.member-cta small { display: block; color: var(--brand-orange); font-weight: 600; }
.member-box { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--brand-success, #1a7f43); background: color-mix(in srgb, var(--brand-success, #1a7f43) 8%, #fff); border-radius: 12px; }
.member-box > strong { color: var(--brand-success, #1a7f43); display: block; margin-bottom: 8px; }
.member-box__files { display: flex; flex-wrap: wrap; gap: 8px; }

/* Two-factor setup */
.totp-qr { max-width: 220px; margin: 12px 0; background: #fff; padding: 8px; border: 1px solid var(--brand-line); border-radius: 10px; }
.totp-qr svg { width: 100%; height: auto; display: block; }
.recovery-codes { columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; margin: 8px 0 0; padding-left: 18px; }

/* Review photos */
.review__photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.review__photos img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 1px solid var(--brand-line); }

/* Stock urgency, delivery estimate, back-in-stock capture */
.stock-urgency { color: var(--brand-danger, #c22); font-weight: 700; font-size: .85rem; margin-left: 10px; }
.delivery-est { font-size: .9rem; color: var(--brand-muted); margin: 8px 0 0; }
.notify-form { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-surface); }
.notify-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.notify-form__row { display: flex; gap: 8px; }
.notify-form__row input { flex: 1; min-width: 0; }

/* Slide-in mini-cart */
.minicart { position: fixed; inset: 0; z-index: 200; }
.minicart[hidden] { display: none; }
.minicart__backdrop { position: absolute; inset: 0; background: rgba(6,47,58,.45); opacity: 0; transition: opacity .25s; }
.minicart.is-open .minicart__backdrop { opacity: 1; }
.minicart__panel { position: absolute; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); }
.minicart.is-open .minicart__panel { transform: translateX(0); }
.minicart__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--brand-line); font-size: 1.05rem; }
.minicart__close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--brand-muted); }
.minicart__body { flex: 1; overflow-y: auto; padding: 8px 0; }
.minicart__item { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--brand-line); }
.minicart__item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.minicart__item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.minicart__item-info a { font-weight: 600; font-size: .9rem; color: var(--brand-ink); }
.minicart__item-info span { color: var(--brand-muted); font-size: .85rem; }
.minicart__foot { padding: 16px 18px; border-top: 1px solid var(--brand-line); display: grid; gap: 10px; }
.minicart__subtotal { display: flex; justify-content: space-between; font-weight: 800; color: var(--brand-navy); margin-bottom: 4px; }

/* Cookie consent bar */
.cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; background: var(--brand-navy); color: #fff; border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: 0 18px 44px -16px rgba(0,0,0,.5); max-width: 720px; margin: 0 auto; }
.cookie-consent[hidden] { display: none; }
.cookie-consent__text { margin: 0; font-size: .88rem; }
.cookie-consent__text a { color: var(--brand-orange-soft); text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* FAQ accordion (product + CMS pages) */
.faq-list { max-width: 820px; }
.faq-item { border: 1px solid var(--brand-line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq-item > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item > summary::after { content: '+'; color: var(--brand-orange); font-size: 1.3rem; line-height: 1; }
.faq-item[open] > summary::after { content: '−'; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item__a { padding: 0 16px 16px; color: var(--brand-muted); }

/* Schema editor repeaters (custom specs, FAQ) */
.repeater-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.repeater-row > input, .repeater-row > textarea { flex: 1; min-width: 0; }
.repeater-row [data-repeater-remove] { flex: 0 0 auto; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--brand-footer-bg, var(--brand-navy)); color: var(--brand-footer-text, #b9cdd3); margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding: 50px 20px; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--brand-footer-text, #b9cdd3); font-size: .9rem; opacity: .92; }
.footer__col a:hover { color: var(--brand-orange); opacity: 1; }
.footer__tagline { font-size: .88rem; color: var(--brand-footer-text, #94adb5); opacity: .78; }
.footer .brand__name { color: #fff; }
.footer__news { display: flex; gap: 8px; margin-top: 10px; }
.footer__news input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; padding: 18px 20px; font-size: .82rem; color: #7f9aa2; flex-wrap: wrap; gap: 8px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__art { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: 1fr; }
    .promo__inner { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* Tablet & down: drawer nav + mobile navbar layout
   (burger left · logo centered · wishlist/cart right · search full-width below) */
@media (max-width: 860px) {
    .header__burger { display: flex; grid-area: burger; justify-self: start; }
    .mainnav { display: none; }
    .header__main {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "burger logo actions";
        align-items: center;
        gap: 10px 12px;
    }
    .header__main .brand { grid-area: logo; justify-self: center; }
    .header__actions { grid-area: actions; justify-self: end; }
    /* Mobile search moves into the slide-in drawer (see .drawer__search) */
    .header__main .search { display: none; }
}

@media (max-width: 720px) {
    body { font-size: 14.5px; }
    .container { padding: 0 16px; }
    .form-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .topbar { display: none; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .promo__inner { grid-template-columns: 1fr 1fr; }
    .section { padding-top: 28px; padding-bottom: 28px; }
    .section__head { flex-wrap: wrap; gap: 8px; }
    .page-head--row { flex-direction: column; align-items: flex-start; }
    .product-buy { flex-wrap: wrap; }
    .product-buy .btn { flex: 1; }
    .product-tabs__nav { overflow-x: auto; }
    .confirmation__meta { gap: 18px; }
    .cart-actions { flex-direction: column; gap: 10px; }
    .cart-actions .btn { width: 100%; }

    /* Make wide data tables horizontally scrollable on phones */
    .data-table, .spec-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

    /* Cart: turn the table into minimal, stacked product cards */
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
    .cart-table tr {
        position: relative;
        background: #fff;
        border: 1px solid var(--brand-line);
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        box-shadow: 0 6px 18px -14px rgba(6,47,58,.5);
    }
    .cart-table td { padding: 7px 0; border: 0; }
    .cart-table td[data-label] { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .cart-table td[data-label] + td[data-label] { border-top: 1px dashed var(--brand-line); }
    .cart-table td[data-label]::before { content: attr(data-label); font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: var(--brand-muted); }
    .cart-table td[data-label="Total"] { font-weight: 800; color: var(--brand-navy); }
    .cart-table .cart-prod { padding: 0 34px 12px 0; margin-bottom: 4px; border-bottom: 1px solid var(--brand-line); gap: 12px; }
    .cart-table .cart-prod img { width: 56px; height: 56px; flex: 0 0 auto; }
    .cart-table .cart-prod a { font-weight: 600; }
    .cart-table .cart-cell--remove { position: absolute; top: 8px; right: 10px; padding: 0; }
    .cart-table .cart-cell--remove .cart-remove { font-size: 1.55rem; line-height: 1; }
    .cart-table td[data-label="Qty"] .qty { flex: 0 0 auto; }
}

/* Wide data tables (orders, products, reports, users) get a horizontal scroll
   from tablet down, so columns are never clipped by their card. */
@media (max-width: 920px) {
    .data-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .card--flush { overflow: visible; }
}

@media (max-width: 460px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .promo__inner { grid-template-columns: 1fr; }
    .hero__inner { padding: 44px 16px; }
    .btn--lg { padding: 13px 20px; }
    .account-grid { grid-template-columns: 1fr 1fr; }
}
