/* ============================================================
   BENGALI E-COMMERCE — MOBILE-FIRST v4
   Navy #1A2A4F | Gold #D4AF37 | Hind Siliguri
   ============================================================ */
:root{
  --navy:#1A2A4F;--navy-light:#243560;--navy-dark:#111d37;
  --gold:#D4AF37;--gold-light:#e8c84e;--gold-dark:#b8932a;
  --white:#fff;--off-white:#f8f7f4;
  --g100:#f3f2ef;--g200:#e8e6e1;--g400:#a09d96;--g600:#6b6860;--g800:#3a3835;
  --danger:#e53e3e;--success:#38a169;--warning:#d69e2e;
  --r:8px;--r-lg:14px;
  --sh:0 2px 12px rgba(26,42,79,.09);
  --sh-md:0 4px 24px rgba(26,42,79,.14);
  --sh-lg:0 8px 40px rgba(26,42,79,.17);
  --tr:all .22s ease;
  --font:'Hind Siliguri',sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:var(--font);color:var(--g800);background:var(--off-white);line-height:1.65;min-height:100vh;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
input,button,textarea,select{font-family:var(--font)}

.container{width:100%;max-width:1280px;margin:0 auto;padding:0 12px}
@media(min-width:600px){.container{padding:0 20px}}

/* ===== TOP BAR ===== */
.top-bar{background:var(--navy-dark);color:rgba(255,255,255,.75);font-size:.8rem;padding:5px 0;display:none}
@media(min-width:768px){.top-bar{display:block}}
.top-bar .container{display:flex;gap:20px}
.top-bar span i{margin-right:5px;color:var(--gold)}

/* ===== HEADER ===== */
.main-header{background:var(--navy);position:sticky;top:0;z-index:1000;box-shadow:var(--sh-md)}
.header-inner{display:flex;align-items:center;gap:10px;padding:10px 12px}
@media(min-width:600px){.header-inner{padding:12px 20px;gap:16px}}
.logo{display:flex;align-items:center;flex-shrink:0}
.logo img{height:36px;width:auto}
@media(min-width:600px){.logo img{height:44px}}
.logo-text{font-size:1.2rem;font-weight:700;color:var(--gold)}
@media(min-width:600px){.logo-text{font-size:1.4rem}}

/* Desktop nav */
.main-nav{display:none;flex-direction:column;position:fixed;top:57px;left:0;right:0;
  background:var(--navy-dark);padding:8px 0;z-index:999;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.main-nav.open{display:flex}
@media(min-width:900px){
  .main-nav{display:flex;flex-direction:row;position:static;background:none;
    padding:0;box-shadow:none;margin-left:auto;gap:2px}
}
.nav-link{color:rgba(255,255,255,.82);padding:10px 16px;border-radius:var(--r);
  font-size:.93rem;font-weight:500;transition:var(--tr);display:block}
.nav-link:hover,.nav-link.active{color:var(--gold);background:rgba(212,175,55,.12)}

.header-actions{display:flex;align-items:center;gap:5px;margin-left:auto}
@media(min-width:900px){.header-actions{margin-left:16px}}
.user-btn,.cart-btn{color:rgba(255,255,255,.85);background:rgba(255,255,255,.08);
  border:none;width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.95rem;cursor:pointer;transition:var(--tr);position:relative;text-decoration:none}
.user-btn:hover,.cart-btn:hover{background:var(--gold);color:var(--navy)}
.cart-count{position:absolute;top:-4px;right:-4px;background:var(--gold);color:var(--navy);
  font-size:.65rem;font-weight:700;width:17px;height:17px;border-radius:50%;
  display:flex;align-items:center;justify-content:center}
.logout-btn:hover{background:var(--danger)!important;color:#fff!important}
.hamburger{display:flex;flex-direction:column;gap:5px;background:none;border:none;
  cursor:pointer;padding:5px;margin-left:2px}
.hamburger span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;transition:var(--tr)}
.hamburger.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(min-width:900px){.hamburger{display:none}}

/* ===== HERO BANNER ===== */
.hero-banner{position:relative;overflow:hidden;background:var(--navy)}
.hero-banner img{width:100%;height:200px;object-fit:cover;opacity:.85}
@media(min-width:480px){.hero-banner img{height:260px}}
@media(min-width:768px){.hero-banner img{height:380px}}
@media(min-width:1024px){.hero-banner img{height:480px}}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(26,42,79,.75) 0%,transparent 65%);
  display:flex;align-items:center;padding:0 20px}
@media(min-width:600px){.hero-overlay{padding:0 48px}}
.hero-text h1{font-size:1.25rem;font-weight:700;color:#fff;line-height:1.2;margin-bottom:8px}
@media(min-width:480px){.hero-text h1{font-size:1.7rem}}
@media(min-width:768px){.hero-text h1{font-size:2.5rem}}
.hero-text p{font-size:.85rem;color:rgba(255,255,255,.85);margin-bottom:14px}
@media(min-width:600px){.hero-text p{font-size:1.05rem;margin-bottom:20px}}
.btn-hero{display:inline-block;background:var(--gold);color:var(--navy);padding:9px 20px;
  border-radius:50px;font-weight:700;font-size:.87rem;transition:var(--tr);
  box-shadow:0 4px 14px rgba(212,175,55,.4)}
@media(min-width:600px){.btn-hero{padding:12px 30px;font-size:1rem}}
.btn-hero:hover{background:var(--gold-light);transform:translateY(-2px)}

/* ===== FLASH BADGE ===== */
.flash-badge{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#e53e3e,#c53030);
  color:#fff;padding:4px 12px;border-radius:50px;font-size:.8rem;font-weight:700;
  margin-bottom:10px;animation:flashPulse 1.5s infinite}
@keyframes flashPulse{0%,100%{box-shadow:0 0 0 0 rgba(229,62,62,.4)}50%{box-shadow:0 0 0 8px rgba(229,62,62,0)}}

/* ===== SECTION HEADER ===== */
.section-header{text-align:center;margin-bottom:24px}
.section-header h2{font-size:1.35rem;font-weight:700;color:var(--navy);display:inline-block}
@media(min-width:600px){.section-header h2{font-size:1.75rem}}
.section-header h2::after{content:'';display:block;width:48px;height:3px;
  background:var(--gold);margin:8px auto 0;border-radius:2px}
.section-header p{color:var(--g600);margin-top:8px;font-size:.9rem}

/* ===== CAROUSEL ===== */
.carousel-wrapper{position:relative;overflow:hidden;margin:0 -12px}
@media(min-width:600px){.carousel-wrapper{margin:0}}
.carousel-track{display:flex;gap:10px;overflow-x:auto;scroll-behavior:smooth;
  scrollbar-width:none;padding:4px 12px 8px;-webkit-overflow-scrolling:touch}
@media(min-width:600px){.carousel-track{gap:14px;padding:4px 0 8px}}
.carousel-track::-webkit-scrollbar{display:none}

/* ===== PRODUCT CARD ===== */
.product-card{flex:0 0 calc(50% - 6px);min-width:0;background:#fff;
  border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--g200);
  transition:var(--tr);position:relative}
@media(min-width:600px){.product-card{flex:0 0 190px}}
@media(min-width:900px){.product-card{flex:0 0 210px}}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--sh-lg);border-color:var(--gold)}
.product-card .card-img{width:100%;height:150px;object-fit:cover;background:var(--g100)}
@media(min-width:480px){.product-card .card-img{height:170px}}
@media(min-width:600px){.product-card .card-img{height:190px}}
.card-img-placeholder{width:100%;height:150px;background:var(--g100);
  display:flex;align-items:center;justify-content:center;color:var(--g400);font-size:2.2rem}
@media(min-width:600px){.card-img-placeholder{height:190px}}
.card-body{padding:9px 10px 12px}
@media(min-width:600px){.card-body{padding:12px 14px 16px}}
.card-title{font-size:.82rem;font-weight:600;color:var(--navy);margin-bottom:4px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}
@media(min-width:600px){.card-title{font-size:.9rem}}
.card-price{font-size:.95rem;font-weight:700;color:var(--gold-dark);margin-bottom:7px}
@media(min-width:600px){.card-price{font-size:1.05rem}}
.var-label{font-size:.7rem;color:var(--g600);font-weight:600;margin-bottom:3px}
.card-variations{display:flex;flex-wrap:wrap;gap:3px;margin-bottom:7px}
.var-option{padding:2px 6px;border:1.5px solid var(--g200);border-radius:4px;
  font-size:.68rem;cursor:pointer;transition:var(--tr);background:#fff}
.var-option.selected,.var-option:hover{border-color:var(--gold);background:var(--gold);color:var(--navy);font-weight:700}
.btn-buy{display:block;width:100%;background:var(--navy);color:var(--gold);border:none;
  padding:8px 6px;border-radius:var(--r);font-family:var(--font);
  font-size:.8rem;font-weight:700;cursor:pointer;transition:var(--tr);text-align:center;text-decoration:none}
@media(min-width:600px){.btn-buy{padding:9px;font-size:.87rem}}
.btn-buy:hover:not([disabled]){background:var(--gold);color:var(--navy)}
.flash-tag{position:absolute;top:6px;left:6px;background:#e53e3e;color:#fff;
  font-size:.62rem;font-weight:700;padding:2px 6px;border-radius:4px}
.out-of-stock-tag{position:absolute;top:6px;right:6px;background:rgba(0,0,0,.58);
  color:#fff;font-size:.62rem;padding:2px 6px;border-radius:4px}

/* ===== PRODUCTS GRID (Category + Search) =====
   Mobile: 2 col | Tablet(600+): 3 col | Desktop(1024+): 5 col */
.products-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(min-width:600px){.products-grid{grid-template-columns:repeat(3,1fr);gap:14px}}
@media(min-width:1024px){.products-grid{grid-template-columns:repeat(5,1fr);gap:16px}}
.products-grid .product-card{flex:none;width:100%}

/* ===== SECTIONS ===== */
.flash-sale-section{padding:32px 0;background:#fff}
@media(min-width:600px){.flash-sale-section{padding:48px 0}}
.categories-section{padding:28px 0}
@media(min-width:600px){.categories-section{padding:44px 0}}
.category-section{margin-bottom:40px}
.cat-header{display:flex;align-items:center;justify-content:space-between;
  margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid var(--g200)}
.cat-header h3{font-size:1rem;font-weight:700;color:var(--navy);display:flex;align-items:center;gap:6px}
@media(min-width:600px){.cat-header h3{font-size:1.15rem}}
.cat-header h3::before{content:'';display:inline-block;width:4px;height:16px;background:var(--gold);border-radius:2px}
.see-all{color:var(--gold-dark);font-size:.82rem;font-weight:600;
  display:flex;align-items:center;gap:4px;white-space:nowrap}

/* ===== INFO SECTION ===== */
.info-section{background:var(--navy);color:#fff;padding:32px 0}
@media(min-width:600px){.info-section{padding:48px 0}}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;text-align:center}
@media(min-width:768px){.info-grid{grid-template-columns:repeat(4,1fr)}}
.info-item i{font-size:1.6rem;color:var(--gold);margin-bottom:8px;display:block}
.info-item h4{font-size:.9rem;font-weight:700;margin-bottom:4px}
.info-item p{font-size:.78rem;color:rgba(255,255,255,.65)}

/* ===== FORMS ===== */
.form-group{margin-bottom:14px}
.form-label{display:block;font-size:.87rem;font-weight:600;color:var(--navy);margin-bottom:5px}
.form-control{width:100%;padding:10px 12px;border:1.5px solid var(--g200);border-radius:var(--r);
  font-family:var(--font);font-size:.93rem;color:var(--g800);background:#fff;
  outline:none;transition:var(--tr)}
.form-control:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,175,55,.13)}
.form-control::placeholder{color:var(--g400)}
.dhaka-checkbox{display:flex;align-items:center;gap:10px;padding:11px 14px;
  background:var(--g100);border-radius:var(--r);cursor:pointer;
  margin-bottom:14px;border:1.5px solid transparent;transition:var(--tr)}
.dhaka-checkbox:hover{border-color:var(--gold)}
.dhaka-checkbox input[type=checkbox]{width:18px;height:18px;accent-color:var(--gold)}

/* ===== CHECKOUT ===== */
.checkout-page{padding:28px 0 56px}
@media(min-width:600px){.checkout-page{padding:44px 0 64px}}
.checkout-grid{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:860px){.checkout-grid{grid-template-columns:1fr 360px}}
.checkout-card{background:#fff;border-radius:var(--r-lg);padding:18px;box-shadow:var(--sh)}
@media(min-width:600px){.checkout-card{padding:26px}}
.checkout-card h2{font-size:1.1rem;font-weight:700;color:var(--navy);margin-bottom:18px;
  padding-bottom:12px;border-bottom:2px solid var(--g200)}
.order-item{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--g100);align-items:flex-start}
.order-item:last-child{border-bottom:none}
.order-item-img{width:60px;height:60px;object-fit:cover;border-radius:var(--r);
  background:var(--g100);flex-shrink:0}
@media(min-width:600px){.order-item-img{width:68px;height:68px}}
.order-item-name{font-weight:600;font-size:.9rem;color:var(--navy);margin-bottom:3px}
.order-item-var{font-size:.78rem;color:var(--g600);margin-bottom:6px}
.qty-controls{display:flex;align-items:center;gap:7px;margin-top:6px}
.qty-btn{width:30px;height:30px;border:1.5px solid var(--g200);background:#fff;border-radius:6px;
  font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;
  font-weight:700;color:var(--navy);transition:var(--tr);user-select:none}
.qty-btn:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.qty-num{min-width:30px;text-align:center;font-weight:700;font-size:.95rem;color:var(--navy)}
.item-total{font-weight:700;color:var(--gold-dark);white-space:nowrap;font-size:.95rem}
.remove-item{background:none;border:none;color:var(--danger);cursor:pointer;
  padding:3px 5px;border-radius:4px;transition:var(--tr)}
.remove-item:hover{background:rgba(229,62,62,.1)}
.summary-row{display:flex;justify-content:space-between;align-items:center;
  padding:7px 0;font-size:.92rem;color:var(--g600)}
.summary-row.total{font-size:1.1rem;font-weight:700;color:var(--navy);
  border-top:2px solid var(--g200);padding-top:12px;margin-top:4px}
.btn-order{display:block;width:100%;background:linear-gradient(135deg,var(--navy),var(--navy-light));
  color:var(--gold);border:none;padding:15px;border-radius:var(--r);
  font-family:var(--font);font-size:1rem;font-weight:700;cursor:pointer;
  transition:var(--tr);text-align:center;margin-top:16px}
.btn-order:hover{background:linear-gradient(135deg,var(--gold-dark),var(--gold));
  color:var(--navy);transform:translateY(-2px);box-shadow:var(--sh-md)}
.empty-cart{text-align:center;padding:48px 16px;color:var(--g400)}
.empty-cart i{font-size:2.8rem;margin-bottom:12px;display:block}

/* ===== PRODUCT PAGE ===== */
.product-page{padding:28px 0 56px}
@media(min-width:600px){.product-page{padding:44px 0 64px}}
.product-main-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-bottom:44px}
@media(min-width:760px){.product-main-grid{grid-template-columns:1fr 1fr;gap:36px}}
.product-main-img{border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--g200)}
.product-main-img img{width:100%;height:260px;object-fit:cover}
@media(min-width:480px){.product-main-img img{height:320px}}
@media(min-width:760px){.product-main-img img{height:400px}}
.product-info h1{font-size:1.25rem;font-weight:700;color:var(--navy);margin-bottom:10px;line-height:1.3}
@media(min-width:600px){.product-info h1{font-size:1.6rem}}
.product-price{font-size:1.5rem;font-weight:700;color:var(--gold-dark);margin-bottom:12px}
.product-desc{color:var(--g600);line-height:1.8;margin-bottom:16px;font-size:.93rem}
.stock-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;
  border-radius:50px;font-size:.82rem;font-weight:600;margin-bottom:16px}
.stock-badge.in-stock{background:rgba(56,161,105,.1);color:var(--success)}
.stock-badge.out-stock{background:rgba(229,62,62,.1);color:var(--danger)}
.variation-group{margin-bottom:13px}
.variation-options{display:flex;flex-wrap:wrap;gap:7px}
.var-btn{padding:7px 13px;border:1.5px solid var(--g200);border-radius:var(--r);
  background:#fff;font-family:var(--font);font-size:.85rem;cursor:pointer;transition:var(--tr)}
.var-btn.active,.var-btn:hover{border-color:var(--gold);background:var(--gold);color:var(--navy);font-weight:700}

/* ===== REVIEWS ===== */
.reviews-section{padding:32px 0}
.review-card{background:#fff;border-radius:var(--r);padding:16px;margin-bottom:12px;box-shadow:var(--sh)}
.review-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:7px}
.review-stars{color:var(--gold);font-size:.88rem}
.review-name{font-weight:600;font-size:.9rem;color:var(--navy)}
.review-date{font-size:.76rem;color:var(--g400)}
.review-text{color:var(--g600);font-size:.88rem}
.star-widget{display:flex;gap:5px;cursor:pointer}
.star-widget .sw-star{font-size:1.85rem;color:#e8e6e1;transition:color .13s,transform .11s;line-height:1;user-select:none}
.star-widget .sw-star.lit{color:#D4AF37}
.star-widget .sw-star:hover{transform:scale(1.18)}

/* ===== AUTH ===== */
.auth-page{min-height:calc(100vh - 200px);display:flex;align-items:center;
  justify-content:center;padding:36px 16px}
.auth-box{background:#fff;border-radius:var(--r-lg);padding:24px 18px;width:100%;
  max-width:440px;box-shadow:var(--sh-lg)}
@media(min-width:480px){.auth-box{padding:38px 36px}}
.auth-box h2{font-size:1.35rem;font-weight:700;color:var(--navy);text-align:center;margin-bottom:6px}
.auth-box .subtitle{text-align:center;color:var(--g600);font-size:.88rem;margin-bottom:22px}
.btn-primary{display:block;width:100%;background:var(--navy);color:var(--gold);
  border:none;padding:12px;border-radius:var(--r);font-family:var(--font);
  font-size:.97rem;font-weight:700;cursor:pointer;transition:var(--tr);text-align:center;text-decoration:none}
.btn-primary:hover{background:var(--gold);color:var(--navy)}
.auth-switch{text-align:center;margin-top:16px;color:var(--g600);font-size:.88rem}
.auth-switch a{color:var(--gold-dark);font-weight:700}

/* ===== DASHBOARD ===== */
.dash-page{padding:20px 0 52px}
@media(min-width:600px){.dash-page{padding:36px 0 64px}}
.dash-grid{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:820px){.dash-grid{grid-template-columns:210px 1fr;gap:22px}}
.dash-tabbar{display:flex;overflow-x:auto;gap:0;background:var(--navy);
  border-radius:var(--r-lg);scrollbar-width:none;margin-bottom:16px}
.dash-tabbar::-webkit-scrollbar{display:none}
.dash-tab{display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:10px 12px;color:rgba(255,255,255,.6);font-size:.72rem;font-weight:500;
  cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap;
  transition:all .2s;flex:1;min-width:68px;text-decoration:none}
.dash-tab:hover,.dash-tab.active{color:var(--gold);border-bottom-color:var(--gold);background:rgba(212,175,55,.07)}
.dash-tab i{font-size:1.05rem}
@media(min-width:820px){.dash-tabbar{display:none}}
.dash-sidebar{background:var(--navy);border-radius:var(--r-lg);display:none;
  position:sticky;top:72px;height:fit-content}
@media(min-width:820px){.dash-sidebar{display:block}}
.ds-user{padding:18px 16px 14px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:4px}
.ds-avatar{width:48px;height:48px;background:var(--gold);border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;
  color:var(--navy);font-weight:700;margin-bottom:8px}
.ds-name{color:#fff;font-weight:700;font-size:.9rem}
.ds-role{color:rgba(255,255,255,.45);font-size:.76rem}
.ds-nav a{display:flex;align-items:center;gap:9px;padding:10px 16px;
  color:rgba(255,255,255,.68);font-size:.86rem;font-weight:500;
  transition:all .2s;border-left:3px solid transparent}
.ds-nav a:hover,.ds-nav a.active{color:var(--gold);background:rgba(212,175,55,.08);border-left-color:var(--gold)}
.ds-nav a i{width:15px;text-align:center}
.ds-share{background:rgba(212,175,55,.12);border-radius:var(--r);padding:10px 16px;
  margin:10px 12px 4px;text-align:center}
.ds-share .share-pct{font-size:1.7rem;font-weight:700;color:var(--gold)}
.ds-share .share-label{font-size:.73rem;color:rgba(255,255,255,.5);margin-top:2px}
.dash-content-card{background:#fff;border-radius:var(--r-lg);padding:16px;box-shadow:var(--sh);margin-bottom:16px}
@media(min-width:600px){.dash-content-card{padding:22px}}
.dash-content-card h3{font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:14px;
  padding-bottom:9px;border-bottom:2px solid var(--g100)}

/* ===== TABLE ===== */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:.84rem;min-width:460px}
th{background:var(--navy);color:#fff;padding:10px 12px;text-align:left;font-weight:600;white-space:nowrap}
td{padding:10px 12px;border-bottom:1px solid var(--g100);vertical-align:middle}
tr:hover td{background:rgba(26,42,79,.02)}
.status-badge{display:inline-block;padding:2px 9px;border-radius:50px;font-size:.75rem;font-weight:700}
.status-pending{background:rgba(214,158,46,.15);color:var(--warning)}
.status-processing{background:rgba(49,130,206,.15);color:#3182ce}
.status-shipped{background:rgba(56,161,105,.12);color:var(--success)}
.status-delivered{background:rgba(56,161,105,.2);color:#276749}
.status-cancelled{background:rgba(229,62,62,.12);color:var(--danger)}
.status-offline{background:rgba(113,128,150,.15);color:#4a5568}

/* ===== INVESTOR STATS ===== */
.inv-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
@media(min-width:600px){.inv-stat-grid{grid-template-columns:repeat(4,1fr)}}
.inv-stat{background:#fff;border-radius:var(--r);padding:14px;box-shadow:var(--sh);border-left:4px solid var(--gold);text-align:center}
.inv-stat .sv{font-size:1.15rem;font-weight:700;color:var(--navy)}
@media(min-width:600px){.inv-stat .sv{font-size:1.4rem}}
.inv-stat .sl{font-size:.73rem;color:var(--g600);margin-top:3px}

/* ===== ALERTS ===== */
.alert{padding:11px 14px;border-radius:var(--r);margin-bottom:14px;font-size:.88rem;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.alert-success{background:rgba(56,161,105,.1);color:#276749;border:1px solid rgba(56,161,105,.25)}
.alert-error{background:rgba(229,62,62,.1);color:#c53030;border:1px solid rgba(229,62,62,.2)}
.alert-warning{background:rgba(214,158,46,.12);color:#975a16;border:1px solid rgba(214,158,46,.25)}
.alert-info{background:rgba(49,130,206,.1);color:#2c5282;border:1px solid rgba(49,130,206,.2)}

/* ===== BREADCRUMB ===== */
.breadcrumb{padding:10px 0;font-size:.83rem;color:var(--g600)}
.breadcrumb a{color:var(--gold-dark)}
.breadcrumb span{margin:0 5px}

/* ===== CATEGORY PAGE ===== */
.cat-layout{display:flex;gap:20px;align-items:flex-start}
.cat-sidebar{display:none}
@media(min-width:768px){.cat-sidebar{display:block;min-width:170px;flex-shrink:0}}
.filter-bar{display:flex;align-items:center;gap:10px;margin-bottom:16px;
  background:#fff;padding:11px 14px;border-radius:var(--r);box-shadow:var(--sh);flex-wrap:wrap}
.filter-select{padding:7px 11px;border:1.5px solid var(--g200);border-radius:var(--r);
  font-family:var(--font);font-size:.87rem;cursor:pointer;outline:none;color:var(--g800)}
.filter-select:focus{border-color:var(--gold)}

/* ===== THANK YOU ===== */
.thankyou-page{min-height:calc(100vh - 200px);display:flex;align-items:center;
  justify-content:center;padding:40px 16px}
.thankyou-box{text-align:center;background:#fff;border-radius:var(--r-lg);
  padding:36px 20px;max-width:480px;width:100%;box-shadow:var(--sh-lg)}
@media(min-width:480px){.thankyou-box{padding:56px 44px}}
.thankyou-box .check-circle{width:76px;height:76px;background:linear-gradient(135deg,var(--success),#68d391);
  border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;
  color:#fff;margin:0 auto 22px;animation:scaleIn .5s ease}
@keyframes scaleIn{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
.thankyou-box h1{font-size:1.4rem;font-weight:700;color:var(--navy);margin-bottom:8px}
.thankyou-box p{color:var(--g600);margin-bottom:5px;font-size:.9rem}
.thankyou-box .order-id{font-weight:700;color:var(--gold-dark);margin-bottom:22px}

/* ===== FOOTER ===== */
.main-footer{background:var(--navy-dark);color:rgba(255,255,255,.72);padding:36px 0 0;margin-top:40px}
@media(min-width:600px){.main-footer{padding:52px 0 0}}
.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:32px}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(4,1fr);gap:28px}}
.footer-col h4{color:var(--gold);font-size:.92rem;font-weight:700;margin-bottom:12px}
.footer-col p,.footer-col a{font-size:.84rem;color:rgba(255,255,255,.58);margin-bottom:6px;display:block;transition:var(--tr)}
.footer-col a:hover{color:var(--gold)}
.footer-col i{margin-right:6px;color:var(--gold)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:16px 0;
  text-align:center;font-size:.8rem;color:rgba(255,255,255,.32)}

/* ===== BUTTONS ===== */
.btn-sm{padding:5px 12px;font-size:.8rem;border-radius:var(--r);border:none;cursor:pointer;
  font-family:var(--font);font-weight:600;transition:var(--tr);text-decoration:none;
  display:inline-flex;align-items:center;gap:4px}
.btn-sm-navy{background:var(--navy);color:var(--gold)}.btn-sm-navy:hover{background:var(--navy-light)}
.btn-sm-gold{background:var(--gold);color:var(--navy)}.btn-sm-gold:hover{background:var(--gold-light)}
.btn-sm-red{background:var(--danger);color:#fff}.btn-sm-red:hover{background:#c53030}
.btn-sm-green{background:var(--success);color:#fff}
.page-title{font-size:1.35rem;font-weight:700;color:var(--navy);margin-bottom:5px}
@media(min-width:600px){.page-title{font-size:1.65rem}}
.page-subtitle{color:var(--g600);margin-bottom:24px;font-size:.9rem}

/* ===== MISC ===== */
.progress-bar-wrap{background:var(--g200);border-radius:50px;height:9px;overflow:hidden;min-width:70px}
.progress-bar{background:var(--gold);height:100%;border-radius:50px;transition:width .4s ease}
.share-table td{vertical-align:middle}
.stock-low{color:var(--danger);font-weight:700}
.stock-ok{color:var(--success);font-weight:700}

/* Mobile category chips */
.mobile-cat-chips{display:flex;gap:7px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none;margin-bottom:14px}
.mobile-cat-chips::-webkit-scrollbar{display:none}
.cat-chip{flex-shrink:0;padding:6px 14px;border-radius:50px;font-size:.8rem;font-weight:600;
  border:1.5px solid var(--g200);background:#fff;color:var(--g600);cursor:pointer;white-space:nowrap}
.cat-chip.active{border-color:var(--gold);background:var(--gold);color:var(--navy)}
@media(min-width:768px){.mobile-cat-chips{display:none!important}}

/* ===== RESPONSIVE CAROUSEL =====
   Mobile: 2-col grid (no horizontal scroll)
   Tablet+: horizontal scroll carousel */
@media(max-width:599px){
  .carousel-wrapper{margin:0;overflow:visible}
  .carousel-track{
    display:grid !important;
    grid-template-columns:repeat(2,1fr) !important;
    gap:10px !important;
    overflow:visible !important;
    padding:4px 0 !important;
  }
  .carousel-track .product-card{
    flex:none !important;
    width:100% !important;
    min-width:0 !important;
  }
}

/* Tablet: 3 per row in grid */
@media(min-width:600px) and (max-width:899px){
  .carousel-wrapper{overflow:hidden}
  .carousel-track .product-card{flex:0 0 180px}
}

/* Fix product card image aspect ratio */
.product-card .card-img{width:100%;aspect-ratio:1/1;height:auto;object-fit:cover}
.card-img-placeholder{width:100%;aspect-ratio:1/1;height:auto}
