/* ==========================================================================
   Sixteen Clothing - Ultra-Premium E-Commerce UI & Animation Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- 1. CSS Custom Properties / Design Tokens --- */
:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette - Light Mode */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-input: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #e0e7ff;
  --accent-text: #4338ca;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --accent-danger: #ef4444;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;

  --border-color: #e2e8f0;
  --border-focus: #6366f1;

  /* Glassmorphism & Shadows */
  --header-bg: rgba(255, 255, 255, 0.88);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --backdrop-blur: blur(16px);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 20px 35px -10px rgba(99, 102, 241, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-secondary: #1e293b;
  --bg-input: #1f2937;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  --accent-primary: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(99, 102, 241, 0.25);
  --accent-text: #a5b4fc;
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);

  --border-color: #334155;
  --border-focus: #818cf8;

  --header-bg: rgba(17, 24, 39, 0.88);
  --glass-bg: rgba(17, 24, 39, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 35px -10px rgba(129, 140, 248, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none !important;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.jumper {
  display: flex;
  gap: 8px;
}

.jumper > div {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  animation: bounceDot 0.6s infinite alternate;
}

.jumper > div:nth-child(2) { animation-delay: 0.2s; }
.jumper > div:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounceDot {
  from { transform: translateY(0); opacity: 0.4; }
  to { transform: translateY(-16px); opacity: 1; }
}

/* --- Header Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.2rem 0;
}

.navbar {
  padding: 0.9rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-brand h2 em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-center-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--bg-secondary);
  font-size: 1.1rem;
  position: relative;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.action-btn:hover {
  background: var(--accent-light);
  color: var(--accent-text);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.4);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 10000;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-xl);
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links a {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* --- Hero Banner Carousel --- */
.banner {
  padding-top: 76px;
  background-color: var(--bg-secondary);
}

.banner-item {
  height: 600px;
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.banner-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 0.15) 100%);
}

.banner-item .text-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 3.5rem;
  color: #ffffff;
}

.banner-item .badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.banner-item h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.banner-item p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.25rem;
}

.btn-primary-custom {
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
  transition: all var(--transition-normal);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
  color: #ffffff;
}

.btn-outline-custom {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #ffffff;
}

/* Floating Hero Stat Pill */
.hero-floating-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* --- Grid & Card Spacing Enhancements --- */
.row {
  margin-left: -14px;
  margin-right: -14px;
}

.col-lg-3, .col-lg-4, .col-md-6, .col-sm-12, .col-12 {
  padding-left: 14px;
  padding-right: 14px;
}

.product-card-wrapper {
  margin-bottom: 28px;
}

/* --- Category Explorer Grid --- */
.category-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
}

.category-card-overlay h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

/* --- Feature Highlights Strip --- */
.features-strip {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  margin-bottom: 24px;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Section Headings & Filter Tabs --- */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.section-heading h2 {
  font-size: 2.15rem;
  font-weight: 800;
  position: relative;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 70px;
  height: 3.5px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.filter-tabs {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.filter-tab {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* --- Product Cards Grid --- */
.latest-products {
  padding: 4.5rem 0;
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08);
}

.product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-item {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.badge-item.sale { background: linear-gradient(135deg, #ef4444, #f43f5e); }
.badge-item.new { background: linear-gradient(135deg, #10b981, #059669); }
.badge-item.hot { background: linear-gradient(135deg, #f59e0b, #d97706); }

.card-actions-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  transform: translateX(12px);
  transition: all var(--transition-normal);
}

.product-card:hover .card-actions-overlay {
  opacity: 1;
  transform: translateX(0);
}

.card-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.card-btn:hover {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.12);
}

.card-btn.active {
  background: #ef4444;
  color: #ffffff;
}

.product-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-title a:hover {
  color: var(--accent-primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.stars {
  color: #f59e0b;
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
}

.review-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through !important;
}

.btn-add-cart {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* --- Slide-over Drawers --- */
.cart-drawer, .wishlist-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 10001;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active, .wishlist-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.drawer-close:hover {
  background: var(--accent-light);
  color: var(--accent-text);
}

.free-shipping-bar {
  padding: 0.85rem 1.5rem;
  background: var(--accent-light);
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.progress-track {
  height: 7px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.4s ease;
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cart-item, .wishlist-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.cart-item-img {
  width: 85px;
  height: 95px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-secondary);
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cart-item-price-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-primary);
}

.qty-val {
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item-remove {
  color: var(--accent-danger);
  font-size: 0.95rem;
  cursor: pointer;
  align-self: flex-start;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.promo-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.promo-input-group input {
  flex-grow: 1;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.btn-checkout {
  width: 100%;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-fast);
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.55);
}

.empty-drawer-msg {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.empty-drawer-msg i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.4;
}

/* --- Modals --- */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop-custom.active {
  opacity: 1;
  visibility: visible;
}

.quickview-modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.94);
  transition: transform var(--transition-bounce);
}

.modal-backdrop-custom.active .quickview-modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-primary);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  padding: 2.25rem;
}

.qv-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qv-main-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.qv-details {
  display: flex;
  flex-direction: column;
}

.qv-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.qv-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.qv-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.option-group {
  margin-bottom: 1.25rem;
}

.option-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.size-chips {
  display: flex;
  gap: 0.6rem;
}

.chip {
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chip.active, .chip:hover {
  border-color: transparent;
  background: var(--accent-gradient);
  color: #ffffff;
}

.color-swatches {
  display: flex;
  gap: 0.85rem;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 0 1px var(--border-color);
  transition: transform var(--transition-fast);
}

.swatch:hover, .swatch.active {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px var(--accent-primary);
}

/* --- Search Overlay --- */
.search-modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-primary);
  background: var(--bg-input);
  margin-bottom: 1.5rem;
}

.search-input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.15rem;
  width: 100%;
  font-family: var(--font-body);
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-left: 4px solid var(--accent-primary);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 320px;
  font-weight: 600;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
}

.toast-item.success { border-left-color: var(--accent-success); }
.toast-item.danger { border-left-color: var(--accent-danger); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}

/* --- Products Page Toolbar --- */
.products-toolbar {
  background: var(--bg-surface);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-bar-inline {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border-color);
}

.search-bar-inline input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.select-custom {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
}

/* --- Page Heroes & Stats Grid --- */
.about-hero, .contact-hero, .products-hero {
  padding: 7.5rem 0 3.5rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin: 3.5rem 0;
}

.stat-card {
  background: var(--bg-surface);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.team-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition-normal);
  margin-bottom: 28px;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-social-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.team-card:hover .team-social-overlay {
  opacity: 1;
}

.team-info {
  padding: 1.35rem;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  padding: 1.35rem;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.35rem 1.35rem;
  color: var(--text-secondary);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --- Newsletter VIP Banner --- */
.newsletter-banner {
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 4rem 0;
}

.newsletter-banner h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 1.75rem auto 0;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  outline: none;
  font-size: 1rem;
}

.newsletter-form button {
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.newsletter-form button:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* --- Footer --- */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.25rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .nav-center-menu { display: none; }
  .mobile-nav-toggle { display: block; }
  .banner-item h2 { font-size: 2.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quickview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .banner-item { height: 500px; }
  .banner-item .text-content { padding: 0 1.5rem; }
  .banner-item h2 { font-size: 2.1rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-drawer, .wishlist-drawer { max-width: 100%; }
  .newsletter-form { flex-direction: column; }
}