/* ==========================================================
   Shajghor storefront styles
   Colors are kept in variables so the brand can be changed easily.
   ========================================================== */

:root {
    --brand: #0f5c4d;
    --brand-dark: #0a4239;
    --brand-light: #e7f1ee;
    --gold: #c8963e;
    --gold-light: #f7eedd;
    --cream: #faf7f2;
    --ink: #1c2321;
    --muted: #6b7470;
    --line: #e8e2d8;
    --sale: #c2410c;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(28, 35, 33, 0.07);
    --font-body: "Jost", "Hind Siliguri", system-ui, sans-serif;
    --font-title: "Playfair Display", "Hind Siliguri", Georgia, serif;
}

html[lang="bn"] {
    --font-body: "Hind Siliguri", "Jost", system-ui, sans-serif;
    --font-title: "Hind Siliguri", "Playfair Display", serif;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    font-size: 15px;
    padding-bottom: 64px; /* space for mobile bottom nav */
}

@media (min-width: 992px) {
    body { padding-bottom: 0; }
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, .title-font { font-family: var(--font-title); font-weight: 600; }

img { max-width: 100%; }

.text-muted-soft { color: var(--muted) !important; }
.bg-cream { background: var(--cream); }
.bg-white-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 500; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #b0802f; border-color: #b0802f; color: #fff; }
.btn-light-soft { background: var(--brand-light); color: var(--brand); border: 0; }
.btn-light-soft:hover { background: #d5e8e2; color: var(--brand-dark); }

.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(15, 92, 77, .12); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 500; font-size: 14px; margin-bottom: .3rem; }

/* ---------- demo login bar (only when DEMO_MODE=True) ---------- */
.demo-bar {
    background: var(--gold);
    color: #fff;
    font-size: 13px;
    padding: 5px 0;
    overflow-x: auto;
    white-space: nowrap;
}
.demo-bar .demo-label { font-weight: 500; margin-right: 4px; }
.demo-bar form { display: inline; }
.demo-btn {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 12.5px;
}
.demo-btn:hover { background: #fff; color: var(--gold); }

.demo-card { border-style: dashed; box-shadow: none; padding: 22px 24px; }
.demo-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.demo-account:last-child { border-bottom: 0; }

/* ---------- top bar ---------- */
.topbar {
    background: var(--brand-dark);
    color: #cfe0da;
    font-size: 13px;
    padding: 7px 0;
}
.topbar a { color: #cfe0da; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--gold); margin-right: 3px; }
.topbar-info { display: flex; gap: 22px; }
.topbar-links { display: flex; align-items: center; gap: 18px; }

.lang-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 2px;
}
.lang-switch button {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 20px;
    line-height: 1.6;
}
.lang-switch button.active { background: var(--gold); color: #fff; }

/* ---------- header ---------- */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(28, 35, 33, .08); }
.header-main { border-bottom: 1px solid var(--line); }
.header-row {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 76px;
}
.site-logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.site-logo img { max-height: 44px; }
.logo-text {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .3px;
    line-height: 1;
}
.logo-text span { color: var(--gold); }

.search-box { position: relative; flex: 1; max-width: 640px; margin: 0 auto; }
.search-box .search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}
.search-box input {
    height: 48px;
    border-radius: 12px;
    padding: 0 104px 0 46px;
    background: var(--cream);
    border: 1.5px solid var(--line);
    font-size: 14.5px;
}
.search-box input:focus { background: #fff; border-color: var(--brand); }
.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 20px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    border: 0;
    font-weight: 500;
    font-size: 14px;
}
.search-box button:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font-size: 22px;
}
.icon-btn:hover { background: var(--cream); color: var(--brand); }
.cart-label { font-size: 14px; font-weight: 500; }
.count-badge {
    position: absolute;
    top: 3px;
    left: 26px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--gold);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.account-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    margin-right: 4px;
    border-radius: 12px;
    color: var(--ink);
}
.account-trigger:hover { background: var(--cream); color: var(--ink); }
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}
.avatar-empty { background: var(--brand-light); color: var(--brand); font-size: 18px; }
.avatar-lg { width: 46px; height: 46px; font-size: 19px; background: var(--gold); }
.account-text { display: flex; flex-direction: column; line-height: 1.25; }
.account-text small { color: var(--muted); font-size: 12px; }
.account-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; }
.account-text strong i { font-size: 10px; }
.dot-badge {
    position: absolute;
    top: 7px;
    left: 33px;
    width: 10px;
    height: 10px;
    background: var(--sale);
    border: 2px solid #fff;
    border-radius: 50%;
}

.account-menu {
    min-width: 240px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(28, 35, 33, .12);
}
.account-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14.5px;
}
.account-menu .dropdown-item i { color: var(--muted); font-size: 16px; }
.account-menu .dropdown-item:hover { background: var(--brand-light); color: var(--brand); }
.account-menu .dropdown-item:hover i { color: var(--brand); }
.account-menu .dropdown-item.text-danger i { color: inherit; }
.account-menu-head { padding: 8px 12px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.account-menu-head strong { display: block; }
.account-menu-head small { color: var(--muted); }

.mobile-search { margin-bottom: 12px; max-width: none; }
.mobile-search input { height: 44px; padding-right: 16px; }

@media (max-width: 991.98px) {
    .header-row { height: 62px; gap: 6px; }
    .logo-text { font-size: 25px; }
    .icon-btn { font-size: 25px; }
    .site-logo { margin-right: auto; }
}

/* ---------- main menu (desktop) ---------- */
.main-nav { position: relative; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; height: 52px; }
.nav-links {
    list-style: none;
    display: flex;
    align-items: stretch;
    height: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
}
.nav-links > li { display: flex; }
.nav-links > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    color: var(--ink);
    font-weight: 500;
    font-size: 14.5px;
    white-space: nowrap;
}
.nav-links > li > a i { font-size: 10px; color: var(--muted); transition: transform .2s; }
.nav-links > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .2s;
}
.nav-links > li:hover > a,
.nav-links > li:focus-within > a,
.nav-links > li > a.active { color: var(--brand); }
.nav-links > li:hover > a::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links > li:hover > a i { transform: rotate(180deg); color: var(--brand); }

/* only show as many categories as fit the screen, the rest are in "All categories" */
.nav-links .show-xl,
.nav-links .show-xxl { display: none; }
@media (min-width: 1200px) { .nav-links .show-xl { display: flex; } }
@media (min-width: 1400px) { .nav-links .show-xxl { display: flex; } }

.nav-flash {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 30px;
    background: #fdece4;
    color: var(--sale);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.nav-flash:hover, .nav-flash.active { background: var(--sale); color: #fff; }

/* "All categories" dropdown */
.all-cats { position: relative; height: 100%; display: flex; align-items: center; margin-right: 10px; }
.all-cats-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}
.all-cats:hover .all-cats-btn, .all-cats:focus-within .all-cats-btn { background: var(--brand-dark); }
.all-cats-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1031;
    width: 270px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 40px rgba(28, 35, 33, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.all-cats:hover .all-cats-panel,
.all-cats:focus-within .all-cats-panel { opacity: 1; visibility: visible; transform: none; transition-delay: .08s; }
.all-cats-panel ul { list-style: none; margin: 0; padding: 0; }
.all-cats-panel > ul > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: var(--ink);
    font-size: 14.5px;
}
.all-cats-panel > ul > li > a i { font-size: 11px; color: var(--muted); }
.all-cats-panel > ul > li:hover > a { background: var(--brand-light); color: var(--brand); }
.all-cats-flyout {
    position: absolute;
    top: -1px;
    left: 100%;
    width: 250px;
    min-height: calc(100% + 1px);
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 14px 14px 0;
    box-shadow: 18px 18px 40px rgba(28, 35, 33, .1);
    display: none;
}
.all-cats-panel > ul > li:hover .all-cats-flyout { display: block; }
.flyout-title { font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.all-cats-flyout ul li a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; }
.all-cats-flyout ul li a:hover { color: var(--brand); }
.all-cats-flyout .see-all { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 500; }

.cat-thumb {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* mega menu for one category */
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(28, 35, 33, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.has-mega:hover > .mega-menu,
.has-mega:focus-within > .mega-menu { opacity: 1; visibility: visible; transform: none; transition-delay: .1s; }
.mega-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 12px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}
@media (min-width: 1400px) { .mega-inner { max-width: 1320px; } }
.mega-title { font-family: var(--font-title); font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.mega-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 18px;
}
.mega-links ul a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 14.5px;
}
.mega-links ul a:hover { background: var(--brand-light); color: var(--brand); }
.mega-feature {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--brand-light);
}
.mega-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mega-feature:hover img { transform: scale(1.04); }
.mega-feature span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 18px;
    background: linear-gradient(0deg, rgba(10, 66, 57, .85), rgba(10, 66, 57, 0));
    color: #fff;
    font-size: 13.5px;
}
.mega-feature span strong { display: block; font-family: var(--font-title); font-size: 19px; }

/* ---------- phone side menu ---------- */
.mobile-menu.offcanvas { width: 320px; }
.mm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.mm-head .logo-text { font-size: 25px; }
.mm-user { padding: 18px; background: var(--brand); color: #fff; }
.mm-user small { color: rgba(255, 255, 255, .75); }
.mm-user .btn-light { background: #fff; color: var(--brand); border: 0; }
.mm-user-links { display: flex; gap: 6px; margin-top: 14px; }
.mm-user-links a {
    flex: 1;
    padding: 8px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 12px;
    text-align: center;
}
.mm-user-links a i { display: block; font-size: 18px; margin-bottom: 2px; }
.mm-user-links b { background: var(--gold); border-radius: 8px; padding: 0 5px; font-size: 10px; }
.mm-label {
    margin: 0;
    padding: 18px 18px 6px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.mm-cats .accordion-item { border: 0; }
.mm-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 18px;
    border: 0;
    background: none;
    text-align: left;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
}
.mm-cat i { font-size: 13px; color: var(--muted); transition: transform .2s; }
.mm-cat:hover { color: var(--brand); }
.mm-cat[aria-expanded="true"] { background: var(--brand-light); color: var(--brand); }
.mm-cat[aria-expanded="true"] i { transform: rotate(180deg); color: var(--brand); }
.mm-sub { padding: 2px 0 10px 60px; background: var(--brand-light); }
.mm-sub a { display: block; padding: 7px 0; color: var(--ink); font-size: 14px; }
.mm-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 18px; }
.mm-quick a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: 13.5px;
}
.mm-quick a i { font-size: 16px; color: var(--brand); }
.mm-quick a.text-danger i { color: var(--sale); }
.mm-seller-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 18px 0;
    padding: 12px 14px;
    border: 1px dashed var(--gold);
    border-radius: 12px;
    background: var(--gold-light);
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.3;
}
.mm-seller-cta i { font-size: 22px; color: var(--gold); }
.mm-seller-cta strong { display: block; font-size: 14px; }
.mm-footer { display: grid; gap: 14px; padding: 18px; margin-top: 12px; border-top: 1px solid var(--line); }
.mm-footer .lang-switch { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.mm-hotline { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.mm-hotline i { color: var(--gold); font-size: 20px; }

/* ---------- phone bottom bar ---------- */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .05);
}
.mobile-bottom-nav a, .mobile-bottom-nav button {
    position: relative;
    flex: 1;
    padding: 8px 0 6px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}
.mobile-bottom-nav i { display: block; font-size: 20px; margin-bottom: 1px; }
.mobile-bottom-nav a.active { color: var(--brand); font-weight: 500; }
.mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--gold);
}
.mobile-bottom-nav .count-badge { top: 4px; left: 54%; }

/* ---------- hero ---------- */
.hero { padding: 18px 0 8px; }
.hero-swiper { border-radius: 18px; overflow: hidden; }
.hero-slide { position: relative; aspect-ratio: 21/9; background: var(--brand-light); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 7%;
    background: linear-gradient(90deg, rgba(10, 66, 57, .72) 0%, rgba(10, 66, 57, 0) 65%);
    color: #fff;
}
.hero-slide .hero-text h2 { font-size: clamp(22px, 4vw, 46px); max-width: 520px; }
.hero-slide .hero-text p { max-width: 440px; opacity: .9; }
/* side banners always match the slider height */
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; height: 100%; }
.hero-side a { position: relative; display: block; min-height: 0; border-radius: 18px; overflow: hidden; background: var(--gold-light); }
.hero-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-side a:hover img { transform: scale(1.03); }
.hero-empty {
    aspect-ratio: 21/9;
    border-radius: 18px;
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 60%, #1d3b35 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 7%;
}
.swiper-pagination-bullet-active { background: var(--gold) !important; }

@media (max-width: 767px) {
    .hero { padding-top: 12px; }
    .hero-slide { aspect-ratio: 16/10; }
    .hero-swiper { border-radius: 14px; }
}

/* ---------- trust strip ---------- */
.trust-strip {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 10px;
}
.trust-item { display: flex; align-items: center; gap: 10px; padding: 4px 10px; }
.trust-item i {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.trust-item strong { display: block; font-size: 14px; font-weight: 600; }
.trust-item small { color: var(--muted); font-size: 12px; }

@media (max-width: 575.98px) {
    .trust-strip { padding: 12px 6px; }
    .trust-item { flex-direction: column; text-align: center; gap: 6px; padding: 6px 4px; }
    .trust-item i { width: 38px; height: 38px; font-size: 17px; }
    .trust-item strong { font-size: 13px; }
    .trust-item small { font-size: 11.5px; line-height: 1.3; display: block; }
}

/* ---------- section heading ---------- */
.section { padding: 34px 0 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; gap: 10px; }
.section-head h2 { font-size: clamp(20px, 3vw, 28px); margin: 0; position: relative; }
.section-head h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    margin-top: 8px;
}
.section-head .view-all { font-weight: 500; white-space: nowrap; }

/* ---------- category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.cat-tile { text-align: center; color: var(--ink); }
.cat-tile .cat-img {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--white);
    border: 2px solid var(--line);
    padding: 5px;
    transition: border-color .2s, transform .2s;
}
.cat-tile .cat-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat-tile .cat-img .cat-letter {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 30px;
}
.cat-tile:hover .cat-img { border-color: var(--gold); transform: translateY(-3px); }
.cat-tile span { display: block; margin-top: 8px; font-weight: 500; font-size: 14px; }

@media (max-width: 575px) {
    .cat-tiles { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .cat-tile span { font-size: 12px; }
}

/* ---------- product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }
.product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.p-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.p-card .p-image { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f1ede6; display: block; }
.p-card .p-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.p-card .p-image .img-hover { position: absolute; inset: 0; opacity: 0; }
.p-card:hover .p-image .img-hover { opacity: 1; }
.p-card:hover .p-image img.img-main { transform: scale(1.04); }

.p-card .badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sale);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}
.p-card .badge-flash { top: 38px; background: var(--gold); }
.p-card .badge-stock {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(28, 35, 33, .8);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.wishlist-btn.active, .wishlist-btn:hover { color: #e11d48; }

.p-card .p-body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.p-card .p-vendor { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.p-card .p-name {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    margin: 3px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    line-height: 1.35;
}
.p-card .p-name:hover { color: var(--brand); }
.price-now { font-weight: 600; color: var(--brand); font-size: 16px; }
.price-old { color: #9aa29e; text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.p-card .p-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.p-card .p-actions form { flex: 1; }
.p-card .p-actions .btn { font-size: 13px; padding: 7px 8px; }

.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.stars.lg { font-size: 17px; }

/* ---------- flash sale band ---------- */
.flash-band {
    background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%);
    border-radius: 20px;
    padding: 22px;
    color: #fff;
}
.flash-band .section-head h2 { color: #fff; }
.flash-band .view-all { color: var(--gold-light); }
.countdown { display: inline-flex; gap: 6px; align-items: center; }
.countdown .cd-box {
    background: rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 4px 8px;
    min-width: 44px;
    text-align: center;
    line-height: 1.1;
}
.countdown .cd-box b { display: block; font-size: 18px; }
.countdown .cd-box small { font-size: 10px; opacity: .8; }
.countdown.dark .cd-box { background: var(--ink); color: #fff; }

/* ---------- middle banners & stores ---------- */
.promo-banner { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16/6; background: var(--gold-light); }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.promo-banner:hover img { transform: scale(1.03); }

.store-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    color: var(--ink);
    display: block;
    height: 100%;
    transition: box-shadow .2s;
}
.store-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.store-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-light);
    background: var(--brand-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 28px;
    color: var(--brand);
}

.store-hero { position: relative; border-radius: 20px; overflow: hidden; background: var(--brand); min-height: 200px; }
.store-hero > img { width: 100%; height: 260px; object-fit: cover; opacity: .85; }
.store-hero .store-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 24px;
    background: linear-gradient(0deg, rgba(10, 66, 57, .9) 0%, rgba(10, 66, 57, 0) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}
.store-hero .store-logo { width: 90px; height: 90px; border-color: #fff; }

/* ---------- listing page ---------- */
.page-banner {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.page-banner h1 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.breadcrumb { font-size: 13px; margin: 0; }
.breadcrumb a { color: var(--muted); }

.filter-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.filter-box h6 { font-weight: 600; margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.filter-box .filter-list { max-height: 210px; overflow-y: auto; }
.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, .15);
    vertical-align: middle;
}
.size-chip input { display: none; }
.size-chip span {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    margin: 0 4px 6px 0;
}
.size-chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }

.toolbar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }

.pagination .page-link { color: var(--brand); border-radius: 8px !important; margin: 0 3px; border-color: var(--line); }
.pagination .active > .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- product detail ---------- */
.gallery-main {
    border-radius: 18px;
    overflow: hidden;
    background: #f1ede6;
    aspect-ratio: 3/4;
    position: relative;
    cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-main.zoomed img { transform: scale(1.8); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-top: 12px; }
.gallery-thumbs button {
    border: 2px solid transparent;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    width: 72px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    background: none;
}
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(22px, 3vw, 30px); }
.price-block .price-now { font-size: 28px; }
.price-block .price-old { font-size: 17px; }
.price-block .save-chip { background: #fde7dc; color: var(--sale); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }

.option-label { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.swatch.selected { border-color: var(--brand); background: var(--brand-light); color: var(--brand); }
.swatch:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.qty-box button { border: 0; background: none; width: 38px; height: 42px; font-size: 18px; color: var(--ink); }
.qty-box input { width: 48px; border: 0; text-align: center; font-weight: 600; background: none; }
.qty-box input:focus { outline: none; }
.qty-box.small button { height: 32px; width: 30px; font-size: 15px; }
.qty-box.small input { width: 36px; }

.info-box { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.info-box i { color: var(--gold); }

.detail-tabs .nav-link { color: var(--muted); font-weight: 500; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.detail-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--gold); background: none; }
.rich-text img { max-width: 100%; height: auto; }
.rich-text table { width: 100%; }

.review-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review-item:last-child { border-bottom: 0; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 26px; color: #d8d2c6; cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }

.sticky-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 58px;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 8px 12px;
    z-index: 1025;
    display: flex;
    gap: 8px;
}

/* ---------- cart & checkout ---------- */
.cart-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.cart-group-head { background: var(--brand-light); padding: 10px 16px; font-weight: 500; font-size: 14px; }
.cart-item { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 76px; height: 100px; object-fit: cover; border-radius: 10px; }
.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 140px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 600; font-size: 18px; }

.pay-option { display: block; cursor: pointer; }
.pay-option input { display: none; }
.pay-option .pay-box {
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--white);
    display: flex;
    gap: 12px;
    align-items: center;
}
.pay-option input:checked + .pay-box { border-color: var(--brand); background: var(--brand-light); }
.pay-option .pay-box i { font-size: 22px; color: var(--brand); }

.checkout-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 8px;
}

/* ---------- order tracking ---------- */
.timeline { display: flex; justify-content: space-between; position: relative; margin: 20px 0 10px; }
.timeline::before { content: ""; position: absolute; top: 15px; left: 6%; right: 6%; height: 3px; background: var(--line); }
.timeline .step { position: relative; text-align: center; flex: 1; font-size: 12px; color: var(--muted); }
.timeline .step .dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--line);
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}
.timeline .step.done { color: var(--brand); font-weight: 500; }
.timeline .step.done .dot { background: var(--brand); }

/* ---------- account ---------- */
.account-nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.account-nav a:last-child { border-bottom: 0; }
.account-nav a.active, .account-nav a:hover { background: var(--brand-light); color: var(--brand); }
.stat-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-tile .num { font-size: 26px; font-weight: 600; color: var(--brand); }

.auth-wrap { min-height: 70vh; display: flex; align-items: center; padding: 40px 0; }
.auth-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: var(--shadow);
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}
.auth-card .auth-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}
.otp-input { letter-spacing: 12px; font-size: 24px; text-align: center; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: #13201d; color: #b9c4c0; margin-top: 60px; padding-top: 50px; font-size: 14px; }
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; font-size: 13px; letter-spacing: .8px; }
.site-footer a { color: #b9c4c0; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer .logo-text { color: #fff; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    font-size: 17px;
}
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; margin-top: 30px; font-size: 13px; }
.pay-logos span {
    background: rgba(255, 255, 255, .08);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 12px;
    margin: 0 4px 4px 0;
    display: inline-block;
}

/* floating WhatsApp button */
.float-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 84px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 1040;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .4);
}
.float-whatsapp:hover { color: #fff; transform: scale(1.06); }
@media (min-width: 992px) { .float-whatsapp { bottom: 24px; } }
@media (max-width: 991.98px) {
    .float-whatsapp { width: 46px; height: 46px; font-size: 23px; right: 14px; bottom: 76px; }
    /* product page has a buy bar above the bottom menu, keep the button above it */
    .has-buy-bar .float-whatsapp { bottom: 138px; }
}

/* messages */
.toast-area { position: fixed; top: 90px; right: 16px; z-index: 1100; max-width: 360px; }
.toast-area .alert { box-shadow: var(--shadow); border: 0; border-radius: 12px; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 54px; color: var(--gold); }

.rich-text h2, .rich-text h3 { margin-top: 1.2rem; }
.accordion-button:not(.collapsed) { background: var(--brand-light); color: var(--brand); }
.accordion-button:focus { box-shadow: none; }

/* print (invoice) */
@media print {
    .no-print { display: none !important; }
    body { background: #fff; padding: 0; }
}
