/* =============================================
   E-TOPTAN TEKSTIL - Main Stylesheet
   Toptan Tekstil Marketplace
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette - Warm Luxury */
  --primary: #8B6914;
  --primary-light: #B8941F;
  --primary-dark: #6B5010;
  --primary-soft: #F5EDD6;
  --secondary: #2C3E50;
  --secondary-light: #34495E;
  --accent: #C0392B;
  --accent-soft: #FDECEA;
  
  /* Neutrals */
  --bg: #FAFAF7;
  --bg-alt: #F3F1EC;
  --surface: #FFFFFF;
  --surface-hover: #F8F7F4;
  --border: #E8E4DB;
  --border-light: #F0EDE6;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #9B9B9B;
  
  /* Status */
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  
  /* Spacing */
  --container: 1280px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}

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

.top-bar a {
  color: rgba(255,255,255,0.85);
}

.top-bar a:hover {
  color: var(--primary-light);
}

.top-bar-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-links i {
  margin-right: 5px;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--duration) var(--ease);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo img {
  height: 42px;
}

.logo span {
  color: var(--secondary);
  font-weight: 400;
  font-size: 0.85em;
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 520px;
  margin: 0 32px;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 46px;
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 0 50px 0 22px;
  font-size: 14px;
  background: var(--bg);
  transition: all var(--duration) var(--ease);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-bar button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  font-size: 12px;
}

.header-action-btn i {
  font-size: 22px;
}

.header-action-btn:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.header-action-btn .badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 100;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  overflow: visible;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list > li {
  position: relative;
  flex-shrink: 0;
}

.nav-parent-row {
  display: flex;
  align-items: center;
}

.nav-list li a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
  border-bottom: 2px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-submenu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  list-style: none;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration) var(--ease);
  z-index: 1000;
}

.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu li a {
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.nav-submenu li a:hover {
  background: var(--primary-soft);
}

.nav-submenu-all {
  display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  border: none;
  background: none;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* =============================================
   HERO / SLIDER
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
}

.hero-slider {
  position: relative;
  height: 500px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0 60px;
  color: white;
}

.hero-content .badge-text {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.hero-dot.active {
  background: var(--primary-light);
  width: 32px;
  border-radius: 5px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-soft);
}

.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: white; }

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header .subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   CATEGORY CARDS
   ============================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
  group: true;
}

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

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

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%);
  transition: background var(--duration) var(--ease);
}

.category-card:hover::after {
  background: linear-gradient(to top, rgba(139,105,20,0.75) 0%, rgba(0,0,0,0.1) 60%);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  color: white;
}

.category-card-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.category-card-content span {
  font-size: 13px;
  opacity: 0.8;
}

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

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--duration) var(--ease);
}

.product-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-image {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-alt);
}

.product-card-gallery {
  touch-action: pan-y;
  user-select: none;
}

.product-card-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.product-card-image img {
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  pointer-events: none;
}

.product-card-image img.active {
  opacity: 1;
  transform: scale(1);
}

.product-card:hover .product-card-image img.active {
  transform: scale(1.04);
}

.product-card-gallery-meta {
  position: absolute;
  right: 10px;
  bottom: 42px;
  z-index: 2;
}

.product-card-gallery-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.product-card-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(19, 24, 31, 0.28);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.product-card-gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.product-card-gallery-dots span.active {
  width: 18px;
  border-radius: 999px;
  background: white;
}

.product-card-color-badge {
  position: absolute;
  left: 10px;
  bottom: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: calc(100% - 84px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.84);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  white-space: nowrap;
}

.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: calc(100% - 72px);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-badge.sale {
  background: rgba(210, 71, 47, 0.92);
  color: white;
}

.product-badge.new {
  background: var(--success);
  color: white;
}

.product-badge.featured {
  background: var(--primary);
  color: white;
}

.product-badge.type {
  background: rgba(19, 24, 31, 0.72);
  color: white;
  backdrop-filter: blur(8px);
}

.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--duration) var(--ease);
}

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

.product-card-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.product-card-actions button:hover {
  background: var(--primary);
  color: white;
}

.product-gallery-stack {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-gallery-stack-main {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.product-gallery-stack-thumbs {
  display: flex;
  align-items: center;
}

.product-gallery-stack-thumbs img,
.product-gallery-stack-more {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 10px;
  border: 2px solid #fff;
  object-fit: cover;
  background: #f3f4f6;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.product-gallery-stack-thumbs img:first-child,
.product-gallery-stack-more:first-child {
  margin-left: 0;
}

.product-gallery-stack-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
}

.product-gallery-stack-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.product-gallery-stack-info strong {
  display: block;
}

.product-gallery-stack-note {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .product-card-gallery-meta {
    right: 10px;
    bottom: 38px;
  }

  .product-card-gallery-count {
    padding: 6px 9px;
    font-size: 10px;
  }

  .product-card-gallery-dots {
    bottom: 12px;
    padding: 6px 9px;
  }

  .product-badge {
    padding: 3px 8px;
    font-size: 9px;
  }
}

.product-card-body {
  padding: 18px;
}

.product-card-seller {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-body h3 a:hover {
  color: var(--primary);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars {
  color: #F5A623;
  font-size: 13px;
  display: flex;
  gap: 1px;
}

.product-card-rating span {
  font-size: 12px;
  color: var(--text-muted);
}

.product-card-price {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-card-price .price {
  display: block;
  min-width: 0;
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.product-card-price-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.product-card-price .unit-price {
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.product-card-price .old-price {
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1.1;
  opacity: 0.9;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */
.product-detail {
  padding: 40px 0 60px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-detail-grid > * {
  min-width: 0;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9/16;
  background: var(--bg-alt);
  margin-bottom: 12px;
  box-shadow: var(--shadow-lg);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(19, 24, 31, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  z-index: 2;
  transition: all var(--duration) var(--ease);
}

.product-gallery-nav.prev {
  left: 18px;
}

.product-gallery-nav.next {
  right: 18px;
}

.product-gallery-nav:hover {
  background: rgba(19, 24, 31, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.product-gallery-counter {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.product-gallery-color-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 140px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.product-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  min-width: 0;
  flex: 1;
}

.product-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery-thumb-nav {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}

.product-gallery-thumb-nav:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.product-gallery-thumbs img {
  width: 86px;
  height: 110px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info .seller-name {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.product-meta-item i {
  color: var(--primary);
}

.product-price-section {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.product-price-main {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.product-price-section .current-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.05;
}

.product-price-section .current-price small {
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 500;
  color: var(--text-muted);
}

.product-price-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-price-section .old-price {
  font-size: clamp(16px, 2.6vw, 22px);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price-section .discount-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.product-shipping-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.product-shipping-note.free {
  color: var(--success);
}

.product-variant-section {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.product-variant-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-variant-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
}

.product-variant-option {
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 8px;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  gap: 8px;
  text-align: left;
  transition: all var(--duration) var(--ease);
}

.product-variant-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-alt);
}

.product-variant-option span {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-variant-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 14px 30px rgba(163, 124, 17, 0.14);
}

/* Calculator Section */
.calculator-section {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.calculator-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calculator-section h3 i {
  color: var(--primary);
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-group input,
.calc-group select {
  height: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 15px;
  background: var(--bg);
  outline: none;
  transition: all var(--duration) var(--ease);
}

.calc-group input:focus,
.calc-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.calc-total {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.calc-total .label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.calc-total .amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 15px;
  background: var(--surface);
  outline: none;
  transition: all var(--duration) var(--ease);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

textarea.form-control {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236B6B6B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-helper {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

/* =============================================
   CART & CHECKOUT
   ============================================= */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}

.cart-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-info img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-details span {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-summary {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cart-summary h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.cart-summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
}

.cart-summary-column {
  min-width: 0;
}

.cart-coupon-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}

.cart-coupon-row .form-control,
.cart-coupon-row .btn {
  width: 100%;
}

.cart-coupon-row .btn {
  font-size: 12px;
  padding-left: 12px;
  padding-right: 12px;
}

.cart-table-header {
  gap: 12px;
}

.cart-group-toggle {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.cart-group-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.cart-group-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.cart-group-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f7d32;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}

.cart-group-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.cart-group-store-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid rgba(163, 124, 17, 0.18);
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(163, 124, 17, 0.08);
  flex-shrink: 0;
}

.cart-group-store-icon i {
  font-size: 16px;
}

.cart-group-shipping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(163, 124, 17, 0.08);
  border: 1px solid rgba(163, 124, 17, 0.14);
  font-size: 13px;
  color: var(--text-secondary);
}

.cart-group-shipping i {
  color: var(--primary);
}

.cart-group-shipping span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-group-shipping strong {
  color: var(--primary);
  font-size: 10px;
}

.cart-group-toggle-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(163, 124, 17, 0.22);
  background: linear-gradient(135deg, rgba(163, 124, 17, 0.16) 0%, rgba(163, 124, 17, 0.24) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.cart-group-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}

.cart-group-toggle-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a670a;
}

.cart-group-toggle-text i {
  font-size: 14px;
}

.cart-group-toggle[aria-expanded="true"] .cart-group-icon {
  transform: rotate(180deg);
}

.cart-group-content[hidden] {
  display: none;
}

.cart-action-cell {
  text-align: right;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
}

.checkout-card-body {
  padding: 24px;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-summary-column {
  min-width: 0;
}

.checkout-summary {
  position: sticky;
  top: 100px;
}

.checkout-summary-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.checkout-summary-item-content {
  flex: 1;
  min-width: 0;
}

.checkout-summary-item-price {
  flex-shrink: 0;
}

.summary-product-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.summary-product-item-content {
  flex: 1;
  min-width: 0;
}

.summary-product-item-meta {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.summary-product-item-price {
  flex-shrink: 0;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 10px;
  background: var(--surface);
  transition: all var(--duration) var(--ease);
}

.payment-option input {
  margin: 0;
}

.payment-option-icon {
  font-size: 20px;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.payment-option-text {
  font-weight: 600;
  color: var(--text);
}

.payment-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.payment-option.active .payment-option-icon,
.payment-option.active .payment-option-text {
  color: var(--primary);
}

.bank-transfer-panel {
  display: none;
  margin-top: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(163, 124, 17, 0.16);
  background: linear-gradient(135deg, #fffaf0 0%, #fffdf8 100%);
}

.bank-transfer-panel.show {
  display: block;
}

.credit-card-panel {
  display: none;
  margin-top: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(44, 62, 80, 0.12);
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.credit-card-panel.show {
  display: block;
}

.credit-card-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.credit-card-panel-head strong {
  font-size: 15px;
  color: var(--text);
}

.credit-card-panel-head span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bank-transfer-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(163, 124, 17, 0.1);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bank-transfer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.bank-transfer-item,
.bank-transfer-iban {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(163, 124, 17, 0.12);
}

.bank-transfer-item span,
.bank-transfer-iban span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bank-transfer-item strong {
  font-size: 15px;
  color: var(--text);
}

.bank-transfer-iban strong {
  font-size: 16px;
  color: var(--primary);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.bank-transfer-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.checkout-summary-header {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary-header-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(163, 124, 17, 0.1);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.checkout-summary-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-summary-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(163, 124, 17, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(163, 124, 17, 0.08);
}

.checkout-summary-header-text h3 {
  margin-bottom: 4px;
  padding-bottom: 0;
  border-bottom: none;
}

.checkout-summary-header-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkout-addresses {
  margin-bottom: 24px;
}

.checkout-addresses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.saved-address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.saved-address-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  transition: all var(--duration) var(--ease);
}

button.saved-address-card {
  width: 100%;
  cursor: pointer;
}

.saved-address-card:hover,
.saved-address-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.saved-address-card.static {
  cursor: default;
}

.saved-address-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.saved-address-line {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.saved-address-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: #e8f5e9;
}

.saved-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.saved-address-new {
  justify-content: center;
  min-height: 170px;
  border-style: dashed;
}

.checkout-save-address {
  margin-top: 8px;
}

.checkout-checkbox-group {
  display: flex;
  align-items: flex-end;
}

.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkout-checkbox input {
  margin: 0;
}

.dashboard-address-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.dashboard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dashboard-order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-order-detail-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.dashboard-order-detail-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.dashboard-order-detail-card h4 {
  margin-bottom: 8px;
  font-size: 20px;
}

.dashboard-order-detail-card p {
  margin: 0 0 6px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.dashboard-order-detail-meta {
  display: grid;
  gap: 10px;
}

.dashboard-order-detail-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-order-detail-meta div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.dashboard-order-detail-meta span {
  color: var(--text-muted);
  font-size: 13px;
}

.dashboard-order-detail-meta strong {
  text-align: right;
}

.dashboard-order-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fafc;
  color: var(--text-secondary);
}

.dashboard-order-note {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--primary-soft);
}

.dashboard-order-note strong {
  display: block;
  margin-bottom: 8px;
}

.dashboard-order-note p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 769px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 380px !important;
    align-items: start;
  }

  .cart-group-icon {
    display: none;
  }

  .cart-group-toggle-cta {
    display: none;
  }

  .data-table {
    display: table;
  }

  .data-table thead {
    display: table-header-group;
  }

  .data-table tbody {
    display: table-row-group;
  }

  .data-table tr {
    display: table-row;
  }

  .data-table td,
  .data-table th {
    display: table-cell;
    width: auto;
  }

  .data-table td::before {
    content: none;
  }

  .cart-coupon-row {
    grid-template-columns: 2fr 1fr;
  }

  .cart-action-cell {
    text-align: right;
  }
}

/* =============================================
   USER DASHBOARD
   ============================================= */
.dashboard {
  padding: 40px 0 60px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.dashboard-sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.dashboard-sidebar-header {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-alt) 100%);
}

.dashboard-sidebar-header .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-display);
}

.dashboard-sidebar-header h4 {
  font-size: 16px;
  font-weight: 600;
}

.dashboard-sidebar-header span {
  font-size: 13px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-menu {
  list-style: none;
  padding: 12px 0;
}

.dashboard-menu-toggle {
  display: none;
}

.dashboard-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.dashboard-menu li a:hover,
.dashboard-menu li a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.dashboard-menu li a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.dashboard-content {
  min-height: 400px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-card-icon.primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.stat-card-icon.success {
  background: #E8F5E9;
  color: var(--success);
}

.stat-card-icon.warning {
  background: #FFF8E1;
  color: var(--warning);
}

.stat-card-icon.info {
  background: #E3F2FD;
  color: var(--info);
}

.stat-card-info h4 {
  font-size: 24px;
  font-weight: 700;
}

.stat-card-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Data Tables */
.data-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.data-table-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.data-table tr:hover td {
  background: var(--surface-hover);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.new { background: #E3F2FD; color: #1565C0; }
.status-badge.processing { background: #FFF8E1; color: #F57F17; }
.status-badge.preparing { background: #E8F5E9; color: #2E7D32; }
.status-badge.shipped { background: #F3E5F5; color: #7B1FA2; }
.status-badge.delivered { background: #E8F5E9; color: #1B5E20; }
.status-badge.cancelled { background: #FDECEA; color: #C62828; }
.status-badge.pending { background: #FFF8E1; color: #E65100; }
.status-badge.approved { background: #E8F5E9; color: #2E7D32; }
.status-badge.rejected { background: #FDECEA; color: #C62828; }
.status-badge.paid { background: #E8F5E9; color: #2E7D32; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: white;
  margin-bottom: 16px;
}

.footer-about h3 span {
  color: var(--primary-light);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--duration) var(--ease);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: color var(--duration) var(--ease);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 0;
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb i {
  font-size: 10px;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* =============================================
   ALERTS / TOASTS
   ============================================= */
.alert {
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.alert i {
  font-size: 24px;
  line-height: 1;
  margin-top: 2px;
}

.flash-order-number-label {
  font-weight: 600;
}

.flash-order-number {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.12);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-success {
  border-left: 5px solid #2E7D32;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.08);
}
.alert-danger { background: #FDECEA; color: #C62828; border: 1px solid #EF9A9A; }
.alert-warning { background: #FFF8E1; color: #E65100; border: 1px solid #FFE082; }
.alert-info { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  min-width: 300px;
  animation: toastIn 0.4s var(--ease);
}

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

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

/* =============================================
   FEATURES / TRUST BADGES
   ============================================= */
.features-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.feature-item i {
  font-size: 28px;
  color: var(--primary);
  width: 36px;
}

.feature-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   SELLER STOREFRONT
   ============================================= */
.seller-storefront-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
  padding: 60px 0;
  color: white;
}

.seller-storefront-info {
  display: flex;
  align-items: center;
  gap: 28px;
}

.seller-storefront-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.seller-storefront-info h1 {
  font-family: var(--font-display);
  font-size: 28px;
}

.seller-storefront-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.seller-storefront-stats span {
  font-size: 14px;
  opacity: 0.8;
}

/* =============================================
   AUTH PAGES (Login/Register)
   ============================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 40px;
}

.auth-card .logo {
  justify-content: center;
  margin-bottom: 32px;
  font-size: 28px;
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 14px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s var(--ease);
}

.page-loader.hide {
  opacity: 0;
  pointer-events: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product-gallery {
    position: static;
  }

  .product-gallery-main {
    aspect-ratio: 4/5;
  }

  .product-gallery-thumb-nav {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  html,
  body {
    overflow-x: hidden;
  }
  
  .header .container {
    height: 64px;
  }
  
  .search-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  
  .search-bar.show {
    display: block;
  }

  .product-detail {
    overflow-x: clip;
    padding-top: 18px;
  }

  .product-detail .container,
  .product-gallery,
  .product-gallery-main,
  .product-gallery-thumbs-wrap {
    max-width: 100%;
  }

  .product-gallery-main {
    aspect-ratio: 4 / 5;
    width: 100%;
    margin-bottom: 10px;
  }

  .product-gallery-nav {
    width: 40px;
    height: 40px;
  }

  .product-gallery-nav.prev {
    left: 12px;
  }

  .product-gallery-nav.next {
    right: 12px;
  }

  .product-gallery-counter {
    left: 12px;
    bottom: 12px;
    gap: 6px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .product-gallery-color-badge {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 132px);
    gap: 6px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .product-gallery-thumbs-wrap {
    gap: 0;
    overflow: hidden;
  }

  .product-gallery-thumb-nav {
    display: none;
  }

  .product-gallery-thumbs {
    width: 100%;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .product-gallery-thumbs img {
    width: 72px;
    height: 92px;
  }

  .product-price-section {
    padding: 20px;
  }

  .product-price-main {
    gap: 10px;
    align-items: flex-start;
  }

  .product-price-section .current-price {
    gap: 8px;
    font-size: clamp(24px, 10vw, 34px);
  }

  .product-price-section .current-price small {
    font-size: clamp(12px, 4vw, 16px);
  }

  .product-price-meta {
    gap: 10px;
  }

  .product-price-section .old-price {
    font-size: clamp(14px, 5.5vw, 18px);
  }

  .product-price-section .discount-badge {
    padding: 6px 12px;
    font-size: 12px;
  }

  .product-shipping-note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  .breadcrumb {
    padding: 8px 0 4px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
  }

  .breadcrumb a,
  .breadcrumb span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .breadcrumb a {
    flex: 0 1 auto;
    min-width: 0;
  }

  .breadcrumb span {
    flex: 1 1 auto;
    min-width: 0;
  }

  .breadcrumb i {
    flex: 0 0 auto;
    font-size: 9px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .header-actions {
    gap: 2px;
  }
  
  .header-action-btn {
    padding: 8px 10px;
  }
  
  .header-action-btn span {
    display: none;
  }
  
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--surface);
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--duration) var(--ease);
  }
  
  .nav.show {
    display: block;
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    overflow-x: visible;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-parent-row {
    border-bottom: 1px solid var(--border-light);
  }

  .nav-parent-row > a {
    flex: 1;
  }

  .nav-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border-left: 1px solid var(--border-light);
    font-size: 14px;
    transition: transform var(--duration) var(--ease);
  }

  .has-submenu.submenu-open .nav-submenu-toggle {
    transform: rotate(180deg);
  }

  .nav-submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 6px 12px 10px 24px;
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    background: var(--bg-alt);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-submenu:hover .nav-submenu,
  .has-submenu:focus-within .nav-submenu {
    transform: none;
  }

  .has-submenu.submenu-open .nav-submenu {
    display: block;
  }

  .nav-submenu li a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
  }

  .nav-submenu-all {
    display: block;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }

  .nav-submenu-all a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: rgba(163, 124, 17, 0.12);
    color: var(--primary) !important;
    font-weight: 700 !important;
    border-left-color: transparent !important;
  }
  
  .nav-list li a {
    border-bottom: 1px solid var(--border-light);
    border-left: 3px solid transparent;
  }
  
  .nav-list li a.active {
    border-left-color: var(--primary);
    border-bottom-color: var(--border-light);
  }
  
  .hero-slider {
    height: 350px;
  }
  
  .hero-content {
    padding: 0 24px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-content p {
    font-size: 14px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-sidebar {
    position: static;
    overflow: hidden;
  }

  .dashboard-sidebar-header {
    padding: 20px 18px 18px;
  }

  .dashboard-sidebar-header .avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
  }

  .dashboard-menu-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border: none;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background:
      radial-gradient(circle at top left, rgba(163, 124, 17, 0.14), transparent 42%),
      linear-gradient(135deg, #fff8e8 0%, #fffdf8 52%, var(--surface) 100%);
    cursor: pointer;
    text-align: left;
  }

  .dashboard-menu-toggle-current,
  .dashboard-menu-toggle-meta {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dashboard-menu-toggle-current {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
  }

  .dashboard-menu-toggle-meta {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 2px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .dashboard-menu-toggle-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid rgba(163, 124, 17, 0.22);
    background: linear-gradient(135deg, rgba(163, 124, 17, 0.16) 0%, rgba(163, 124, 17, 0.24) 100%);
    color: #8a670a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .dashboard-menu-toggle-meta-label i {
    font-size: 15px;
  }

  .dashboard-menu-toggle-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(163, 124, 17, 0.1);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .dashboard-menu-toggle-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .dashboard-menu-toggle-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: white;
    border: 1px solid rgba(163, 124, 17, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(163, 124, 17, 0.08);
  }

  .dashboard-menu-toggle-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .dashboard-menu-toggle-title-group strong {
    font-size: 16px;
    line-height: 1.2;
    color: var(--primary);
  }

  .dashboard-menu-toggle-title-group small {
    font-size: 12px;
    color: var(--text-muted);
  }

  .dashboard-menu-toggle-meta i {
    transition: transform var(--duration) var(--ease);
  }

  .dashboard-sidebar.menu-open .dashboard-menu-toggle-meta i {
    transform: rotate(180deg);
  }

  .dashboard-menu {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(180deg, #fffdf8 0%, var(--surface) 100%);
    transition: max-height var(--duration) var(--ease), padding var(--duration) var(--ease);
  }

  .dashboard-sidebar.menu-open .dashboard-menu {
    max-height: 560px;
    padding: 12px 0;
  }

  .dashboard-menu li a {
    padding: 14px 18px;
    font-size: 15px;
    border-left: 3px solid transparent;
  }

  .dashboard-menu li a.active {
    border-left-color: var(--primary);
  }

  .dashboard-sidebar.menu-open .dashboard-menu-toggle-meta span {
    color: var(--primary);
  }

  .alert {
    padding: 16px 18px;
    font-size: 15px;
    gap: 10px;
  }

  .alert i {
    font-size: 22px;
  }

  .flash-order-number {
    display: inline-flex;
    margin-left: 0;
    margin-top: 6px;
    font-size: 14px;
    padding: 4px 8px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .calc-row {
    grid-template-columns: 1fr;
  }
  
  .auth-card {
    padding: 28px 24px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checkout-addresses-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .saved-address-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card-body {
    padding: 20px;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-summary {
    position: static;
    top: auto;
  }

  .checkout-summary-item {
    flex-direction: column;
    gap: 6px;
  }

  .checkout-summary-item-price {
    text-align: right;
  }

  .dashboard-address-grid,
  .dashboard-form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-order-detail-meta div {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-order-detail-meta strong {
    text-align: left;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-summary {
    padding: 24px 20px;
  }

  .cart-coupon-row {
    grid-template-columns: 2fr 1fr;
  }

  .cart-coupon-row .btn,
  .cart-coupon-row .form-control {
    width: 100%;
  }

  .cart-table-header {
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .cart-group-summary {
    width: 100%;
  }

  .cart-group-toggle-cta {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }

  .cart-group-icon {
    display: inline-flex;
  }

  .data-table {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
  }

  .data-table td {
    padding: 0;
    border-bottom: none;
  }

  .data-table td + td {
    margin-top: 12px;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .cart-item-info {
    align-items: flex-start;
    gap: 12px;
  }

  .cart-item-info img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }

  .cart-item-details {
    min-width: 0;
  }

  .cart-item-details h4 {
    overflow-wrap: anywhere;
  }

  .cart-summary-row {
    gap: 12px;
  }

  .cart-summary-row span:last-child {
    text-align: right;
  }

  .cart-action-cell {
    text-align: left;
  }
  
  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex !important;
  }
  
  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .product-card-body {
    padding: 12px;
  }
  
  .product-card-body h3 {
    font-size: 13px;
  }
  
  .product-card-price .price {
    font-size: clamp(15px, 5.2vw, 18px);
  }

  .product-card-price {
    gap: 4px;
  }

  .product-card-price .price {
    font-size: clamp(15px, 5.4vw, 19px);
  }

  .product-card-price .unit-price {
    font-size: 11px;
  }

  .product-card-price-meta {
    min-width: 0;
    gap: 8px;
  }

  .product-card-price .old-price {
    font-size: 10px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   MOBILE BOTTOM NAVIGATION
   ============================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  z-index: 9000;
  justify-content: space-around;
}

.mobile-bottom-nav a,
.mobile-bottom-nav .mobile-bottom-nav-action {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 12px;
  position: relative;
  background: transparent;
  border: 0;
  font-family: inherit;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav .mobile-bottom-nav-action.active {
  color: var(--primary);
}

.mobile-bottom-nav a i,
.mobile-bottom-nav .mobile-bottom-nav-action i {
  font-size: 22px;
}

.mobile-cart-badge {
  position: absolute;
  top: 2px;
  right: 16px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

.animate-in {
  animation: fadeInUp 0.5s var(--ease) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Tab system */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration) var(--ease);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 64px;
  color: var(--border);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Quantity Selector */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-selector button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 16px;
  transition: background var(--duration) var(--ease);
}

.qty-selector button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.qty-selector input {
  width: 100%;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

/* Message Thread */
.message-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
}

.message-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
}

.message-bubble.sent {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-bubble.received {
  align-self: flex-start;
  background: var(--bg-alt);
  border-bottom-left-radius: 4px;
}

.message-bubble .time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 6px;
}

/* Coupon Badge */
.coupon-card {
  background: var(--surface);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coupon-code {
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  background: var(--primary-soft);
  padding: 8px 16px;
  border-radius: var(--radius);
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  z-index: 1000;
  display: none;
}

.notification-dropdown.show {
  display: block;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--bg) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Checkbox / Toggle */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform var(--duration) var(--ease);
  box-shadow: var(--shadow-xs);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(22px);
}
