﻿/* =========================================================================
   Grihosthali Storefront
   Layout mirrors a classic Bangladeshi grocery storefront: white header with
   search, coloured category bar, hero slider, product rails and grid.
   Colours come from the brand packaging (deep green, cream, gold) and can be
   overridden from Admin → Settings (injected as --primary / --secondary).
   ========================================================================= */

:root {
    --primary: #1f4d36;
    --primary-dark: #163a28;
    --primary-soft: #e9f1ec;
    --secondary: #c9a24a;
    --secondary-soft: #fbf4e2;
    --cream: #f8f3e7;
    --title: #222831;
    --body: #5f6368;
    --muted: #8a8f98;
    --border: #e6e6e6;
    --bg-soft: #f6f6f4;
    --danger: #d62e2e;
    --success: #2e9e5b;
    --radius: 8px;
    --shadow: 0 6px 24px rgba(20, 40, 30, .08);
    --font: 'Poppins', 'Hind Siliguri', sans-serif;
    --font-bn: 'Hind Siliguri', 'Poppins', sans-serif;
    --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
h1, h2, h3, h4, h5 { color: var(--title); margin: 0 0 .5em; line-height: 1.3; font-weight: 600; }
.bn { font-family: var(--font-bn); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 0; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 6px; border: 1px solid transparent;
    font-weight: 500; font-size: 14px; line-height: 1.2; transition: all .25s ease;
    background: var(--primary); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-gold { background: var(--secondary); color: #fff; }
.btn-gold:hover { background: #b38c37; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }
.btn-dark { background: var(--title); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------- Top notice bar ---------- */
.top-notice {
    background: var(--primary-dark); color: #e9efe9; font-size: 13px; padding: 7px 0;
}
.top-notice .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-notice a { color: #fff; }
.top-notice .tn-links { display: flex; gap: 18px; }
.top-notice i { margin-right: 6px; color: var(--secondary); }

/* ---------- Header ---------- */
.header-middle { padding: 16px 0; border-bottom: 1px solid #eee; background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.header-left { display: flex; align-items: center; gap: 22px; flex: 1; }
.mobile-menu-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--title); padding: 4px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { max-width: 200px; height: 62px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-text .leaf { color: var(--primary); font-size: 13px; margin-bottom: 2px; }
.logo-text .bn-name { font-family: 'Noto Serif Bengali', var(--font-bn); font-weight: 700; font-size: 30px; color: var(--primary); letter-spacing: .5px; }
.logo-text .en-name { font-size: 11px; color: var(--title); letter-spacing: 2px; margin-top: 2px; font-weight: 500; }

.header-search { position: relative; flex: 1; max-width: 620px; }
.header-search form { position: relative; }
.header-search input {
    width: 100%; height: 48px; padding: 0 130px 0 18px; border-radius: 6px; border: 1px solid transparent;
    background: #f5f5f3; color: var(--title); outline: none; transition: border-color .2s, background .2s;
}
.header-search input:focus { border-color: var(--primary); background: #fff; }
.header-search button {
    position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 22px; border: 0; border-radius: 5px;
    background: var(--primary); color: #fff; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.header-search button:hover { background: var(--primary-dark); }
.live-search {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1000; background: #fff;
    border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); max-height: 420px; overflow-y: auto;
    list-style: none; margin: 0; padding: 6px 0;
}
.live-search li a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.live-search li a:hover { background: var(--bg-soft); }
.live-search img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.live-search .ls-name { color: var(--title); font-size: 14px; line-height: 1.3; }
.live-search .ls-price { color: var(--primary); font-weight: 600; font-size: 13px; }
.live-search .ls-empty { padding: 14px; text-align: center; color: var(--muted); }

.header-right { display: flex; align-items: center; gap: 26px; }
.header-action { display: flex; flex-direction: column; align-items: center; color: var(--title); position: relative; background: none; border: 0; padding: 0; }
.header-action i { font-size: 21px; line-height: 1; }
.header-action span.label { font-size: 13px; margin-top: 6px; }
.header-action:hover { color: var(--primary); }
.cart-count {
    position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--secondary); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}

/* Category bar */
.header-bottom { background: var(--primary); position: sticky; top: 0; z-index: 900; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.main-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-menu > li { position: relative; }
.main-menu > li > a {
    display: flex; align-items: center; gap: 6px; padding: 14px 16px; color: #fff; font-size: 14px; font-weight: 400;
}
.main-menu > li > a:hover, .main-menu > li.active > a { color: #fff; background: rgba(255,255,255,.1); }
.main-menu > li > a i.fa-chevron-down { font-size: 10px; opacity: .8; }
.main-menu .submenu {
    position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; list-style: none; margin: 0; padding: 8px 0;
    border-radius: 0 0 8px 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .25s ease; z-index: 50;
}
.main-menu li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-menu .submenu a { display: block; padding: 9px 18px; color: var(--title); font-size: 14px; }
.main-menu .submenu a:hover { color: var(--primary); background: var(--bg-soft); padding-left: 22px; }

/* ---------- Hero slider ---------- */
.hero { padding-top: 24px; }
.hero-slider { border-radius: var(--radius); overflow: hidden; position: relative; }
.hero-slide { position: relative; aspect-ratio: 1280 / 480; background: var(--cream); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 0 7%; max-width: 62%;
}
.hero-caption .eyebrow {
    display: inline-block; background: var(--secondary); color: #fff; padding: 5px 14px; border-radius: 30px;
    font-size: 13px; font-weight: 500; letter-spacing: .5px; margin-bottom: 14px;
}
.hero-caption h2 { color: #fff; font-size: clamp(22px, 3.6vw, 48px); font-weight: 700; margin-bottom: 10px; line-height: 1.15; text-shadow: 0 2px 16px rgba(0,0,0,.15); }
.hero-caption p { color: rgba(255,255,255,.92); font-size: clamp(13px, 1.4vw, 18px); margin: 0 0 22px; font-family: var(--font-bn); }
.hero-caption.dark h2 { color: var(--primary); text-shadow: none; }
.hero-caption.dark p { color: var(--title); }
.hero .swiper-pagination { bottom: 16px !important; left: 24px !important; width: auto !important; text-align: left; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: .6; }
.swiper-pagination-bullet-active { background: var(--secondary); opacity: 1; width: 26px; border-radius: 5px; }
.slider-nav {
    width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary); border: 0;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.12);
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; transition: all .25s; font-size: 14px;
}
.slider-nav:hover { background: var(--primary); color: #fff; }
.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }
.hero .slider-nav { opacity: 0; }
.hero:hover .slider-nav { opacity: 1; }
.slider-nav.swiper-button-disabled { opacity: .35 !important; cursor: default; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.feature-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border);
    border-radius: var(--radius); background: #fff;
}
.feature-item .fi-icon {
    width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.feature-item h5 { font-size: 14px; margin: 0; }
.feature-item p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Section heads ---------- */
.category-section-head { text-align: center; margin-bottom: 28px; }
.category-section-head h3 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.category-section-head p { margin: 0; }
.head-ornament { display: inline-flex; align-items: center; gap: 10px; color: var(--secondary); font-size: 12px; }
.head-ornament::before, .head-ornament::after { content: ""; width: 40px; height: 1px; background: var(--secondary); }

.section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border); position: relative;
}
.section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 90px; height: 2px; background: var(--primary); }
.section-head h3 { font-size: 22px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h3 i { color: var(--secondary); font-size: 18px; }
.sec-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; font-size: 14px; }
.sec-btn:hover { gap: 10px; }
.section-head .sec-actions { display: flex; align-items: center; gap: 14px; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--title);
    display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all .2s;
}
.rail-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.rail-nav button.swiper-button-disabled { opacity: .4; cursor: default; }

/* ---------- Featured categories ---------- */
.category-slider-wrap { position: relative; }
.category-card { display: block; text-align: center; }
.category-img {
    width: 142px; height: 142px; border-radius: 20px; margin: 0 auto; overflow: hidden; background: var(--cream);
    border: 1px solid #efe7d4;
}
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category-card:hover .category-img img { transform: scale(1.06); }
.category-info p {
    margin: 10px 0 0; font-size: 15px; font-weight: 500; color: var(--title); line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.category-card:hover .category-info p { color: var(--primary); }
.category-slider-wrap .slider-nav { width: 34px; height: 34px; top: 71px; background: var(--primary); color: #fff; }
.category-slider-wrap .slider-nav:hover { background: var(--title); }
.category-slider-wrap .slider-nav.prev { left: -16px; }
.category-slider-wrap .slider-nav.next { right: -16px; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.product-card {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%;
    padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
    transition: box-shadow .3s, border-color .3s, transform .3s;
}
.product-card:hover { box-shadow: 0 10px 28px rgba(20, 40, 30, .1); border-color: #d8e2dc; }
.product-media { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: #faf8f2; aspect-ratio: 1 / 1; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.flag-name {
    position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 3px; line-height: 1.4;
}
.save-label {
    position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--secondary); color: #fff;
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 3px; line-height: 1.4;
}
.stock-out-label {
    position: absolute; inset: auto 0 0 0; z-index: 2; background: rgba(214, 46, 46, .9); color: #fff;
    text-align: center; font-size: 12px; padding: 4px; font-weight: 500;
}
.product-details { padding: 10px 2px 0; }
.product-name { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0 0 6px; min-height: 40px; }
.product-name a {
    color: var(--title); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-name a:hover { color: var(--primary); }
.product-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.new-price { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 17px; }
.old-price { color: #a0a4a8; font-size: 14px; }

.product-card-action { margin-top: auto; }
.open-quantity-btn {
    width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 4px;
    font-size: 14px; font-weight: 500; transition: all .25s;
}
.open-quantity-btn:hover { background: var(--primary-dark); }
.open-quantity-btn:disabled { background: #bbb; border-color: #bbb; cursor: not-allowed; }
.open-quantity-btn.loading { pointer-events: none; opacity: .75; }
.quantity-box {
    display: flex; align-items: center; justify-content: space-between; height: 40px; border: 1px solid var(--primary);
    border-radius: 4px; overflow: hidden; background: #fff;
}
.quantity-box button {
    width: 40px; height: 100%; border: 0; background: var(--primary); color: #fff; font-size: 12px; transition: background .2s;
}
.quantity-box button:hover { background: var(--primary-dark); }
.quantity-box .quantity { flex: 1; text-align: center; font-weight: 600; color: var(--title); font-size: 15px; }

/* Rails (product sliders) */
.product-rail .swiper-slide { height: auto; }

/* ---------- Brands ---------- */
.brand-card {
    display: flex; align-items: center; justify-content: center; height: 110px; padding: 14px;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: all .3s;
}
.brand-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.brand-card img { max-height: 80px; object-fit: contain; }

/* ---------- Promo banner ---------- */
.promo-banner {
    display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; border-radius: 14px; overflow: hidden;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; position: relative;
}
.promo-banner .pb-text { padding: 44px 48px; position: relative; z-index: 2; }
.promo-banner .pb-text .eyebrow { color: var(--secondary); font-weight: 600; letter-spacing: 2px; font-size: 12px; text-transform: uppercase; }
.promo-banner h3 { color: #fff; font-size: 30px; margin: 8px 0 10px; }
.promo-banner p { color: rgba(255,255,255,.85); font-family: var(--font-bn); font-size: 16px; margin: 0 0 22px; }
.promo-banner .pb-img { height: 100%; min-height: 280px; }
.promo-banner .pb-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.testimonial-section { background: var(--cream); }
.testimonial-card { background: #fff; border-radius: 12px; padding: 26px; height: auto; border: 1px solid #efe7d4; }
.testimonial-rating { color: #f5a623; font-size: 13px; margin-bottom: 12px; }
.testimonial-text { color: var(--body); margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; font-family: var(--font-bn); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px;
}
.testimonial-author h5 { margin: 0; font-size: 15px; }
.testimonial-author span { font-size: 12.5px; color: var(--muted); }
.testimonial-section .swiper-slide { height: auto; }
.testimonial-section .swiper { padding-bottom: 40px; }
.testimonial-section .swiper-pagination-bullet { background: var(--primary); }
.testimonial-section .swiper-pagination-bullet-active { background: var(--secondary); }

/* ---------- Footer ---------- */
.footer { background: #f5f5f3; margin-top: 40px; }
.footer-top { padding: 48px 0 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 32px; }
.footer-logo .logo-text { align-items: flex-start; }
.f-about-text { margin: 18px 0 0; font-size: 14px; line-height: 1.7; }
.footer-contact { list-style: none; padding: 0; margin: 20px 0 0; }
.footer-contact li { display: flex; gap: 10px; padding-bottom: 8px; font-size: 14px; }
.footer-contact li i { color: var(--primary); margin-top: 4px; width: 16px; }
.footer-social { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--primary);
    display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-widget-title { font-size: 16px; font-weight: 600; color: var(--title); margin-bottom: 16px; }
.footer-widget-list { list-style: none; margin: 0; padding: 0; }
.footer-widget-list li { margin-bottom: 9px; }
.footer-widget-list a { font-size: 14px; }
.footer-widget-list a:hover { padding-left: 4px; }
.footer-newsletter { position: relative; margin-top: 14px; }
.footer-newsletter input { width: 100%; height: 48px; padding: 0 56px 0 16px; border: 1px solid transparent; border-radius: 8px; background: #fff; outline: none; }
.footer-newsletter input:focus { border-color: var(--primary); }
.footer-newsletter button { position: absolute; top: 0; right: 0; width: 48px; height: 48px; border: 0; border-radius: 0 8px 8px 0; background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid #ddd; padding: 16px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 13.5px; }
.payment-methods { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payment-methods span {
    background: #fff; border: 1px solid #e3e3e3; border-radius: 4px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--title);
}
.payment-methods img { max-height: 30px; }

/* ---------- Cart off-canvas ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1999; opacity: 0; visibility: hidden; transition: all .3s; }
.overlay.show { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: #fff; z-index: 2000;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.cart-sidebar.open { transform: translateX(0); }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cs-head h4 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.cs-head h4 i { color: var(--primary); }
.cs-close { background: var(--bg-soft); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; color: var(--title); }
.cs-close:hover { background: var(--danger); color: #fff; }
.cs-progress { padding: 12px 20px; background: var(--secondary-soft); font-size: 13px; color: var(--title); }
.cs-progress .bar { height: 6px; background: #efe3c2; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.cs-progress .bar span { display: block; height: 100%; background: var(--primary); transition: width .4s; }
.cs-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cs-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.cs-item img { width: 68px; height: 68px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; flex-shrink: 0; }
.cs-item .cs-info { flex: 1; min-width: 0; }
.cs-item .cs-name { font-size: 14px; color: var(--title); font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-item .cs-price { color: var(--primary); font-weight: 600; font-size: 13.5px; margin: 4px 0 6px; }
.cs-item .cs-bottom { display: flex; align-items: center; justify-content: space-between; }
.mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 4px; }
.mini-qty button { width: 28px; height: 28px; border: 0; background: var(--bg-soft); color: var(--title); font-size: 11px; }
.mini-qty button:hover { background: var(--primary); color: #fff; }
.mini-qty span { min-width: 34px; text-align: center; font-weight: 600; color: var(--title); font-size: 13px; }
.cs-remove { background: none; border: 0; color: #b5b5b5; font-size: 14px; }
.cs-remove:hover { color: var(--danger); }
.cs-empty { text-align: center; padding: 60px 10px; }
.cs-empty i { font-size: 54px; color: #ddd; margin-bottom: 14px; }
.cs-empty p { margin: 0 0 18px; color: var(--muted); }
.cs-foot { border-top: 1px solid var(--border); padding: 16px 20px 20px; }
.cs-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 15px; color: var(--title); font-weight: 500; }
.cs-total strong { color: var(--primary); font-size: 19px; }
.cs-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* ---------- Mobile menu drawer ---------- */
.mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: #fff; z-index: 2000;
    transform: translateX(-100%); transition: transform .35s ease; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.md-head { background: var(--primary); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.md-head h4 { color: #fff; margin: 0; font-size: 16px; }
.md-head button { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; }
.md-search { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.md-search form { position: relative; }
.md-search input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 6px; padding: 0 42px 0 12px; outline: none; }
.md-search button { position: absolute; right: 0; top: 0; height: 42px; width: 42px; border: 0; background: none; color: var(--primary); }
.md-menu { list-style: none; margin: 0; padding: 6px 0; }
.md-menu li a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--title); border-bottom: 1px solid #f3f3f3; }
.md-menu li a img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.md-menu .sub a { padding-left: 60px; font-size: 13.5px; color: var(--body); }

/* ---------- Mobile bottom nav ---------- */
.sticky-footer {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: var(--primary);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.sticky-footer .sticky-link { flex: 1; display: flex; flex-direction: column; align-items: center; color: #fff; position: relative; background: none; border: 0; padding: 0; }
.sticky-footer .sticky-link i { font-size: 17px; }
.sticky-footer .sticky-link p { margin: 5px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: #fff; line-height: 1; }
.sticky-footer .cart-count { top: -6px; right: calc(50% - 22px); }

/* ---------- Floating buttons ---------- */
.float-whatsapp {
    position: fixed; right: 20px; bottom: 24px; z-index: 1400; width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .45); animation: pulse 2s infinite;
}
.float-whatsapp:hover { color: #fff; transform: scale(1.06); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.scroll-top {
    position: fixed; right: 26px; bottom: 92px; z-index: 1400; width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: var(--title); color: #fff; opacity: 0; visibility: hidden; transition: all .3s;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.floating-cart {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 1400; background: var(--primary); color: #fff;
    border: 0; border-radius: 8px 0 0 8px; padding: 10px 10px 8px; text-align: center; box-shadow: var(--shadow); min-width: 74px;
}
.floating-cart i { font-size: 20px; display: block; margin-bottom: 4px; }
.floating-cart .fc-count { font-size: 11.5px; display: block; }
.floating-cart .fc-total { display: block; background: #fff; color: var(--primary); font-weight: 600; font-size: 12px; border-radius: 4px; padding: 2px 4px; margin-top: 6px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 260px; max-width: 360px; padding: 13px 16px; border-radius: 8px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15);
    border-left: 4px solid var(--success); color: var(--title); display: flex; gap: 10px; align-items: flex-start;
    animation: toastIn .35s ease; font-size: 14px;
}
.toast i { color: var(--success); margin-top: 3px; }
.toast.error { border-left-color: var(--danger); }
.toast.error i { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---------- Breadcrumb / page header ---------- */
.breadcrumb-bar { background: var(--bg-soft); padding: 14px 0; font-size: 13.5px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; align-items: center; }
.breadcrumb li + li::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; font-size: 11px; color: var(--muted); }
.breadcrumb li:last-child { color: var(--title); }

/* ---------- Shop page ---------- */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 28px 0; }
.sidebar-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; background: #fff; }
.sidebar-box h4 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li a { display: flex; justify-content: space-between; padding: 7px 0; color: var(--body); font-size: 14px; }
.cat-list li a.active, .cat-list li a:hover { color: var(--primary); font-weight: 500; }
.cat-list li a span { background: var(--bg-soft); border-radius: 10px; padding: 0 8px; font-size: 12px; }
.price-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.form-control {
    width: 100%; height: 44px; padding: 0 14px; border: 1px solid #dcdcdc; border-radius: 6px; background: #fff;
    color: var(--title); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 77, 54, .1); }
.shop-toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
    padding: 12px 16px; background: var(--bg-soft); border-radius: var(--radius);
}
.shop-toolbar h1 { font-size: 20px; margin: 0; }
.shop-toolbar .result-count { font-size: 13px; color: var(--muted); }
.shop-toolbar select { height: 38px; width: auto; }
.filter-toggle { display: none; }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state i { font-size: 48px; color: #ccc; margin-bottom: 12px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 30px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; padding: 0 10px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 6px; color: var(--title); font-size: 14px; background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled span { color: #bbb; }

/* ---------- Product details ---------- */
.product-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 30px 0; }
.pd-gallery { position: sticky; top: 70px; align-self: start; }
.pd-main-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; background: #faf8f2; }
.pd-main-img .swiper-slide { aspect-ratio: 1 / 1; }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-main-img .flag-name { left: auto; right: 12px; top: 12px; font-size: 12px; }
.pd-thumbs { margin-top: 12px; }
.pd-thumbs .swiper-slide { width: 80px; height: 80px; border: 2px solid var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .7; }
.pd-thumbs .swiper-slide-thumb-active { border-color: var(--primary); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; margin-bottom: 14px; color: var(--muted); }
.pd-meta .stars { color: #f5a623; }
.pd-meta .in-stock { color: var(--success); font-weight: 500; }
.pd-meta .out-stock { color: var(--danger); font-weight: 500; }
.pd-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.pd-price ins { text-decoration: none; font-size: 30px; color: var(--primary); font-weight: 700; }
.pd-price del { font-size: 19px; color: #a0a4a8; }
.pd-price .save-label { position: static; font-size: 13px; padding: 4px 10px; }
.pd-short { margin-bottom: 20px; line-height: 1.75; font-family: var(--font-bn); font-size: 15px; }
.pd-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-qty-row label { font-weight: 500; color: var(--title); }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-input button { width: 44px; height: 46px; border: 0; background: var(--bg-soft); color: var(--title); }
.qty-input button:hover { background: var(--primary); color: #fff; }
.qty-input input { width: 60px; height: 46px; border: 0; text-align: center; font-weight: 600; font-size: 16px; outline: none; -moz-appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pd-actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-actions .btn, .pd-actions-2 .btn { height: 50px; font-size: 15px; }
.shake-btn { animation: shake 3s ease-in-out infinite; }
@keyframes shake {
    0%, 86%, 100% { transform: translateX(0); }
    88%, 92%, 96% { transform: translateX(-4px); }
    90%, 94%, 98% { transform: translateX(4px); }
}
.pd-extra { margin-top: 20px; padding: 16px; background: var(--cream); border-radius: var(--radius); font-size: 14px; }
.pd-extra div { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.pd-extra i { color: var(--primary); width: 18px; }
.pd-cat-line { margin-top: 14px; font-size: 13.5px; }
.pd-cat-line a { color: var(--primary); }

.product-tabs { margin: 10px 0 30px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tab-nav { display: flex; background: var(--bg-soft); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-nav button {
    padding: 15px 24px; border: 0; background: none; font-weight: 500; font-size: 15px; color: var(--body);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-nav button.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; }
.tab-pane { display: none; padding: 26px; }
.tab-pane.active { display: block; }
.rich-content { line-height: 1.8; font-size: 15px; color: var(--body); }
.rich-content h2, .rich-content h3, .rich-content h4 { margin-top: 1.2em; }
.rich-content ul { padding-left: 20px; }
.rich-content table { border-collapse: collapse; width: 100%; }
.rich-content td, .rich-content th { border: 1px solid var(--border); padding: 8px 10px; }
.rich-content img { border-radius: 8px; margin: 10px 0; }
.review-summary { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin-bottom: 26px; }
.review-score { text-align: center; padding: 20px; background: var(--cream); border-radius: var(--radius); }
.review-score strong { font-size: 44px; color: var(--title); display: block; line-height: 1; }
.review-score .stars { color: #f5a623; margin: 8px 0 4px; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-item .ri-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-item .ri-head strong { color: var(--title); }
.review-item .stars { color: #f5a623; font-size: 12px; }
.review-item p { margin: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 22px; color: #ddd; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }

/* ---------- Forms / checkout ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; color: var(--title); margin-bottom: 6px; font-size: 14px; }
.form-group label .req { color: var(--danger); }
.invalid-feedback { color: var(--danger); font-size: 12.5px; margin-top: 4px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e8f6ee; color: #1d6b3e; border: 1px solid #c6e9d3; }
.alert-danger { background: #fdecec; color: #a12424; border: 1px solid #f6caca; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; padding: 28px 0; align-items: start; }
.checkout-card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: #fff; }
.checkout-card h3 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.checkout-card h3 .step { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.checkout-notice { background: var(--secondary-soft); border: 1px dashed var(--secondary); color: var(--title); padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-family: var(--font-bn); font-size: 14.5px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card label {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border: 1.5px solid var(--border);
    border-radius: 8px; cursor: pointer; margin: 0; transition: all .2s; font-weight: 500;
}
.radio-card label strong { color: var(--primary); }
.radio-card input:checked + label { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--primary); border-radius: 8px; background: var(--primary-soft); }
.pay-method i { font-size: 22px; color: var(--primary); }
.order-summary { position: sticky; top: 70px; }
.os-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.os-item img { width: 58px; height: 58px; border-radius: 6px; object-fit: cover; border: 1px solid #eee; }
.os-item .os-name { flex: 1; min-width: 0; font-size: 14px; color: var(--title); line-height: 1.35; }
.os-item .os-name small { display: block; color: var(--muted); margin-top: 2px; }
.os-item .os-total { font-weight: 600; color: var(--title); white-space: nowrap; }
.os-lines { margin-top: 14px; }
.os-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; }
.os-line.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-size: 18px; font-weight: 700; color: var(--title); }
.os-line.total span:last-child { color: var(--primary); }
.coupon-form { display: flex; gap: 8px; margin-top: 16px; }
.coupon-form .btn { height: 44px; }
.applied-coupon { display: flex; justify-content: space-between; align-items: center; background: var(--primary-soft); border-radius: 6px; padding: 10px 12px; margin-top: 16px; font-size: 14px; }
.applied-coupon button { background: none; border: 0; color: var(--danger); font-size: 13px; }

.success-box { max-width: 720px; margin: 40px auto; text-align: center; border: 1px solid var(--border); border-radius: 14px; padding: 40px 30px; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 40px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.order-meta div { background: var(--bg-soft); border-radius: 8px; padding: 12px; }
.order-meta small { display: block; color: var(--muted); }
.order-meta strong { color: var(--title); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--bg-soft); text-align: left; padding: 12px; font-weight: 600; color: var(--title); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-warning { background: #fff4de; color: #a66b00; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-purple { background: #f1e8fd; color: #6a1b9a; }
.badge-success { background: #e6f6ec; color: #1d6b3e; }
.badge-danger { background: #fdecec; color: #c62828; }
.badge-secondary { background: #eee; color: #555; }

/* Order tracker */
.tracker { display: flex; justify-content: space-between; position: relative; margin: 30px 0; }
.tracker::before { content: ""; position: absolute; top: 18px; left: 6%; right: 6%; height: 3px; background: var(--border); }
.tracker .step { position: relative; text-align: center; flex: 1; z-index: 1; font-size: 13px; }
.tracker .step .dot { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid var(--border); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #bbb; }
.tracker .step.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.tracker .step.done { color: var(--title); font-weight: 500; }

/* Auth & account */
.auth-box { max-width: 460px; margin: 40px auto; border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.auth-box h2 { text-align: center; font-size: 24px; }
.auth-box .sub { text-align: center; margin-bottom: 24px; }
.account-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; padding: 28px 0; }
.account-card { border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 20px; }
.account-user { text-align: center; }
.account-user .av { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: 600; }

/* Static pages */
.page-content { max-width: 900px; margin: 0 auto; padding: 36px 0; }
.page-title { font-size: 30px; margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; padding: 30px 0; }
.contact-info-item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; }
.contact-info-item i { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.contact-info-item h5 { margin: 0 0 2px; font-size: 15px; }
.contact-info-item p { margin: 0; }

/* Cart page */
.cart-page { padding: 28px 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-top .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
    .header-search { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-bottom { display: none; }
    .header-right .hide-mobile { display: none; }
    .features { grid-template-columns: 1fr 1fr; }
    .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-layout { grid-template-columns: minmax(0, 1fr); }
    .shop-sidebar { display: none; }
    .shop-sidebar.open { display: block; }
    .filter-toggle { display: inline-flex; }
    .product-single { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .pd-gallery { position: static; }
    .checkout-layout, .cart-page, .account-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .order-summary { position: static; }
    .promo-banner { grid-template-columns: 1fr; }
    .promo-banner .pb-img { min-height: 200px; }
    .floating-cart { display: none; }
    .top-notice .tn-links { display: none; }
}
@media (max-width: 767px) {
    body { padding-bottom: 64px; }
    .sticky-footer { display: flex; }
    .float-whatsapp { bottom: 80px; right: 14px; width: 48px; height: 48px; font-size: 24px; }
    .scroll-top { display: none; }
    .header-middle { padding: 10px 0; }
    .header-inner { gap: 12px; }
    .header-right { gap: 18px; }
    .header-action span.label { display: none; }
    .logo-text .bn-name { font-size: 24px; }
    .logo img { height: 46px; max-width: 150px; }
    .hero { padding-top: 12px; }
    .hero-slide { aspect-ratio: 16 / 8; }
    .hero-caption { max-width: 78%; padding: 0 5%; }
    .hero-caption .eyebrow { font-size: 10px; padding: 3px 10px; margin-bottom: 6px; }
    .hero-caption p { margin-bottom: 10px; display: none; }
    .hero-caption .btn { padding: 7px 14px; font-size: 12px; }
    .hero .slider-nav { display: none; }
    .features { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature-item { padding: 12px; gap: 10px; }
    .feature-item .fi-icon { width: 36px; height: 36px; font-size: 15px; }
    .feature-item h5 { font-size: 12.5px; }
    .feature-item p { font-size: 11px; }
    .section { padding: 20px 0; }
    .category-section-head { margin-bottom: 16px; }
    .category-section-head h3, .section-head h3 { font-size: 18px; }
    .category-img { width: 100px; height: 100px; border-radius: 16px; }
    .category-info p { font-size: 13px; }
    .category-slider-wrap .slider-nav { display: none; }
    .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card { padding: 6px; }
    .product-name { font-size: 13.5px; min-height: 37px; }
    .new-price { font-size: 15px; }
    .old-price { font-size: 12.5px; }
    .open-quantity-btn { font-size: 13px; height: 36px; }
    .quantity-box { height: 36px; }
    .quantity-box button { width: 34px; }
    .flag-name, .save-label { font-size: 10px; padding: 2px 6px; top: 6px; }
    .flag-name { left: 6px; } .save-label { right: 6px; }
    .rail-nav { display: none; }
    .promo-banner .pb-text { padding: 28px 22px; }
    .promo-banner h3 { font-size: 22px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0; }
    .footer-top .footer-newsletter-col { grid-column: 1 / -1; }
    .footer-bottom .container { justify-content: center; text-align: center; }
    .pd-info h1 { font-size: 22px; }
    .pd-actions, .pd-actions-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
    .pd-actions .btn, .pd-actions-2 .btn { padding: 0 8px; font-size: 13.5px; white-space: normal; text-align: center; }
    .sec-btn { font-size: 13px; white-space: nowrap; }
    .pd-price ins { font-size: 26px; }
    .tab-pane { padding: 18px; }
    .review-summary { grid-template-columns: 1fr; }
    .form-row, .radio-cards { grid-template-columns: 1fr; }
    .checkout-card { padding: 18px; }
    .order-meta { grid-template-columns: 1fr; }
    .tracker .step { font-size: 11px; }
    .tracker .step .dot { width: 30px; height: 30px; font-size: 12px; }
    .tracker::before { top: 14px; }
    .toast-wrap { left: 12px; right: 12px; top: 12px; }
    .toast { max-width: none; }
}

/* ---------- Returns ---------- */
.return-page { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; padding: 28px 0; align-items: start; }
.mini-info { list-style: none; padding: 0; margin: 0; }
.mini-info li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.mini-info strong { color: var(--title); }
.return-box { margin-top: 22px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; }
.return-box h4 { font-size: 15px; margin-bottom: 8px; }
.return-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.return-status:last-child { border-bottom: 0; }
.return-status small { display: block; color: var(--muted); font-size: 12.5px; }
.return-status strong { color: var(--title); }
.return-cta { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 10px; background: var(--secondary-soft); border: 1px dashed var(--secondary); }
.return-cta strong { display: block; color: var(--title); }
.return-cta span { font-size: 14px; }
@media (max-width: 991px) { .return-page { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Polish ---------- */
.breadcrumb-bar {
    background: linear-gradient(90deg, var(--cream) 0%, #fbf8f0 60%, var(--primary-soft) 100%);
    border-bottom: 1px solid #efe7d4; padding: 16px 0;
}
.breadcrumb a:hover { color: var(--primary); }
.product-card { will-change: transform; }
.product-card:hover { transform: translateY(-3px); }
.product-media { background: linear-gradient(110deg, #f6f2e8 8%, #fbf9f3 18%, #f6f2e8 33%); }
.checkout-card, .account-card, .auth-box, .success-box { box-shadow: 0 4px 22px rgba(20, 40, 30, .05); }
.section-head h3 { letter-spacing: -.2px; }
.header-bottom.scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
::selection { background: var(--secondary); color: #fff; }


.courier-track { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 20px; border-radius: 10px; background: var(--primary-soft); }
.courier-track > i { font-size: 22px; color: var(--primary); }
.courier-track div { flex: 1; min-width: 180px; }
.courier-track strong { display: block; color: var(--title); }
.courier-track small { color: var(--muted); }

/* ---------- Header: wishlist badge + "More" dropdown ---------- */
.count-badge {
    position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.count-badge.is-empty { display: none; }
.header-right { gap: 24px; }
.header-action i { font-size: 22px; }
.header-more { position: relative; }
.header-more > .header-action[aria-expanded="true"], .header-more:hover > .header-action { color: var(--secondary); }
.more-menu {
    position: absolute; top: calc(100% + 14px); right: -8px; z-index: 1000; min-width: 230px; list-style: none; margin: 0; padding: 6px 0;
    background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 40px rgba(20, 40, 30, .14);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s ease;
}
.more-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.header-more.open .more-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .header-more:hover .more-menu { opacity: 1; visibility: visible; transform: none; } }
.more-menu li + li { border-top: 1px solid #f0f0f0; }
.more-menu a { display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: var(--title); font-size: 15px; }
.more-menu a i { width: 22px; font-size: 19px; color: var(--primary); text-align: center; }
.more-menu a:hover { background: var(--bg-soft); color: var(--primary); padding-left: 22px; }

/* ---------- Pinned category bar ---------- */
.header-bottom { position: sticky; top: 0; z-index: 900; transition: box-shadow .25s; }
.header-bottom .container { display: flex; align-items: center; }
.header-bottom .main-menu { flex: 1; min-width: 0; }
.sticky-actions { display: none; align-items: center; gap: 4px; margin-left: 12px; }
.header-bottom.scrolled .sticky-actions { display: flex; animation: fadeIn .25s ease; }
.sticky-actions a, .sticky-actions button {
    position: relative; width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: none; border: 0; font-size: 17px;
}
.sticky-actions a:hover, .sticky-actions button:hover { background: rgba(255,255,255,.12); color: #fff; }
.sticky-actions .cart-count, .sticky-actions .count-badge { top: 0; right: -2px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Wishlist hearts ---------- */
.wishlist-btn {
    position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.95); color: var(--title); box-shadow: 0 2px 10px rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .2s, color .2s, opacity .2s;
}
.wishlist-btn:hover { transform: scale(1.1); color: var(--danger); }
.wishlist-btn.active { color: var(--danger); }
@media (hover: hover) {
    .product-card .wishlist-btn:not(.active) { opacity: 0; transform: translateY(6px); }
    .product-card:hover .wishlist-btn { opacity: 1; transform: none; }
}
[data-wishlist].pulse i { animation: heartPop .4s ease; }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.pd-wishlist {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 0; border: 0; background: none;
    color: var(--title); font-weight: 500; font-size: 14.5px;
}
.pd-wishlist i { font-size: 18px; }
.pd-wishlist:hover, .pd-wishlist.active { color: var(--danger); }
.sticky-footer .wishlist-count { top: -6px; right: calc(50% - 22px); }

@media (max-width: 991px) {
    .header-right { gap: 18px; }
}
@media (max-width: 767px) {
    .header-right { gap: 14px; }
    .header-action i { font-size: 20px; }
}

/* Pinned bar: drop "All Products" and keep the categories on a single line next to the icons. */
.header-bottom.scrolled .menu-all { display: none; }
.header-bottom.scrolled .main-menu { flex-wrap: nowrap; }
.header-bottom.scrolled .main-menu > li > a { white-space: nowrap; }
@media (max-width: 1279px) { .header-bottom .main-menu > li > a { padding-left: 11px; padding-right: 11px; font-size: 13.5px; } }
@media (max-width: 1100px) { .header-bottom .main-menu > li > a { padding-left: 8px; padding-right: 8px; font-size: 13px; } .header-bottom .main-menu > li > a .fa-house { display: none; } }

/* Brand logo image in the footer sits a little larger */
.footer-logo img { height: 74px; max-width: 220px; }

/* The header (logo, search, icons) sits above the pinned category bar so its dropdowns
   — "More" menu and live search results — open over the bar and the slider, never behind them. */
header.header { position: relative; z-index: 950; }
