/* ==========================================================================
   DARAZ.PK THEME STYLESHEET - 100% CUSTOMIZABLE VIA CSS :ROOT VARIABLES
   ========================================================================== */

:root {
  /* Brand Primary & Secondary Colors */
  --primary-color: #f85606;        /* Daraz Signature Orange */
  --primary-hover: #d34702;        /* Darker Orange on Hover */
  --primary-light: #fff2ed;        /* Soft Orange Tint */
  --primary-rgb: 248, 86, 6;
  
  --secondary-color: #0f136d;      /* Daraz Navy Blue */
  --secondary-hover: #0a0d4a;
  --secondary-light: #f0f1ff;
  
  --accent-color: #ff6000;         /* Highlight Accent */
  --sale-red: #ff3b30;             /* Flash Sale Red */
  --success-green: #00a650;        /* Success / Verified Green */
  --warning-amber: #ff9800;        /* Warning Amber */
  --star-yellow: #faca15;          /* Star Rating Yellow */
  --info-blue: #2196f3;            /* Info Blue */

  /* Neutral & Background Colors */
  --bg-body: #f5f5f5;              /* Page Body Light Gray */
  --bg-surface: #ffffff;           /* Card & Container White */
  --bg-topbar: #f85606;            /* Top Bar Color */
  --bg-header: #ffffff;            /* Main Header Background */
  --bg-footer: #2e2e54;            /* Footer Dark Blue */
  --bg-footer-bottom: #1f1f3a;     /* Footer Deep Navy */
  --bg-modal-overlay: rgba(0, 0, 0, 0.65);

  /* Typography & Text Colors */
  --text-main: #212121;            /* Primary Text */
  --text-secondary: #606060;       /* Secondary Text */
  --text-muted: #9e9e9e;           /* Muted / Placeholder Text */
  --text-inverse: #ffffff;         /* White Text */
  --text-link: #f85606;            /* Link Text */
  
  /* Borders & Dividers */
  --border-color: #eff0f5;         /* Card / Container Border */
  --border-subtle: #e2e8f0;        /* Input / Divider Border */
  --border-dark: #cbd5e1;

  /* Fonts */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;

  /* Sizing & Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.16);

  /* Layout Widths */
  --container-max-width: 1200px;
  --header-height: 120px;
  --topbar-height: 32px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Preset Theme Overrides (Dynamically Switchable) */
body[data-theme="royal-blue"] {
  --primary-color: #1a56db;
  --primary-hover: #1442a8;
  --primary-light: #ebf5ff;
  --primary-rgb: 26, 86, 219;
  --bg-topbar: #1a56db;
  --text-link: #1a56db;
}

body[data-theme="emerald-green"] {
  --primary-color: #047857;
  --primary-hover: #065f46;
  --primary-light: #ecfdf5;
  --primary-rgb: 4, 120, 87;
  --bg-topbar: #047857;
  --text-link: #047857;
}

body[data-theme="crimson-luxury"] {
  --primary-color: #e11d48;
  --primary-hover: #be123c;
  --primary-light: #ffe4e6;
  --primary-rgb: 225, 29, 72;
  --bg-topbar: #e11d48;
  --text-link: #e11d48;
}

body[data-theme="purple-vibe"] {
  --primary-color: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #f5f3ff;
  --primary-rgb: 124, 58, 237;
  --bg-topbar: #7c3aed;
  --text-link: #7c3aed;
}

body[data-theme="dark-mode"] {
  --bg-body: #121212;
  --bg-surface: #1e1e1e;
  --bg-header: #1e1e1e;
  --bg-topbar: #0f136d;
  --text-main: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: #2d3748;
  --border-subtle: #374151;
  --bg-footer: #181824;
  --bg-footer-bottom: #0f0f18;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.15);
}

ul, ol {
  list-style: none;
}

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

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

/* Utility Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.badge-primary { background-color: var(--primary-color); color: #fff; }
.badge-secondary { background-color: var(--secondary-color); color: #fff; }
.badge-sale { background-color: var(--sale-red); color: #fff; }
.badge-success { background-color: var(--success-green); color: #fff; }
.badge-mall { background-color: #d82b38; color: #fff; font-weight: 800; letter-spacing: 0.5px; }
.badge-offer { background: linear-gradient(135deg, #ff007a, #7928ca); color: #fff; font-weight: 800; }

/* Price Formats */
.price-currency {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--primary-color);
}
.price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}
.price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.price-discount {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-left: 4px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  box-shadow: var(--shadow-sm);
}

/* Top Bar */
.top-bar {
  background-color: var(--bg-topbar);
  color: #fff;
  font-size: 0.82rem;
  padding: 5px 0;
  transition: background-color var(--transition-normal);
}

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

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

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.top-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.seller-center-btn {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all var(--transition-fast) !important;
  color: #fff;
}

.seller-center-btn:hover {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

/* Main Header */
.main-header {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-header);
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logo {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-logo .logo-icon {
  background: linear-gradient(135deg, var(--primary-color), #ff8f00);
  color: #fff;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.brand-logo .pk-tag {
  font-size: 0.75rem;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  vertical-align: super;
  font-weight: 700;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 680px;
  position: relative;
}

.search-bar-form {
  display: flex;
  align-items: center;
  background-color: var(--bg-body);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 42px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-size: 0.95rem;
  height: 100%;
}

.search-input:focus {
  box-shadow: none;
  border: none;
}

.search-category-select {
  border: none;
  border-left: 1px solid var(--border-subtle);
  background: transparent;
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  height: 100%;
}

.search-btn {
  background-color: var(--primary-color);
  color: #fff;
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast);
}

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

/* Live Search Suggestions Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}

.search-suggestions-dropdown.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.suggestion-item:hover {
  background-color: var(--primary-light);
}

.suggestion-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.suggestion-details h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.suggestion-details .sug-price {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 700;
}

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

.header-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  color: var(--text-main);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.header-action-item:hover {
  color: var(--primary-color);
}

.action-icon-wrapper {
  position: relative;
  font-size: 1.4rem;
}

.action-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  cursor: pointer;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ==========================================================================
   HERO & CATEGORY MEGA MENU SECTION
   ========================================================================== */

.hero-section {
  padding: 16px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr 200px;
  gap: 16px;
  align-items: stretch;
}

/* Category Sidebar */
.category-sidebar {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border-color);
  padding: 8px 0;
  height: 380px;
}

.category-menu-list {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-menu-item {
  position: static;
}

.category-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.category-menu-link .cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-menu-link i {
  width: 16px;
  color: var(--text-muted);
}

.category-menu-item:hover .category-menu-link {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
  padding-left: 18px;
}

.category-menu-item:hover .category-menu-link i {
  color: var(--primary-color);
}

/* Mega Flyout Submenu */
.mega-flyout {
  position: absolute;
  top: 0;
  left: 240px;
  width: 680px;
  min-height: 380px;
  background-color: var(--bg-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  border-left: none;
  z-index: 100;
  padding: 20px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-menu-item:hover .mega-flyout {
  display: grid;
}

.flyout-column h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.flyout-column ul li {
  margin-bottom: 6px;
}

.flyout-column ul li a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.flyout-column ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Main Hero Banner Carousel */
.hero-carousel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 380px;
  background-color: #000;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  color: #fff;
}

.carousel-tag {
  background-color: var(--primary-color);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 12px;
  width: fit-content;
}

.carousel-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.carousel-btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.carousel-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--primary-color);
  width: 26px;
}

/* Side Promo Cards */
.hero-side-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 380px;
}

.side-card {
  flex: 1;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.side-card.app-download {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
}

.side-card.seller-cta {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}

.side-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.side-card.app-download .side-card-icon { color: var(--primary-color); }
.side-card.seller-cta .side-card-icon { color: var(--success-green); }

.side-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.side-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.side-card-btn {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.side-card.app-download .side-card-btn {
  background-color: var(--primary-color);
  color: #fff;
}

.side-card.seller-cta .side-card-btn {
  background-color: var(--success-green);
  color: #fff;
}

/* ==========================================================================
   FEATURE CHANNELS STRIP
   ========================================================================== */

.feature-channels {
  margin-bottom: 24px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.channel-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.channel-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.channel-item:nth-child(1) .channel-icon { background-color: #fee2e2; color: #ef4444; }
.channel-item:nth-child(2) .channel-icon { background-color: #ffedd5; color: #f97316; }
.channel-item:nth-child(3) .channel-icon { background-color: #dbeafe; color: #3b82f6; }
.channel-item:nth-child(4) .channel-icon { background-color: #dcfce7; color: #10b981; }
.channel-item:nth-child(5) .channel-icon { background-color: #f3e8ff; color: #a855f7; }

.channel-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.channel-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FLASH SALE SECTION
   ========================================================================== */

.section-container {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-sale-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
}

.flash-sale-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.flash-sale-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.flash-sale-label {
  color: var(--sale-red);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-unit {
  background-color: var(--sale-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  min-width: 30px;
  text-align: center;
}

.time-sep {
  font-weight: 800;
  color: var(--sale-red);
}

.shop-more-btn {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--primary-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.shop-more-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Product Card Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.product-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   DYNAMIC PRODUCT CARD (DARAZ STYLE)
   ========================================================================== */

.product-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

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

.product-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-color: #f8f8f8;
  overflow: hidden;
}

.product-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.06);
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--sale-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.special-offer-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #e11d48, #9333ea);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mall-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #d82b38;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  z-index: 2;
  letter-spacing: 0.5px;
}

.offer-timer-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.quick-action-overlay {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  transition: bottom var(--transition-fast);
  z-index: 5;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.product-card:hover .quick-action-overlay {
  bottom: 0;
}

.card-action-btn {
  background-color: var(--primary-color);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.card-action-btn:hover {
  transform: scale(1.15);
  background-color: var(--primary-hover);
}

.card-action-btn.wish-btn {
  background-color: #fff;
  color: #e11d48;
  border: 1px solid var(--border-subtle);
}

.product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-breadcrumbs-crumb {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.3em;
}

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

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.product-card .price-value {
  font-size: 1.15rem;
}

.product-stock-bar {
  margin-top: 6px;
  width: 100%;
}

.progress-track {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9800, #ff3b30);
  border-radius: var(--radius-full);
}

.stock-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-weight: 600;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.75rem;
}

.rating-stars {
  color: var(--star-yellow);
  font-size: 0.75rem;
}

.rating-count {
  color: var(--text-muted);
}

.product-location {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   DARAZ MALL SECTION
   ========================================================================== */

.mall-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.mall-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.mall-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d82b38;
}

.mall-banner-wrap {
  height: 90px;
  background-color: #eee;
  overflow: hidden;
}

.mall-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-logo-wrap {
  width: 52px;
  height: 52px;
  background-color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: -26px auto 8px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 2px solid #fff;
}

.mall-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.mall-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.mall-brand-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-bottom: 12px;
}

/* ==========================================================================
   CATEGORIES GRID
   ========================================================================== */

.categories-icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.category-icon-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.category-icon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.category-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-color);
  transition: transform var(--transition-fast);
}

.category-icon-card:hover .category-icon-wrap {
  transform: scale(1.15);
  background-color: #fff;
}

.category-icon-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   JUST FOR YOU & FILTER TOOLBAR
   ========================================================================== */

.filter-toolbar {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--bg-body);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill.active, .filter-pill:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sort-select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
}

.load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

.load-more-btn {
  background-color: var(--bg-surface);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 40px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.load-more-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* ==========================================================================
   MODALS (AUTH, BUYER PROFILE, SELLER CENTER, QUICK VIEW, CART, CHECKOUT, THEME)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-modal-overlay);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-box.modal-large {
  max-width: 900px;
}

.modal-box.modal-full {
  max-width: 1150px;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background-color: var(--bg-surface);
  z-index: 10;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  font-size: 1.4rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

/* Tabs inside modals */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
}

.modal-tab-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

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

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

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

.btn-outline {
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* ==========================================================================
   BUYER PROFILE / ACCOUNT DASHBOARD MODAL
   ========================================================================== */

.buyer-profile-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 480px;
}

.buyer-sidebar {
  background-color: #f8fafc;
  border-right: 1px solid var(--border-color);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.buyer-user-card {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.buyer-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: var(--shadow-sm);
}

.buyer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.buyer-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.buyer-nav-item:hover, .buyer-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.buyer-content-pane {
  padding: 24px;
  overflow-y: auto;
  max-height: 560px;
}

.buyer-order-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}

.buyer-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.order-timeline-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.timeline-step.completed {
  color: var(--success-green);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
}

.timeline-step.completed .timeline-dot {
  background-color: var(--success-green);
}

/* ==========================================================================
   SELLER CENTER PORTAL / DASHBOARD
   ========================================================================== */

.seller-center-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 540px;
}

.seller-sidebar {
  background-color: #0f136d;
  color: #fff;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.seller-store-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.seller-store-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.seller-store-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.seller-store-info span {
  font-size: 0.75rem;
  color: #93c5fd;
}

.seller-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.seller-nav-link:hover, .seller-nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.seller-content-area {
  padding: 24px;
  background-color: var(--bg-body);
  overflow-y: auto;
  max-height: 640px;
}

/* Seller Analytics Cards */
.seller-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-card:nth-child(1) .stat-icon-wrap { background-color: #fee2e2; color: #ef4444; }
.stat-card:nth-child(2) .stat-icon-wrap { background-color: #dbeafe; color: #3b82f6; }
.stat-card:nth-child(3) .stat-icon-wrap { background-color: #dcfce7; color: #10b981; }
.stat-card:nth-child(4) .stat-icon-wrap { background-color: #fef3c7; color: #f59e0b; }

.stat-details h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Financials Cards */
.payout-card-highlight {
  background: linear-gradient(135deg, #0f136d, #2563eb);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

/* Seller Table */
.seller-table-wrap {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.table-header-bar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-header-bar h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.seller-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.seller-table th {
  background-color: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.seller-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.action-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.table-action-btn.edit { background-color: #dbeafe; color: #2563eb; }
.table-action-btn.delete { background-color: #fee2e2; color: #dc2626; }
.table-action-btn:hover { transform: scale(1.1); }

/* Category Hierarchy Creator */
.category-builder-box {
  background-color: #f8fafc;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 8px;
}

/* ==========================================================================
   CART DRAWER & SLIDE-OUT
   ========================================================================== */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-xl);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface);
}

.cart-body {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: #fafafa;
  position: relative;
}

.cart-item-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #fff;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: #fff;
  width: fit-content;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cart-qty-val {
  width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-del {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.cart-item-del:hover {
  color: var(--sale-red);
}

.cart-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
  background-color: #fff;
}

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

.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.cart-summary-row.total .price-val {
  color: var(--primary-color);
}

/* ==========================================================================
   PRODUCT DETAILS MODAL / QUICK VIEW
   ========================================================================== */

.product-quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.quick-view-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-preview-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.gallery-thumbs-row {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: var(--primary-color);
}

.quick-view-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.qv-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.qv-price-box {
  background-color: var(--primary-light);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.qv-specs-list {
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.qv-specs-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qv-specs-list li i {
  color: var(--success-green);
}

.seller-badge-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.seller-badge-box h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.seller-badge-box span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   THEME CUSTOMIZER FLOATING TOOLBAR
   ========================================================================== */

.theme-customizer-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xl);
  z-index: 1800;
  transition: all var(--transition-fast);
  border: 2px solid #fff;
}

.theme-customizer-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.theme-preset-card {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.theme-preset-card:hover, .theme-preset-card.active {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.theme-color-swatch {
  width: 100%;
  height: 28px;
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
}

.custom-color-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.color-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.color-picker-item input[type="color"] {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.site-footer {
  background-color: var(--bg-footer);
  color: #fff;
  margin-top: 40px;
  padding-top: 40px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #cbd5e1;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-bottom {
  background-color: var(--bg-footer-bottom);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pay-badge {
  background-color: #fff;
  color: #1e1e1e;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #1e293b;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary-color);
  animation: slideInRight 0.3s ease;
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 200px 1fr;
  }
  .hero-side-cards {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .channel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .categories-icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .mall-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .category-sidebar {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .mall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  .product-quick-view-grid {
    grid-template-columns: 1fr;
  }
  .seller-center-layout {
    grid-template-columns: 1fr;
  }
  .buyer-profile-layout {
    grid-template-columns: 1fr;
  }
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
  }
}