:root {
  /* Colors */
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-h: #1d4ed8;
  --brand2: #0ea5e9;
  --whatsapp: #22c55e;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --light-bg: #f1f5f9;
  --border: #e2e8f0;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* === GLOBAL === */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll from side drawer */
}
a, button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.1;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin: 0.5em 0 1em; }
h3 { font-size: 1.5rem; }

a { color: var(--brand); text-decoration: none; transition: color 0.15s ease-in-out; }
a:hover { color: var(--brand-h); }
p { margin: 0 0 1em; }

.container { 
  width: 100%;
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 0 20px; 
}

/* === HEADER (Luxe Aesthetic) === */
.site-header { 
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  width: 100%;
}
.header-wrap { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  width: 100%;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
  width: 200px; /* Fixed width for balance */
}
.logo-img {
  height: 48px;
  width: auto;
  border-radius: 0; /* Square for luxury */
}
.brand-text {
  font-size: 24px;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* Navigation - Centered */
.primary-nav { 
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 40px; 
  flex: 1;
}
.primary-nav a { 
  color: #000; 
  font-weight: 600; 
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: opacity 0.2s;
}
.primary-nav a:hover { opacity: 0.6; color: #000; }

/* Header Right - Icons */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 200px; /* Balance left side */
  justify-content: flex-end;
}
.icon-btn {
  color: #000;
  transition: transform 0.2s;
  position: relative;
}
.icon-btn:hover { transform: scale(1.1); }
.active-dot-desk {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  border: 1px solid #fff;
}

/* Mobile Topbar & Actions */
.announcement-bar {
  background: #000; /* Aesthetic Black */
  color: white;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1002;
  width: 100%;
}
.marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
}
.marquee span {
  display: inline-block;
  padding-right: 40px;
}
@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

.mobile-topbar {
  display: none;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.mobile-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.mobile-left, .mobile-actions {
  width: 60px; /* Balance */
  display: flex;
  align-items: center;
}
.mobile-actions { justify-content: flex-end; gap: 16px; }

.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.mobile-brand img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 0;
}
.action-btn {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #000;
  padding: 0;
  border: none;
  cursor: pointer;
}
.active-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background: red;
  border-radius: 50%;
}

/* Mobile Bottom Navigation (App Dock) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0b1220; /* Dark Theme */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 9999;
  justify-content: space-around; /* Better spacing */
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b; /* Muted Blue-Grey */
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  position: relative;
  /* Remove flex: 1 to prevent stretching clickable area too wide */
  width: 60px; 
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:active { transform: scale(0.95); }

.nav-item.active { 
  color: #fff; 
}
.nav-item.active svg {
  stroke: currentColor;
  filter: drop-shadow(0 0 5px currentColor); /* Glow with the icon's color */
  transform: translateY(-2px) scale(1.1);
}
/* Indicator Line for active state */
.nav-item.active::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(255,255,255,0.5);
}

/* Icon box for better touch target */
.nav-item svg { 
  width: 26px; 
  height: 26px; 
  stroke-width: 1.5px; 
  margin-bottom: 4px; 
  transition: all 0.3s ease;
}

/* Floating Cart Button Style (Optional - center item) */
/* If the 3rd item is Cart, we can style it differently if requested, 
   but for now we keep it uniform "Luxe". 
*/

.icon-rel { position: relative; display: flex; align-items: center; justify-content: center; }
.nav-item .dot {
  position: absolute;
  top: 0;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444; /* Red dot for notifications */
  border: 1px solid #0b1220;
  border-radius: 50%;
}

.nav-item.active svg {
  stroke: var(--brand);
  fill: rgba(37, 99, 235, 0.1); /* Subtle fill on active */
}

/* Notification Dot */
.icon-rel { position: relative; display: flex; align-items: center; justify-content: center; }
.nav-item .dot {
  position: absolute;
  top: 0;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border: 1px solid #fff;
  border-radius: 50%;
}

/* Full Width Hero */
.hero-full {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 24px;
  clear: both;
  display: block;
  border-radius: var(--radius-md); /* Rounded corners to match boxed look */
}
.hero-full img {
  width: 100%;
  height: auto;
  display: block;
  /* min-height removed to allow aspect-ratio to dictate height */
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 20px;
}
.hero-overlay h1 {
  color: white;
  font-size: 32px;
  margin: 0 0 12px;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-overlay .btn {
  background: white !important;
  color: black !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 12px 32px !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-overlay .btn:hover {
  background: #f0f0f0 !important;
}

@media (min-width: 768px) {
  /* .hero-full img { height: 500px; } REMOVED for Aspect Ratio scaling */
  .hero-overlay h1 { font-size: 48px; }
}

/* Category Grid Improvements */
/* Hero Typography & Overlay */
.hero-content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
  padding: 24px;
}

.hero-text-wrap {
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive Font Size */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Deep shadow for legibility */
}

.hero-subtitle {
  color: #f1f5f9;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
  margin: 0 0 32px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0.95;
}

.btn-hero {
  display: inline-block;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 9999px; /* Pill shape */
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3); /* Pop-out shadow */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid white;
}

.btn-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  background: #f8fafc;
}

.btn-hero:active {
  transform: scale(0.98);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .hero-content-overlay { justify-content: flex-end; padding-bottom: 40px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
  .hero-title { text-align: left; width: 100%; margin-bottom: 8px;}
  .hero-subtitle { text-align: left; width: 100%; margin-bottom: 20px; }
  .hero-text-wrap { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
  .btn-hero { width: 100%; text-align: center; }
}

/* Category Banner Refinement */
.category-banner .cat-content { 
  text-align: center; 
  align-items: center; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end; 
  /* Improve Text Readability */
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.category-banner h3 { color: white; margin: 0; font-size: 1.8rem; }
.category-banner p { color: #e2e8f0; margin: 4px 0 12px; font-weight: 500; }
.category-banner .btn-text {
    background: rgba(255,255,255,0.2); 
    color: white; 
    padding: 6px 16px; 
    border-radius: 20px; 
    backdrop-filter: blur(4px); 
    font-size: 13px; 
    font-weight: 600;
}
.category-banner:hover { transform: none; box-shadow: none; opacity: 0.95; }
.btn-text { font-size: 12px; letter-spacing: 0.1em; border-width: 1px; }


.icon-rel { position: relative; }
.icon-rel .dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  border: 1px solid white;
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  bottom: 0;
  width: 300px;
  background: #0b1220; /* Dark Luxe Theme */
  z-index: 2001;
  box-shadow: -4px 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.mobile-drawer.active { transform: translateX(-300px); }

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}
.drawer-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.close-btn { 
  background: none; border: none; 
  cursor: pointer; color: rgba(255,255,255,0.6); 
  padding: 8px; border-radius: 50%;
  transition: 0.2s;
  display: flex;
}
.close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); }

.drawer-content { padding: 24px; flex: 1; overflow-y: auto; }

/* Enhanced Search */
.search-wrap {
  position: relative;
  margin-bottom: 24px;
}
.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aebecd;
  pointer-events: none;
}
.drawer-search input { 
  width: 100%; 
  padding: 12px 12px 12px 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}
.drawer-search input:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.drawer-nav { display: flex; flex-direction: column; gap: 8px; }
.hero-gradient-fallback {
  width: 100%;
  min-height: 550px;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
    .hero-gradient-fallback { min-height: 350px; }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px; 
  border-radius: 12px;
  color: #dbe3ff;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.drawer-nav a:hover, .drawer-nav a:active { 
    background: rgba(255,255,255,0.05); 
    color: #fff;
    transform: translateX(4px);
}

/* Colorful Icon Boxes */
.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: 0.3s;
}
.drawer-nav a:hover .icon-box { transform: scale(1.1); }

/* Individual Colors for "Colorful" Request */
.color-1 { background: linear-gradient(135deg, #FF9966 0%, #FF5E62 100%); box-shadow: 0 4px 10px rgba(255, 94, 98, 0.3); } /* Home / Orange-Red */
.color-2 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); box-shadow: 0 4px 10px rgba(161, 140, 209, 0.3); } /* Shop / Purple-Pink */
.color-3 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); box-shadow: 0 4px 10px rgba(132, 250, 176, 0.3); color: #004d40; } /* Cart / Green-Blue (Dark Icon) */
.color-4 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3); } /* Contact / Blue-Cyan */
.color-5 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); box-shadow: 0 4px 10px rgba(67, 233, 123, 0.3); color: #004d40; } /* Account / Green */
.color-6 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); box-shadow: 0 4px 10px rgba(250, 112, 154, 0.3); } /* Logout / Red-Yellow */

.drawer-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 12px 14px; }
.drawer-nav .highlight { 
  background: white; 
  color: black; 
  margin-top: 12px; 
  justify-content: flex-start; 
}
.drawer-nav .highlight .icon-box { background: #000; color: #fff; }
.drawer-nav .highlight:hover { background: #f0f0f0; color: #000; }

.drawer-footer { margin-top: auto; padding-top: 20px; text-align: center; color: rgba(255,255,255,0.4); font-size: 13px; }


/* === MAIN LAYOUT === */
main.container { 
  padding-top: 30px; 
  padding-bottom: 60px; 
  /* min-height removed, handled by flex body */
  flex: 1;
  width: 100%;
}

@media (max-width: 800px) {
  .site-header.desktop-header { display: none !important; }
  .mobile-topbar { display: block; }
  .mobile-bottom-nav { display: flex; }
  main.container { padding-top: 10px; padding-bottom: 100px; }
}

/* === CATEGORY BANNERS === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  width: 100%;
}
/* Refined Category Banner */
.category-banner {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; 
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

/* Hero Image Responsive Class */
.hero-main-img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9; /* Standard widescreen ratio (Matches Categories) */
  min-height: auto;
}

@media (max-width: 1366px) {
  .hero-main-img { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .hero-main-img {
    aspect-ratio: 3/2; /* Mobile standard */
  }
}
@media (max-width: 480px) {
  .hero-main-img {
    aspect-ratio: 3/2; 
    object-position: center;
  }
}

/* Use same responsive logic for Promo Image */
.promo-main-img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9; /* Match Hero/Categories */
}
@media (max-width: 768px) {
  .promo-main-img {
    aspect-ratio: 3/2;
  }
}

/* Container just needs to hold the image */
.promo-banner-container {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  overflow: hidden;
  display: block; /* Important for image wrapping */
}

/* Mobile Brand Fixes */
.mobile-brand img {
  height: 40px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--brand); /* Brand border for premium feel */
}
.mobile-brand span {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000;
}
.category-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-banner.no-img {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.cat-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 24px;
  width: 100%;
  z-index: 2;
  color: white;
  text-align: left;
}
.cat-content h3 {
  color: white;
  font-size: 24px;
  margin: 0 0 6px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.cat-content p {
  color: rgba(255,255,255,0.9);
  margin: 0 0 16px;
  font-size: 15px;
  max-width: 90%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.cat-emoji-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  opacity: 0.15;
  filter: grayscale(1);
  pointer-events: none;
}
.btn-text {
  display: inline-block;
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
  transition: all 0.2s;
}
.category-banner:hover .btn-text {
  border-bottom-color: var(--brand2);
  color: var(--brand2);
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .category-banner {
    height: 240px;
  }
  .cat-content h3 { font-size: 20px; }
}

/* === FOOTER === */
.site-footer {
  background: #0b1220;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 60px;
  color: #aebecd;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 60px 0;
}
/* Mobile Footer Fixes */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
    text-align: center; /* Center align for app-like layout */
    gap: 32px;
  }
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center aligns flex items */
  }
  .footer-col p { max-width: 100%; } /* Text full width */
  .socials { justify-content: center; }
  .contact-row { justify-content: center; text-align: left; } /* Keep icon/text left-aligned relative to each other but centered as a block? No, centering flex is tricky. */
  .contact-row {
    flex-direction: column; /* Stack Icon top of text on mobile? or keep row? */
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  .footer-logo { margin: 0 auto 16px; }
}

.footer-logo {
  height: 48px;
  width: auto;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: #fff;
  font-weight: 700;
}
.footer-col p { 
  margin: 0 0 12px; 
  line-height: 1.6;
  max-width: 300px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { 
  color: #aebecd; 
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col ul a:hover { color: #fff; }
.footer-col a { color: #aebecd; text-decoration: none; transition: 0.2s; }
.footer-col a:hover { color: #fff; }

/* Contact Rows */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.contact-row .icon-svg {
  color: #fff;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Social Icons */
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a { 
  display: flex; 
  align-items: center; 
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px; /* Square with slight radius for 'Lux' feel */
  background: rgba(255,255,255,0.05);
  color: #fff;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}
.socials a:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}
.socials .social-icon {
  width: 20px; 
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: #aebecd;
  background: #0b1220;
}
.footer-bottom p { margin: 0; }
.footer-bottom b { color: #fff; }

/* === CARDS & ELEMENTS === */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card:hover { 
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.3);
}
.card .img-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.card:hover .img-frame img { transform: scale(1.05); }

/* === BUTTONS === */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important; /* Duxe Sharp Style */
  padding: 12px 24px !important;
  background: white !important;
  color: var(--text) !important;
  cursor: pointer !important;
  font-weight: 700 !important; /* Bolder */
  transition: all 0.2s ease !important;
  font-size: 14px !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
  box-shadow: none !important; /* Flat luxury look */
  text-transform: uppercase; /* Luxury standard */
  letter-spacing: 0.05em;
}
button.btn { width: auto !important; }

.btn:hover {
  border-color: #000 !important;
  color: #fff !important;
  background: #000 !important; /* Black hover for everything */
  transform: translateY(-1px) !important;
}
.btn:active { transform: translateY(0) !important; }

.btn-primary {
  background: #000 !important; /* Luxe Black */
  border: 1px solid #000 !important;
  color: white !important;
  box-shadow: none !important;
}
.btn-primary:hover {
  background: #333 !important;
  border-color: #333 !important;
  color: white !important;
}

/* === GLobal Hero Button Override === */
.btn-hero {
  border-radius: 4px !important; 
  padding: 16px 40px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}
.hero-copy h1 { 
  margin: 0 0 16px; 
  font-size: 48px; 
  color: white;
  font-weight: 900;
}
.hero-copy p { 
  color: rgba(255, 255, 255, 0.95); 
  margin: 0 0 24px; 
  font-size: 20px;
  font-weight: 500;
}

/* Hero carousel (mobile only) */
.hero-slider {
  display: block;
}
.hero-slide { }

@media (max-width: 900px) {
  .hero { padding: 30px 0; border-radius: 8px; }
  .hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }
  .hero-slide {
    min-width: 100%;
    scroll-snap-align: start;
    padding: 18px 16px;
    box-sizing: border-box;
  }
  .hero-copy { text-align: left; }
}

/* === TRUST STRIP === */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color:black;
}
.trust-item span {
  font-size: 40px;
  display: block;
  animation: bounce 2s infinite;
}
.trust-item b {
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
}
.trust-item small {
  font-size: 13px;
  color: var(--muted);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* === URGENCY BANNER === */
.urgency-banner {
  background: linear-gradient(90deg, #1d4ed8 0%, #0ea5e9 50%, #1d4ed8 100%);
  color: white;
  padding: 16px 0;
  text-align: center;
  font-weight: 700;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  animation: pulse-banner 2s infinite;
}

@keyframes pulse-banner {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.05); }
}

/* === BESTSELLER CARDS === */
.bestseller-card {
  position: relative;
  border: 2px solid var(--border);
}
.bestseller-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.badge-hot, .badge-discount {
  position: absolute;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  z-index: 10;
}
.badge-hot {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  animation: wobble 1s infinite;
}
.badge-discount {
  top: 12px;
  right: 12px;
  background: #16a34a;
  color: white;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-5deg) scale(1.1); }
}

/* === SOCIAL PROOF === */
.review-badge {
  display: inline-block;
  background: var(--light-bg);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--brand);
}

/* === FEATURED SLIDER === */
.featured { margin: 40px 0; }
.featured .section-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin: 0 0 24px;
}
.featured h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.slider { 
  display: grid; 
  grid-auto-flow: column; 
  grid-auto-columns: calc(25% - 12px); 
  gap: 16px; 
  overflow-x: auto; 
  scroll-snap-type: x mandatory; 
  padding-bottom: 24px; /* More padding for scrollbar/touch */
  scroll-behavior: smooth;
  -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
  scrollbar-width: none;  /* Hide scrollbar Firefox */
}
.slider::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari/Opera */

@media (max-width: 1024px) {
    .slider { grid-auto-columns: calc(33.333% - 12px); }
}
@media (max-width: 768px) {
    .slider { grid-auto-columns: calc(50% - 12px); }
}
@media (max-width: 768px) {
  .category-banner {
      aspect-ratio: 16/9; /* Keep cinematic on tablet */
  }
}
@media (max-width: 480px) {
    .category-banner {
        aspect-ratio: 3/2; /* Taller on phone */
    }
}
.slide { scroll-snap-align: start; min-width: 240px; }
.slide-body { padding-top: 16px; }
.slide-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}
.slide-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.slide-body .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-top: 8px;
}
.dots { display: flex; gap: 6px; }
.dots button { 
  width: 10px; 
  height: 10px; 
  border-radius: 999px; 
  border: 0; 
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dots button:hover { background: var(--brand); }
.dots button.active { 
  background: var(--brand);
  width: 30px;
}

/* === PRODUCTS GRID (Duxe Style) === */
.grid.products { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); /* Default desktop 4 columns */
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 1200px) {
  .grid.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid.products { grid-template-columns: repeat(2, 1fr); }
}
/* Reusing mobile override (max-width: 600) existing logic usually handles 2 cols */

.card.product {
  background: white;
  border: 1px solid transparent; /* Cleaner look */
  border-radius: 8px !important; /* Less rounded, more modern */
  padding: 0 !important; /* Let image touch edges */
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}
.card.product:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.card.product .img-frame {
  width: 100%;
  aspect-ratio: 1/1; /* Square images */
  background: #f8f8f8;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0; /* Top corners only */
}
.card.product .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card.product:hover .img-frame img {
  transform: scale(1.05);
}

.card.product-details, .product-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card.product h3 {
  font-size: 15px;
  font-weight: 500; /* Regular weight like luxury brands */
  margin: 0;
  min-height: auto;
  color: #333;
  text-align: left; /* Align left usually looks cleaner */
}
.card.product .price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0;
  text-align: left;
}

/* Button Group Side-by-Side */
.product-btn-group {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.card.product .btn, .card.product form button {
  width: 100% !important;
  border-radius: 4px !important; /* Sharper corners */
  font-size: 13px !important;
  padding: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700 !important;
  /* Override the earlier mobile hack for these specifc buttons on cards */
  min-height: auto !important; 
}
.card.product .btn-view {
    border: 1px solid #000 !important;
    background: transparent !important;
    color: #000 !important;
}
.card.product .btn-view:hover {
    background: #000 !important;
    color: #fff !important;
}
.card.product .btn-add {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}
.card.product .btn-add:hover {
    background: #333 !important;
    border-color: #333 !important;
}

/* Override previous specific padding/margin rules */
.card.product form { margin: 0; flex: 1; }
.card.product a.btn { margin: 0 !important; flex: 1; }

/* === PRODUCT DETAIL (Luxe/Duxe Redesign) === */
.product-page {
  margin-top: 6px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.breadcrumb a {
  color: var(--muted);
  font-weight: 500;
}
.breadcrumb a:hover {
  color: var(--text);
}
.product-surface {
  background: #ffffff;
  /* Removed border and shadow for cleaner look, or minimal */
  padding: 0;
}
.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.product-gallery {
  position: relative;
  /* No border/shadow for modern look */
  overflow: hidden;
}
.gallery-main {
  position: relative;
  width: 100%;
  background: #f4f4f4; /* Light grey backdrop for lux feel */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  aspect-ratio: 1/1; /* Square for fashion/lux */
  height: auto;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill the square */
  object-position: center;
  border-radius: 0; /* Sharp corners */
}
.gallery-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%; /* Dots can remain round or become squares */
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.5);
}
.gallery-dot.active {
  background: #000;
  border-color: #000;
  transform: scale(1.2);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: #000;
  border: 1px solid rgba(0,0,0,0.05);
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Circle nav is classic lux */
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.gallery-nav:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.gallery-nav.prev { left: 24px; }
.gallery-nav.next { right: 24px; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  padding: 24px 0 0 0;
  background: white;
  border: none;
}
.gallery-thumb {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0; /* Sharp */
  overflow: hidden;
  transition: all 0.25s ease;
  height: 80px;
  opacity: 0.6;
}
.gallery-thumb.active { opacity: 1; border-color: #000; }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info - Minimalist */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
  border: none;
  padding: 0;
  box-shadow: none;
}
.product-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.meta-badge {
  background: transparent;
  padding: 0;
  border: none;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid #ccc;
}
.stock { color: #10b981; font-weight: 600; font-size: 12px; }

.product-title {
  margin: 0;
  font-size: 32px;
  font-weight: 400; /* Sleek, not too bold */
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
}
.product-rating {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rating-stars {
  color: #000; /* Black stars for modern look */
  letter-spacing: 2px;
  font-size: 14px;
}
.rating-count {
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
}
.product-price {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0;
  margin-top: 4px;
}
.product-description {
  color: #444;
  line-height: 1.8;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 15px;
}
.product-form { width: 100%; }
.color-card {
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  margin-bottom: 24px;
}
.color-title {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.color-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.color-option {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.color-input { display: none; } /* Hide radio */ 
.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 0; /* Square swatches */
  border: 1px solid #ccc;
  transition: all 0.2s ease;
}
.color-option:hover .color-swatch { border-color: #000; }
.color-input:checked + .color-swatch {
  border: 2px solid #000;
  outline: 2px solid white; 
  outline-offset: -4px;
  box-shadow: none;
}
.color-name { font-size: 12px; font-weight: 500; color: #666; }

.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.action-row {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 0; /* Sharp */
  overflow: hidden;
  background: white;
  min-width: 140px;
  height: 52px;
}
.qty-selector button {
  background: none;
  border: none;
  width: 44px;
  height: 100%;
  cursor: pointer;
  font-size: 18px;
  color: #000;
  transition: 0.2s;
}
.qty-selector button:hover { background: #f4f4f4; }
.qty-selector input {
  width: 50px;
  flex: 1; /* allow it to take available space */
  border: none;
  text-align: center;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background: white;
  color: #000; /* Ensure text is black */
  font-weight: 600;
  font-size: 16px; /* Ensure visible size */
  height: 100%;
  font-family: inherit;
  padding: 0;
  opacity: 1; /* Fix for some browsers dimming readonly inputs */
  -moz-appearance: textfield; /* Remove spinners Firefox */
  appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.add-to-cart {
  flex: 1;
  padding: 0 32px !important;
  height: 52px;
  font-size: 14px !important;
  border-radius: 0 !important; /* Sharp */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600 !important;
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
}
.add-to-cart:hover {
  background: #333 !important;
  transform: translateY(-1px);
}

.product-perks {
  border: none;
  border-top: 1px solid #eee;
  border-radius: 0;
  padding: 24px 0 0;
  margin-top: 32px;
  display: grid;
  gap: 16px;
  background: transparent;
}
.perk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  justify-content: flex-start;
}
.perk-row span:first-child { font-weight: 500; color: #000; width: 140px; }

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gallery-main { height: auto; aspect-ratio: 4/5; } /* Taller on mobile for fashion */
  .product-surface { padding: 0; }
  .product-title { font-size: 26px; }
  .product-price { font-size: 24px; }
  .action-row { flex-direction: column; align-items: stretch; }
  .qty-selector { width: 100%; justify-content: space-between; margin-bottom: 12px; }
}

/* Sticker override */
.stock { 
  display: inline-block;
  padding: 4px 8px; 
  background: #10b981; 
  color: white; 
  font-size: 10px; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
  font-weight: 700;
}

@media (min-width: 1100px) {
  .product-info {
    position: sticky;
    top: 96px;
  }
}
.card.product {
  padding: 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card.product h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 0;
  min-height: 44px;
}
.card.product .price {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 6px;
}
.card.product .btn {
  width: 100% !important;
}
.card.product form {
  margin: 0;
}
.card.product a.btn {
  background: #ffffff !important;
  border-color: var(--border) !important;
}
.card.product a.btn:hover {
  background: var(--light-bg) !important;
  border-color: var(--brand) !important;
}

/* === SEARCH BAR (page) === */
.searchbar { display: flex; gap: 12px; margin-bottom: 20px; }
.searchbar input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
}
.searchbar input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
/* Category select styling to match the search input */
.searchbar select {
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 16px;
  min-width: 220px;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.searchbar select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.searchbar select::-ms-expand { display: none; }

/* Make the searchbar stack on small screens so select/input fill width */
@media (max-width: 700px) {
  .searchbar { flex-direction: column; gap: 10px; }
  .searchbar select { min-width: 100%; width: 100%; }
  .searchbar input { width: 100%; }
  .searchbar button { width: 100%; }
}

/* Fix: make search button text visible and match input styles */
.searchbar button.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  color: white !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  min-width: 120px;
}
.searchbar button.btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9) !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

/* === TABLES === */
.table { 
  width: 100%; 
  border-collapse: collapse;
  margin: 20px 0;
}
.table th, .table td { 
  border-bottom: 1px solid var(--border); 
  padding: 14px; 
  text-align: left;
}
.table th {
  background: var(--light-bg);
  font-weight: 600;
  color: var(--text);
}
.table tbody tr {
  transition: background-color 0.2s ease;
}
.table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

/* === FORMS === */
.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.form-card h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.form-card label { 
  display: block; 
  margin: 16px 0 8px;
  font-weight: 600;
  color: var(--text);
}
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* === TOTALS === */
.total-line {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 700;
}

/* === MAIN === */
main.container { padding-top: 32px; padding-bottom: 60px; }

/* ------------------------------------------------------------------
   HEADER ADD-ONS (Topbar, Search in header, Category chips, Mobile nav)
-------------------------------------------------------------------*/

/* Topbar */
.topbar {
  /* CHANGED: Light background so black text is visible */
  background: #f8fafc; 
  border-bottom: 1px solid var(--border);
  color: var(--text) !important;
  font-size: 13px;
  padding: 12px 0 !important;
  line-height: 1.6 !important;
}
.topbar * {
  color: var(--text) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.topbar-inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 10px; 
  padding: 6px 0;
}
.topbar a { color: var(--text) !important; opacity: 1 !important; font-weight: 500; font-size: 13px !important; }
.topbar a:hover { opacity: 0.7 !important; color: var(--brand) !important; }
.topbar .dot, .topbar-left span { opacity: 1 !important; color: var(--muted) !important; font-size: 13px !important; }
.topbar-left { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px !important; }
.topbar-right { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px !important; }

/* Header search (in header bar) */
.header-search {
  display: flex; 
  gap: 8px; 
  align-items: center;
  flex: 1; 
  max-width: 400px; 
  margin: 0 20px;
}
.header-search input {
  flex: 1; 
  padding: 12px 16px; 
  border-radius: 25px;
  border: 2px solid var(--border); 
  background: white; 
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}
.header-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Primary nav override (for desktop & toggle on mobile) */
.primary-nav { 
  display: flex; 
  align-items: center; 
  gap: 20px;
}
.primary-nav a.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
}
.whatsapp-btn {
  background: var(--whatsapp);
  color: #ffffff !important;
  padding: 8px 14px !important;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s;
}
.whatsapp-btn:hover {
  opacity: 0.9;
}

/* Category strip under header */
.nav-secondary {
  background: white; 
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border);
}
.nav-secondary-inner {
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 12px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.cat-bar { display: flex; gap: 10px; flex-wrap: nowrap; }
.chip {
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  padding: 8px 16px; 
  background: white; 
  color: var(--text);
  border: 2px solid var(--border); 
  border-radius: 25px; 
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.chip:hover { 
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(37, 99, 235, 0.06);
}

/* Burger (mobile trigger) */
.burger {
  display: none; /* Default hidden on desktop */
  width:40px; 
  height:40px; 
  background: transparent;
  border: 2px solid var(--border); 
  border-radius: 8px;
  align-items:center; 
  justify-content:center; 
  gap:5px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  transition: all 0.3s ease;
}
.burger:hover {
  background: var(--light-bg);
  border-color: var(--brand);
}
.burger span { 
  display:block !important;
  width:16px !important; 
  height:2px !important; 
  background: var(--text) !important;
  transition: all 0.3s ease;
  margin: 4px 0 !important;
  border-radius: 1px !important;
}

/* === IMAGE ASPECT RATIOS (consistent across all pages) === */
/* Product gallery thumbnails */
.gallery-thumb {
  aspect-ratio: 1/1;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Color preview images in product detail */
.color-preview img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Admin product grid images */
.admin-product-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}

/* Admin color image previews */
.admin-color-img,
.admin-color-thumb {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
}

/* Cart item images */
.cart-item-img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Order images in account and admin pages */
.order-item-img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Gallery main display */
.gallery-main {
  aspect-ratio: 4/3;
  width: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* === MEDIA === */
@media (max-width: 900px) {
  .slider { grid-auto-columns: calc(50% - 12px); }
  .hero-copy h1 { font-size: 36px; }
  .hero { padding: 40px 30px; }

  /* Product Detail Page */
  .product-detail { 
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .product-gallery { margin-bottom: 20px; }
  .product-info { margin-bottom: 20px; }
  
  /* Forms and input */
  .form-card { padding: 16px; }
  .form-card label { margin: 12px 0 6px; }

  /* header responsive */
  .burger { display: flex !important; }
  .header-wrap { flex-wrap: nowrap; gap: 10px; align-items: center; }
  .header-search { display: none; }
  .brand { height: 44px; }
  .logo-img {
    height: 44px;
    max-width: 140px;
    border-width: 2px;
  }
  
  /* Show key nav items inline with icons on small screens */
  .primary-nav {
    display: flex !important;
    position: static !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    z-index: auto !important;
    box-shadow: none !important;
    gap: 6px;
    margin-left: auto;
  }
  
  /* Hide all nav items by default, show only key ones with icons */
  .primary-nav a {
    display: none;
    padding: 8px 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
  }
  
  /* Show Products, Cart, Account with icons */
  .primary-nav a:nth-child(1)::before { content: "🛍️"; display: inline-block; margin-right: 6px; }
  .primary-nav a:nth-child(1) { display: inline-flex; align-items: center; }
  
  .primary-nav a:nth-child(3) { display: inline-flex; align-items: center; }
  .primary-nav a:nth-child(3)::before { content: "🛒"; margin-right: 6px; }
  
  .primary-nav a:nth-child(4) { display: inline-flex; align-items: center; }
  .primary-nav a:nth-child(4)::before { content: "👤"; margin-right: 6px; }
  
  /* Burger opens full menu */
  .primary-nav.open {
    display: flex !important;
    position: fixed !important;
    left: 0;
    right: 0;
    top: auto;
    bottom: 80px;
    background: white !important;
    border-top: 2px solid var(--border) !important;
    padding: 12px 16px !important;
    z-index: 999 !important;
    box-shadow: var(--shadow-lg) !important;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 60vh;
  }
  
  .primary-nav.open a {
    display: flex !important;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  
  .primary-nav.open a::before { content: ""; }
  
  .nav-secondary-inner { flex-wrap: wrap; }
  .cat-bar { display: none !important; width:100%; }
  .cat-bar.show { display: flex !important; }
  .grid.products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

/* Make common section grids behave like carousels on mobile for better UX (but NOT products grid) */
@media (max-width: 900px) {
  .grid-3,
  .how-steps {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 8px 12px;
    scroll-padding: 0 24px;
  }
  .grid-3 > *, .how-steps > * {
    min-width: 220px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  /* Keep products grid as a normal responsive grid */
  .grid.products { 
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 12px !important;
  }
  /* Slightly reduce card hover elevation on mobile */
  .card { box-shadow: var(--shadow-sm); }
}

/* Carousel arrows and dots for mobile sections */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11,18,32,0.22);
  color: #fff;
  border: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  opacity: 0.85;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 40; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.carousel-dot.active { background: #fff; box-shadow: 0 0 4px rgba(0,0,0,0.08); }

@media (max-width: 900px) {
  .carousel-arrow { display: flex; }
}

/* Hide native scrollbars for nicer look on mobile carousels (category and how-it-works only) */
.grid-3::-webkit-scrollbar, .how-steps::-webkit-scrollbar { display: none; }
.grid-3, .how-steps { -ms-overflow-style: none; scrollbar-width: none; }

/* Make dots sit below the carousel without overlapping content */
.carousel-dots { bottom: -12px; }

/* Ensure wrapper has space for dots when they are added */
.carousel-wrapper-padding { padding: 0 28px 28px !important; }

@media (max-width: 700px) {
  .carousel-wrapper-padding { padding: 0 20px 24px !important; }
  .carousel-arrow { width: 26px; height: 26px; font-size: 11px; }
  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }
}

.carousel-arrow:hover { transform: translateY(-50%) scale(1.06); opacity: 1; background: rgba(11,18,32,0.32); }

@media (max-width: 600px) {
  body { padding-bottom: 90px; }
  
  .mobile-topbar { display: block; }
  .site-header { top: auto; }
  
  .slider { grid-auto-columns: 90%; }
  
  .hero-copy h1 { font-size: 28px; }
  .hero { padding: 30px 20px; }
  
  /* Footer Mobile */
  .footer-grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 32px; 
    padding: 30px 16px; 
  }
  .footer-logo { margin: 0 auto 16px; }
  .footer-col h4 { margin-top: 0; margin-bottom: 12px; }
  .socials { justify-content: center; }
  
  /* Header Search mobile */
  .header-search { display: none; }
  
  /* Products Grid */
  .grid.products { 
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* Product Detail Page Mobile */
  .product-detail {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0;
  }
  
  .product-gallery, .product-info, .product-surface { 
    margin: 0; 
    padding: 16px;
    border-radius: var(--radius-lg);
  }
  
  .gallery-main { aspect-ratio: 1/1; height: auto; }
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 8px;
  }
  
  /* Product Info */
  h1 { font-size: 22px !important; }
  .product-price { font-size: 26px !important; }
  
  .product-actions { flex-direction: column; }
  .product-actions form,
  .product-actions .btn { width: 100%; }
  
  /* Quantity Selector */
  .qty-selector {
    width: 100%;
    justify-content: space-between;
    padding: 2px;
  }
  .qty-selector input { width: 50px; }
  
  /* Trust Strip */
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }
  .trust-item span { font-size: 28px; }
  
  /* Buttons */
  .btn, .cta { 
    padding: 10px 16px; 
    font-size: 14px; 
    width: 100%;
  }
}
/* Mobile Button Standardization Override */
@media (max-width: 600px) {
  .btn, .cta, .btn-hero, .btn-text, .hero-overlay .btn { 
    padding: 12px 20px !important; 
    font-size: 15px !important; 
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 48px !important; /* Touch target size */
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
  }
}


/* Force 2-column grid on mobile (Duxe style typically shows 2 col on phone) */
@media (max-width: 600px) {
  .grid.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .card.product .product-card-body { padding: 8px; }
  .card.product h3 { font-size: 13px; min-height: 3em; /* Ensure lines wrap */ }
  .card.product .price { font-size: 14px; }
  .product-btn-group { flex-direction: column; gap: 6px; }
  .card.product .btn { padding: 8px !important; font-size: 11px !important; }
}


/* Luxe Form Inputs & Selects */
input[type='text'], 
input[type='email'], 
input[type='password'], 
input[type='number'], 
textarea, 
select {
  border-radius: 4px !important;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  border-color: #000 !important;
  outline: none;
  box-shadow: 0 0 0 1px #000;
}
.searchbar {
  background: white;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #eee;
  display: flex;
  gap: 8px;
}
.searchbar input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

