/* ===== LIBAAS-E-KHAANI — Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #8B2252;
  --primary-dark: #6b1a3f;
  --primary-light: #c4527e;
  --gold: #C9A84C;
  --gold-light: #e8c97a;
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card2: #222222;
  --text-white: #f5f5f5;
  --text-muted: #aaaaaa;
  --text-gold: #C9A84C;
  --border: #333333;
  --overlay: rgba(0,0,0,0.7);
  --gradient-hero: linear-gradient(135deg, #0d0d0d 0%, #1a0a12 50%, #0d0d0d 100%);
  --gradient-card: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.95) 100%);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-hover: 0 16px 48px rgba(139,34,82,0.4);
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== CARD SIZE CONTROL ===== */
:root { --card-width: 210px; }
body[data-card-size="small"]   { --card-width: 165px; }
body[data-card-size="medium"]  { --card-width: 210px; }
body[data-card-size="large"]   { --card-width: 260px; }
body[data-card-size="xlarge"]  { --card-width: 310px; }
body[data-card-size="xxlarge"] { --card-width: 370px; }
@media (max-width: 768px) {
  body[data-card-size="small"]   { --card-width: 145px; }
  body[data-card-size="medium"]  { --card-width: 155px; }
  body[data-card-size="large"]   { --card-width: 160px; }
  body[data-card-size="xlarge"]  { --card-width: 165px; }
  body[data-card-size="xxlarge"] { --card-width: 165px; }
}

/* ===== LIGHT THEME ===== */
body.light-theme {
  --bg-dark: #f4f0eb;
  --bg-card: #ffffff;
  --bg-card2: #f8f4f0;
  --text-white: #1a0812;
  --text-muted: #6b5c67;
  --border: #e0d4da;
  --overlay: rgba(255,255,255,0.7);
  --gradient-card: linear-gradient(180deg, transparent 40%, rgba(250,245,248,0.97) 100%);
  --shadow: 0 8px 32px rgba(139,34,82,0.12);
  --shadow-hover: 0 16px 48px rgba(139,34,82,0.25);
}
body.light-theme .announcement-bar { background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark)); }
body.light-theme .navbar { background: rgba(255,255,255,0.95); border-bottom-color: rgba(139,34,82,0.15); }
body.light-theme .navbar.scrolled { background: rgba(255,255,255,0.99); box-shadow: 0 2px 20px rgba(139,34,82,0.08); }
body.light-theme .navbar-brand { color: var(--primary-dark); }
body.light-theme .navbar-nav a { color: #5a3f50; }
body.light-theme .navbar-nav a:hover, body.light-theme .navbar-nav a.active { color: var(--primary-dark); }
body.light-theme .dropdown-menu { background: #fff; border-color: #e0d4da; }
body.light-theme .navbar-search { background: #f8f4f0; border-color: #e0d4da; }
body.light-theme .navbar-search input { color: #1a0812; }
body.light-theme .cart-btn { color: var(--primary-dark); }
body.light-theme .mobile-menu-btn { color: var(--primary-dark); }
body.light-theme .product-card { border-color: #e8dde4; background: #fff; }
body.light-theme .product-card:hover { border-color: var(--primary); }
body.light-theme .product-card-name { color: #1a0812; }
body.light-theme .product-card-cat { color: var(--primary); }
body.light-theme .category-card { border-color: #e8dde4; background: #f8f4f0; }
body.light-theme .cart-sidebar { background: #fff; }
body.light-theme .chatbot-window { background: #fff; }
body.light-theme .chat-msg.bot .chat-bubble { background: #f8f4f0; border-color: #e0d4da; color: #1a0812; }
body.light-theme .chatbot-input input { background: #f8f4f0; border-color: #e0d4da; color: #1a0812; }
body.light-theme .loading-overlay { background: #f4f0eb; }
body.light-theme .loader-logo { color: var(--primary); }
body.light-theme .featured-banner { background: linear-gradient(135deg, #f0dce8 0%, #e8c8d8 50%, #f0dce8 100%); }
body.light-theme .mobile-nav { background: #fff; }
body.light-theme .mobile-nav-logo { color: var(--primary-dark); }
body.light-theme .mobile-nav-links a { color: #1a0812; }
body.light-theme .section-title { color: #1a0812; }
body.light-theme .footer { background: #ede5e9; }
body.light-theme .footer-bottom { border-color: #d9ccd3; }
body.light-theme .back-to-top { background: #fff; border-color: #e0d4da; color: var(--primary); }

/* Theme toggle */
.theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: 20px; width: 52px; height: 28px;
  cursor: pointer; position: relative; transition: var(--transition); flex-shrink: 0;
}
.theme-toggle::after {
  content: '🌙'; position: absolute; left: 4px; top: 50%;
  transform: translateY(-50%); font-size: 14px; transition: var(--transition);
}
body.light-theme .theme-toggle::after { content: '☀️'; left: auto; right: 4px; }
body.light-theme .theme-toggle { background: rgba(139,34,82,0.1); border-color: var(--primary-light); }

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  position: relative;
}
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  color: white; text-align: center; padding: 8px 16px;
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  position: relative; z-index: 100;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 999;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,34,82,0.3);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; transition: var(--transition);
}
.navbar.scrolled { background: rgba(13,13,13,0.99); box-shadow: 0 2px 20px rgba(0,0,0,0.8); }
.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 700; color: var(--gold);
  letter-spacing: 1.5px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}
.navbar-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.navbar-brand span { color: var(--primary-light); }
.navbar-nav {
  display: flex; list-style: none; gap: 4px; align-items: center; flex-shrink: 1;
}
.navbar-nav a {
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 6px 10px; border-radius: 4px; transition: var(--transition);
  position: relative; white-space: nowrap;
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--text-white); }
.navbar-nav a::after {
  content: ''; position: absolute; bottom: 2px; left: 10px; right: 10px;
  height: 2px; background: var(--primary); transform: scaleX(0); transition: transform 0.3s ease;
}
.navbar-nav a:hover::after, .navbar-nav a.active::after { transform: scaleX(1); }

/* Dropdown */
.nav-item { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 200px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: var(--transition); box-shadow: var(--shadow); z-index: 1000;
}
.nav-item:not(.has-mega):hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 13px;
  color: var(--text-muted); text-transform: none;
}
.dropdown-menu a:hover { color: var(--text-white); background: rgba(139,34,82,0.2); padding-left: 28px; }
.dropdown-menu a::after { display: none; }

.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar-search {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 14px;
  display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.navbar-search:focus-within { border-color: var(--primary); }
.navbar-search input {
  background: none; border: none; outline: none;
  color: var(--text-white); font-size: 13px; width: 160px;
}
.navbar-search input::placeholder { color: var(--text-muted); }
.navbar-search svg { color: var(--text-muted); width: 16px; height: 16px; flex-shrink: 0; }
.cart-btn {
  position: relative; background: none; border: none;
  cursor: pointer; color: var(--text-white); padding: 6px;
}
.cart-badge {
  position: absolute; top: 0; right: 0; background: var(--primary); color: white;
  font-size: 10px; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-white); }

/* ===== LOADING SCREEN ===== */
.loading-overlay {
  position: fixed; inset: 0; background: var(--bg-dark);
  z-index: 99999; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease; opacity: 1;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loader { text-align: center; }
.loader-logo { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; color: var(--gold); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 24px; }
.loader-bar { width: 200px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.loader-progress { height: 100%; background: var(--primary); border-radius: 2px; animation: loadProgress 1.5s ease forwards; }
@keyframes loadProgress { from { width: 0; } to { width: 100%; } }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative; height: 88vh; min-height: 520px; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(139,34,82,0.25) 50%, rgba(0,0,0,0.55) 100%);
}
.hero-slide-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a0812 0%, #2d1020 30%, #1a0a15 60%, #0d0509 100%);
}
.hero-content {
  position: absolute; bottom: 18%; left: 8%;
  z-index: 2; max-width: 600px;
}
.hero-tag {
  display: inline-block; background: var(--primary); color: white;
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 2px; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 72px); font-weight: 700; line-height: 1.1;
  color: var(--text-white); margin-bottom: 16px;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.5);
}
.hero-title span { color: var(--gold); }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: white; border: none;
  padding: 14px 28px; border-radius: 4px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 12px 28px; border-radius: 4px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #000;
  border: none; padding: 14px 28px; border-radius: 4px; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.hero-indicators {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: var(--primary); transform: scale(1.3); }
.hero-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 16px; z-index: 3; pointer-events: none; }
.hero-arrow {
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: white;
  width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all; transition: var(--transition);
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }

/* ===== SECTION STYLES ===== */
.section { padding: 60px 40px; overflow-x: clip; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--primary-light); margin-bottom: 6px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px); font-weight: 700;
  color: var(--text-white); line-height: 1.1;
}
.section-title span { color: var(--gold); }
.section-link {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap; padding: 9px 20px; flex-shrink: 0;
  border: 1.5px solid var(--primary); border-radius: 20px; color: var(--primary-light);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 5px;
}
.section-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== AUTO-SCROLL PRODUCT ROW ===== */
.products-row-wrapper { position: relative; overflow: hidden; }
.products-row {
  display: flex; gap: 14px; flex-wrap: nowrap;
  overflow: visible; scrollbar-width: none; padding-bottom: 4px;
  transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform;
  align-items: stretch;
}
.products-row::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute; top: 50%; transform: translateY(-60%);
  background: rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.2);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; z-index: 10; display: flex; align-items: center;
  justify-content: center; transition: var(--transition); font-size: 18px;
}
.row-arrow:hover { background: var(--primary); border-color: var(--primary); }
.row-arrow-left { left: -22px; }
.row-arrow-right { right: -22px; }

/* ===== PRODUCT CARD ===== */
.product-card {
  flex: 0 0 var(--card-width);
  height: 100%;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: visible; /* never clip info below image */
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  /* Consistent height — no stretching in grid */
  align-self: start;
}
.product-card:hover { transform: scale(1.03); z-index: 5; box-shadow: var(--shadow-hover); border-color: var(--primary); }
.product-card-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden; /* clip only image area, not the info below */
  background: var(--bg-card2);
  flex-shrink: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-card-img .no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-card2), #2a1520); font-size: 40px;
}

/* ATC bottom bar — slides up on hover, always visible on mobile */
.product-atc-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; z-index: 3;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-atc-bar { transform: translateY(0); }
@media (max-width: 900px) { .product-atc-bar { transform: translateY(0); } }

.product-atc-btn {
  flex: 1; padding: 10px 8px; border: none;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.product-atc-btn:hover { background: var(--primary-dark); }
.product-view-btn {
  padding: 10px 12px; border: none;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 18px; cursor: pointer; transition: background 0.2s;
  border-left: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.product-view-btn:hover { background: var(--primary-dark); }

.product-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.product-card:hover .product-overlay { opacity: 1; }

.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 4; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.badge-new { background: var(--primary); color: white; }
.badge-sale { background: var(--gold); color: #000; }
.badge-hot { background: var(--primary-dark); color: white; }

.wishlist-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3); color: white;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: var(--transition); font-size: 16px; z-index: 4;
}
.wishlist-btn:hover { background: rgba(229,57,53,0.85); border-color: transparent; }
.wishlist-btn.active { background: rgba(229,57,53,0.9); border-color: transparent; color: #fff; }

/* Card info — below image, always visible */
.product-card-info {
  padding: 10px 12px 12px;
  background: var(--bg-card);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat { font-size: 10px; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-card-name {
  font-size: 13px; font-weight: 500; color: var(--text-white);
  margin-bottom: 6px; line-height: 1.35; min-height: 2.7em; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.product-card-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-current { font-size: 14px; font-weight: 700; color: var(--gold); }
.price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.price-discount { font-size: 10px; color: #4caf50; font-weight: 600; }
.product-colors { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.color-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: var(--transition); }
.color-dot:hover, .color-dot.active { border-color: white; transform: scale(1.2); }

/* ===== CATEGORIES GRID (old, kept for reference) ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; cursor: pointer; transition: var(--transition);
  background: var(--bg-card2); border: 1px solid var(--border);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover img { transform: scale(1.1); }
.category-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-card2), #2a1520); font-size: 40px;
  transition: transform 0.5s ease;
}
.category-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%); display: flex; align-items: flex-end; padding: 16px; }
.category-name { font-size: 14px; font-weight: 700; color: white; letter-spacing: 1px; }

/* ===== FEATURED BANNER ===== */
.featured-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2a0d1f 50%, var(--primary-dark) 100%);
  margin: 0 40px 60px; border-radius: 16px; padding: 60px 80px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden; min-height: 240px;
}
.featured-banner-pattern { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); }
.featured-banner-content { position: relative; z-index: 1; max-width: 500px; }
.featured-banner-tag { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.featured-banner-title { font-size: clamp(28px, 4vw, 50px); font-weight: 700; color: var(--text-white); line-height: 1.2; margin-bottom: 16px; }
.featured-banner-subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }

/* ===== PRODUCTS GRID (shop page) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-width, 210px), 1fr));
  gap: 16px;
  align-items: start; /* each card only as tall as its own content */
}
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* always 2-col on mobile */
    gap: 10px;
    align-items: start;
  }
  .shop-layout { padding: 12px; gap: 12px; }
}

/* ===== CART SIDEBAR ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 8000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; right: -420px; top: 0; width: 420px; height: 100vh;
  background: var(--bg-card); z-index: 8001; display: flex; flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1); box-shadow: -8px 0 40px rgba(0,0,0,0.6);
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 20px; font-weight: 700; }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; line-height: 1; transition: color 0.2s; }
.close-btn:hover { color: var(--text-white); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 72px; height: 90px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--gold); }
.cart-item-remove { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; align-self: flex-start; transition: color 0.2s; }
.cart-item-remove:hover { color: #e53935; }
.cart-footer {
  padding: 16px 20px 20px; border-top: 1px solid var(--border);
  flex-shrink: 0; /* never shrink — always visible */
}
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.cart-total span:last-child { color: var(--gold); }
.cart-checkout-btn { display: block; width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 6px; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: var(--transition); text-align: center; }
.cart-checkout-btn:hover { background: var(--primary-dark); }
@media (max-width: 768px) {
  .cart-sidebar { width: 100% !important; right: -100%; }
  .cart-sidebar.open { right: 0; }
  /* Chatbot is hidden when cart opens (via JS), so no extra padding needed */
  .cart-footer { padding-bottom: 24px; }
  .cart-checkout-btn { font-size: 16px; padding: 18px; }
}

/* ===== CHATBOT ===== */
#chatbotTrigger, #chatbotWindow { isolation: isolate; position: fixed !important; }
.chatbot-trigger {
  position: fixed !important; bottom: 96px; right: 30px;
  width: 58px; height: 58px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 99990 !important;
  box-shadow: 0 4px 20px rgba(139,34,82,0.5); transition: var(--transition); border: none;
}
.chatbot-trigger:hover { transform: scale(1.1); background: var(--primary-dark); }
.chatbot-trigger svg { width: 26px; height: 26px; color: white; }
.chatbot-window {
  position: fixed !important; bottom: 105px; right: 30px;
  width: 380px; height: 520px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 16px;
  z-index: 99989 !important; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transform: scale(0) translateY(20px);
  transform-origin: bottom right; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.chatbot-window.open { transform: scale(1) translateY(0); }
.chatbot-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.chatbot-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chatbot-title { flex: 1; }
.chatbot-title h4 { font-size: 14px; font-weight: 700; color: white; }
.chatbot-title p { font-size: 11px; color: rgba(255,255,255,0.7); }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.chat-msg { max-width: 82%; display: flex; flex-direction: column; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.bot { align-self: flex-start; }
.chat-bubble { padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.chat-msg.user .chat-bubble { background: var(--primary); color: white; border-radius: 12px 12px 2px 12px; }
.chat-msg.bot .chat-bubble { background: var(--bg-card2); color: var(--text-white); border: 1px solid var(--border); border-radius: 12px 12px 12px 2px; }
.chat-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.chat-msg.user .chat-time { text-align: right; }
.chatbot-input { display: flex; gap: 0; border-top: 1px solid var(--border); }
.chatbot-input input { flex: 1; background: var(--bg-card2); border: none; outline: none; padding: 12px 16px; color: var(--text-white); font-size: 13px; }
.chatbot-send { background: var(--primary); border: none; color: white; padding: 12px 16px; cursor: pointer; transition: background 0.2s; }
.chatbot-send:hover { background: var(--primary-dark); }
.chat-typing { display: flex; gap: 4px; padding: 4px 0; }
.typing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); animation: typing 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-6px); opacity: 1; } }

/* ===== SHOP PAGE FILTER ===== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px; }
.filter-sidebar { position: sticky; top: 88px; height: fit-content; }
.filter-section { margin-bottom: 28px; }
.filter-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.filter-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.filter-option input { accent-color: var(--primary); }
.filter-option label { font-size: 13px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.filter-option:hover label { color: var(--text-white); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; left: 30px; z-index: 100;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-white); width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); transition: var(--transition); pointer-events: none;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--primary); border-color: var(--primary); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 60px; margin-bottom: 20px; }
.empty-state h3 { font-size: 22px; margin-bottom: 10px; color: var(--text-white); }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 18px; font-size: 13px; color: var(--text-white); box-shadow: var(--shadow); transform: translateX(120%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); min-width: 220px; max-width: 320px; }
.toast.show { transform: translateX(0); }
.toast.success { border-color: #4caf50; }
.toast.error { border-color: #e53935; }
.toast-icon { font-size: 16px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer { background: #080808; border-top: 1px solid var(--border); padding: 60px 40px 0; margin-top: 80px; display: block !important; visibility: visible !important; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { max-width: 300px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-muted); transition: var(--transition); text-decoration: none; }
.social-link:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-white); margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }
.afi-badge { color: var(--text-muted); font-size: 12px; }
.afi-badge span { color: var(--primary-light); font-weight: 600; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed; inset: 0; background: var(--bg-dark); z-index: 99999;
  transform: translateX(-100%); transition: transform 0.4s ease;
  display: flex; flex-direction: column; padding: 24px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: var(--gold); }
.mobile-nav-links { list-style: none; }
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links a { display: block; padding: 14px 0; font-size: 17px; color: var(--text-white); font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.mobile-nav-links a:hover { color: var(--gold); padding-left: 8px; }

/* ===== ADMIN STYLES ===== */
.admin-body { background: var(--adm-bg, #111); color: var(--adm-text, #f0f0f0); }
.admin-sidebar { position: fixed; left: 0; top: 0; width: 220px; height: 100vh; background: var(--adm-sidebar, #1a1a1a); border-right: 1px solid var(--adm-border, rgba(255,255,255,0.09)); overflow-y: auto; z-index: 100; display: flex; flex-direction: column; }
.admin-logo { padding: 24px 20px 16px; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: var(--primary-light); line-height: 1.2; }
.admin-logo span { display: block; font-size: 11px; color: var(--text-muted); font-family: 'Poppins', sans-serif; font-weight: 400; margin-top: 2px; }
.admin-nav { list-style: none; padding: 8px 12px; flex: 1; }
.admin-nav li { margin-bottom: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 13px; color: var(--text-muted); transition: var(--transition); text-decoration: none; }
.admin-nav a:hover { background: rgba(139,34,82,0.15); color: var(--text-white); }
.admin-nav a.active { background: rgba(139,34,82,0.25); color: var(--primary-light); }
.admin-nav svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-main { margin-left: 220px; min-height: 100vh; background: var(--adm-bg, #111); }
.admin-header { padding: 20px 32px; border-bottom: 1px solid var(--adm-border, rgba(255,255,255,0.09)); display: flex; align-items: center; justify-content: space-between; background: var(--adm-card, #1a1a1a); }
.admin-header h1 { font-size: 22px; font-weight: 700; }
.admin-content { padding: 32px; }
.admin-input { width: 100%; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--text-white); font-size: 13px; outline: none; transition: border-color 0.2s; font-family: 'Poppins', sans-serif; }
.admin-input:focus { border-color: var(--primary); }
.admin-select { width: 100%; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--text-white); font-size: 13px; outline: none; cursor: pointer; }
.admin-textarea { width: 100%; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--text-white); font-size: 13px; outline: none; resize: vertical; font-family: 'Poppins', sans-serif; }
.admin-form-group { margin-bottom: 16px; }
.admin-form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: rgba(255,255,255,0.04); padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.btn-sm { padding: 5px 12px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; display: inline-block; transition: var(--transition); }
.btn-edit { background: rgba(33,150,243,0.2); color: #64b5f6; }
.btn-edit:hover { background: rgba(33,150,243,0.35); }
.btn-delete { background: rgba(229,57,53,0.2); color: #ef9a9a; }
.btn-delete:hover { background: rgba(229,57,53,0.35); }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.status-delivered, .status-confirmed { background: rgba(76,175,80,0.15); color: #81c784; }
.status-pending { background: rgba(255,193,7,0.15); color: #ffd54f; }
.status-cancelled { background: rgba(229,57,53,0.15); color: #ef9a9a; }
.admin-mob-toggle { display: none; position: fixed; top: 16px; left: 16px; z-index: 200; background: var(--primary); border: none; color: white; width: 40px; height: 40px; border-radius: 8px; font-size: 18px; cursor: pointer; }
.admin-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1100px) {
  .product-detail { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .navbar-nav { gap: 2px; }
  .navbar-nav a { font-size: 11px; padding: 5px 7px; }
  .navbar-search input { width: 120px; }
  .featured-banner { padding: 40px; margin: 0 20px 40px; }
}
@media (max-width: 768px) {
  :root { --card-width: 156px; }
  .navbar {
    padding: 0 12px;
    height: 60px;
    min-height: 60px;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    overflow: visible;
  }
  .navbar-brand {
    font-size: 16px;
    gap: 6px;
    min-width: 0;
    flex: 0 1 auto;
  }
  .navbar-logo-img { width: 34px; height: 34px; }
  .navbar-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar-brand-text { display: none; }
  .navbar-search { display: none; }
  .navbar-actions {
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .cart-btn, .theme-toggle, .mobile-menu-btn {
    flex: 0 0 auto;
  }
  .section { padding: 32px 14px; overflow-x: clip; }
  .featured-banner { margin: 0 14px 32px; height: auto; padding: 28px 24px; }
  .featured-banner-content { padding: 0; }
  .hero-content { left: 5%; right: 5%; bottom: 12%; }
  .hero-title { font-size: clamp(26px, 7vw, 44px); }
  .products-row .product-card {
    flex: 0 0 clamp(150px, 42vw, 175px) !important;
    width: clamp(150px, 42vw, 175px) !important;
  }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer { padding: 40px 16px 0; margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cart-sidebar { width: 100%; right: -100%; }
  .chatbot-window { width: calc(100vw - 16px) !important; right: 8px !important; bottom: 84px !important; height: auto !important; max-height: calc(100svh - 110px) !important; z-index: 99989 !important; }
  .chatbot-trigger { bottom: 20px !important; right: 16px !important; width: 52px !important; height: 52px !important; z-index: 99990 !important; display: flex !important; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .row-arrow { display: none; }
  .section-header { flex-direction: row; align-items: center; }
  .navbar-actions { gap: 8px; }
  .theme-toggle { display: none; }
  .admin-mob-toggle { display: flex; }
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .admin-sidebar.mob-open { transform: translateX(0); }
  .admin-sidebar-overlay.open { display: block; }
  .admin-main { margin-left: 0; padding-top: 60px; }
}
@media (max-width: 480px) {
  :root { --card-width: 148px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-row .product-card {
    flex: 0 0 clamp(140px, 44vw, 160px) !important;
    width: clamp(140px, 44vw, 160px) !important;
  }
  .hero-title { font-size: clamp(22px, 7vw, 32px); }
  .featured-banner-content h2 { font-size: 22px; }
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; padding: 40px; align-items: start;
}
/* Left column: gallery + sidebar products */
.product-gallery { position: static; /* no sticky — prevents content scrolling behind image */ }
.gallery-main {
  aspect-ratio: 3/4; border-radius: 12px; overflow: hidden;
  background: var(--bg-card); margin-bottom: 10px;
  position: relative; cursor: zoom-in;
  max-height: 70vh;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background 0.2s;
}
.gallery-nav:hover { background: var(--primary); }
.gallery-nav-prev { left: 10px; }
.gallery-nav-next { right: 10px; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { width: 60px; height: 78px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.6; flex-shrink: 0; transition: all 0.2s; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Sidebar "You May Also Like" products */
.product-sidebar-products { margin-top: 24px; }
.sidebar-product-card {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border); text-decoration: none; transition: all 0.2s;
}
.sidebar-product-card:hover { opacity: 0.8; }
.sidebar-product-card img { width: 56px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sidebar-product-info { flex: 1; min-width: 0; }
.sidebar-product-cat { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.sidebar-product-name { font-size: 12px; font-weight: 600; color: var(--text-white); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-product-price { font-size: 13px; font-weight: 700; color: var(--gold); }
.sidebar-product-old { font-size: 11px; color: var(--text-muted); text-decoration: line-through; margin-left: 4px; }

/* Right column: product info */
.product-info { padding-top: 0; }
.product-info-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-light); font-weight: 600; margin-bottom: 10px; }
.product-info-name { font-size: clamp(22px, 3vw, 34px); font-weight: 700; color: var(--text-white); margin-bottom: 14px; line-height: 1.2; }
.product-info-price { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.product-info-price .current { font-size: 26px; font-weight: 700; color: var(--gold); }
.product-info-price .old { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.product-info-price .discount { background: rgba(76,175,80,0.15); color: #81c784; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.product-divider { height: 1px; background: var(--border); margin: 16px 0; }
.option-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; }
.option-label span { color: var(--text-white); }
.color-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.color-option { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; transition: all 0.2s; }
.color-option.active .color-swatch, .color-option:hover .color-swatch { border-color: var(--primary); transform: scale(1.15); }
.color-option-name { font-size: 9px; color: var(--text-muted); }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { min-width: 48px; padding: 8px 14px; border: 1.5px solid var(--border); background: transparent; color: var(--text-white); border-radius: 4px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.size-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.size-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.size-btn.out-of-stock { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.qty-selector { display: flex; align-items: center; width: fit-content; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.qty-btn { width: 40px; height: 40px; background: var(--bg-card2); border: none; color: var(--text-white); font-size: 20px; cursor: pointer; transition: all 0.2s; }
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input { width: 56px; height: 40px; background: transparent; border: none; color: var(--text-white); text-align: center; font-size: 15px; -moz-appearance: textfield; outline: none; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add-to-cart-btn { width: 100%; padding: 16px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.add-to-cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.wa-order-btn { width: 100%; padding: 14px; background: #25D366; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.wa-order-btn:hover { background: #1da851; }

/* Product detail mobile */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 20px 14px; }
  .product-gallery { position: static; }
  .gallery-main { max-height: 55vw; aspect-ratio: unset; height: 55vw; max-height: 380px; }
  .product-sidebar-products { display: none; } /* hide on mobile */
}

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; padding: 40px; }
.checkout-form-group { margin-bottom: 16px; }
.checkout-form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.checkout-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; color: var(--text-white); font-size: 14px; outline: none; transition: border-color 0.2s; }
.checkout-input:focus { border-color: var(--primary); }
.order-summary { background: var(--bg-card); border-radius: 12px; padding: 24px; position: sticky; top: 88px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
