/* ============================================================
   HK DISTRIBUTIONS — Design System
   Light/White Professional B2B Theme
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  /* Colors */
  --primary: #1a1a2e;
  --primary-light: #2d2d44;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --accent-light: #fff0f0;
  --success: #2ecc71;
  --warning: #f39c12;
  --info: #3498db;
  --danger: #e74c3c;

  /* Neutrals */
  --white: #ffffff;
  --bg: #f8f9fc;
  --bg-2: #f1f3f7;
  --border: #e2e6ea;
  --border-2: #d1d7de;
  --text-primary: #1a1a2e;
  --text-secondary: #5a6070;
  --text-muted: #9aa0ab;
  --text-light: #c5c9d1;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.14);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* Navbar height */
  --nav-height: 70px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

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

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

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--text-secondary); line-height: 1.7; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm { max-width: 800px; }
.container-lg { max-width: 1440px; }

/* ── Age Gate Modal ── */
#age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--space-lg);
}

.age-gate-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s ease;
}

.age-gate-logo {
  width: 120px;
  height: auto;
  margin: 0 auto var(--space-lg);
  object-fit: contain;
}

.age-gate-box h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.age-gate-box p {
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

.age-gate-warning {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* ── Top Bar ── */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.82rem;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

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

/* ── Navbar ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-dropdown-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

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

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  display: none;
}

.cart-count.visible { display: flex; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--bg); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}

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

.btn-dark:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,26,46,0.3);
}

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

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

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

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

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.8rem;
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-body { padding: var(--space-lg); }

/* ── Product Card ── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

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

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--transition-slow);
}

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

.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-moq {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 8px;
}

.product-price-locked {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.product-card-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-sm);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.badge-red { background: var(--accent); color: var(--white); }
.badge-dark { background: var(--primary); color: var(--white); }
.badge-green { background: var(--success); color: var(--white); }
.badge-yellow { background: var(--warning); color: var(--white); }
.badge-blue { background: var(--info); color: var(--white); }
.badge-gray { background: var(--bg-2); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }

/* ── Status Badges (Orders) ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pending { background: #fff8e1; color: #f39c12; }
.status-confirmed { background: #e8f5e9; color: #27ae60; }
.status-processing { background: #e3f2fd; color: #2196f3; }
.status-shipped { background: #f3e5f5; color: #9c27b0; }
.status-delivered { background: #e8f5e9; color: #27ae60; }
.status-cancelled { background: #ffebee; color: #e53935; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d2d44 50%, #1a1a2e 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ── Features Strip ── */
.features-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.features-strip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.feature-text p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* ── Category Grid ── */
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition-slow);
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.category-card:hover::before { opacity: 1; }

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

.category-card-content {
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.category-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition);
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  transition: color var(--transition);
}

.category-card:hover .category-name,
.category-card:hover .category-count {
  color: var(--white);
}

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-lg); }
.grid-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* ── Shop Layout ── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.sidebar-section {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.filter-option:hover { color: var(--primary); }

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Search Bar ── */
.search-bar {
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
  outline: none;
}

.search-bar-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* ── Table ── */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover td { background: var(--bg); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-xl);
}

.tab-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

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

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

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Alert / Info Boxes ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.alert-info { background: #e3f2fd; color: #1565c0; border-left: 3px solid #1565c0; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #2e7d32; }
.alert-warning { background: #fff8e1; color: #e65100; border-left: 3px solid #f57c00; }
.alert-danger { background: #ffebee; color: #b71c1c; border-left: 3px solid #b71c1c; }

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(-10px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

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

.modal-body { padding: var(--space-xl); }
.modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
}

.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}

.page-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

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

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

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

.empty-state h3 { margin-bottom: var(--space-sm); }

/* ── Loading Spinner ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Auth Page ── */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-logo img {
  height: 56px;
  margin: 0 auto var(--space-sm);
  object-fit: contain;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.auth-tab {
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* ── Cart ── */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--bg);
  padding: 4px;
}

.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-info .brand { font-size: 0.78rem; color: var(--text-muted); }

.qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  background: var(--white);
}

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

.qty-value {
  font-size: 1rem;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}

.cart-item-price {
  text-align: right;
}

.cart-item-price .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-price .remove-btn {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 6px;
  display: block;
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity var(--transition);
}

.cart-item-price .remove-btn:hover { opacity: 0.7; }

/* ── Order Summary Box ── */
.order-summary-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.order-summary-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
}

.order-summary-body { padding: var(--space-lg); }

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
}

.order-row.total {
  border-top: 2px solid var(--border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

/* ── Payment Instructions ── */
.payment-instructions {
  background: linear-gradient(135deg, #f8f9fc, #fff);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.payment-instructions h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.bank-detail-row:last-child { border-bottom: none; }
.bank-detail-label { color: var(--text-muted); font-weight: 500; }
.bank-detail-value { font-weight: 700; color: var(--primary); }

/* ── Footer ── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-brand .footer-logo img {
  height: 44px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.footer-brand .footer-logo span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── Utility ── */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.py-sm { padding: var(--space-sm) 0; }
.py-md { padding: var(--space-md) 0; }
.py-lg { padding: var(--space-lg) 0; }
.py-xl { padding: var(--space-xl) 0; }
.py-2xl { padding: var(--space-2xl) 0; }
.py-3xl { padding: var(--space-3xl) 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Animations ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease forwards; }
.slide-down { animation: slideDown 0.3s ease forwards; }

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: slideDown 0.3s ease;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--accent); }
.toast-info { border-left: 4px solid var(--info); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cats { grid-template-columns: repeat(4, 1fr); }
  .shop-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-actions .cart-btn { display: flex; }
  
  .mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    box-shadow: var(--shadow-md);
    z-index: 999;
    animation: slideDown 0.2s ease;
  }

  .mobile-menu.open { display: flex; }

  .mobile-menu .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    width: 100%;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-cats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero-stats { gap: var(--space-lg); }
  .hero h1 { font-size: 2rem; }
  .features-strip-grid { gap: var(--space-lg); justify-content: flex-start; }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-price { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .top-bar-left { display: none; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* VN-inspired HK storefront shell */
.store-contact{background:#18131f;color:#fff;font-size:.78rem;padding:7px 0}.store-contact .container,.store-contact div{display:flex;justify-content:space-between;gap:18px}.store-contact a{color:#fff}.store-main-head{background:#fff;padding:16px 0}.store-main-head>.container{display:grid;grid-template-columns:260px minmax(260px,1fr) auto;align-items:center;gap:24px}.store-logo{display:flex;align-items:center;gap:10px;font-family:var(--font-heading);font-size:1.15rem}.store-logo img{width:58px;height:58px;object-fit:contain}.store-logo strong{display:flex;flex-direction:column}.store-logo small,.store-head-actions small{font:500 .68rem var(--font-body);color:var(--text-muted)}.global-search{height:48px;border:2px solid #ede5f0;border-radius:24px;display:flex;align-items:center;overflow:hidden;background:#faf8fb}.global-search i{margin-left:18px;color:var(--accent)}.global-search input{border:0;outline:0;background:transparent;flex:1;padding:0 12px;min-width:0}.global-search button{background:var(--accent);color:#fff;height:100%;padding:0 24px;font-weight:700}.store-head-actions{display:flex;gap:20px}.store-head-actions a{display:flex;align-items:center;gap:8px;font-size:.8rem;font-weight:700}.store-head-actions i{font-size:1.25rem;color:var(--accent)}.store-head-actions span{display:flex;flex-direction:column}.store-category-nav{background:var(--accent);color:#fff}.store-category-nav .container{display:flex;align-items:center;gap:4px;overflow-x:auto}.store-category-nav a{padding:13px 16px;white-space:nowrap;font-size:.85rem;font-weight:650}.store-category-nav a:hover{background:rgba(0,0,0,.12)}.store-header .hamburger{display:none}.footer-disclaimer{grid-column:span 1}.footer-disclaimer p{font-size:.72rem;line-height:1.55;margin-bottom:12px}.policy-page{max-width:900px;margin:0 auto}.policy-page h2{font-size:1.25rem;margin:28px 0 8px}.policy-page ul{list-style:disc;padding-left:20px;color:var(--text-secondary)}.catalog-hero{background:linear-gradient(135deg,#211827,#4c2033);color:#fff;padding:38px 0}.catalog-hero h1{color:#fff}.brand-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}.brand-card{background:#fff;border:1px solid var(--border);padding:25px;border-radius:14px;transition:.2s}.brand-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}.variant-table{width:100%;border-collapse:separate;border-spacing:0 8px}.variant-table th{text-align:left;padding:8px 12px;font-size:.72rem;text-transform:uppercase;color:var(--text-muted)}.variant-table td{background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px 12px;vertical-align:middle}.variant-table td:first-child{border-left:1px solid var(--border);border-radius:10px 0 0 10px}.variant-table td:last-child{border-right:1px solid var(--border);border-radius:0 10px 10px 0}.variant-thumb{width:58px;height:58px;object-fit:contain}.variant-qty{width:72px;padding:8px;border:1px solid var(--border);border-radius:7px}.admin-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:11000;display:flex;align-items:center;justify-content:center;padding:20px}.admin-modal-card{background:#fff;width:min(920px,100%);max-height:92vh;overflow:auto;border-radius:16px;padding:24px}.admin-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.admin-form-grid .wide{grid-column:1/-1}
@media(max-width:1050px){.store-main-head>.container{grid-template-columns:220px 1fr}.store-head-actions{display:none}.store-category-nav{display:none}.store-header .hamburger{display:flex}.store-main-head>.container{position:relative}.store-header .hamburger{position:absolute;right:24px}.global-search{margin-right:55px}}
@media(max-width:700px){.store-contact .container,.store-contact div{justify-content:center}.store-contact .container>div:last-child{display:none}.store-main-head>.container{grid-template-columns:1fr;gap:12px}.store-logo{justify-content:center}.global-search{margin:0}.global-search button{padding:0 14px}.variant-table{display:block;overflow-x:auto}.admin-form-grid{grid-template-columns:1fr}.admin-form-grid .wide{grid-column:auto}.footer-grid{grid-template-columns:1fr}.footer-disclaimer{grid-column:auto}}

/* Branded VN-style storefront refinements */
.store-icon{width:1.1em;height:1.1em;display:inline-block;vertical-align:-.16em;flex:0 0 auto}
.store-header>.mobile-menu{display:none}
.nav-dropdown-item .store-icon,.filter-option .store-icon{color:var(--accent)}
.large-state-icon{width:74px;height:74px;margin:0 auto var(--space-lg);display:grid;place-items:center;border-radius:50%;background:var(--accent-light);color:var(--accent);font-size:2rem}
.empty-state-icon .store-icon{width:52px;height:52px}
.home-hero{padding:72px 0;background:radial-gradient(circle at 76% 30%,rgba(230,57,70,.22),transparent 30%),linear-gradient(135deg,#18131f 0%,#271927 55%,#411d2c 100%)}
.home-hero>.container{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:70px;align-items:center}
.home-hero .hero-content{max-width:720px}
.hero-trade-card{position:relative;background:rgba(255,255,255,.96);padding:32px;border-radius:22px;box-shadow:0 22px 70px rgba(0,0,0,.28);overflow:hidden}
.hero-trade-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--accent)}
.hero-trade-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;font-weight:800;color:var(--accent)}
.hero-trade-card h2{font-size:1.75rem;margin:10px 0 24px}
.hero-trade-list{display:grid;gap:14px}
.hero-trade-list>div{display:flex;align-items:center;gap:13px;padding:13px;background:#faf8fb;border:1px solid #eee7ef;border-radius:12px}
.hero-trade-list i{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--accent-light);color:var(--accent)}
.hero-trade-list span{display:flex;flex-direction:column}.hero-trade-list strong{font-size:.88rem}.hero-trade-list small{color:var(--text-muted);font-size:.72rem}
.hero-trade-link{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:var(--accent);font-size:.86rem;font-weight:800}
.category-icon{width:58px;height:58px;margin:0 auto 12px;display:grid;place-items:center;border-radius:16px;background:var(--accent-light);color:var(--accent);font-size:1.85rem;transition:.25s}
.category-icon .store-icon{width:30px;height:30px}.category-card:hover .category-icon{background:rgba(255,255,255,.16);color:#fff}
.product-card{border-radius:12px}.product-card-img{background:#fff;border-bottom:1px solid var(--border)}.product-card-footer{background:#faf9fb}
.product-breadcrumb{background:#f7f3f7;border-bottom:1px solid #ebe4ec;padding:13px 0;font-size:.78rem;color:var(--text-muted)}
.product-breadcrumb .container{display:flex;align-items:center;gap:9px}.product-breadcrumb i{font-size:.55rem}.product-breadcrumb span{color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-detail-section{padding:44px 0 70px}.product-detail-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(520px,1.15fr);gap:54px;align-items:start}
.product-gallery{position:sticky;top:20px}.product-main-image{position:relative;background:#fff;border:1px solid var(--border);border-radius:16px;padding:24px;min-height:520px;display:grid;place-items:center}
.product-main-image img{width:100%;height:460px;object-fit:contain}.product-gallery-label{position:absolute;left:16px;top:16px;background:var(--primary);color:#fff;padding:5px 10px;border-radius:20px;font-size:.67rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.product-thumbnails{display:flex;gap:10px;overflow:auto;margin-top:12px;padding-bottom:3px}.product-thumbnails button{background:#fff;border:1px solid var(--border);border-radius:9px;padding:5px;transition:.2s}.product-thumbnails button.active,.product-thumbnails button:hover{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-light)}
.product-buy-panel{background:#fff;border:1px solid var(--border);border-radius:16px;padding:30px}.product-brand-link{display:inline-block;color:var(--accent);font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.product-buy-panel h1{font-size:2.2rem;margin:8px 0 12px}
.product-meta{display:flex;gap:18px;flex-wrap:wrap;color:var(--text-muted);font-size:.76rem}.product-meta i{color:var(--success)}
.product-price-gate{display:flex;align-items:center;gap:13px;margin:24px 0;padding:16px;border:1px solid #f2dfe2;border-radius:12px;background:var(--accent-light);color:var(--accent)}.product-price-gate>.store-icon{width:24px;height:24px}.product-price-gate span{display:flex;flex:1;flex-direction:column}.product-price-gate strong{font-size:.88rem;color:var(--primary)}.product-price-gate small{color:var(--text-secondary);font-size:.74rem}
.product-price-gate.is-unlocked{background:#edf8f1;border-color:#c8ead4;color:var(--success)}.product-price-gate.is-pending{background:#fff8e5;border-color:#f1dfa5;color:#9a6b00}.product-price-gate .btn{flex:0 0 auto}
.product-order-heading{display:flex;justify-content:space-between;align-items:end;margin:26px 0 8px}.product-order-heading span,.product-description-card>span{color:var(--accent);font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.product-order-heading h2{font-size:1.35rem}.product-order-heading small{color:var(--text-muted);font-size:.72rem}
.variant-list{display:grid;gap:10px}.variant-order-card{display:grid;grid-template-columns:64px minmax(145px,1fr) minmax(145px,.8fr) minmax(135px,.75fr);gap:13px;align-items:center;padding:13px;border:1px solid var(--border);border-radius:12px;background:#fff;transition:.2s}.variant-order-card:hover{border-color:#d2c4d3;box-shadow:0 7px 20px rgba(29,25,34,.06)}.variant-order-card.is-unavailable{background:#f8f8f9;opacity:.72}.variant-order-image{width:64px;height:64px;object-fit:contain;border:1px solid var(--border);border-radius:9px;background:#fff}.variant-order-info,.variant-order-quantity,.variant-order-action,.variant-order-locked{display:flex;flex-direction:column}.variant-order-info{gap:3px}.variant-order-info>strong{font-size:.82rem;line-height:1.25}.variant-order-info small,.variant-order-quantity small{font-size:.65rem;color:var(--text-muted)}.variant-stock{font-size:.66rem;font-weight:700;color:var(--success);margin-top:3px}.variant-stock.out{color:var(--danger)}.variant-order-quantity{gap:5px}.variant-order-quantity label{font-size:.65rem;font-weight:700;color:var(--text-secondary)}.product-qty-control{display:grid;grid-template-columns:34px 55px 34px;width:max-content;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}.product-qty-control button{height:34px;background:#f5f2f6;color:var(--primary);font-size:1.05rem;font-weight:700}.product-qty-control button:hover:not(:disabled){background:var(--accent-light);color:var(--accent)}.product-qty-control input{width:55px;border:0;border-left:1px solid var(--border);border-right:1px solid var(--border);text-align:center;font-weight:700;outline:0;-moz-appearance:textfield}.product-qty-control input::-webkit-outer-spin-button,.product-qty-control input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.variant-order-action{align-items:flex-end;gap:4px}.variant-unit-price{font-size:.72rem;color:var(--text-muted)}.variant-unit-price small{font-size:.62rem}.variant-order-action>strong{font-size:1rem;color:var(--primary)}.variant-order-action .btn{margin-top:4px}.variant-order-locked{align-items:center;gap:5px;color:var(--text-muted);font-size:.72rem;font-weight:700}.variant-order-locked i{color:var(--accent)}
.variant-table-wrap{overflow-x:auto}.variant-table{min-width:650px}.variant-table td{background:#faf9fb}.variant-table strong{font-size:.82rem}.variant-table small{color:var(--text-muted);font-size:.67rem}
.product-service-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.product-service-grid>div{display:flex;gap:10px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:10px}.product-service-grid i{color:var(--accent)}.product-service-grid span{display:flex;flex-direction:column}.product-service-grid strong{font-size:.78rem}.product-service-grid small{font-size:.67rem;color:var(--text-muted)}
.product-description-card{margin-top:34px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:30px;box-shadow:0 8px 24px rgba(30,36,48,.04)}
.product-description-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid #edf0f3}
.product-description-card h2{font-size:1.45rem;margin:5px 0 0}.product-description-card span:first-child,.product-description-head span:first-child{color:var(--accent);font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.product-description-contact{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border:1px solid #dfe3e8;border-radius:8px;background:#fafbfc;color:#32394a;font-size:.72rem;font-weight:800;white-space:nowrap}.product-description-contact:hover{border-color:var(--accent);color:var(--accent);background:#fff}
.product-description-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;padding-top:22px;align-items:start}
.product-description-copy{display:grid;gap:14px;color:#3f4756;line-height:1.78;font-size:.95rem}
.product-description-copy p{margin:0;max-width:880px}.product-description-copy .product-description-lead{font-size:1.04rem;color:#1f2633;font-weight:600;line-height:1.68;padding:18px 20px;border-left:4px solid var(--accent);background:#fbf7f8;border-radius:0 10px 10px 0}
.product-description-summary{border:1px solid #e5e8ed;border-radius:12px;background:#fafbfc;padding:16px;position:sticky;top:20px}
.product-summary-title{display:flex;align-items:center;gap:9px;margin-bottom:12px;color:var(--primary);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.product-summary-title i{color:var(--accent)}
.product-spec-grid{display:grid;grid-template-columns:1fr;gap:8px}
.product-spec-item{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:1px 10px;align-items:center;padding:11px;border:1px solid #e7e9ee;border-radius:9px;background:#fff}.product-spec-item i{grid-row:1/3;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:var(--accent-light);color:var(--accent);font-size:.9rem}.product-spec-item span{font-size:.62rem!important;letter-spacing:.08em!important;text-transform:uppercase;color:#7a8494!important;font-weight:800!important}.product-spec-item strong{font-size:.82rem;color:#202737;line-height:1.25}
.product-tag-cloud{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px;padding-top:14px;border-top:1px solid #e5e8ed}.product-tag-cloud span{display:inline-flex!important;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #e1e5ea;color:#555f70!important;font-size:.66rem!important;font-weight:800!important;letter-spacing:0!important;text-transform:none!important}
.contact-page-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2xl)}
.not-found-page{background:#f7f8fa;min-height:62vh}.not-found-hero{padding:62px 0 78px}.not-found-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:42px;align-items:center}.not-found-copy{max-width:720px}.not-found-copy h1{font-size:clamp(2.2rem,5vw,4.2rem);line-height:1.03;margin:8px 0 14px;color:var(--primary)}.not-found-copy p{font-size:1.02rem;color:#596274;max-width:620px}.not-found-search{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:0;margin:26px 0 20px;max-width:650px;background:#fff;border:1px solid #dfe3e8;border-radius:11px;padding:6px;box-shadow:0 8px 24px rgba(30,36,48,.05)}.not-found-search i{color:#7c8595;text-align:center}.not-found-search input{min-width:0;border:0;outline:0;height:42px;background:transparent;font-size:.95rem}.not-found-actions{display:flex;flex-wrap:wrap;gap:10px}.not-found-actions .btn{min-height:42px}.not-found-panel{background:#fff;border:1px solid var(--border);border-radius:16px;padding:26px;box-shadow:0 12px 34px rgba(30,36,48,.08)}.not-found-panel img{width:86px;height:70px;object-fit:contain;margin-bottom:14px}.not-found-panel h2{font-size:1.25rem;margin-bottom:8px}.not-found-panel p{font-size:.86rem;color:var(--text-muted);margin-bottom:18px}.not-found-panel a{display:flex;align-items:center;gap:9px;padding:11px 0;border-top:1px solid #edf0f3;color:#32394a;font-size:.86rem;font-weight:700}.not-found-panel a:hover{color:var(--accent)}.not-found-panel i{color:var(--accent);width:18px}
@media(max-width:1000px){.home-hero>.container{grid-template-columns:1fr}.hero-trade-card{display:none}.product-detail-grid{grid-template-columns:1fr}.product-gallery{position:static}.product-main-image{min-height:380px}.product-main-image img{height:350px}}
@media(max-width:900px){.product-description-layout{grid-template-columns:1fr}.product-description-summary{position:static}.product-spec-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.home-hero{padding:48px 0}.product-detail-section{padding:24px 0 50px}.product-buy-panel{padding:18px}.product-buy-panel h1{font-size:1.75rem}.product-service-grid,.contact-page-grid{grid-template-columns:1fr}.product-main-image{min-height:320px}.product-main-image img{height:290px}.product-price-gate{align-items:flex-start;flex-wrap:wrap}.product-price-gate span{min-width:calc(100% - 42px)}.product-price-gate .btn{margin-left:37px}.product-order-heading{align-items:flex-start;gap:8px}.product-order-heading small{text-align:right}.variant-order-card{grid-template-columns:58px 1fr;gap:10px;padding:12px}.variant-order-image{width:58px;height:58px}.variant-order-quantity{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}.variant-order-quantity label{display:none}.variant-order-quantity small{grid-column:1}.product-qty-control{grid-column:2;grid-row:1/3}.variant-order-action{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;padding-top:10px;border-top:1px solid var(--border)}.variant-unit-price{grid-column:1}.variant-order-action>strong{grid-column:1}.variant-order-action .btn{grid-column:2;grid-row:1/3;margin:0}.variant-order-locked{grid-column:1/-1;flex-direction:row;justify-content:center;padding:10px;background:#f7f4f7;border-radius:8px}}
@media(max-width:700px){.product-description-card{padding:18px;border-radius:12px}.product-description-head{flex-direction:column;gap:12px}.product-description-contact{width:100%;justify-content:center}.product-description-layout{gap:18px}.product-description-copy{font-size:.9rem;line-height:1.7}.product-description-copy .product-description-lead{font-size:.95rem;padding:14px 15px}.product-spec-grid{grid-template-columns:1fr}.product-tag-cloud span{max-width:100%}}
@media(max-width:800px){.not-found-hero{padding:38px 0 52px}.not-found-layout{grid-template-columns:1fr;gap:24px}.not-found-search{grid-template-columns:38px 1fr}.not-found-search button{grid-column:1/-1;width:100%;margin-top:4px}.not-found-actions{flex-direction:column}.not-found-actions .btn{width:100%;justify-content:center}.not-found-panel{padding:20px}}

/* Light professional wholesale storefront */
body{background:#f7f8fa}
.store-header{background:#fff;border-bottom:1px solid #e7e9ee}
.store-contact{background:#f3f5f8;color:#465064;border-bottom:1px solid #e7e9ee;padding:8px 0}
.store-contact a{color:#465064}.store-contact a:hover{color:var(--accent)}
.store-main-head{padding:13px 0;border-bottom:1px solid #edf0f3}
.store-main-head>.container{grid-template-columns:245px minmax(280px,1fr) auto}
.store-logo{font-size:1.18rem;color:var(--primary)}.store-logo-image{display:grid;place-items:center;width:58px;height:48px;overflow:hidden;flex:0 0 auto}.store-logo-image img{width:100%;height:100%;object-fit:contain}.store-logo small{letter-spacing:.11em;text-transform:uppercase}
.footer-logo-image{display:grid;place-items:center;width:62px;height:50px;padding:5px 7px;border-radius:8px;background:#fff;overflow:hidden;flex:0 0 auto}.footer-logo-image img{width:100%;height:100%;object-fit:contain;filter:none!important}
.global-search{height:46px;border:1px solid #dfe3e8;border-radius:9px;background:#f8f9fb;box-shadow:none}.global-search:focus-within{background:#fff;border-color:#aeb5c0;box-shadow:0 0 0 3px rgba(26,26,46,.06)}.global-search button{background:var(--primary);padding:0 21px}.global-search i{color:#7c8595}
.store-head-actions{gap:17px}.store-head-actions a{padding:7px 0;color:#32394a}.store-head-actions i{color:var(--accent);font-size:1.1rem}
.store-category-nav{background:#fff;color:#32394a;border-bottom:1px solid #e7e9ee;box-shadow:0 2px 8px rgba(25,31,44,.03)}
.store-category-nav .container{gap:2px}.store-category-nav a{padding:12px 15px;font-weight:600}.store-category-nav a:first-child{color:var(--accent)}.store-category-nav a:hover{background:#f4f5f7;color:var(--accent)}
.home-hero{padding:38px 0 0;background:linear-gradient(120deg,#fff 0%,#fff 52%,#f0f2f6 100%);color:var(--text-primary);border-bottom:1px solid #e7e9ee}
.home-hero:before{display:none}.home-hero>.container{grid-template-columns:minmax(0,.9fr) minmax(460px,1.1fr);gap:35px;min-height:480px}
.home-hero .hero-content{padding:35px 0 48px;max-width:650px}.home-hero .hero-badge{background:#f4f5f7;border:1px solid #e2e5e9;color:var(--accent);backdrop-filter:none;margin-bottom:18px}
.home-hero h1{color:var(--primary);font-size:clamp(2.8rem,5vw,4.7rem);letter-spacing:-.045em;line-height:1.02;margin-bottom:18px}.home-hero h1 span{color:var(--accent)}
.home-hero p{color:#596274;font-size:1.05rem;max-width:590px;margin-bottom:25px}.home-hero .btn-outline{background:#fff;border-color:#cfd4dc}.home-hero .btn-outline:hover{border-color:var(--primary)}
.home-hero .hero-stats{margin-top:34px;padding-top:20px;border-top:1px solid #e4e7eb;gap:32px}.home-hero .hero-stat-value{color:var(--primary);font-size:1.4rem}.home-hero .hero-stat-label{color:#7d8696;font-size:.7rem;max-width:100px}
.hero-product-stage{height:100%;min-height:480px;position:relative;display:grid;place-items:center;overflow:hidden}
.hero-product-glow{position:absolute;width:430px;height:430px;border-radius:50%;background:radial-gradient(circle,#fff 0%,#e5e8ed 58%,transparent 72%)}
.hero-product-stage>img{position:relative;z-index:1;width:88%;height:420px;object-fit:contain;filter:drop-shadow(0 28px 28px rgba(28,34,46,.2))}
.hero-product-note{position:absolute;z-index:2;right:15px;bottom:30px;width:245px;padding:15px;background:rgba(255,255,255,.94);border:1px solid #dfe3e8;border-radius:12px;box-shadow:0 12px 35px rgba(27,32,43,.12);display:flex;flex-direction:column}.hero-product-note span{font-size:.62rem;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-weight:800}.hero-product-note strong{font-size:.8rem;line-height:1.35;margin:4px 0 9px}.hero-product-note a{font-size:.7rem;color:#606a7b;font-weight:700}
.features-strip{padding:0;background:#fff;border-top:0}.features-strip-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:0}.feature-item{padding:20px 18px;border-right:1px solid #e8eaee}.feature-item:last-child{border-right:0}.feature-icon{background:#f4f5f7;color:var(--accent);border-radius:8px}.feature-text p{font-size:.82rem}.feature-text span{font-size:.68rem}
.section-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-toolbar h2{font-size:1.8rem;margin-top:2px}.section-link{color:var(--accent);font-weight:700;font-size:.8rem;white-space:nowrap}
.home-categories-section{padding:48px 0 34px;background:#fff}.home-categories-section .grid-cats{grid-template-columns:repeat(8,1fr);gap:10px}.home-categories-section .category-card{padding:17px 8px;border-radius:10px;background:#fafbfc}.home-categories-section .category-icon{width:44px;height:44px;border-radius:10px;margin-bottom:8px;font-size:1.3rem}.home-categories-section .category-icon .store-icon{width:23px;height:23px}.home-categories-section .category-name{font-size:.75rem}.home-categories-section .category-count{font-size:.65rem}
.home-products-section{background:#f4f5f7;padding:52px 0 60px}.home-products-section .grid-4{gap:16px}.home-products-section .product-card{border-radius:11px;box-shadow:0 4px 14px rgba(30,36,48,.04)}.home-products-section .product-card-img{aspect-ratio:1.1;background:#fff}.home-products-section .product-card-body{padding:13px 14px}.home-products-section .product-card-footer{padding:10px 14px 13px}
.catalog-hero{background:linear-gradient(135deg,#1a1a2e,#33384a);padding:34px 0}.sidebar{border-radius:11px}.product-card{box-shadow:0 2px 8px rgba(30,36,48,.035)}.product-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(30,36,48,.1)}
@media(max-width:1150px){.home-categories-section .grid-cats{grid-template-columns:repeat(4,1fr)}.features-strip-grid{grid-template-columns:repeat(3,1fr)}.feature-item{border-bottom:1px solid #e8eaee}}
@media(max-width:1000px){.home-hero>.container{grid-template-columns:1fr}.hero-product-stage{min-height:350px}.hero-product-stage>img{height:320px}.home-hero .hero-content{padding-bottom:10px}.store-main-head>.container{grid-template-columns:220px 1fr}}
@media(max-width:1050px){.store-header>.mobile-menu.open{display:flex;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #e7e9ee;padding:14px 24px;flex-direction:column;gap:4px;box-shadow:0 10px 24px rgba(25,31,44,.1);z-index:1000}.store-header>.mobile-menu a{padding:10px 12px;border-radius:7px;font-size:.85rem;font-weight:650;color:#32394a}.store-header>.mobile-menu a:hover{background:#f4f5f7;color:var(--accent)}.store-header{position:relative;z-index:1000}}
@media(max-width:700px){.home-hero{padding-top:10px}.home-hero h1{font-size:2.65rem}.hero-product-stage{min-height:280px}.hero-product-stage>img{height:260px}.hero-product-note{right:0;bottom:12px;width:210px}.features-strip-grid{grid-template-columns:1fr 1fr}.feature-item{padding:15px 10px}.home-categories-section .grid-cats{grid-template-columns:repeat(2,1fr)}.section-toolbar{align-items:flex-start}.section-toolbar h2{font-size:1.45rem}.home-products-section .grid-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.home-products-section .grid-4{grid-template-columns:1fr}.home-hero .hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:15px}.features-strip-grid{grid-template-columns:1fr}}

@media (max-width: 480px) {
  :root { --space-lg: 16px; --space-xl: 24px; }
  .container { padding: 0 var(--space-md); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .auth-card { padding: var(--space-xl) var(--space-lg); }
}

/* ── Auth Page ────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg) 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl);
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-logo img {
  width: 70px;
  height: auto;
  margin: 0 auto var(--space-sm);
  object-fit: contain;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-xl);
  gap: 2px;
}

.auth-tab {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.auth-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ── Payment / Bank Details ───────────────────────────── */
.payment-instructions {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.payment-instructions h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.bank-detail-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.bank-detail-row:last-child { border-bottom: none; }

.bank-detail-label {
  font-weight: 600;
  color: var(--text-secondary);
  width: 120px;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.bank-detail-value {
  font-weight: 600;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}

/* ── Order Summary Box ────────────────────────────────── */
.order-summary-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.order-summary-header {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.order-summary-body { padding: var(--space-lg); }

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.order-row:last-child { border-bottom: none; }

.order-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  margin-top: 4px;
  padding-top: 12px;
}

/* ── Cart Item ────────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cart-item-info .brand {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

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

.qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
}

.cart-item-price {
  text-align: right;
}

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

.remove-btn {
  font-size: 0.78rem;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.remove-btn:hover { opacity: 0.7; }

/* ── Contact Info Cards ────────────────────────────────── */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.contact-info-card h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ── Account / Admin Pages ─────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.account-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

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

.account-nav-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

/* ── Admin Table ──────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: var(--bg); }

/* ── Stats Cards (Admin) ──────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.stat-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
}

.stat-card-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

/* ── Alerts ───────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.alert-danger {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.alert-warning {
  background: #fff8e1;
  color: #e65100;
  border: 1px solid #ffcc80;
}

.alert-info {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
}

/* ── Toasts ───────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: all;
  animation: slideInRight 0.3s ease;
  min-width: 240px;
  max-width: 380px;
  border: 1px solid var(--border);
}

.toast-success {
  border-left: 4px solid var(--success);
  color: var(--text-primary);
}

.toast-error {
  border-left: 4px solid var(--accent);
  color: var(--text-primary);
}

.toast-info {
  border-left: 4px solid var(--info);
  color: var(--text-primary);
}

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

/* ── Empty States ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.4;
}

/* Admin workspace */
.admin-page{background:#f4f6f8}.admin-shell{min-height:100vh;padding:30px 0 60px}.admin-header{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:25px}.admin-header h1{font-size:2rem;margin:2px 0 5px}.admin-header p,.admin-panel-heading p,.admin-form-section-title p,.admin-modal-head p{color:var(--text-muted);font-size:.82rem}.admin-header-actions{display:flex;align-items:center;gap:14px}.admin-save-state{font-size:.72rem;color:var(--success);font-weight:700}.admin-save-state.busy{color:var(--text-muted)}.admin-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}.admin-sidebar{position:sticky;top:20px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px;box-shadow:0 5px 18px rgba(24,32,45,.04)}.admin-nav{display:grid;gap:4px}.admin-nav .account-nav-item{display:flex;align-items:center;gap:11px;padding:11px;border-radius:9px}.admin-nav .account-nav-item>span:last-child{display:flex;flex-direction:column;gap:1px;font-weight:700}.admin-nav .account-nav-item small{font-size:.62rem;color:var(--text-muted);font-weight:500}.admin-nav-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#f3f5f7}.admin-nav-icon .store-icon{width:17px;height:17px}.admin-content{min-width:0}.admin-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.admin-panel-heading h2{font-size:1.35rem;margin-bottom:3px}.stats-grid{grid-template-columns:repeat(5,minmax(135px,1fr));gap:12px}.stats-grid .stat-card{display:flex;flex-direction:column;text-align:left;cursor:pointer;padding:18px;border-radius:12px}.stats-grid .stat-card:hover{border-color:#c4cad2;box-shadow:0 8px 20px rgba(26,32,44,.06)}.stat-card-icon .store-icon{width:20px;height:20px}.stats-grid .stat-card-label{font-size:.64rem;min-height:28px}.stats-grid .stat-card-value{font-size:1.45rem}.admin-quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.admin-quick-card{display:flex;align-items:center;gap:13px;text-align:left;background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;transition:.2s}.admin-quick-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.admin-quick-card>span[data-icon] .store-icon{width:25px;height:25px;color:var(--accent)}.admin-quick-card span{display:flex;flex-direction:column;gap:3px}.admin-quick-card strong{font-size:.8rem}.admin-quick-card small{font-size:.65rem;color:var(--text-muted)}.admin-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 180px;gap:10px;margin-bottom:12px}.admin-table-wrap{overflow:auto}.admin-table-wrap>.admin-table{min-width:740px}.admin-product-cell{display:flex;align-items:center;gap:11px;min-width:220px}.admin-product-cell img,.admin-product-cell>span{width:44px;height:44px;border-radius:8px;border:1px solid var(--border);background:#fff;object-fit:contain;display:grid;place-items:center;flex:0 0 auto}.admin-product-cell .store-icon{width:20px}.admin-product-cell div,.table-subtext{display:flex;flex-direction:column}.admin-product-cell small,.table-subtext{color:var(--text-muted);font-size:.68rem;margin-top:2px}.admin-actions{display:flex;gap:6px}.status-pill{display:inline-flex;padding:5px 9px;border-radius:20px;font-size:.67rem;font-weight:800;white-space:nowrap}.status-pill.active{color:#15733b;background:#e7f7ed}.status-pill.archived{color:#697386;background:#eef0f3}.status-pill.pending{color:#956400;background:#fff4d6}.status-select{min-width:150px;padding:8px 10px;font-size:.75rem}.admin-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}.admin-manage-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:13px}.admin-manage-card img,.admin-manage-icon{width:58px;height:58px;object-fit:contain;border:1px solid var(--border);border-radius:10px;background:#fafbfc;display:grid;place-items:center}.admin-manage-icon .store-icon{width:25px}.admin-manage-card h3{font-size:1rem}.admin-manage-card p{font-size:.68rem;color:var(--text-muted);margin-top:3px}.admin-manage-card .btn{align-self:flex-start}.admin-loading{padding:35px;text-align:center;color:var(--text-muted);font-size:.82rem}.field-help{display:block;color:var(--text-muted);font-size:.65rem;font-weight:500;margin:2px 0 6px}.admin-form-stack{display:grid;gap:15px;margin-top:20px}.admin-form-stack label,.admin-form-grid label,.variant-editor-grid label{font-size:.75rem;font-weight:700;color:var(--text-secondary)}.admin-modal-card{padding:0}.admin-modal-small{width:min(560px,100%)}.admin-product-modal{width:min(1050px,100%)}.admin-modal-head{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--border);padding:21px 24px;display:flex;justify-content:space-between;gap:15px}.admin-modal-head h2{font-size:1.4rem;margin:2px 0}.admin-close{width:36px;height:36px;border:1px solid var(--border);border-radius:8px;background:#fff;display:grid;place-items:center;flex:0 0 auto}.admin-close .store-icon{width:17px}.admin-modal-small .admin-form-stack{padding:0 24px 24px}.admin-form-section{padding:24px;border-bottom:1px solid var(--border)}.admin-form-section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.admin-form-section-title>span{width:28px;height:28px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:.75rem;font-weight:800;flex:0 0 auto}.admin-form-section-title h3{font-size:1rem}.admin-form-section-title.with-action>div{flex:1}.checkbox-field{display:flex!important;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--border);border-radius:9px;background:#fafbfc}.checkbox-field input{width:17px;height:17px}.checkbox-field span{display:flex;flex-direction:column}.checkbox-field small{color:var(--text-muted);font-size:.65rem;margin-top:2px}.admin-upload input{position:absolute;opacity:0;pointer-events:none}.admin-upload>span{border:1px dashed #bfc6cf;border-radius:10px;padding:22px;display:flex;align-items:center;gap:10px;background:#fafbfc;cursor:pointer}.admin-upload>span:hover{border-color:var(--accent);background:var(--accent-light)}.admin-upload .store-icon{width:24px;color:var(--accent)}.admin-upload strong,.admin-upload small{display:block}.admin-upload small{font-size:.65rem;color:var(--text-muted);font-weight:500}.variant-editor{display:grid;gap:13px}.variant-editor-row{border:1px solid var(--border);border-radius:11px;background:#fafbfc;padding:14px}.variant-editor-head{display:flex;align-items:center;gap:9px;margin-bottom:12px}.variant-number{width:30px;height:30px;background:#fff;border:1px solid var(--border);border-radius:8px;display:grid;place-items:center;color:var(--accent)}.variant-number .store-icon{width:16px}.variant-title{flex:1;font-size:.82rem}.variant-editor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.variant-editor-grid .span-2{grid-column:span 2}.variant-editor-grid .form-input{padding:9px 10px;font-size:.75rem}.admin-modal-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--border);padding:15px 24px;display:flex;justify-content:flex-end;gap:8px;z-index:5}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(3,1fr)}.admin-quick-grid{grid-template-columns:1fr}.variant-editor-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.admin-shell{padding-top:18px}.admin-header,.admin-header-actions{align-items:flex-start}.admin-header{flex-direction:column}.admin-save-state{display:none}.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:static;overflow:auto}.admin-nav{display:flex;min-width:max-content}.admin-nav .account-nav-item small{display:none}.admin-nav .account-nav-item{padding:8px}.admin-content{width:100%}.stats-grid{grid-template-columns:repeat(2,1fr)}.admin-toolbar{grid-template-columns:1fr}.admin-panel-heading{align-items:flex-start}.admin-form-section{padding:18px}.admin-form-section-title.with-action{flex-wrap:wrap}.admin-form-section-title.with-action .btn{margin-left:40px}.variant-editor-grid{grid-template-columns:1fr}.variant-editor-grid .span-2{grid-column:auto}.admin-modal{padding:0}.admin-modal-card{width:100%;max-height:100vh;border-radius:0}.admin-modal-footer{padding:12px 18px}}

/* Modern storefront loading */
#site-loading-bar{position:fixed;top:0;left:0;z-index:12000;width:100%;height:3px;pointer-events:none;opacity:0;overflow:hidden;background:transparent;transition:opacity .2s ease}
#site-loading-bar::before{content:'';position:absolute;inset:0 auto 0 0;width:42%;background:linear-gradient(90deg,var(--accent),#ffb703,var(--accent));border-radius:0 999px 999px 0;box-shadow:0 0 18px rgba(230,57,70,.35);transform:translateX(-105%)}
#site-loading-bar.is-visible{opacity:1}
#site-loading-bar.is-visible::before{animation:siteLoadSweep 1.05s ease-in-out infinite}
#site-loading-bar.is-complete::before{animation:siteLoadFinish .34s ease-out forwards}
@keyframes siteLoadSweep{0%{transform:translateX(-105%);width:34%}55%{width:58%}100%{transform:translateX(245%);width:34%}}
@keyframes siteLoadFinish{from{transform:translateX(0);width:72%}to{transform:translateX(145%);width:100%}}
.loading-center{min-height:180px;color:var(--text-muted)}
.spinner{width:46px;height:4px;border:0;border-radius:999px;background:linear-gradient(90deg,rgba(230,57,70,.14),var(--accent),rgba(230,57,70,.14));animation:inlineLoadPulse 1.1s ease-in-out infinite}
@keyframes inlineLoadPulse{0%,100%{opacity:.45;transform:scaleX(.72)}50%{opacity:1;transform:scaleX(1)}}
.skeleton-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-lg);width:100%}
.grid-3 .skeleton-grid,.shop-layout .skeleton-grid{grid-template-columns:repeat(3,1fr)}
.skeleton-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;min-height:320px}
.skeleton-card::before,.skeleton-line,.skeleton-chip,.skeleton-image{background:linear-gradient(90deg,#eef1f5 0%,#f8f9fc 44%,#e7ebf0 72%,#eef1f5 100%);background-size:220% 100%;animation:skeletonShimmer 1.25s ease-in-out infinite}
.skeleton-image{aspect-ratio:1;border-bottom:1px solid var(--border)}
.skeleton-body{padding:16px;display:grid;gap:10px}
.skeleton-line{height:11px;border-radius:999px}
.skeleton-line.short{width:42%}.skeleton-line.medium{width:68%}.skeleton-line.long{width:88%}
.skeleton-chip{width:112px;height:28px;border-radius:var(--radius-sm);margin-top:8px}
.category-skeleton{min-height:140px;padding:22px}
.category-skeleton .skeleton-chip{width:44px;height:44px;border-radius:var(--radius-md);margin:0 auto 16px}
.brand-skeleton{min-height:155px}
.product-detail-skeleton{display:grid;grid-template-columns:minmax(280px,.9fr) 1.1fr;gap:var(--space-2xl);width:min(1180px,calc(100vw - 40px));margin:var(--space-2xl) auto}
.product-detail-skeleton .skeleton-card{min-height:460px}
.product-detail-skeleton .skeleton-panel{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-xl)}
@keyframes skeletonShimmer{0%{background-position:120% 0}100%{background-position:-120% 0}}
@media(max-width:900px){.skeleton-grid,.grid-3 .skeleton-grid,.shop-layout .skeleton-grid{grid-template-columns:repeat(2,1fr)}.product-detail-skeleton{grid-template-columns:1fr}}
@media(max-width:560px){.skeleton-grid,.grid-3 .skeleton-grid,.shop-layout .skeleton-grid{grid-template-columns:1fr}}

/* ── Pagination ───────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  padding: 0 10px;
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Filter Options ───────────────────────────────────── */
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.filter-option:hover { color: var(--primary); }

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.filter-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Loading ──────────────────────────────────────────── */
.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Utility Classes ─────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.w-full { width: 100%; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.py-3xl { padding: var(--space-3xl) 0; }
.gap-md { gap: var(--space-md); }

/* ── Admin Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-price { grid-column: 1/-1; display: flex; justify-content: space-between; }
}

/* Final loading overrides */
.spinner{width:46px;height:4px;border:0;border-radius:999px;background:linear-gradient(90deg,rgba(230,57,70,.14),var(--accent),rgba(230,57,70,.14));animation:inlineLoadPulse 1.1s ease-in-out infinite}
.loading-center{min-height:180px;color:var(--text-muted)}

/* Mobile storefront cleanup */
@media (max-width: 700px) {
  .store-main-head > .container {
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .store-logo {
    justify-content: center;
    padding-right: 48px;
  }

  .store-header .hamburger {
    top: 8px;
    right: 16px;
  }

  .global-search {
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0 !important;
  }

  .global-search i {
    margin-left: 12px;
  }

  .global-search input {
    min-width: 0;
    font-size: 0.82rem;
  }

  .global-search button {
    flex: 0 0 auto;
    padding: 0 14px;
    min-width: 74px;
  }

  #cart-content > div,
  #checkout-content > div {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  #cart-content .order-summary-box,
  #checkout-content .order-summary-box {
    position: static !important;
    width: 100%;
    max-width: none;
  }

  #checkout-content [style*="grid-template-columns:1fr 1fr 120px"] {
    grid-template-columns: 1fr !important;
  }

  .bank-detail-row {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .bank-detail-row .btn {
    margin-left: 0 !important;
  }
}

@media (max-width: 420px) {
  .store-contact .container div {
    gap: 8px;
    flex-wrap: wrap;
  }

  .store-contact span {
    display: none;
  }

  .home-hero h1 {
    font-size: 2.25rem;
  }
}
