/* ==========================================================================
   Meezab GhaniGhor — Storefront Stylesheet (Ghorer Bazar style)
   Rebuilt Phase 3. Orange accent, deep-green category bar, clean cards.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
    --primary: #EC7A1C;
    --primary-hover: #d76c12;
    --primary-light: rgba(236, 122, 28, 0.10);
    --primary-lighter: rgba(236, 122, 28, 0.05);

    --navbar: #103a2c;            /* deep green category bar */
    --navbar-hover: #17513b;

    --ink: #1f2723;
    --text-primary: #1f2723;
    --text-secondary: #5b665e;
    --text-muted: #98a09a;
    --logo-brown: #123a2a;        /* legacy alias used by checkout/about */
    --secondary: #103a2c;

    --white: #ffffff;
    --bg-body: #f4f5f2;
    --bg-card: #ffffff;
    --bg-dark: #f7f8f6;           /* legacy alias: light panel */
    --bg-footer: #14201a;

    --border-color: #eceae4;
    --border-light: #f1efe9;

    --success: #2e9c46;
    --success-light: #e7f6ea;
    --danger: #d94b3d;
    --danger-light: #fdece9;
    --warning: #eaa41d;

    --shadow: 0 1px 3px rgba(20, 32, 26, 0.06);
    --shadow-sm: 0 2px 8px rgba(20, 32, 26, 0.06);
    --shadow-md: 0 6px 20px rgba(20, 32, 26, 0.08);
    --shadow-lg: 0 16px 44px rgba(20, 32, 26, 0.14);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;

    --container: 1260px;
    --header-h: 72px;
    --catbar-h: 46px;

    --t-fast: 150ms ease;
    --t: 240ms ease;

    --font-bn: 'Hind Siliguri', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font: var(--font-bn), var(--font-en), -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

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

/* --------------------------------------------------------------------------
   3. HEADER
   -------------------------------------------------------------------------- */
.web-header {
    background: var(--white);
    box-shadow: 0 1px 10px rgba(20, 32, 26, 0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 26px;
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; object-fit: contain; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 22px;
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--primary); line-height: 1.05; }
.brand-name span { display: block; color: var(--navbar); font-size: 13px; font-weight: 700; letter-spacing: 2px; }

.header-search {
    flex: 1;
    max-width: 560px;
    height: 44px;
    display: flex;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.header-search input { flex: 1; height: 100%; padding: 0 16px; color: var(--text-primary); }
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
    width: 52px; background: var(--primary); color: #fff; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t-fast);
}
.header-search button:hover { background: var(--primary-hover); }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.header-action {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 10px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 11px; font-weight: 600;
    transition: color var(--t-fast), background var(--t-fast);
}
.header-action i { font-size: 19px; }
.header-action:hover { color: var(--primary); background: var(--primary-lighter); }
.header-action .cart-count-badge {
    position: absolute; top: 0; right: 4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--primary); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
    border-radius: 9px;
}
.hamburger-btn { display: none; font-size: 22px; color: var(--text-primary); padding: 8px; }

/* Category nav */
.catnav {
    background: var(--navbar);
    height: var(--catbar-h);
    position: sticky; top: var(--header-h); z-index: 890;
}
.catnav-inner {
    max-width: var(--container);
    margin: 0 auto; padding: 0 20px;
    height: 100%;
    display: flex; align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
}
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 0 16px; height: 100%;
    color: rgba(255,255,255,.86); font-size: 13.5px; font-weight: 500; white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast);
}
.catnav-link:hover, .catnav-link.active { color: #fff; background: var(--navbar-hover); }
.catnav-link.is-all { background: var(--primary); font-weight: 600; }
.catnav-link.is-all:hover { background: var(--primary-hover); }

/* --------------------------------------------------------------------------
   4. FLOATING SIDE CART
   -------------------------------------------------------------------------- */
.float-cart {
    position: fixed; top: 42%; right: 0; z-index: 850;
    background: var(--primary); color: #fff;
    border-radius: 10px 0 0 10px;
    padding: 12px 12px; text-align: center;
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 76px;
    transition: background var(--t-fast);
}
.float-cart:hover { background: var(--primary-hover); }
.float-cart i { font-size: 20px; }
.float-cart .fc-items { font-size: 12px; font-weight: 700; margin-top: 2px; }
.float-cart .fc-total { font-size: 12px; font-weight: 700; opacity: .95; }

/* --------------------------------------------------------------------------
   5. SECTION SHELL
   -------------------------------------------------------------------------- */
.section { max-width: var(--container); margin: 0 auto; padding: 30px 20px 0; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.section-head.center { flex-direction: column; text-align: center; gap: 4px; }
.section-title { font-size: 21px; font-weight: 700; color: var(--text-primary); }
.section-sub { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.section-viewall {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    transition: gap var(--t-fast);
}
.section-viewall:hover { gap: 10px; }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
    max-width: var(--container);
    margin: 18px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: 1fr 340px; gap: 16px;
}
.hero-main {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 320px;
    background: linear-gradient(120deg, #14402f, #1d5a40);
    display: flex; align-items: center;
}
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-main-content { position: relative; z-index: 2; padding: 40px 44px; color: #fff; max-width: 560px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
    padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; margin-bottom: 14px;
}
.hero-main-content h1 { font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero-main-content p { font-size: 14.5px; opacity: .92; line-height: 1.7; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-card {
    flex: 1; border-radius: var(--radius-lg); padding: 22px 24px;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    color: #fff; position: relative; overflow: hidden;
}
.hero-card i { font-size: 26px; margin-bottom: 6px; }
.hero-card h3 { font-size: 18px; font-weight: 700; }
.hero-card p { font-size: 13px; opacity: .92; line-height: 1.5; }
.hero-card--promo { background: linear-gradient(135deg, #EC7A1C, #d76c12); }
.hero-card--offer { background: linear-gradient(135deg, #1d5a40, #14402f); }

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.btn-shop {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary); color: #fff;
    padding: 11px 24px; border-radius: var(--radius);
    font-weight: 700; font-size: 14px;
    transition: background var(--t-fast), transform var(--t-fast);
}
.btn-shop:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-shop.outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-shop.outline:hover { background: rgba(255,255,255,.12); }
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 26px; background: var(--primary); color: #fff;
    border-radius: var(--radius); font-size: 14.5px; font-weight: 700;
    transition: background var(--t-fast), transform var(--t-fast);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 26px; background: transparent; color: var(--primary);
    border: 1.5px solid var(--primary); border-radius: var(--radius); font-size: 14.5px; font-weight: 700;
    transition: background var(--t-fast), color var(--t-fast);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* --------------------------------------------------------------------------
   8. CATEGORY CIRCLES
   -------------------------------------------------------------------------- */
.cat-circles {
    display: flex; gap: 14px; overflow-x: auto; padding: 6px 0 12px;
    scrollbar-width: none;
}
.cat-circles::-webkit-scrollbar { display: none; }
.cat-circle {
    flex-shrink: 0; width: 96px;
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    transition: transform var(--t-fast);
}
.cat-circle:hover { transform: translateY(-3px); }
.cat-circle-icon {
    width: 82px; height: 82px; border-radius: 50%;
    background: var(--white); border: 1.5px solid var(--border-color);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cat-circle:hover .cat-circle-icon { border-color: var(--primary); box-shadow: 0 6px 18px var(--primary-light); }
.cat-circle-icon i { font-size: 30px; color: var(--primary); }
.cat-circle-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle-name { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); text-align: center; line-height: 1.3; }

/* --------------------------------------------------------------------------
   9. PRODUCT CARD
   -------------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.product-rail {
    display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.product-rail::-webkit-scrollbar { height: 6px; }
.product-rail::-webkit-scrollbar-thumb { background: #d8d8d0; border-radius: 3px; }
.product-rail .p-card { flex: 0 0 230px; scroll-snap-align: start; }

.p-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-color); }
.p-card-media {
    position: relative; height: 200px; background: #fafaf8;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.p-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform var(--t); }
.p-card:hover .p-card-media img { transform: scale(1.04); }
.p-card-media .no-img { font-size: 46px; color: #d5d5cd; }

.p-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.p-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px; line-height: 1.4; color: #fff; width: fit-content;
}
.p-badge.save { background: var(--success); }
.p-badge.best { background: var(--primary); }
.p-badge.new { background: #2f7bd8; }
.p-badge.combo { background: var(--primary); }
.p-badge-corner { position: absolute; top: 10px; right: 10px; z-index: 2; }

.p-card-body { padding: 13px 15px 15px; flex-grow: 1; display: flex; flex-direction: column; }
.p-cat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.p-title {
    font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 39px;
    transition: color var(--t-fast);
}
.p-card:hover .p-title { color: var(--primary); }
.p-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 12px; }
.p-price-now { font-size: 18px; font-weight: 800; color: var(--primary); }
.p-price-was { font-size: 13.5px; color: var(--text-muted); text-decoration: line-through; }
.btn-cart {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; height: 40px;
    background: var(--white); color: var(--primary);
    border: 1.5px solid var(--primary); border-radius: var(--radius);
    font-size: 13.5px; font-weight: 700;
    transition: background var(--t-fast), color var(--t-fast);
}
.btn-cart:hover { background: var(--primary); color: #fff; }
.btn-cart.solid { background: var(--primary); color: #fff; }
.btn-cart.solid:hover { background: var(--primary-hover); }
.p-card-media.out .btn-cart, .btn-cart:disabled { opacity: .5; pointer-events: none; }

.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
}
.empty-state i { font-size: 44px; color: #d5d5cd; margin-bottom: 14px; display: block; }

/* --------------------------------------------------------------------------
   10. BRANDS STRIP
   -------------------------------------------------------------------------- */
.brands-strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 0 10px; scrollbar-width: none; }
.brands-strip::-webkit-scrollbar { display: none; }
.brand-chip {
    flex-shrink: 0; min-width: 150px; height: 78px;
    background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
    color: var(--text-secondary); font-weight: 700; font-size: 15px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.brand-chip:hover { border-color: var(--primary); box-shadow: 0 4px 14px var(--primary-light); }
.brand-chip img { max-height: 46px; max-width: 120px; object-fit: contain; }
.brand-chip i { color: var(--primary); font-size: 20px; }

/* --------------------------------------------------------------------------
   11. COMBO BAND (highlighted section)
   -------------------------------------------------------------------------- */
.combo-band {
    max-width: var(--container); margin: 30px auto 0; padding: 22px 20px;
    background: var(--primary-lighter); border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
}
.combo-band .section-head { padding: 0 4px; }

/* --------------------------------------------------------------------------
   12. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tcard {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 22px; transition: box-shadow var(--t);
}
.tcard:hover { box-shadow: var(--shadow-md); }
.tcard-stars { color: var(--warning); font-size: 13px; margin-bottom: 11px; }
.tcard-text { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 15px; }
.tcard-author { display: flex; align-items: center; gap: 10px; }
.tcard-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 15px;
}
.tcard-author h4 { font-size: 13.5px; font-weight: 700; }
.tcard-author span { font-size: 12px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. SHOP / LISTING PAGE
   -------------------------------------------------------------------------- */
.shop-breadcrumb {
    max-width: var(--container); margin: 16px auto 0; padding: 0 20px;
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted);
}
.shop-breadcrumb a { color: var(--text-secondary); }
.shop-breadcrumb a:hover { color: var(--primary); }
.shop-breadcrumb .sep { font-size: 10px; color: #ccc; }
.shop-breadcrumb .current { color: var(--text-primary); font-weight: 600; }

.shop {
    max-width: var(--container); margin: 16px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: 250px 1fr; gap: 22px;
}
.shop-aside { position: sticky; top: calc(var(--header-h) + var(--catbar-h) + 16px); align-self: start; }
.filter-card {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 16px; margin-bottom: 14px;
}
.filter-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--text-primary); margin-bottom: 12px; padding-bottom: 9px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 7px;
}
.filter-title i { color: var(--primary); }
.filter-list li { margin-bottom: 4px; }
.filter-link {
    display: flex; align-items: center; gap: 9px; padding: 6px 4px;
    font-size: 13.5px; color: var(--text-secondary); border-radius: 6px;
    transition: color var(--t-fast), background var(--t-fast);
}
.filter-link:hover { color: var(--primary); background: var(--primary-lighter); }
.filter-link.active { color: var(--primary); font-weight: 600; }
.filter-link i { font-size: 14px; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-inputs input {
    width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--border-color);
    border-radius: 6px; font-size: 13px;
}
.price-inputs input:focus { border-color: var(--primary); }
.btn-apply {
    width: 100%; height: 38px; background: var(--navbar); color: #fff;
    border-radius: 6px; font-weight: 600; font-size: 13.5px; transition: background var(--t-fast);
}
.btn-apply:hover { background: var(--navbar-hover); }

.shop-bar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 11px 16px; margin-bottom: 18px;
}
.shop-bar-title { font-size: 15px; font-weight: 700; }
.shop-bar-title small { color: var(--text-muted); font-weight: 500; font-size: 13px; }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.shop-sort select {
    height: 36px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 6px;
    font-size: 13px; color: var(--text-primary); cursor: pointer; background: var(--white);
}
.shop-main .product-grid { grid-template-columns: repeat(3, 1fr); }

/* --------------------------------------------------------------------------
   14. CART DRAWER
   -------------------------------------------------------------------------- */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(20,32,26,.45); z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; right: 0; width: 400px; max-width: 92vw; height: 100vh;
    background: var(--white); z-index: 1001; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform var(--t);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border-light);
}
.cart-drawer-head h3 { font-size: 15px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; gap: 9px; }
.cart-drawer-head button { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.cart-empty i { font-size: 46px; color: #dcdcd4; margin-bottom: 14px; display: block; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.cart-line:last-child { border-bottom: none; }
.cart-line-img {
    width: 62px; height: 62px; border-radius: 8px; background: #fafaf8; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #d0d0c8; font-size: 22px;
}
.cart-line-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-title { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.cart-line-calc { font-size: 12.5px; color: var(--text-muted); }
.cart-line-calc b { color: var(--primary); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: 7px; overflow: hidden; margin-top: 6px; }
.qty-stepper button { width: 26px; height: 28px; font-size: 15px; color: var(--text-secondary); background: #faf9f6; }
.qty-stepper button:hover { background: var(--primary-light); color: var(--primary); }
.qty-stepper span { min-width: 32px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-line-remove { color: var(--danger); font-size: 20px; line-height: 1; align-self: flex-start; padding: 2px 4px; }
.cart-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border-light); background: #faf9f6; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; margin-bottom: 13px; }
.cart-total-row strong { color: var(--primary); font-size: 19px; }
.btn-checkout {
    display: block; width: 100%; text-align: center;
    background: var(--primary); color: #fff; padding: 13px; border-radius: var(--radius);
    font-weight: 800; font-size: 14.5px; letter-spacing: .5px;
    transition: background var(--t-fast);
}
.btn-checkout:hover { background: var(--primary-hover); }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.web-footer { background: var(--bg-footer); color: #b7c1ba; margin-top: 50px; padding-top: 46px; }
.footer-grid {
    max-width: var(--container); margin: 0 auto; padding: 0 20px 36px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo h4 { color: #fff; font-size: 18px; }
.footer-about p { font-size: 13.5px; line-height: 1.7; color: #8f9c93; margin-bottom: 14px; }
.footer-contact p { font-size: 13px; color: #9aa79e; margin-bottom: 7px; display: flex; align-items: center; gap: 9px; }
.footer-contact i { color: var(--primary); width: 15px; }
.footer-social { display: flex; gap: 9px; margin-top: 14px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.07);
    display: flex; align-items: center; justify-content: center; color: #cfd6d0; font-size: 15px;
    transition: background var(--t-fast), color var(--t-fast);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #9aa79e; font-size: 13.5px; transition: color var(--t-fast), padding-left var(--t-fast); }
.footer-col ul li a:hover { color: var(--primary); padding-left: 3px; }
.footer-pay {
    max-width: var(--container); margin: 0 auto; padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-pay-label { font-size: 13px; color: #8f9c93; }
.footer-pay-icons { display: flex; gap: 7px; flex-wrap: wrap; font-size: 26px; color: #9aa79e; }
.footer-bottom {
    max-width: var(--container); margin: 0 auto; padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center; font-size: 12.5px; color: #6f7a72;
}

/* --------------------------------------------------------------------------
   16. LEGACY FORM / ALERT (checkout, about, cart still use these)
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 4px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.form-control {
    width: 100%; height: 44px; padding: 0 13px;
    border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 14px;
    color: var(--text-primary); background: var(--white);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea.form-control { height: auto; min-height: 84px; padding: 11px 13px; resize: vertical; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; }
.alert-danger { background: var(--danger-light); color: #a3271b; border-left: 4px solid var(--danger); }
.alert-success { background: var(--success-light); color: #1c6b30; border-left: 4px solid var(--success); }

/* --------------------------------------------------------------------------
   17. PAGINATION (combo page etc.)
   -------------------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 28px; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-secondary);
    border: 1px solid var(--border-color); background: var(--white);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* --------------------------------------------------------------------------
   18. PRODUCT CARD LINKS
   -------------------------------------------------------------------------- */
.p-media-link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.p-media-link img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.p-title a { color: inherit; }

/* --------------------------------------------------------------------------
   19. SINGLE PRODUCT PAGE
   -------------------------------------------------------------------------- */
.product-detail {
    max-width: var(--container); margin: 18px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: 460px 1fr; gap: 34px;
}
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main {
    background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pd-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 20px; }
.pd-main .no-img { font-size: 90px; color: #dcdcd4; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb {
    width: 72px; height: 72px; border: 1.5px solid var(--border-color); border-radius: 8px;
    overflow: hidden; cursor: pointer; background: var(--white); padding: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color var(--t-fast);
}
.pd-thumb:hover, .pd-thumb.active { border-color: var(--primary); }
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.pd-info h1 { font-size: 26px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }
.pd-sku { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.pd-prices { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border-light); }
.pd-price-now { font-size: 30px; font-weight: 800; color: var(--primary); }
.pd-price-was { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.pd-save { background: var(--success-light); color: #1c6b30; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pd-stock { font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.pd-stock.in { color: var(--success); }
.pd-stock.out { color: var(--danger); }
.pd-desc-short { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 22px; }
.pd-buy-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin-bottom: 18px; }
.pd-actions .btn-lg { height: 50px; font-size: 15px; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-call { background: #234b8f; color: #fff; }
.btn-call:hover { background: #1c3d74; }
.pd-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); background: var(--white); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 999px; }

.pd-tabs { max-width: var(--container); margin: 34px auto 0; padding: 0 20px; }
.pd-tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border-color); }
.pd-tab-btn {
    padding: 12px 22px; font-size: 14.5px; font-weight: 600; color: var(--text-secondary);
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color var(--t-fast), border-color var(--t-fast);
}
.pd-tab-btn:hover { color: var(--primary); }
.pd-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; background: var(--white); border: 1px solid var(--border-light); border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 24px; }
.tab-content.active { display: block; }
.tab-content p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.85; white-space: pre-line; }

.review-summary { display: flex; gap: 34px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.review-avg { text-align: center; }
.review-avg-score { font-size: 46px; font-weight: 800; line-height: 1; }
.review-avg-stars { color: var(--warning); font-size: 15px; margin: 6px 0; }
.review-avg-count { font-size: 13px; color: var(--text-muted); }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.review-item:last-child { border-bottom: none; }
.review-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-item-name { font-weight: 700; font-size: 14px; }
.review-item-stars { color: var(--warning); font-size: 12.5px; }
.review-item-date { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.review-item-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.review-form { background: #faf9f6; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.review-form h3 { font-size: 16px; margin-bottom: 16px; }
.star-input { display: flex; gap: 5px; margin-bottom: 14px; font-size: 24px; color: var(--border-color); }
.star-input i { cursor: pointer; transition: color var(--t-fast); }
.star-input i.on { color: var(--warning); }

.related { max-width: var(--container); margin: 34px auto 0; padding: 0 20px; }

/* --------------------------------------------------------------------------
   20. COMBO PAGES
   -------------------------------------------------------------------------- */
.combo-detail {
    max-width: var(--container); margin: 18px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: 460px 1fr; gap: 34px;
}
.combo-detail .pd-main { height: 380px; }
.combo-items { margin: 18px 0; }
.combo-items h4 { font-size: 15px; margin-bottom: 12px; }
.combo-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.combo-item-img { width: 52px; height: 52px; border-radius: 8px; background: #fafaf8; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #d0d0c8; }
.combo-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.combo-item-name { flex: 1; font-size: 14px; }
.combo-item-qty { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* --------------------------------------------------------------------------
   21. CHECKOUT PAGE
   -------------------------------------------------------------------------- */
.checkout {
    max-width: var(--container); margin: 20px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start;
}
.co-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 20px; }
.co-card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 9px; }
.co-card-title i { color: var(--primary); }
.co-review-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.co-review-item:last-child { border-bottom: none; }
.co-review-img { width: 54px; height: 54px; border-radius: 8px; background: #fafaf8; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #d0d0c8; }
.co-review-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.co-review-info { flex: 1; min-width: 0; }
.co-review-name { font-size: 14px; font-weight: 600; }
.co-review-meta { font-size: 12.5px; color: var(--text-muted); }
.co-gift { display: inline-block; background: var(--success-light); color: #1c6b30; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.co-review-price { font-weight: 700; }
.co-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.co-form-row.full { grid-template-columns: 1fr; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1.5px solid var(--border-color); border-radius: var(--radius); cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.pay-method:hover { border-color: var(--primary); background: var(--primary-lighter); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-lighter); }
.pay-method input { width: 18px; height: 18px; accent-color: var(--primary); }
.pay-method-label { font-size: 14px; font-weight: 600; }
.pay-method i { margin-left: auto; font-size: 20px; color: var(--primary); }
.co-summary { position: sticky; top: calc(var(--header-h) + var(--catbar-h) + 16px); }
.co-sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.co-sum-row.total { font-size: 18px; font-weight: 800; color: var(--text-primary); padding-top: 12px; margin-top: 6px; border-top: 2px solid var(--border-color); }
.co-sum-row.total span:last-child { color: var(--primary); }
.co-zones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.co-zone { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: var(--radius); cursor: pointer; font-size: 13.5px; transition: border-color var(--t-fast); }
.co-zone:hover, .co-zone.selected { border-color: var(--primary); }
.co-zone input { accent-color: var(--primary); }
.co-zone .zc { margin-left: auto; font-weight: 700; }
.result-box { max-width: 620px; margin: 40px auto; padding: 0 20px; text-align: center; }
.result-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 44px 40px; }
.result-icon { font-size: 62px; margin-bottom: 18px; }
.result-icon.ok { color: var(--success); }
.result-icon.fail { color: var(--danger); }
.result-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.result-detail { background: #faf9f6; border-radius: var(--radius); padding: 18px 20px; text-align: left; margin: 22px 0; }
.result-detail p { margin: 5px 0; font-size: 14px; }

/* --------------------------------------------------------------------------
   22. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: 1fr; }
    .hero-side { flex-direction: row; }
    .shop-main .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-search { display: none; }
    .header-action span { display: none; }
    .hamburger-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .shop { grid-template-columns: 1fr; }
    .shop-aside { position: static; }
    .product-grid, .shop-main .product-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: 1fr; }
    .hero-main-content { padding: 30px 26px; }
    .hero-main-content h1 { font-size: 26px; }
}
@media (max-width: 900px) {
    .product-detail, .combo-detail { grid-template-columns: 1fr; gap: 22px; }
    .pd-main { height: 340px; }
    .checkout { grid-template-columns: 1fr; }
    .co-summary { position: static; }
}
@media (max-width: 480px) {
    /* Header actions (lang/track-order/sign-in/cart/hamburger) were wider
       than a narrow phone screen, forcing the whole page to scroll
       horizontally — tighten spacing/padding so they always fit. */
    .header-inner { gap: 10px; padding: 0 12px; }
    .brand img { height: 36px; }
    .brand-name { font-size: 15px; }
    .brand-name span { display: none; }
    .header-actions { gap: 0; }
    .header-action { padding: 6px 6px; }
    .header-action i { font-size: 17px; }
    .hamburger-btn { padding: 6px 4px; font-size: 20px; }

    .product-grid, .shop-main .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-side { flex-direction: column; }
    .cart-drawer { width: 100%; }
    .section-title { font-size: 18px; }
    .p-card-media { height: 160px; }
    .pd-actions { grid-template-columns: 1fr; }
    .co-form-row { grid-template-columns: 1fr; }
    .pd-info h1 { font-size: 22px; }
    .pd-price-now { font-size: 25px; }
}
