/* ====================================================================
   SMS Gadget store - stylesheet
   ==================================================================== */
:root {
    --brand: #e63946;
    --brand-dark: #c1121f;
    --ink: #1d2330;
    --ink-soft: #5b6473;
    --line: #e8ebf0;
    --bg: #f5f6f8;
    --card: #ffffff;
    --green: #2a9d4a;
    /* Themeable (overridden per-site from Admin → Theme) */
    --header-bg: #1d2330;
    --header-text: #e7eaf0;
    --footer-bg: #161b26;
    --footer-text: #aeb6c4;
    --btn-bg: #e63946;
    --btn-text: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(20,30,50,.08), 0 8px 24px rgba(20,30,50,.06);
    --shadow-hover: 0 6px 16px rgba(20,30,50,.12), 0 16px 40px rgba(20,30,50,.10);
    --maxw: 1240px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.section { padding: clamp(24px, 3.2vw, 40px) 0; }
.site-main { display: block; }
.ta-right { text-align: right; }
/* Offset in-page anchors (e.g. #reviews) below the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--btn-bg); color: var(--btn-text); border: 0; cursor: pointer;
    padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 14px; font-family: inherit; transition: background .15s, transform .05s;
    line-height: 1; text-align: center;
}
.btn:hover { filter: brightness(0.92); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 8px 12px; font-size: 13px; width: 100%; }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--outline:hover { background: #f0f2f5; }
.btn--disabled, .btn[disabled] { background: #c8ccd4; cursor: not-allowed; }

/* ---- Header ---- */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--header-bg); color: #cfd5e0; font-size: 12.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #fff; }

.header-main__inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand__mark {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    font-size: 16px; letter-spacing: .5px;
}
.brand__name { white-space: nowrap; }

.search { flex: 1; display: flex; max-width: 560px; }
.search input {
    flex: 1; border: 1.5px solid var(--line); border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 11px 14px; font-size: 14px;
    font-family: inherit; outline: none;
}
.search input:focus { border-color: var(--brand); }
.search button {
    border: 0; background: var(--brand); color: #fff; padding: 0 20px; font-weight: 600;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; font-family: inherit;
}
.search button:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions__cart { display: flex; align-items: center; gap: 6px; position: relative; font-weight: 600; }
.cart-icon { font-size: 22px; }
.cart-count {
    position: absolute; top: -6px; left: 16px; background: var(--brand); color: #fff;
    font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid;
    place-items: center; padding: 0 5px; font-weight: 700;
}
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* ---- Main nav ---- */
.mainnav { background: var(--header-bg); }
.mainnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav__list > li { position: relative; }
.mainnav__list > li > a { display: block; color: var(--header-text); padding: 12px 16px; font-weight: 500; font-size: 14px; }
.mainnav__list > li > a:hover { background: rgba(255,255,255,.08); color: #fff; }
.submenu {
    list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0;
    min-width: 220px; background: #fff; box-shadow: var(--shadow); border-radius: 0 0 8px 8px;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 50;
}
.has-mega:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 9px 18px; color: var(--ink); font-size: 14px; }
.submenu li a:hover { background: var(--bg); color: var(--brand); }

/* ---- Flash / alerts ---- */
.flash { padding: 10px 0; font-size: 14px; }
.flash--success { background: #e6f6ec; color: #1e7d3c; }
.flash--error { background: #fdeaea; color: #b3261e; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.alert--error { background: #fdeaea; color: #b3261e; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---- Hero ---- */
.hero { padding-top: 20px; }
.hero__slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero__slide {
    display: none; min-height: 320px; background-size: cover; background-position: center;
    align-items: center; padding: 48px; color: #fff; position: relative;
    background-color: #20283a;
}
.hero__slide.is-active { display: flex; }
.hero__slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,20,35,.72), rgba(15,20,35,.15)); }
.hero__caption { position: relative; max-width: 460px; }
.hero__caption h2 { font-size: 34px; margin-bottom: 8px; }
.hero__caption p { font-size: 16px; margin: 0 0 18px; opacity: .95; }
/* Auto-slider dot indicators (no arrow buttons) */
.hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,.5); transition: background .2s, width .2s; }
.hero__dot.is-active { background: #fff; width: 22px; border-radius: 6px; }

/* ---- USP ---- */
.usp { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.usp__item { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.usp__item strong { font-size: 15px; } .usp__item span { color: var(--ink-soft); font-size: 13px; }

/* ---- Section heads ---- */
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section__title { font-size: 22px; position: relative; padding-left: 14px; }
.section__title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; background: var(--brand); border-radius: 3px; }
.section__more { color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---- Category grid ---- */
.cat-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 14px; }
.cat-grid__item { background: #fff; border-radius: var(--radius); padding: 18px 10px; text-align: center; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.cat-grid__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-grid__icon { font-size: 28px; display: block; margin-bottom: 6px; }
.cat-grid__name { font-size: 13px; font-weight: 600; }

/* ---- Product grid + cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media { position: relative; display: block; aspect-ratio: 1/1; background: #fff; padding: 14px; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; color: #fff; z-index: 2; }
.badge--sale { left: 10px; background: var(--brand); }
.badge--out { right: 10px; background: #6b7280; }
.card__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__brand { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); font-weight: 600; }
.card__title { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0; min-height: 2.7em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { color: var(--brand); font-weight: 800; font-size: 17px; }
.price--lg { font-size: 28px; }
.price--old { color: var(--ink-soft); text-decoration: line-through; font-size: 13px; font-weight: 500; }
.card__action { margin-top: 8px; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 18px 0 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__current { color: var(--ink); font-weight: 600; }

/* ---- Listing layout ---- */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 22px; padding-bottom: 30px; }
.listing__sidebar { display: flex; flex-direction: column; gap: 16px; }
.filter-box { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.filter-box h3 { font-size: 15px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.filter-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.filter-list li a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.filter-list li a:hover, .filter-list li a.is-active { color: var(--brand); font-weight: 600; }
.price-filter__row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-filter__row input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; }

.listing__toolbar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.listing__heading h1 { font-size: 20px; margin: 0; }
.listing__count { font-size: 13px; color: var(--ink-soft); }
.sort select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; }
.listing__intro { color: var(--ink-soft); font-size: 14px; margin: -4px 0 16px; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination__link { padding: 8px 13px; border-radius: 6px; background: #fff; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.pagination__link:hover { color: var(--brand); }
.pagination__link.is-active { background: var(--brand); color: #fff; }
.pagination__dots { padding: 8px 4px; color: var(--ink-soft); }

/* ---- Product page ---- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 10px 0 24px; }
.product__main-img { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.product__main-img img { width: 100%; height: 420px; object-fit: contain; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumbs img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 4px; cursor: pointer; }
.product__thumbs img.is-active { border-color: var(--brand); }
.product__brand { color: var(--brand); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.product__title { font-size: 26px; margin: 6px 0 14px; }
.product__price { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.product__stock { font-weight: 600; display: flex; gap: 14px; align-items: center; }
.product__stock.is-in { color: var(--green); } .product__stock.is-out { color: var(--brand); }
.product__sku { color: var(--ink-soft); font-weight: 500; font-size: 13px; }
.product__short { color: var(--ink-soft); margin: 12px 0; }
.product__buy { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty__btn { background: #f0f2f5; border: 0; width: 38px; height: 44px; font-size: 18px; cursor: pointer; }
.qty__input { width: 52px; height: 44px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-family: inherit; font-size: 15px; }
.product__assurance { list-style: none; padding: 16px; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

.product__details { padding-bottom: 20px; }
.panel { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel__title { font-size: 19px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.rte { line-height: 1.7; } .rte p { margin: 0 0 12px; }
.spec-group { font-size: 15px; margin: 16px 0 6px; color: var(--brand); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); font-size: 14px; }
.spec-table th { background: var(--bg); width: 35%; font-weight: 600; }

/* ---- Cart ---- */
.page-title { font-size: 26px; margin-bottom: 18px; }
.cart { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th { text-align: left; padding: 12px; font-size: 12px; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.cart-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table__img img { border-radius: 8px; border: 1px solid var(--line); }
.cart-table__name a { font-weight: 600; }
.cart-qty input { width: 64px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; text-align: center; font-family: inherit; }
.link-danger { background: none; border: 0; color: var(--brand); cursor: pointer; font-size: 16px; }
.cart__summary { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row--muted { color: var(--ink-soft); }
.summary-row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 800; }
.cart__continue { display: block; text-align: center; margin-top: 12px; color: var(--ink-soft); font-size: 14px; }

/* ---- Checkout ---- */
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.checkout__form, .checkout__summary { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.checkout__form h3, .checkout__summary h3 { font-size: 16px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.checkout__form h3:not(:first-child) { margin-top: 22px; }
.field { margin-bottom: 14px; } .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.payment-option { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--brand); border-radius: 8px; font-size: 14px; }
.order-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--line); gap: 10px; }
.checkout__note { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

/* ---- Order success ---- */
.order-success { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; text-align: center; }
.order-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 16px; }
.order-success__number { background: var(--bg); padding: 10px; border-radius: 8px; }
.order-detail { width: 100%; border-collapse: collapse; margin: 20px 0; text-align: left; }
.order-detail td { padding: 8px; border-bottom: 1px solid var(--line); }
.order-detail__total td { font-weight: 800; font-size: 17px; border-bottom: 0; }

/* ---- CMS / empty ---- */
.cms { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty--404 h1 { font-size: 72px; color: var(--brand); margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 40px; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; padding: 44px 16px; }
.brand--footer { color: #fff; margin-bottom: 12px; }
.footer-about { line-height: 1.7; }
.footer-contact { margin-top: 14px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { color: #fff; font-size: 13px; opacity: .8; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-credit a { color: #fff; font-weight: 600; }
.footer-credit a:hover { color: var(--brand); }
@media (max-width: 600px) { .site-footer__bottom-inner { justify-content: center; text-align: center; } }

/* ---- WhatsApp FAB ---- */
.whatsapp-fab { position: fixed; bottom: 22px; right: 22px; background: #25d366; color: #fff; padding: 12px 18px; border-radius: 30px; font-weight: 700; box-shadow: 0 6px 20px rgba(37,211,102,.45); z-index: 90; font-size: 14px; }
.whatsapp-fab:hover { background: #1da851; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(4,1fr); }
    .product-grid { grid-template-columns: repeat(3,1fr); }
    .usp { grid-template-columns: repeat(2,1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .listing { grid-template-columns: 1fr; }
    .listing__sidebar { flex-direction: row; flex-wrap: wrap; }
    .filter-box { flex: 1; min-width: 200px; }
    .product { grid-template-columns: 1fr; }
    .product__main-img img { height: 320px; }
    .cart, .checkout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .header-main__inner { flex-wrap: wrap; gap: 12px; }
    .search { order: 3; max-width: 100%; flex-basis: 100%; }
    .nav-toggle { display: block; }
    .mainnav { display: none; }
    .mainnav.is-open { display: block; }
    .mainnav__list { flex-direction: column; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.05); }
    .submenu li a { color: #cfd5e0; }
    .product-grid { grid-template-columns: repeat(2,1fr); }
    .cat-grid { grid-template-columns: repeat(3,1fr); }
    .usp { grid-template-columns: 1fr 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .hero__caption h2 { font-size: 24px; }
    .hero__slide { padding: 24px; min-height: 210px; }
    .cart-label { display: none; }

    /* Mobile UX: tighter gutters, capped logo, clean single-line topbar */
    .container { padding: 0 13px; }
    .section { padding: 16px 0; }
    .header-main__inner { padding: 10px 0; gap: 10px; }
    .brand__logo { height: min(var(--logo-h, 42px), 36px); max-width: 150px; }
    .topbar { font-size: 11px; }
    .topbar__inner { height: auto; min-height: 28px; padding: 5px 0; gap: 10px; }
    .topbar__inner > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar__contact { white-space: nowrap; }
    .usp { gap: 12px; }
    .section__title { font-size: 19px; }
    .hero { padding-top: 12px; }
}
@media (max-width: 420px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-grid { gap: 10px; }
    .container { padding: 0 11px; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   Variants, reviews, drawer, bottom nav (added for mobile + variants)
   ==================================================================== */

/* Rating + meta badges */
.product__rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink-soft); font-size: 14px; }
.stars { color: #d9dce2; letter-spacing: 1px; white-space: nowrap; }
.stars .star.is-on { color: #f5a623; }
.star { font-size: 15px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.meta-pill { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.meta-pill em { color: var(--ink-soft); font-style: normal; }
.meta-pill b { background: var(--ink); color: #fff; padding: 2px 10px; border-radius: 6px; font-weight: 600; }
.meta-pill b.is-in { background: var(--green); }
.meta-pill b.is-out { background: var(--brand); }

/* Variant selectors */
.product__buy { display: block; margin: 0; }
.variant { margin: 16px 0; }
.variant__label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__dot { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); transition: box-shadow .15s; }
.swatch.is-selected .swatch__dot { box-shadow: 0 0 0 2px var(--brand); }
.swatch__name { font-size: 11px; color: var(--ink-soft); max-width: 70px; text-align: center; }
.swatch.is-selected .swatch__name { color: var(--ink); font-weight: 600; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; border: 1.5px solid var(--line); border-radius: 24px; padding: 9px 18px; font-weight: 700; font-size: 14px; background: #fff; transition: .15s; }
.pill span small { color: var(--ink-soft); font-weight: 500; }
.pill.is-selected span { border-color: var(--brand); background: var(--brand); color: #fff; }
.pill.is-selected span small { color: #ffe3e5; }
.product__actions { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }

/* Reviews */
.reviews__summary { margin-bottom: 16px; }
.reviews__avg { display: flex; align-items: center; gap: 10px; }
.reviews__avg strong { font-size: 30px; }
.reviews__avg .stars .star { font-size: 18px; }
.reviews__avg span { color: var(--ink-soft); font-size: 14px; }
.reviews__list { list-style: none; margin: 0 0 22px; padding: 0; }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.review__name { font-weight: 700; }
.review__date { color: var(--ink-soft); font-size: 12px; }
.review__body { margin: 0; }
.reviews__empty { color: var(--ink-soft); }
.review-form { background: var(--bg); border-radius: var(--radius); padding: 18px; margin-top: 10px; }
.review-form h3 { font-size: 16px; }
.review-form .field { margin-bottom: 12px; }
.review-form label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 5px; }
.review-form input, .review-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; font-size: 26px; }
.star-input input { display: none; }
.star-input label { color: #d9dce2; cursor: pointer; padding: 0 1px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }

/* Radio cards (checkout) */
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.radio-card.is-active { border-color: var(--brand); background: #fff5f5; }
.radio-card input { margin-top: 3px; }

/* Cart / order variant text */
.cart-table__variant { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.order-lines__name small { display: block; color: var(--ink-soft); font-size: 11px; }

/* Track page */
.track { max-width: 560px; }
.track__form, .track__result { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.track__result { margin-top: 18px; }
.track__status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-pending { background: #fff3d6; color: #9a6b00; }
.status-confirmed, .status-processing { background: #dcebff; color: #1450a3; }
.status-shipped { background: #e2dcff; color: #4a2db0; }
.status-delivered { background: #e6f6ec; color: #1e7d3c; }
.status-cancelled { background: #fdeaea; color: #b3261e; }

/* Off-canvas drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15,20,35,.5); z-index: 200; opacity: 0; transition: opacity .25s; }
.drawer-overlay.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; left: 0; width: 84%; max-width: 340px; height: 100%; background: #fff; z-index: 210; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; box-shadow: 2px 0 24px rgba(0,0,0,.2); }
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--ink); color: #fff; }
.brand--drawer { color: #fff; font-size: 18px; }
.drawer__close { background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer__row a { flex: 1; padding: 15px 16px; font-weight: 600; font-size: 14px; }
.drawer__plus { background: none; border: 0; font-size: 22px; width: 50px; padding: 15px 0; cursor: pointer; color: var(--ink-soft); transition: transform .15s; }
.drawer__item.is-open .drawer__plus { transform: rotate(45deg); }
.drawer__sub { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; background: var(--bg); transition: max-height .25s; }
.drawer__item.is-open .drawer__sub { max-height: 600px; }
.drawer__sub li a { display: block; padding: 11px 28px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.drawer__link { display: block; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.drawer__section { padding: 8px 0; }
.drawer__section h4 { padding: 12px 16px 4px; margin: 0; font-size: 12px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: .5px; }
.drawer__section .drawer__link { font-weight: 500; color: var(--ink-soft); }

/* Custom logo */
.brand__logo { height: var(--logo-h, 42px); width: auto; max-width: 200px; object-fit: contain; display: block; }

/* Category images */
.cat-grid__img { width: 42px; height: 42px; object-fit: contain; margin: 0 auto 6px; display: block; }

/* Shop by Brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-grid__item { background: #fff; border-radius: var(--radius); padding: 16px 10px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .12s, box-shadow .12s; }
.brand-grid__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.brand-grid__img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.brand-grid__letter { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.brand-grid__name { font-size: 12.5px; font-weight: 600; }

/* ---- Button animations ---- */
.btn { position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(230,57,70,.26); }
.btn:active { transform: translateY(0) scale(.97); }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .5s; pointer-events: none; }
.btn:hover::after { left: 140%; }
.btn--outline:hover { box-shadow: 0 6px 16px rgba(20,30,50,.12); }
.btn--disabled, .btn[disabled] { transform: none !important; box-shadow: none !important; }
.btn--disabled::after, .btn[disabled]::after { display: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }

/* Buy Now button — distinct + pulsing */
.btn--buy { background: linear-gradient(135deg, #ff7a18, #e63946); }
.btn--buy:hover { background: linear-gradient(135deg, #ff8a2b, #c1121f); }
.product__buy .btn--buy { animation: btnPulse 2.2s infinite; }
@keyframes btnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(230,57,70,.45); }
    70%  { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

/* Cart count pop on hover + when updated */
.header-actions__cart:hover .cart-count { animation: countPop .35s; }
@keyframes countPop { 50% { transform: scale(1.45); } }

@media (max-width: 1024px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px)  { .brand-grid { grid-template-columns: repeat(3, 1fr); } }

/* Bottom nav: hidden on desktop, shown on mobile */
.bottom-nav { display: none; }

@media (max-width: 680px) {
    .bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
        background: #fff; box-shadow: 0 -2px 12px rgba(20,30,50,.12);
        justify-content: space-around; padding: 6px 0;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
    }
    .bottom-nav__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-soft); padding: 4px 0; }
    .bottom-nav__item.is-active { color: var(--brand); font-weight: 600; }
    .bottom-nav__ico { font-size: 19px; line-height: 1; }
    .whatsapp-fab { display: none; }
    body { padding-bottom: 62px; }
    .product__meta { gap: 8px; }
    .meta-pill { font-size: 12px; }
}
