/* =========================================================================
   HEMA MOBILES — Design System
   Premium black / graphite / white with a subtle metallic accent.
   ========================================================================= */

:root {
    --c-black: #0B0B0D;
    --c-graphite: #17181B;
    --c-graphite-2: #1F2023;
    --c-white: #FFFFFF;
    --c-soft-white: #F7F7F5;
    --c-light-grey: #E9E9E7;
    --c-mid-grey: #8A8A8E;
    --c-accent: #B8B9BD;      /* metallic silver */
    --c-accent-gold: #C5A76A; /* used sparingly */
    --c-success: #2E7D4F;
    --c-danger: #B3352B;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);

    --container-max: 1320px;
    --header-h: 76px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset -------------------------------------------------------------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--c-black);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 88px 0; }
.section-pad-sm { padding: 56px 0; }

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-mid-grey);
    margin: 0 0 12px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}
.section-head h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.section-head p { margin: 0; color: var(--c-mid-grey); font-size: 16px; max-width: 520px; }
.section-head .view-all { flex-shrink: 0; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--c-black); padding-bottom: 2px; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color .25s var(--ease);
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--c-black); color: var(--c-white); }
.btn-primary:hover { background: var(--c-graphite-2); }
.btn-outline { background: transparent; color: var(--c-black); border-color: var(--c-black); }
.btn-outline:hover { background: var(--c-black); color: var(--c-white); }
.btn-light { background: var(--c-white); color: var(--c-black); }
.btn-light:hover { background: var(--c-soft-white); }
.btn-ghost-light { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: var(--c-white); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- Header --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-light-grey);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(11, 11, 13, 0.92); border-color: rgba(255,255,255,0.08); }
.site-header.is-scrolled .header-inner { color: var(--c-white); }
.site-header.is-scrolled .nav-main a { color: rgba(255,255,255,0.82); }
.site-header.is-scrolled .nav-main a:hover, .site-header.is-scrolled .nav-main a.active { color: var(--c-white); }
.site-header.is-scrolled .icon-btn { color: var(--c-white); }
.site-header.is-scrolled .logo-mark { color: var(--c-white); }
.site-header.is-scrolled .btn-outline { border-color: rgba(255,255,255,0.5); color: var(--c-white); }
.site-header.is-scrolled .btn-outline:hover { background: var(--c-white); color: var(--c-black); }

.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo-mark { font-weight: 800; font-size: 18px; letter-spacing: 0.02em; line-height: 1.05; }
.logo-mark span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--c-mid-grey); }

.nav-main { display: flex; align-items: center; gap: 30px; }
.nav-main a { font-size: 14px; font-weight: 500; color: var(--c-graphite); transition: color 0.2s; position: relative; }
.nav-main a:hover, .nav-main a.active { color: var(--c-black); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    position: relative;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--c-black);
    transition: background 0.2s;
}
.icon-btn:hover { background: rgba(0,0,0,0.06); }
.icon-btn .badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--c-black); color: var(--c-white);
    font-size: 10px; font-weight: 700; line-height: 1;
    min-width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}
.site-header.is-scrolled .icon-btn .badge { background: var(--c-white); color: var(--c-black); }

.mobile-toggle { display: none; }

/* ---- Mobile nav drawer ----------------------------------------------------- */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 200;
    visibility: hidden;
    pointer-events: none;
}
.mobile-drawer.open { visibility: visible; pointer-events: auto; }
.mobile-drawer .backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.mobile-drawer.open .backdrop { opacity: 1; }
.mobile-drawer .panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
    background: var(--c-white);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
}
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .close-btn { margin-left: auto; display: block; width: 36px; height: 36px; }
.mobile-drawer nav a { display: block; padding: 14px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--c-light-grey); }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
    background: radial-gradient(circle at 70% 30%, #1c1d20 0%, var(--c-black) 60%);
    color: var(--c-white);
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 85%, rgba(197,167,106,0.10), transparent 45%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; width: 100%; }
.hero-eyebrow { color: var(--c-accent-gold); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 {
    font-size: clamp(44px, 6.2vw, 84px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.72); max-width: 460px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual img { max-height: 68vh; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.55)); animation: float 6s ease-in-out infinite; }
.hero-visual .glow { position: absolute; width: 60%; height: 60%; background: radial-gradient(circle, rgba(184,185,189,0.25), transparent 70%); filter: blur(40px); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- Fade-up reveal --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---- Brand tiles ------------------------------------------------------------ */
.brand-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; }
.brand-tile {
    aspect-ratio: 1;
    border: 1px solid var(--c-light-grey);
    border-radius: var(--radius-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    text-align: center;
    padding: 14px;
}
.brand-tile img { max-height: 34px; max-width: 70%; object-fit: contain; filter: grayscale(1); transition: filter .3s; }
.brand-tile span.name { font-size: 13px; font-weight: 600; }
.brand-tile .arrow { opacity: 0; transform: translateX(-4px); transition: all 0.25s var(--ease); font-size: 13px; }
.brand-tile:hover { transform: translateY(-4px); border-color: var(--c-black); box-shadow: var(--shadow-sm); }
.brand-tile:hover img { filter: grayscale(0); }
.brand-tile:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---- Product cards ------------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
    background: var(--c-white);
    border: 1px solid var(--c-light-grey);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-4px); }
.product-card .thumb { position: relative; aspect-ratio: 1; background: var(--c-soft-white); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform 0.5s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge-pill { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.badge-new { background: var(--c-black); color: #fff; }
.badge-sale { background: var(--c-danger); color: #fff; }
.badge-best { background: var(--c-accent-gold); color: #201a0d; }
.badge-limited { background: var(--c-graphite); color: #fff; }
.badge-oos { background: var(--c-light-grey); color: var(--c-graphite); }
.badge-coming { background: var(--c-soft-white); color: var(--c-graphite); border: 1px solid var(--c-light-grey); }

.wishlist-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s var(--ease);
}
.wishlist-btn:hover { transform: scale(1.08); }
.wishlist-btn.active svg { fill: var(--c-danger); stroke: var(--c-danger); }

.quick-view-btn {
    position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 12px);
    opacity: 0;
    background: var(--c-black); color: #fff; font-size: 12px; font-weight: 600;
    padding: 9px 18px; border-radius: 20px; white-space: nowrap;
    transition: all 0.3s var(--ease);
    z-index: 2;
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translate(-50%, 0); }

.product-card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .brand-name { font-size: 12px; color: var(--c-mid-grey); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.product-card .name { font-size: 15px; font-weight: 600; line-height: 1.3; min-height: 39px; }
.product-card .spec { font-size: 13px; color: var(--c-mid-grey); }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.product-card .price { font-size: 17px; font-weight: 700; }
.product-card .price-old { font-size: 13px; color: var(--c-mid-grey); text-decoration: line-through; }
.product-card .stock { font-size: 12px; font-weight: 600; }
.product-card .stock.in { color: var(--c-success); }
.product-card .stock.low { color: #A66A1E; }
.product-card .stock.out { color: var(--c-danger); }
.product-card .add-cart-btn { margin-top: 10px; }

/* ---- Deals (dark section) ------------------------------------------------------ */
.deals-section { background: var(--c-black); color: var(--c-white); }
.deals-section .section-head h2, .deals-section .eyebrow { color: var(--c-white); }
.deals-section .section-head p { color: rgba(255,255,255,0.6); }
.deal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.deal-card {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: linear-gradient(160deg, rgba(255,255,255,0.05), transparent);
    display: flex; flex-direction: column; gap: 14px;
    transition: border-color .3s;
}
.deal-card:hover { border-color: rgba(255,255,255,0.4); }
.deal-card .deal-type { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent-gold); font-weight: 700; }
.deal-card .deal-title { font-size: 18px; font-weight: 700; }
.deal-card .countdown { display: flex; gap: 8px; }
.countdown .unit { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 8px 10px; text-align: center; min-width: 48px; }
.countdown .unit .num { font-size: 18px; font-weight: 700; display: block; }
.countdown .unit .lbl { font-size: 10px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.countdown-light .unit { background: var(--c-soft-white); }
.countdown-light .unit .lbl { color: var(--c-mid-grey); }
.countdown-light .unit .num { color: var(--c-black); }

/* ---- Phone finder --------------------------------------------------------------- */
.finder-section { background: var(--c-soft-white); }
.finder-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.finder-option {
    border: 1px solid var(--c-light-grey);
    background: var(--c-white);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s var(--ease);
}
.finder-option:hover, .finder-option.selected { border-color: var(--c-black); background: var(--c-black); color: #fff; transform: translateY(-3px); }
#finderResults { margin-top: 40px; }

/* ---- Category tiles ---------------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.category-tile {
    border-radius: var(--radius-lg);
    background: var(--c-soft-white);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
}
.category-tile:hover { background: var(--c-white); border-color: var(--c-light-grey); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.category-tile .icon { width: 44px; height: 44px; margin: 0 auto 14px; opacity: 0.85; }
.category-tile .name { font-weight: 600; font-size: 14px; }

/* ---- Trade-in promo ------------------------------------------------------------------- */
.trade-in-promo {
    background: var(--c-graphite);
    color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
.trade-in-promo .copy { padding: 64px; }
.trade-in-promo h2 { font-size: clamp(28px, 3.2vw, 42px); margin: 0 0 16px; font-weight: 700; }
.trade-in-promo p { color: rgba(255,255,255,0.68); margin: 0 0 28px; max-width: 420px; }
.trade-in-promo .visual { height: 100%; min-height: 340px; background: var(--c-black) center/cover no-repeat; }

/* ---- Why us ---------------------------------------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card { padding: 30px; border: 1px solid var(--c-light-grey); border-radius: var(--radius-lg); }
.trust-card .icon { width: 40px; height: 40px; margin-bottom: 18px; }
.trust-card h3 { font-size: 17px; margin: 0 0 8px; }
.trust-card p { margin: 0; color: var(--c-mid-grey); font-size: 14px; }

/* ---- Reviews ---------------------------------------------------------------------------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { border: 1px solid var(--c-light-grey); border-radius: var(--radius-lg); padding: 26px; }
.review-card .stars { color: var(--c-accent-gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 14px; }
.review-card p.text { font-size: 15px; margin: 0 0 16px; }
.review-card .who { font-size: 13px; font-weight: 700; }
.review-card .product { font-size: 12px; color: var(--c-mid-grey); }

/* ---- Store / showroom ---------------------------------------------------------------------- */
.store-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.store-section img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.store-info dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 24px 0 30px; }
.store-info dt { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-mid-grey); }
.store-info dd { margin: 0; font-size: 15px; }

/* ---- Newsletter ------------------------------------------------------------------------------ */
.newsletter-section { background: var(--c-black); color: #fff; text-align: center; }
.newsletter-section h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 12px; }
.newsletter-section p { color: rgba(255,255,255,0.65); margin: 0 0 30px; }
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; gap: 10px; }
.newsletter-form input { flex: 1; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }

/* ---- Footer ---------------------------------------------------------------------------------- */
.site-footer { background: var(--c-black); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; margin-bottom: 56px; }
.footer-brand .logo-mark { color: #fff; }
.footer-brand p.tagline { color: rgba(255,255,255,0.5); margin: 10px 0 20px; font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.footer-social a:hover { background: #fff; color: #000; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 18px; color: #fff; }
.footer-col a, .footer-col li { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }

/* ---- WhatsApp floating button --------------------------------------------------------------- */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 150;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---- Mobile sticky action bar ---------------------------------------------------------------- */
.mobile-actionbar { display: none; }

/* ---- Breadcrumb, page hero -------------------------------------------------------------------- */
.page-hero { background: var(--c-graphite); color: #fff; padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); margin: 0 0 8px; font-weight: 700; }
.page-hero p { color: rgba(255,255,255,0.6); margin: 0; }
.breadcrumb { font-size: 13px; color: var(--c-mid-grey); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--c-black); }
.breadcrumb .sep { margin: 0 6px; }

/* ---- Shop layout ------------------------------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: flex-start; }
.filter-panel { border: 1px solid var(--c-light-grey); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.filter-group { border-bottom: 1px solid var(--c-light-grey); padding-bottom: 18px; margin-bottom: 18px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 9px; cursor: pointer; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.shop-toolbar select, .shop-toolbar input[type=search] { padding: 10px 14px; border: 1px solid var(--c-light-grey); border-radius: var(--radius-sm); font-size: 14px; }
.result-count { font-size: 14px; color: var(--c-mid-grey); }
.mobile-filter-toggle { display: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--c-light-grey); font-size: 14px; font-weight: 600; }
.pagination a:hover { border-color: var(--c-black); }
.pagination .active { background: var(--c-black); color: #fff; border-color: var(--c-black); }

/* ---- Forms (generic) ---------------------------------------------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.form-control {
    width: 100%; padding: 13px 16px; border: 1px solid var(--c-light-grey);
    border-radius: var(--radius-sm); font-size: 14px; background: #fff; transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--c-black); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--c-danger); font-size: 13px; margin-top: 6px; }
.field-error { border-color: var(--c-danger) !important; }
.form-card { max-width: 460px; margin: 0 auto; border: 1px solid var(--c-light-grey); border-radius: var(--radius-lg); padding: 36px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #EAF6EE; color: var(--c-success); border: 1px solid #C7E9D2; }
.alert-error { background: #FBEAE8; color: var(--c-danger); border: 1px solid #F1C6C1; }
.alert-info { background: var(--c-soft-white); color: var(--c-graphite); border: 1px solid var(--c-light-grey); }

/* ---- Product detail ---------------------------------------------------------------------------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pd-gallery-main { aspect-ratio: 1; background: var(--c-soft-white); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px; }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 32px; cursor: zoom-in; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs img { width: 72px; height: 72px; object-fit: contain; background: var(--c-soft-white); border-radius: var(--radius-sm); padding: 8px; border: 1px solid transparent; cursor: pointer; }
.pd-thumbs img.active { border-color: var(--c-black); }
.pd-brand { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-mid-grey); font-weight: 600; }
.pd-name { font-size: 30px; font-weight: 700; margin: 6px 0 10px; }
.pd-rating { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-mid-grey); margin-bottom: 18px; }
.pd-rating .stars { color: var(--c-accent-gold); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.pd-price { font-size: 30px; font-weight: 700; }
.pd-price-old { font-size: 16px; color: var(--c-mid-grey); text-decoration: line-through; }
.pd-option-group { margin-bottom: 20px; }
.pd-option-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; }
.pd-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-swatch { padding: 9px 16px; border: 1px solid var(--c-light-grey); border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.pd-swatch.active, .pd-swatch:hover { border-color: var(--c-black); background: var(--c-black); color: #fff; }
.pd-stock { font-size: 14px; font-weight: 600; color: var(--c-success); margin-bottom: 18px; }
.pd-qty { display: flex; align-items: center; border: 1px solid var(--c-light-grey); border-radius: var(--radius-sm); width: fit-content; margin-bottom: 20px; }
.pd-qty button { width: 40px; height: 42px; font-size: 18px; }
.pd-qty input { width: 46px; text-align: center; border: none; font-size: 15px; font-weight: 600; }
.pd-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 160px; }
.pd-whatsapp { display: inline-flex; align-items: center; gap: 8px; color: var(--c-success); font-weight: 600; font-size: 14px; }

.pd-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 48px 0; }
.pd-highlight { border: 1px solid var(--c-light-grey); border-radius: var(--radius-md); padding: 18px; text-align: center; }
.pd-highlight .label { font-size: 11px; text-transform: uppercase; color: var(--c-mid-grey); font-weight: 700; margin-bottom: 6px; }
.pd-highlight .value { font-size: 14px; font-weight: 600; }

.accordion-item { border-bottom: 1px solid var(--c-light-grey); }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; font-weight: 700; font-size: 16px; }
.accordion-header .plus { transition: transform .25s; font-weight: 400; font-size: 20px; }
.accordion-item.open .accordion-header .plus { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion-item.open .accordion-body { max-height: 1000px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; }
.spec-table tr { border-bottom: 1px solid var(--c-light-grey); }
.spec-table td { padding: 10px 4px; font-size: 14px; }
.spec-table td:first-child { color: var(--c-mid-grey); width: 40%; }

/* ---- Compare ------------------------------------------------------------------------------------- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border: 1px solid var(--c-light-grey); padding: 16px; text-align: left; font-size: 14px; vertical-align: top; }
.compare-table th { background: var(--c-soft-white); }
.compare-table td.diff { background: #FFF8EC; font-weight: 700; }
.compare-slot { width: 220px; text-align: center; padding: 20px; border: 2px dashed var(--c-light-grey); border-radius: var(--radius-md); }

/* ---- Cart ---------------------------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: flex-start; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--c-light-grey); }
.cart-row img { width: 90px; height: 90px; object-fit: contain; background: var(--c-soft-white); border-radius: var(--radius-sm); }
.cart-summary { border: 1px solid var(--c-light-grey); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--c-light-grey); padding-top: 14px; margin-top: 14px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--c-light-grey); border-radius: var(--radius-sm); width: fit-content; }
.qty-stepper button { width: 30px; height: 32px; }
.qty-stepper input { width: 36px; text-align: center; border: none; }

/* ---- Checkout steps ------------------------------------------------------------------------------- */
.checkout-steps { display: flex; justify-content: center; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.checkout-steps .step { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--c-mid-grey); }
.checkout-steps .step .num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-light-grey); display: flex; align-items: center; justify-content: center; }
.checkout-steps .step.active { color: var(--c-black); }
.checkout-steps .step.active .num { background: var(--c-black); color: #fff; border-color: var(--c-black); }
.payment-option { border: 1px solid var(--c-light-grey); border-radius: var(--radius-md); padding: 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; cursor: pointer; }
.payment-option.selected { border-color: var(--c-black); background: var(--c-soft-white); }

/* ---- Order tracking ---------------------------------------------------------------------------------- */
.tracker { display: flex; justify-content: space-between; margin: 48px 0; position: relative; }
.tracker::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--c-light-grey); z-index: 0; }
.tracker .stage { position: relative; z-index: 1; text-align: center; flex: 1; }
.tracker .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--c-light-grey); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.tracker .stage.done .dot { background: var(--c-black); border-color: var(--c-black); color: #fff; }
.tracker .stage.done ~ .stage::before { background: var(--c-light-grey); }
.tracker .label { font-size: 12px; font-weight: 600; color: var(--c-mid-grey); }
.tracker .stage.done .label { color: var(--c-black); }

/* ---- Account dashboard ---------------------------------------------------------------------------------- */
.account-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.account-card { border: 1px solid var(--c-light-grey); border-radius: var(--radius-lg); padding: 26px; transition: box-shadow .25s; }
.account-card:hover { box-shadow: var(--shadow-sm); }
.account-card .num { font-size: 30px; font-weight: 700; }
.account-nav { display: flex; gap: 10px; margin-bottom: 32px; border-bottom: 1px solid var(--c-light-grey); }
.account-nav a { padding: 12px 4px; font-weight: 600; font-size: 14px; color: var(--c-mid-grey); border-bottom: 2px solid transparent; margin-right: 24px; }
.account-nav a.active { color: var(--c-black); border-color: var(--c-black); }

.orders-table, .simple-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td, .simple-table th, .simple-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--c-light-grey); font-size: 14px; }
.orders-table th, .simple-table th { color: var(--c-mid-grey); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--c-soft-white); }

/* ---- Empty / error states ---------------------------------------------------------------------------------- */
.empty-state { text-align: center; padding: 100px 20px; }
.empty-state .icon { width: 64px; height: 64px; margin: 0 auto 24px; opacity: 0.4; }
.empty-state h2 { font-size: 26px; margin: 0 0 10px; }
.empty-state p { color: var(--c-mid-grey); max-width: 420px; margin: 0 auto 28px; }

/* ---- Accordion FAQ ---------------------------------------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }

/* ---- Misc ---------------------------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
hr.divider { border: none; border-top: 1px solid var(--c-light-grey); margin: 32px 0; }
.skeleton { background: linear-gradient(90deg, var(--c-light-grey) 25%, var(--c-soft-white) 37%, var(--c-light-grey) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--c-black); color: #fff; padding: 14px 22px; border-radius: 30px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 300; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 250; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); max-width: 720px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 28px; position: relative; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--c-soft-white); }

/* =========================================================================
   Responsive breakpoints
   ========================================================================= */
@media (max-width: 1280px) {
    .brand-grid { grid-template-columns: repeat(6, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .deal-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .nav-main { display: none; }
    .mobile-toggle { display: inline-flex; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; }
    .hero-cta { justify-content: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .shop-layout { grid-template-columns: 1fr; }
    .filter-panel { display: none; position: fixed; inset: 0; z-index: 220; overflow-y: auto; background: #fff; border-radius: 0; }
    .filter-panel.open { display: block; }
    .mobile-filter-toggle { display: inline-flex; }
    .pd-layout { grid-template-columns: 1fr; gap: 32px; }
    .cart-layout { grid-template-columns: 1fr; }
    .trade-in-promo { grid-template-columns: 1fr; }
    .trade-in-promo .visual { min-height: 220px; order: -1; }
    .store-section { grid-template-columns: 1fr; }
    .account-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .deal-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .finder-options { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-highlights { grid-template-columns: repeat(2, 1fr); }
    .section-pad { padding: 56px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .whatsapp-float { bottom: 84px; }
    .mobile-actionbar {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
        background: #fff; border-top: 1px solid var(--c-light-grey);
        padding: 10px 16px; gap: 10px;
    }
    .mobile-actionbar .btn { flex: 1; }
    body { padding-bottom: 0; }
    .compare-table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .account-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 60px 1fr; row-gap: 10px; }
}
