/* ========================================
   LAXIIMART — Full Design System
   ======================================== */

/* Google Font already loaded via HTML */
@font-face {
  font-family: 'Kelantis';
  src: url('KelantisDEMO-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #3A6D8C;
  --orange-dark: #2D5570;
  --orange-light: #A8C8DA;
  --orange-pale: #D6EAF3;
  --coral: #E07A7A;
  --charcoal: #1E332B;
  --charcoal-mid: #2D4A3E;
  --charcoal-light: #5A7A6E;
  --white: #FFFFFF;
  --bg-light: #F2FAF6;
  --bg-card: #C8EBD8;
  --border: #A8D4BC;
  --border-light: #D4EDE0;
  --green: #27AE60;
  --green-light: #D4EDDA;
  --red: #E74C3C;
  --red-light: #FDECEA;
  --purple: #E07A7A;
  --purple-light: #FEF0F0;
  --blue: #2980B9;
  --shadow-sm: 0 1px 4px rgba(30,51,43,.07);
  --shadow-md: 0 4px 16px rgba(30,51,43,.10);
  --shadow-lg: 0 8px 32px rgba(30,51,43,.13);
  --shadow-xl: 0 20px 60px rgba(30,51,43,.16);
  --shadow-orange: 0 4px 20px rgba(58,109,140,.32);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;
  --font: 'Inter', sans-serif;
  --header-h: 148px;
  --annbar-h: 36px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--charcoal);
  padding-top: calc(var(--annbar-h) + var(--header-h));
  padding-bottom: 70px;
  overflow-x: hidden;
  user-select: text;
  -webkit-user-select: text;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; }
input, textarea, select { font-family: var(--font); }
ul { list-style: none; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* ========================================
   ANNOUNCEMENT BAR
   ======================================== */
.announcement-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: var(--annbar-h);
  background: linear-gradient(90deg, #1E332B 0%, #2D4A3E 50%, #1E332B 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; text-align: center;
  white-space: nowrap; overflow: hidden;
}
.announcement-bar span { animation: marquee 56s linear infinite; display: inline-block; padding-left: 100%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-200%); } }

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed; top: var(--annbar-h); left: 0; right: 0; z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.header-top { padding: 12px 0; border-bottom: 1px solid var(--border); }
.header-top-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 32px; }
.logo-text { display: block; font-size: 26px; font-weight: 900; color: var(--orange); letter-spacing: -0.5px; line-height: 1; font-family: 'Kelantis', 'Inter', sans-serif; }
.logo-img { display: block; height: auto; max-height: 60px; max-width: 260px; width: auto; object-fit: contain; pointer-events: none; }
.logo { cursor: pointer; }
.logo-tagline { display: block; font-size: 10px; color: var(--charcoal-light); letter-spacing: 1.5px; text-transform: uppercase; }

/* Search */
.search-bar-wrapper { max-width: 600px; margin: 0 auto; width: 100%; }
.search-form { display: flex; border: 2px solid var(--orange); border-radius: var(--radius-full); overflow: hidden; background: #fff; }
.search-input { flex: 1; padding: 10px 18px; border: none; outline: none; font-size: 14px; color: var(--charcoal); background: transparent; }
.search-btn { padding: 10px 20px; background: var(--orange); color: #fff; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; transition: background var(--transition); }
.search-btn:hover { background: var(--orange-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-action-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--charcoal); padding: 7px 12px; border-radius: var(--radius-full); border: 1px solid var(--border); transition: all var(--transition); }
.header-action-btn:hover { border-color: var(--orange); color: var(--orange); }
.whatsapp-btn { background: #25D366; color: #fff; border-color: #25D366; }
.whatsapp-btn:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }
.cart-header-btn { position: relative; background: var(--orange-pale); border: 2px solid var(--orange); border-radius: var(--radius-full); padding: 8px 14px; display: flex; align-items: center; gap: 8px; color: var(--orange); font-size: 15px; transition: all var(--transition); }
.cart-header-btn:hover { background: var(--orange); color: #fff; }
.cart-count { background: var(--orange); color: #fff; border-radius: 50%; min-width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: background var(--transition); }
.cart-header-btn:hover .cart-count { background: #fff; color: var(--orange); }

/* Category Nav */
.category-nav { background: var(--charcoal); padding: 0; display: flex; align-items: stretch; position: relative; }
.cat-nav-scroll { flex: 1; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cat-nav-scroll::-webkit-scrollbar { display: none; }
.cat-nav-list { display: flex; align-items: center; gap: 0; white-space: nowrap; justify-content: center; min-width: max-content; margin: 0 auto; }
.cat-nav-arrow { flex-shrink: 0; background: rgba(255,255,255,.08); border: none; color: #fff; font-size: 22px; padding: 0 12px; cursor: pointer; transition: background .2s; }
.cat-nav-arrow:hover { background: var(--orange); }
.cat-nav-arrow.hidden { display: none; }
.cat-nav-link { display: inline-block; padding: 12px 16px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.8); transition: all var(--transition); border-bottom: 3px solid transparent; }
.cat-nav-link:hover, .cat-nav-link.active { color: #fff; background: rgba(255,255,255,.08); border-bottom-color: var(--orange); }
.flash-sale-link { color: var(--orange-light) !important; font-weight: 700; animation: flash-pulse 1.5s ease-in-out infinite; }
@keyframes flash-pulse { 0%,100%{ opacity:1; } 50%{ opacity:.65; } }

/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar { position: fixed; top: 0; right: -420px; width: 380px; max-width: 100vw; height: 100vh; background: #fff; z-index: 2001; display: flex; flex-direction: column; box-shadow: var(--shadow-xl); transition: right .3s cubic-bezier(.4,0,.2,1); }
.cart-sidebar.open { right: 0; }
.cart-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-sidebar-header h3 { font-size: 18px; font-weight: 700; }
.cart-close-btn { background: var(--bg-light); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; cursor: pointer; transition: all var(--transition); }
.cart-close-btn:hover { background: var(--red-light); color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; text-align: center; }
.cart-empty-icon { font-size: 64px; }
.cart-empty p { color: var(--charcoal-light); font-size: 15px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--orange); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-light); border: 1px solid var(--border); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); }
.qty-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { color: var(--charcoal-light); background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px; transition: color var(--transition); }
.cart-item-remove:hover { color: var(--red); }
.cart-footer { padding: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; }
.cart-total-price { color: var(--orange); font-size: 20px; }

/* Floating Cart Widget */
.floating-cart { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 999; background: var(--orange); color: #fff; padding: 12px 10px; border-radius: 12px 0 0 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; box-shadow: var(--shadow-orange); transition: all var(--transition); min-width: 70px; }
.floating-cart:hover { background: var(--orange-dark); padding-right: 14px; }
.floating-cart-count { font-size: 18px; font-weight: 800; line-height: 1; }
.floating-cart-label { font-size: 10px; opacity: .85; }
.floating-cart-total { font-size: 11px; font-weight: 600; }

/* ========================================
   MOBILE BOTTOM NAV
   ======================================== */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: #fff; border-top: 1px solid var(--border); display: flex; align-items: stretch; box-shadow: 0 -4px 20px rgba(0,0,0,.1); }
.mob-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; color: var(--charcoal-light); font-size: 10px; font-weight: 500; border: none; background: none; transition: all var(--transition); }
.mob-nav-item:hover, .mob-nav-item.active { color: var(--orange); }
.mob-cart-wrap { position: relative; }
.mob-cart-badge { position: absolute; top: -6px; right: -8px; background: var(--orange); color: #fff; border-radius: 50%; min-width: 18px; height: 18px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff; padding: 11px 22px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700; border: 2px solid var(--orange); cursor: pointer; transition: all var(--transition); letter-spacing: .3px; }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow-orange); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--charcoal); padding: 11px 22px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; border: 2px solid var(--border); cursor: pointer; transition: all var(--transition); }
.btn-secondary:hover { border-color: var(--charcoal); }
.btn-outline-orange { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange-light); color: var(--orange-dark); padding: 9px 18px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; border: 2px solid var(--orange-light); cursor: pointer; transition: all var(--transition); }
.btn-outline-orange:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.w-full { width: 100%; }

/* ========================================
   BADGES
   ======================================== */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.badge-orange { background: var(--orange); color: #fff; }
.badge-red { background: var(--coral); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-purple { background: var(--purple); color: #fff; }
.badge-dark { background: var(--charcoal); color: #fff; }
.badge-stockout { background: #636e72; color: #fff; }

/* ========================================
   PAGE LOADER
   ======================================== */
.page-loader { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.loader-spinner { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   HERO BANNER / SLIDER
   ======================================== */
.hero-section { margin-bottom: 32px; }

/* Featured Info Cards */
.feat-info-section { padding: 12px 0 4px; }
.feat-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.feat-info-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 8px; text-decoration: none; color: var(--charcoal); transition: all var(--transition); text-align: center; }
.feat-info-card:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.feat-info-icon { font-size: 26px; }
.feat-info-label { font-size: 12px; font-weight: 700; color: var(--charcoal); line-height: 1.3; }
.feat-info-desc { font-size: 10px; color: var(--charcoal-light); margin-top: 2px; line-height: 1.3; }
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); margin: 20px 0 0; }
.hero-track { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.hero-slide { flex: 0 0 100%; min-width: 100%; position: relative; min-height: 420px; overflow: hidden; display: flex; align-items: center; }
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%); }
.hero-slide-content { position: relative; z-index: 2; padding: 48px; max-width: 560px; color: #fff; }
.hero-slide-tag { display: inline-block; background: var(--orange); color: #fff; padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.hero-slide-title { font-size: 42px; font-weight: 900; line-height: 1.1; margin-bottom: 12px; }
.hero-slide-subtitle { font-size: 16px; opacity: .85; margin-bottom: 28px; line-height: 1.5; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all var(--transition); }
.hero-dot.active { background: var(--orange); width: 24px; border-radius: 5px; }
.hero-prev, .hero-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); font-size: 18px; }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover { background: var(--orange); border-color: var(--orange); }

/* ========================================
   SECTION HEADER
   ======================================== */
.section { padding: 32px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 800; color: var(--charcoal); position: relative; padding-left: 14px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--orange); border-radius: 2px; }
.section-view-all { font-size: 13px; font-weight: 600; color: var(--orange); display: flex; align-items: center; gap: 4px; transition: gap var(--transition); }
.section-view-all:hover { gap: 8px; }

/* ========================================
   CATEGORY CARDS
   ======================================== */
.categories-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: #fff; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; transition: all var(--transition); text-align: center; }
.cat-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-card-icon { font-size: 32px; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--orange-pale); transition: all var(--transition); }
.cat-card:hover .cat-card-icon { background: var(--orange); transform: scale(1.1); }
.cat-card-name { font-size: 12px; font-weight: 600; color: var(--charcoal); }

/* ========================================
   PRODUCT CARDS
   ======================================== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Card style like GhorerBazar — landscape horizontal */
.product-card-h { display: flex; gap: 0; background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); position: relative; }
.product-card-h:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.product-card-h .product-badge { position: absolute; top: 10px; right: 10px; z-index: 2; }
.product-card-h .product-img-wrap { width: 160px; min-width: 160px; display: flex; align-items: center; justify-content: center; background: var(--bg-light); overflow: hidden; }
.product-card-h .product-img { width: 100%; height: 160px; object-fit: cover; transition: transform .4s ease; }
.product-card-h:hover .product-img { transform: scale(1.05); }
.product-card-h .product-info { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.product-card-h .product-name { font-size: 15px; font-weight: 700; color: var(--charcoal); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-h .product-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-card-h .price-sale { font-size: 20px; font-weight: 800; color: var(--orange); }
.product-card-h .price-regular { font-size: 14px; color: var(--charcoal-light); text-decoration: line-through; }
.product-card-h .price-save { font-size: 12px; font-weight: 700; background: var(--green-light); color: var(--green); padding: 2px 8px; border-radius: var(--radius-full); }
.product-card-h .product-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }

/* Card vertical style */
.product-card-v { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); position: relative; display: flex; flex-direction: column; }
.product-card-v:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.product-card-v .product-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.product-card-v .quick-view-btn { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--charcoal); cursor: pointer; opacity: 0; transition: all var(--transition); }
.product-card-v:hover .quick-view-btn { opacity: 1; }
.product-card-v .quick-view-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.product-card-v .product-img-wrap-v { overflow: hidden; background: var(--bg-light); height: 200px; display: flex; align-items: center; justify-content: center; }
.product-card-v .product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card-v:hover .product-img { transform: scale(1.06); }
.product-card-v .product-info-v { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-v .product-name { font-size: 14px; font-weight: 600; color: var(--charcoal); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-v .price-row { display: flex; align-items: baseline; gap: 8px; }
.product-card-v .price-sale { font-size: 18px; font-weight: 800; color: var(--orange); }
.product-card-v .price-regular { font-size: 13px; color: var(--charcoal-light); text-decoration: line-through; }
.product-card-v .card-actions { display: flex; gap: 6px; margin-top: auto; }
.card-actions .btn-primary { flex: 1; padding: 9px 12px; font-size: 13px; }
.card-actions .btn-outline-orange { padding: 9px 12px; font-size: 13px; }

/* ========================================
   TRUST BADGES
   ======================================== */
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.trust-badge { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 16px; display: flex; align-items: center; gap: 14px; transition: all var(--transition); text-decoration: none; cursor: pointer; }
.trust-badge:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.trust-badge-icon { font-size: 32px; }
.trust-badge-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--charcoal); }
.trust-badge-text span { font-size: 12px; color: var(--charcoal-light); }

/* ========================================
   BRANDS STRIP
   ======================================== */
.brands-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.brands-strip::-webkit-scrollbar { display: none; }
.brand-card { min-width: 160px; height: 70px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; padding: 12px 20px; font-size: 16px; font-weight: 800; color: var(--charcoal); transition: all var(--transition); cursor: pointer; }
.brand-card:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; transition: all var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-stars { color: #F7B731; font-size: 14px; margin-bottom: 10px; }
.testimonial-text { font-size: 14px; color: var(--charcoal-mid); line-height: 1.65; margin-bottom: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.testimonial-name { font-size: 13px; font-weight: 700; }
.testimonial-label { font-size: 11px; color: var(--charcoal-light); }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--charcoal); color: rgba(255,255,255,.8); padding: 28px 0 14px; margin-bottom: -70px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo-icon { font-size: 22px; }
.footer-logo-text { font-size: 18px; font-weight: 900; color: var(--orange); font-family: 'Kelantis', 'Inter', sans-serif; }
.footer-tagline { font-size: 11px; opacity: .7; line-height: 1.5; }
.footer-contact { display: flex; flex-direction: column; gap: 5px; font-size: 11px; }
.footer-contact a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-contact a:hover { color: var(--orange); }
.footer-col-title { font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .8px; }
.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-links a { font-size: 11px; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; opacity: .6; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--orange); }
.social-links { display: flex; gap: 10px; }
.social-link { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all var(--transition); }
.social-link:hover { background: var(--orange); transform: translateY(-2px); }

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */
.product-detail { background: #fff; border-radius: var(--radius-lg); padding: 32px; margin: 24px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main-img { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-light); height: 400px; display: flex; align-items: center; justify-content: center; }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-category { font-size: 12px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.pd-title { font-size: 26px; font-weight: 800; line-height: 1.3; margin: 8px 0; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 12px 0; }
.pd-price-sale { font-size: 32px; font-weight: 900; color: var(--orange); }
.pd-price-old { font-size: 18px; color: var(--charcoal-light); text-decoration: line-through; }
.pd-save-tag { background: var(--green-light); color: var(--green); padding: 4px 10px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700; }
.pd-description { font-size: 14px; line-height: 1.75; color: var(--charcoal-mid); margin: 16px 0; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pd-badge-item { display: flex; align-items: center; gap: 6px; background: var(--orange-pale); color: var(--charcoal); padding: 6px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.pd-qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.pd-qty-label { font-size: 14px; font-weight: 600; }
.pd-qty-ctrl { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pd-qty-btn { width: 36px; height: 36px; background: var(--bg-light); border: none; font-size: 18px; font-weight: 700; cursor: pointer; transition: all var(--transition); }
.pd-qty-btn:hover { background: var(--orange); color: #fff; }
.pd-qty-input { width: 48px; height: 36px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 15px; font-weight: 700; outline: none; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-actions .btn-primary { flex: 1; padding: 14px 20px; font-size: 15px; }
.pd-actions .btn-outline-orange { padding: 14px 20px; font-size: 15px; min-width: 150px; }
.pd-stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin: 10px 0; }
.in-stock { color: var(--green); }
.out-stock { color: var(--red); }
.pd-stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }

/* ========================================
   CHECKOUT PAGE
   ======================================== */
.checkout-page { padding: 32px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 440px; gap: 32px; align-items: start; }
.checkout-form-card, .checkout-summary-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.checkout-card-header { padding: 24px 30px; border-bottom: 1px solid var(--border); }
.checkout-card-header h3 { font-size: 18px; font-weight: 800; }
.checkout-card-body { padding: 30px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-label .req { color: var(--red); }
.form-control { width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--charcoal); outline: none; transition: border-color var(--transition); background: #fff; }
.form-control:focus { border-color: var(--orange); }
.form-control::placeholder { color: var(--charcoal-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.payment-option:hover { border-color: var(--orange); }
.payment-option input[type="radio"] { accent-color: var(--orange); width: 16px; height: 16px; }
.payment-option label { font-size: 14px; font-weight: 600; cursor: pointer; flex: 1; }
.payment-option-logo { font-size: 20px; }
.checkout-summary-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.summary-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.summary-item-name { font-size: 13px; font-weight: 600; }
.summary-item-qty { font-size: 12px; color: var(--charcoal-light); }
.summary-item-price { font-size: 14px; font-weight: 700; color: var(--orange); margin-left: auto; white-space: nowrap; }
.price-breakdown { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.price-row-summary { display: flex; justify-content: space-between; font-size: 14px; }
.price-row-summary.total { font-size: 17px; font-weight: 800; padding-top: 10px; border-top: 2px solid var(--border); }
.price-row-summary.total .price-val { color: var(--orange); }

/* ========================================
   ORDER SUCCESS PAGE
   ======================================== */
.success-page { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; min-height: 60vh; }
.success-icon { font-size: 80px; animation: bounceIn .6s ease; margin-bottom: 20px; }
@keyframes bounceIn { 0%{transform:scale(0);opacity:0}60%{transform:scale(1.1);}100%{transform:scale(1);opacity:1} }
.success-title { font-size: 28px; font-weight: 900; color: var(--green); margin-bottom: 10px; }
.success-msg { font-size: 15px; color: var(--charcoal-mid); margin-bottom: 24px; max-width: 400px; line-height: 1.6; }
.success-order-id { background: var(--green-light); color: var(--green); padding: 8px 20px; border-radius: var(--radius-full); font-weight: 700; margin-bottom: 24px; display: inline-block; }

/* ========================================
   ADMIN DASHBOARD
   ======================================== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; margin-top: -24px; }
.admin-sidebar { background: var(--charcoal); color: #fff; padding: 0; position: sticky; top: calc(var(--annbar-h) + var(--header-h)); height: calc(100vh - var(--annbar-h) - var(--header-h)); overflow-y: auto; }
.admin-sidebar-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-brand h2 { font-size: 16px; font-weight: 800; color: var(--orange); }
.admin-sidebar-brand p { font-size: 12px; opacity: .6; }
.admin-nav { padding: 12px 0; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 14px; color: rgba(255,255,255,.7); cursor: pointer; border-left: 3px solid transparent; transition: all var(--transition); }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--orange); }
.admin-nav-icon { font-size: 18px; }
.admin-main { padding: 24px; background: var(--bg-light); }
.admin-page-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius-md); padding: 20px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); transition: all var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { font-size: 32px; width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.stat-icon.orange { background: var(--orange-pale); }
.stat-icon.green { background: var(--green-light); }
.stat-icon.purple { background: var(--purple-light); }
.stat-icon.blue { background: #EBF5FB; }
.stat-val { font-size: 26px; font-weight: 900; color: var(--charcoal); line-height: 1; }
.stat-label { font-size: 12px; color: var(--charcoal-light); margin-top: 2px; }
.admin-card { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 16px; font-weight: 700; }
.admin-card-body { padding: 20px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--charcoal-light); text-transform: uppercase; letter-spacing: .5px; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }
.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; }
.status-pending { background: #FFF3CD; color: #856404; }
.status-processing { background: #CCE5FF; color: #004085; }
.status-shipped { background: var(--purple-light); color: var(--purple); }
.status-delivered { background: var(--green-light); color: var(--green); }
.status-cancelled { background: var(--red-light); color: var(--red); }
.table-action-btns { display: flex; gap: 6px; }
.tbl-btn { padding: 5px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid; transition: all var(--transition); }
.tbl-btn-edit { color: var(--blue); border-color: var(--blue); background: #EBF5FB; }
.tbl-btn-edit:hover { background: var(--blue); color: #fff; }
.tbl-btn-del { color: var(--red); border-color: var(--red); background: var(--red-light); }
.tbl-btn-del:hover { background: var(--red); color: #fff; }
.tbl-btn-view { color: var(--charcoal); border-color: var(--border); background: var(--bg-light); }
.tbl-btn-view:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* Admin Form Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 3000; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -56%) scale(.95); z-index: 3001; background: #fff; border-radius: var(--radius-lg); padding: 32px; width: 560px; max-width: 95vw; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); opacity: 0; pointer-events: none; transition: all .25s cubic-bezier(.4,0,.2,1); }
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg-light); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; transition: all var(--transition); }
.modal-close:hover { background: var(--red-light); color: var(--red); }
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }

/* Toggle Switch */
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 50px; cursor: pointer; transition: .3s; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .3s; }
input:checked + .toggle-slider { background: var(--green); }
input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Product thumbnail in table */
.prod-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* status select in table */
.status-select { padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; outline: none; }

/* search bar in admin */
.admin-search { padding: 8px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; width: 220px; transition: border-color var(--transition); }
.admin-search:focus { border-color: var(--orange); }

/* Webhook settings */
.webhook-row { display: flex; gap: 10px; align-items: center; }
.webhook-row .form-control { flex: 1; }

/* ========================================
   TOAST
   ======================================== */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--charcoal); color: #fff; padding: 12px 24px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; z-index: 9999; opacity: 0; transition: all .3s ease; white-space: nowrap; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--blue); }

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--charcoal-light); padding: 16px 0; }
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .4; }

/* ========================================
   FILTER BAR
   ======================================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: #fff; border-radius: var(--radius-md); padding: 14px 16px; border: 1px solid var(--border); margin-bottom: 20px; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--charcoal); }
.filter-chip { padding: 6px 14px; border-radius: var(--radius-full); border: 1.5px solid var(--border); font-size: 12px; font-weight: 600; cursor: pointer; transition: all var(--transition); background: #fff; }
.filter-chip:hover, .filter-chip.active { border-color: var(--orange); color: var(--orange); background: var(--orange-pale); }
.filter-sort { margin-left: auto; padding: 7px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; cursor: pointer; }

/* ========================================
   SEARCH RESULTS
   ======================================== */
.search-results-header { padding: 20px 0; }
.search-results-header h2 { font-size: 20px; font-weight: 800; }
.search-results-header p { font-size: 14px; color: var(--charcoal-light); margin-top: 4px; }
.no-results { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; }
.no-results-icon { font-size: 64px; margin-bottom: 16px; }
.no-results h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.no-results p { font-size: 14px; color: var(--charcoal-light); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.animate-up { animation: slideUp .4s ease forwards; }
.animate-up-d1 { animation-delay: .1s; opacity: 0; }
.animate-up-d2 { animation-delay: .2s; opacity: 0; }
.animate-up-d3 { animation-delay: .3s; opacity: 0; }
@keyframes slideDown { from { opacity:0; transform:translateY(-28px); } to { opacity:1; transform:translateY(0); } }
@-webkit-keyframes slideDown { from { opacity:0; -webkit-transform:translateY(-28px); } to { opacity:1; -webkit-transform:translateY(0); } }
.prod-card-enter {
  opacity: 0;
  transform: translateY(-28px);
  -webkit-transform: translateY(-28px);
  animation: slideDown .45s ease forwards;
  -webkit-animation: slideDown .45s ease forwards;
  will-change: transform, opacity;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(5, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  body { --header-h: 128px; }
  .header-top-inner { grid-template-columns: auto 1fr; }
  .header-actions { display: none; }
  .search-bar-wrapper { max-width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  /* Header */
  body { --header-h: 118px; }
  .container { padding: 0 12px; }
  .header-top { padding: 8px 0; }
  .header-top-inner { gap: 10px; }
  .logo-icon { font-size: 18px; }
  .logo-text { font-size: 15px; }
  .logo-tagline { display: none; }
  .logo { gap: 6px; }
  .logo-img { max-height: 26px; max-width: 120px; }
  .search-bar-wrapper { max-width: 100%; }
  .search-input { padding: 6px 10px; font-size: 12px; }
  .search-btn { padding: 6px 10px; font-size: 12px; }
  .search-btn svg { width: 14px; height: 14px; }
  .cat-nav-link { padding: 10px 12px; font-size: 12px; }
  .cat-nav-arrow { padding: 0 8px; font-size: 18px; }

  /* Hero */
  .hero-slide { min-height: 200px; }
  .hero-slide-content { padding: 20px 14px; }
  .hero-slide-tag { font-size: 10px; padding: 3px 9px; margin-bottom: 8px; }
  .hero-slide-title { font-size: 20px; margin-bottom: 8px; }
  .hero-slide-subtitle { display: none; }
  .hero-prev, .hero-next { display: none; }
  .hero-slide-content .btn-primary { padding: 7px 12px !important; font-size: 11px !important; }

  /* Sections */
  .section { padding: 20px 0; }
  .section-title { font-size: 17px; }

  /* Category cards */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { padding: 12px 6px; gap: 6px; }
  .cat-card-icon { font-size: 24px; width: 46px; height: 46px; }
  .cat-card-name { font-size: 11px; }

  /* Products — 2 columns on mobile */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* Horizontal product card — stack on mobile */
  .product-card-h { flex-direction: column; }
  .product-card-h .product-img-wrap { width: 100%; min-width: unset; }
  .product-card-h .product-img { height: 160px; width: 100%; }
  .product-card-h .product-info { padding: 10px 12px; gap: 6px; }
  .product-card-h .product-name { font-size: 13px; }
  .product-card-h .price-sale { font-size: 16px; }
  .product-card-h .product-actions { gap: 6px; }
  .product-card-h .product-actions .btn-primary,
  .product-card-h .product-actions .btn-outline-orange { padding: 8px 10px; font-size: 12px; }

  /* Vertical card */
  .product-card-v .product-img-wrap-v { height: 150px; }
  .product-card-v .product-info-v { padding: 10px; gap: 6px; }
  .product-card-v .product-name { font-size: 12px; }
  .product-card-v .price-sale { font-size: 15px; }
  .card-actions .btn-primary,
  .card-actions .btn-outline-orange { padding: 7px 8px; font-size: 12px; }

  /* Trust badges */
  .trust-badges { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feat-info-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .feat-info-card { padding: 10px 4px; gap: 4px; }
  .feat-info-card:nth-child(n+3) { display: none; }
  .feat-info-icon { font-size: 20px; }
  .feat-info-label { font-size: 11px; }
  .feat-info-desc { display: none; }
  .trust-badge { padding: 14px 10px; gap: 10px; }
  .trust-badge-icon { font-size: 24px; }
  .trust-badge-text strong { font-size: 12px; }
  .trust-badge-text span { font-size: 11px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer { padding: 20px 0 10px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Product detail */
  .product-detail { padding: 16px 12px; }
  .pd-title { font-size: 20px; }
  .pd-price-sale { font-size: 26px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn-primary,
  .pd-actions .btn-outline-orange { width: 100%; min-width: unset; }

  /* Cart sidebar full width on mobile */
  .cart-sidebar { width: 100vw; }

  /* Checkout summary order: form first, summary below */
  .checkout-grid { grid-template-columns: 1fr; }

  /* Floating cart hide */
  .floating-cart { display: none; }

  /* Toast */
  .toast { font-size: 13px; padding: 10px 18px; white-space: normal; max-width: 90vw; text-align: center; }
}

/* ========================================
   DARK MODE
   ======================================== */

/* Toggle button */
.dark-mode-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
  transition: var(--transition);
}
.dark-mode-toggle:hover {
  background: var(--orange-pale);
  border-color: var(--orange);
  color: var(--orange);
}
.dark-mode-toggle .moon-icon { display: none; }
.dark-mode-toggle .sun-icon { display: block; }

/* Dark mode active */
body.dark-mode {
  --bg-light: #121a14;
  --bg-card: #1a2b1f;
  --white: #1e2d22;
  --charcoal: #e0ebe4;
  --charcoal-mid: #b8cfc0;
  --charcoal-light: #8aac96;
  --border: #2d4a3e;
  --border-light: #243d32;
  --green-light: #1a3326;
  --red-light: #3a1a1a;
  --purple-light: #2d1a1a;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.5);
}

body.dark-mode .dark-mode-toggle .moon-icon { display: block; }
body.dark-mode .dark-mode-toggle .sun-icon { display: none; }
body.dark-mode .dark-mode-toggle {
  border-color: #3a6b56;
  color: #a8d4bc;
}

/* Dark mode overrides */
body.dark-mode .header {
  background: #1a2b1f;
  border-bottom-color: #2d4a3e;
}
body.dark-mode .ann-bar {
  background: #0d1a10;
}
body.dark-mode .cat-nav {
  background: #141f17;
}
body.dark-mode .search-bar input {
  background: #243d32;
  border-color: #2d4a3e;
  color: #e0ebe4;
}
body.dark-mode .search-bar button {
  background: var(--orange);
}
body.dark-mode .product-card-v,
body.dark-mode .product-card-h {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .product-card-v:hover,
body.dark-mode .product-card-h:hover {
  border-color: #3a6b56;
}
body.dark-mode .card,
body.dark-mode .form-card {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .form-control,
body.dark-mode select,
body.dark-mode textarea {
  background: #243d32;
  border-color: #2d4a3e;
  color: #e0ebe4;
}
body.dark-mode .cart-sidebar {
  background: #1a2b1f;
  border-left-color: #2d4a3e;
}
body.dark-mode .cart-item {
  border-bottom-color: #2d4a3e;
}
body.dark-mode .mobile-nav {
  background: #1a2b1f;
  border-top-color: #2d4a3e;
}
body.dark-mode .hero-slide {
  filter: brightness(.85);
}
body.dark-mode .modal-bg .modal-box,
body.dark-mode .quick-view-content {
  background: #1e2d22;
  color: #e0ebe4;
}
body.dark-mode .floating-cart {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .btn-secondary {
  background: #243d32;
  border-color: #2d4a3e;
  color: #e0ebe4;
}
body.dark-mode footer {
  background: #0d1a10;
}

/* Force dark on all white backgrounds */
body.dark-mode .header {
  background: #1a2b1f !important;
}
body.dark-mode .search-form {
  background: #243d32;
  border-color: #3a6b56;
}
body.dark-mode .search-form input {
  background: #243d32;
  color: #e0ebe4;
}
body.dark-mode .cart-sidebar {
  background: #1a2b1f;
}
body.dark-mode .mobile-bottom-nav {
  background: #1a2b1f;
  border-top-color: #2d4a3e;
}
body.dark-mode .feat-info-card {
  background: #1e2d22;
  border-color: #2d4a3e;
  color: #e0ebe4;
}
body.dark-mode .cat-card {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .cat-card:hover {
  border-color: var(--orange);
}
body.dark-mode .trust-badge {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .brand-card {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .testimonial-card {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .product-detail {
  background: #1e2d22;
}
body.dark-mode .checkout-form-card,
body.dark-mode .checkout-summary-card {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .form-control {
  background: #243d32;
  border-color: #2d4a3e;
  color: #e0ebe4;
}
body.dark-mode .stat-card {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .admin-card {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .modal {
  background: #1e2d22;
}
body.dark-mode .filter-bar {
  background: #1e2d22;
  border-color: #2d4a3e;
}
body.dark-mode .filter-chip {
  background: #243d32;
  border-color: #2d4a3e;
  color: #e0ebe4;
}
body.dark-mode .filter-chip.active,
body.dark-mode .filter-chip:hover {
  background: var(--orange);
  color: #fff;
}

/* Inline white sections */
body.dark-mode section[style*="background:#fff"],
body.dark-mode div[style*="background:#fff"],
body.dark-mode div[style*="background: #fff"],
body.dark-mode div[style*="background:white"] {
  background: #1e2d22 !important;
}

/* All remaining white boxes via attribute selectors */
body.dark-mode [style*="background:#fff"] {
  background: #1e2d22 !important;
}
body.dark-mode [style*="background: #fff"] {
  background: #1e2d22 !important;
}
body.dark-mode [style*="background:#FFFFFF"] {
  background: #1e2d22 !important;
}
body.dark-mode [style*="background:white"] {
  background: #1e2d22 !important;
}

/* Input/select inside dark */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #243d32;
  border-color: #2d4a3e;
  color: #e0ebe4;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #6a8a76;
}

/* Links */
body.dark-mode a {
  color: var(--orange-light);
}
body.dark-mode a:hover {
  color: var(--orange);
}

/* Quick view */
body.dark-mode .quick-view-content {
  background: #1e2d22 !important;
  color: #e0ebe4;
}

/* Scrollbar dark */
body.dark-mode ::-webkit-scrollbar {
  background: #121a14;
}
body.dark-mode ::-webkit-scrollbar-thumb {
  background: #2d4a3e;
  border-radius: 4px;
}

/* Section headings */
body.dark-mode .section-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
  color: #e0ebe4;
}

/* Order success page */
body.dark-mode .order-success-card {
  background: #1e2d22;
}
