/* ── Vikrey – Bold & Professional Theme ─────────────────────────────────────── */
:root {
  /* Palette — raw colors */
  --green-50:  #f0fdf4;  --green-100: #dcfce7;  --green-200: #bbf7d0;
  --green-400: #4ade80;  --green-500: #22c55e;  --green-600: #16a34a;
  --green-700: #15803d;  --green-800: #166534;
  --orange-50:  #fff7ed; --orange-100: #ffedd5;  --orange-200: #fed7aa;
  --orange-400: #fb923c; --orange-500: #f97316;  --orange-600: #ea580c;
  --amber-50:  #fffbeb;  --amber-100: #fef3c7;  --amber-400: #fbbf24;
  --amber-500: #f59e0b;  --amber-600: #d97706;
  --red-50:    #fef2f2;  --red-500:   #ef4444;
  --blue-50:   #eff6ff;  --blue-100:  #dbeafe;  --blue-600:  #2563eb;
  --gray-50:   #f9fafb;  --gray-100:  #f3f4f6;  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;  --gray-400:  #9ca3af;  --gray-500:  #6b7280;
  --gray-600:  #4b5563;  --gray-700:  #374151;  --gray-800:  #1f2937;
  --gray-900:  #111827;
  --white:     #ffffff;

  /* Brand tokens */
  --vikrey-red:       #D94B2B;
  --vikrey-red-dark:  #B83B20;
  --vikrey-red-light: #E8644A;
  --vikrey-red-bg:    #fdf2ef;
  --vikrey-red-tint:  #fbe5df;
  --charcoal:         #1C1C1E;

  /* Semantic tokens — the real design system */
  --primary:       #D94B2B;          /* CTA buttons, important actions */
  --primary-light: #E8644A;
  --primary-dark:  #B83B20;
  --secondary:       #1e293b;        /* Navbar, headers, sidebars — professional slate */
  --secondary-light: #334155;
  --secondary-dark:  #0f172a;
  --accent:        #f59e0b;          /* Highlights, badges, ratings, secondary CTAs — warm amber */
  --accent-light:  #fbbf24;
  --accent-dark:   #d97706;
  --accent-bg:     #fffbeb;          /* Light amber background */
  --accent-tint:   #fef3c7;          /* Medium amber tint */

  /* Elevation */
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.08), 0 10px 10px rgba(0,0,0,.03);

  /* Shape & motion */
  --radius:    .5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: .2s ease;
}

*,::before,::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; } h4 { font-size: 1.25rem; }
p { color: var(--gray-600); }

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.grid-2  { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1.5rem; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 1rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1  { margin-top: .25rem; } .mt-2  { margin-top: .5rem; }
.mt-4  { margin-top: 1rem;   } .mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem;   } .mt-12 { margin-top: 3rem; }
.mb-2  { margin-bottom:.5rem; }.mb-4  { margin-bottom:1rem; }
.mb-6  { margin-bottom:1.5rem;}.mb-8  { margin-bottom:2rem; }
.py-4  { padding: 1rem 0;    } .py-8  { padding: 2rem 0; }
.py-12 { padding: 3rem 0;    } .py-16 { padding: 4rem 0; }
.px-4  { padding: 0 1rem;    } .px-6  { padding: 0 1.5rem; }
.gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.text-sm { font-size: .875rem; } .text-xs { font-size: .75rem; }
.text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-gray    { color: var(--gray-500); }
.text-red     { color: var(--red-500); }
.text-white   { color: var(--white); }
.line-through { text-decoration: line-through; }
.rounded   { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.hidden   { display: none; }
.relative { position: relative; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.25rem; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; border: none;
  transition: all var(--transition); cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--secondary); color: var(--white);
}
.btn-secondary:hover { background: var(--secondary-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--accent); color: var(--white);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent; color: var(--secondary);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--secondary); color: var(--secondary); }

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

.btn-outline-accent {
  background: transparent; color: var(--accent-dark);
  border: 2px solid var(--accent);
}
.btn-outline-accent:hover { background: var(--accent-bg); }

.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); }

.btn-sm { padding: .375rem .875rem; font-size: .8125rem; }
.btn-lg { padding: .875rem 2rem; font-size: 1.0625rem; }
.btn-danger { background: var(--red-500); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

/* ── Form Elements ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; color: var(--gray-700); }
.input, .form-control, select, textarea {
  width: 100%; padding: .625rem .875rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: .9375rem; color: var(--gray-800); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.input:focus, .form-control:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217,75,43,.1);
}
textarea { resize: vertical; min-height: 100px; }
select { cursor: pointer; }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200); }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert {
  padding: .875rem 1.25rem; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .625rem;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-info    { background: #dbeafe; color: #1e40af; }
.alert-warning { background: var(--orange-100); color: #9a3412; }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: .2rem .6rem;
  border-radius: 99px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.badge-primary { background: var(--vikrey-red-tint); color: var(--primary-dark); }
.badge-accent  { background: var(--accent-tint); color: var(--accent-dark); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-amber   { background: #fef3c7; color: #92400e; }
.badge-blue    { background: #dbeafe; color: #1e40af; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--secondary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.navbar-inner {
  display: flex; align-items: center;
  height: 64px; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; gap: 1.5rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.375rem; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.navbar-brand span { color: var(--accent); }
.navbar-brand svg { width: 32px; height: 32px; }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  font-weight: 500; color: rgba(255,255,255,.75);
  transition: all var(--transition); position: relative;
  font-size: .875rem; padding: .5rem .75rem; border-radius: var(--radius);
}
.nav-link::after { display: none; }
.nav-link:hover { color: white; background: rgba(255,255,255,.08); }
.nav-link.active { color: white; background: rgba(255,255,255,.12); }

/* Navbar search */
.nav-search { flex: 1; max-width: 480px; margin: 0 1rem; }
.nav-search-form {
  display: flex; align-items: center; background: rgba(255,255,255,.1);
  border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,.15);
  transition: all var(--transition); overflow: hidden;
}
.nav-search-form:focus-within { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.nav-search-input {
  flex: 1; padding: .5rem .875rem; font-size: .875rem;
  border: none; background: transparent; color: white; outline: none;
}
.nav-search-input::placeholder { color: rgba(255,255,255,.45); }
.nav-search-btn {
  padding: .5rem .75rem; border: none; background: transparent;
  color: rgba(255,255,255,.6); cursor: pointer; transition: color var(--transition);
  display: flex; align-items: center;
}
.nav-search-btn:hover { color: white; }

.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.cart-icon {
  position: relative; display: flex; align-items: center;
  gap: .375rem; color: rgba(255,255,255,.8); font-weight: 500;
  transition: color var(--transition); padding: .375rem;
}
.cart-icon:hover { color: white; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--primary); color: white;
  font-size: .6rem; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.nav-dropdown { position: relative; }
.nav-dropdown .btn { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.2); }
.nav-dropdown .btn:hover { color: white; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.nav-dropdown .btn-primary { color: white; background: var(--primary); border-color: var(--primary); }
.nav-dropdown .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.nav-dropdown-menu {
  position: absolute; top: 100%; right: 0; min-width: 200px;
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: .5rem 0; display: none; border: 1px solid var(--gray-200);
  z-index: 200;
}
.nav-dropdown-menu a {
  display: block; padding: .6rem 1.25rem; color: var(--gray-700);
  font-size: .875rem; font-weight: 500; transition: all var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--gray-50); color: var(--gray-900); }
.nav-dropdown-menu .divider { height: 1px; background: var(--gray-200); margin: .4rem 0; }
.nav-dropdown-menu .dropdown-label {
  padding: .3rem 1.25rem .15rem; font-size: .675rem; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em;
}

/* Categories mega-dropdown */
.nav-mega { position: static; }
.nav-mega .nav-dropdown-menu {
  left: 50%; transform: translateX(-50%); min-width: 480px;
  padding: 1rem;
  grid-template-columns: repeat(3,1fr); gap: .5rem;
}
.nav-mega .nav-dropdown-menu a {
  padding: .5rem .75rem; border-radius: var(--radius); font-size: .8125rem;
}
.nav-mega .nav-dropdown-menu a:hover { background: var(--accent-bg); color: var(--accent-dark); }

.mobile-menu-btn { display: none; color: white; }

/* ── Hero Banner ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, #2a3a50 100%);
  padding: 4.5rem 0 3.5rem;
  position: relative; overflow: hidden; color: white;
}
.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; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,158,11,.15); color: var(--accent-light);
  padding: .375rem 1rem; border-radius: 99px; font-size: .8125rem;
  font-weight: 600; margin-bottom: 1.5rem; border: 1px solid rgba(245,158,11,.25);
}
.hero h1 { font-size: 3.25rem; line-height: 1.1; margin-bottom: 1.25rem; color: white; }
.hero h1 .highlight { color: var(--accent-light); }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 1.125rem; margin-bottom: 2rem; max-width: 540px; color: rgba(255,255,255,.75); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Search hero — centered search bar for homepage */
.search-hero { text-align: center; padding: 5rem 0 3rem; }
.search-hero h1 { font-size: 2.75rem; margin-bottom: .75rem; }
.search-hero p { margin: 0 auto 2rem; }
.search-hero-form {
  max-width: 640px; margin: 0 auto 1.5rem; display: flex;
  background: white; border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,.2); overflow: hidden;
}
.search-hero-input {
  flex: 1; padding: 1rem 1.25rem; font-size: 1.0625rem;
  border: none; outline: none; color: var(--gray-800); background: transparent;
}
.search-hero-input::placeholder { color: var(--gray-400); }
.search-hero-btn {
  padding: .75rem 1.75rem; background: var(--primary); color: white;
  border: none; font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: background var(--transition);
}
.search-hero-btn:hover { background: var(--primary-dark); }

/* Trending searches */
.trending-searches {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-bottom: 2rem;
}
.trending-label { color: rgba(255,255,255,.5); font-size: .8125rem; font-weight: 500; }
.trending-tag {
  display: inline-block; padding: .25rem .75rem; border-radius: 99px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.75);
  font-size: .8125rem; font-weight: 500; transition: all var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}
.trending-tag:hover { background: rgba(255,255,255,.18); color: white; }

/* Category pills */
.category-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem;
}
.category-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem 1rem; border-radius: 99px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  font-size: .8125rem; font-weight: 600; transition: all var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}
.category-pill:hover { background: rgba(255,255,255,.15); color: white; }
/* Light bg variant */
.category-pills-light .category-pill {
  background: white; color: var(--gray-700); border-color: var(--gray-200);
  box-shadow: var(--shadow);
}
.category-pills-light .category-pill:hover { border-color: var(--primary); color: var(--primary); }

/* Active category pill (shop page uses this on dark bg) */
.category-pill.active {
  background: white; color: var(--secondary); border-color: white; font-weight: 700;
}

/* Trust strip */
.trust-strip {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
}
.trust-strip-item { text-align: center; }
.trust-strip-value { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.trust-strip-label { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.hero-img-card {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); width: 220px;
}
.hero-img-card:nth-child(2) { margin-top: 2rem; }
.hero-img-card img { height: 160px; width: 100%; object-fit: cover; }
.hero-img-card .hero-img-label {
  padding: .75rem 1rem; background: white; font-weight: 600; font-size: .875rem; color: var(--gray-800);
}

/* ── Section Headers ──────────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block; background: var(--accent-tint); color: var(--accent-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .25rem .875rem; border-radius: 99px;
  margin-bottom: .75rem;
}
.section-title { font-size: 2.25rem; margin-bottom: .75rem; }
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; }

/* ── Category Cards ──────────────────────────────────────────────────────────── */
.category-card {
  border-radius: var(--radius-xl); overflow: hidden; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.category-card img { height: 200px; width: 100%; object-fit: cover; }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}
.category-card-overlay h3 { color: white; font-size: 1.375rem; }
.category-card-overlay p { color: rgba(255,255,255,.85); font-size: .875rem; margin-top: .25rem; }
.category-card-overlay .cat-arrow {
  margin-top: .75rem; display: flex; align-items: center; gap: .375rem;
  color: var(--accent-light); font-weight: 600; font-size: .875rem;
  transition: gap var(--transition);
}
.category-card:hover .cat-arrow { gap: .75rem; }

/* ── Product Cards ───────────────────────────────────────────────────────────── */
.product-card {
  background: var(--white); border-radius: var(--radius-xl);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.product-card-img {
  position: relative; height: 220px; overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badges {
  position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; gap: .375rem;
}
.product-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: .375rem; line-height: 1.35; }
.product-card-desc { color: var(--gray-500); font-size: .875rem; margin-bottom: 1rem; flex: 1; }
.product-stars { display: flex; align-items: center; gap: .375rem; margin-bottom: .875rem; }
.star { color: var(--amber-500); font-size: 1rem; }
.star.empty { color: var(--gray-300); }
.star-count { color: var(--gray-500); font-size: .8rem; }
.product-price { display: flex; align-items: center; gap: .625rem; margin-bottom: 1rem; flex-wrap: wrap; }
.price-original { color: var(--gray-400); text-decoration: line-through; font-size: .9rem; }
.price-current { font-size: 1.375rem; font-weight: 800; color: var(--gray-900); }
.price-discount { background: var(--vikrey-red-tint); color: var(--primary-dark); font-size: .75rem; font-weight: 700; padding: .15rem .45rem; border-radius: 99px; }
.product-card-actions { display: flex; gap: .625rem; }
.product-card-actions .btn { flex: 1; }

/* ── Product Detail ──────────────────────────────────────────────────────────── */
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.product-gallery { position: sticky; top: 90px; }
.product-main-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.product-main-img img { width: 100%; height: 420px; object-fit: cover; }
.product-origin {
  display: inline-flex; align-items: center; gap: .375rem;
  background: var(--vikrey-red-bg); color: var(--primary-dark); border-radius: var(--radius);
  padding: .375rem .75rem; font-size: .85rem; font-weight: 600; margin-bottom: 1rem;
}
.product-info h1 { font-size: 2.1rem; margin-bottom: .75rem; }
.product-info .product-stars { margin-bottom: 1.25rem; }
.variant-selector { margin: 1.5rem 0; }
.variant-selector h4 { margin-bottom: .875rem; }
.variant-grid { display: flex; gap: .75rem; flex-wrap: wrap; }
.variant-btn {
  padding: .5rem 1rem; border: 2px solid var(--gray-200);
  border-radius: var(--radius); font-weight: 600; background: white;
  cursor: pointer; transition: all var(--transition); font-size: .875rem;
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.active { border-color: var(--primary); background: var(--vikrey-red-bg); color: var(--primary); }
.variant-btn.out-of-stock { opacity: .4; cursor: not-allowed; }
.qty-selector {
  display: flex; align-items: center; gap: 0; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); width: fit-content;
}
.qty-btn {
  width: 40px; height: 42px; border: none; background: transparent;
  font-size: 1.25rem; font-weight: 700; color: var(--gray-600);
  cursor: pointer; transition: background var(--transition);
}
.qty-btn:hover { background: var(--gray-100); }
.qty-val {
  width: 52px; text-align: center; font-weight: 700; font-size: 1.1rem; border: none;
  background: transparent; outline: none;
}
.add-to-cart-section { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.product-meta { margin-top: 2rem; border-top: 1px solid var(--gray-200); padding-top: 1.5rem; }
.product-meta dl { display: grid; grid-template-columns: 1fr 2fr; gap: .5rem .5rem; }
.product-meta dt { font-weight: 600; color: var(--gray-600); font-size: .9rem; }
.product-meta dd { color: var(--gray-700); font-size: .9rem; }

/* ── Cart ────────────────────────────────────────────────────────────────────── */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 1.25rem;
  align-items: center; padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { border-radius: var(--radius-lg); overflow: hidden; height: 90px; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; margin-bottom: .25rem; }
.cart-item-variant { color: var(--gray-500); font-size: .875rem; }
.cart-item-price { font-size: .9rem; margin-top: .5rem; }
.cart-summary { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; padding: .625rem 0; color: var(--gray-600); font-size: .9375rem; }
.summary-row.total { border-top: 2px solid var(--gray-200); margin-top: .5rem; padding-top: 1rem; font-size: 1.25rem; font-weight: 800; color: var(--gray-900); }
.summary-row.free-delivery { color: #16a34a; font-weight: 600; }

/* ── Order Steps ─────────────────────────────────────────────────────────────── */
.order-steps { display: flex; justify-content: center; padding: 2rem 0; }
.step-track {
  display: flex; align-items: flex-start; gap: 0;
  position: relative;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  width: 120px; position: relative;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 20px; left: 60px;
  width: 120px; height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.step.done:not(:last-child)::after { background: var(--primary); }
.step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700; position: relative; z-index: 1;
  background: var(--gray-200); color: var(--gray-500);
  border: 3px solid var(--gray-200);
}
.step.done .step-circle { background: var(--primary); color: white; border-color: var(--primary); }
.step.active .step-circle { background: white; color: var(--primary); border-color: var(--primary); }
.step-label { font-size: .75rem; font-weight: 600; margin-top: .5rem; text-align: center; color: var(--gray-500); }
.step.done .step-label, .step.active .step-label { color: var(--primary); }

/* ── Payment ─────────────────────────────────────────────────────────────────── */
.payment-methods { display: grid; gap: 1rem; }
.payment-option {
  border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.25rem; cursor: pointer; transition: all var(--transition);
}
.payment-option:hover { border-color: var(--primary); }
.payment-option.active { border-color: var(--primary); background: var(--vikrey-red-bg); }
.payment-option-header { display: flex; align-items: center; gap: 1rem; }
.payment-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.payment-details { display: none; margin-top: 1rem; }
.payment-option.active .payment-details { display: block; }

/* ── Admin Layout ────────────────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--gray-900); color: white;
  padding: 2rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 0 1.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 1.375rem; font-weight: 800; color: white;
}
.admin-sidebar-brand span { color: var(--vikrey-red-light); }
.admin-nav { padding: 1.5rem 0; }
.admin-nav-section {
  padding: .25rem 1.5rem .5rem; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500);
  margin-top: 1rem;
}
.admin-nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.5rem; color: rgba(255,255,255,.7);
  font-size: .9375rem; font-weight: 500;
  transition: all var(--transition); border-left: 3px solid transparent;
}
.admin-nav-link:hover { background: rgba(255,255,255,.05); color: white; }
.admin-nav-link.active {
  background: rgba(217,75,43,.12); color: var(--vikrey-red-light);
  border-left-color: var(--vikrey-red-light);
}
.admin-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-main { background: var(--gray-50); padding: 2rem; }
.admin-header { margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.875rem; }
.admin-header p { color: var(--gray-500); }

/* ── Stats Cards ─────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem;
}
.stat-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.stat-icon.green  { background: #dcfce7; }
.stat-icon.orange { background: var(--orange-100); }
.stat-icon.blue   { background: #dbeafe; }
.stat-icon.purple { background: #ede9fe; }
.stat-value { font-size: 1.75rem; font-weight: 800; }
.stat-label { color: var(--gray-500); font-size: .875rem; }

/* ── Tables ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: .875rem 1rem; text-align: left; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200); background: var(--gray-50);
}
td { padding: 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.table-avatar {
  width: 44px; height: 44px; border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0;
}
.table-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Reviews ─────────────────────────────────────────────────────────────────── */
.review-card {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 1rem;
}
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.reviewer { display: flex; align-items: center; gap: .75rem; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--vikrey-red-tint); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.review-title { font-weight: 700; margin-bottom: .375rem; }
.review-body { color: var(--gray-600); font-size: .9375rem; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900); color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.footer-brand span { color: var(--vikrey-red-light); }
.footer p { font-size: .9375rem; line-height: 1.7; }
.footer h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.footer ul li a { font-size: .9375rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--vikrey-red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .875rem;
}
.trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-badge {
  display: flex; align-items: center; gap: .375rem;
  font-size: .8rem; font-weight: 600; color: var(--vikrey-red-light);
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem 0; font-size: .875rem; color: var(--gray-500);
}
.breadcrumb a { color: var(--gray-500); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--gray-300); }
.breadcrumb .current { color: var(--gray-800); font-weight: 500; }

/* ── Pagination / Filter bar ─────────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; padding: 1rem 0 2rem;
}
.filter-bar select { width: auto; }

/* ── Features Strip ──────────────────────────────────────────────────────────── */
.features-strip {
  background: linear-gradient(135deg, var(--charcoal), #2d2d2f);
  padding: 2.5rem 0; color: white;
}
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.feature-item { display: flex; align-items: center; gap: 1rem; }
.feature-icon { font-size: 2rem; flex-shrink: 0; }
.feature-item h4 { font-size: 1rem; margin-bottom: .25rem; }
.feature-item p { font-size: .875rem; opacity: .85; }

/* ── Page header ─────────────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--charcoal), #2d2d2f);
  padding: 3rem 0; color: white;
}
.page-header h1 { color: white; font-size: 2.25rem; margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.85); font-size: 1.05rem; }

/* ── Auth pages ─────────────────────────────────────────────────────────────── */
.auth-container {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 2rem 1rem;
}
.auth-card {
  background: white; border-radius: var(--radius-xl); padding: 2.5rem;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-xl);
}
.auth-brand {
  text-align: center; font-size: 1.75rem; font-weight: 800; color: var(--primary);
  margin-bottom: 2rem;
}
.auth-brand span { color: var(--accent); }
.auth-divider { text-align: center; color: var(--gray-400); font-size: .875rem; margin: 1rem 0; }
.auth-link { color: var(--primary); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* ── Empty state ─────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 5rem 2rem; color: var(--gray-400);
}
.empty-state svg { width: 80px; height: 80px; margin: 0 auto 1.5rem; opacity: .35; }
.empty-state h3 { font-size: 1.25rem; color: var(--gray-600); margin-bottom: .75rem; }

/* ── Checkout ──────────────────────────────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
.address-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.25rem; cursor: pointer; transition: all var(--transition); margin-bottom: 1rem;
}
.address-card:hover { border-color: var(--primary); }
.address-card input[type=radio] { accent-color: var(--primary); }

/* ── Scrollbar ───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Tabs Component ─────────────────────────────────────────────────────────── */
.tab-btn {
  padding: .625rem 1.25rem; border: none; background: transparent;
  font-size: .9375rem; font-weight: 600; color: var(--gray-500);
  cursor: pointer; border-bottom: 3px solid transparent;
  transition: all var(--transition); margin-bottom: -2px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: block; }
.tab-content.active { display: block; }

/* ── Inventory Alert ─────────────────────────────────────────────────────────── */
.inventory-alert {
  background: #fee2e2; border: 1px solid #fca5a5; border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.inventory-alert.warning {
  background: #fef3c7; border-color: #fcd34d;
}
.inventory-alert-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .125rem; }
.inventory-alert h4 { color: #991b1b; font-size: 1rem; margin-bottom: .25rem; }
.inventory-alert.warning h4 { color: #92400e; }
.inventory-alert p { color: #b91c1c; font-size: .875rem; }
.inventory-alert.warning p { color: #92400e; }

/* ── Chart Container ─────────────────────────────────────────────────────────── */
.chart-container {
  position: relative; width: 100%; min-height: 280px;
}
.chart-container canvas { max-height: 320px; }

/* ── Admin Quick Actions Grid ────────────────────────────────────────────────── */
.quick-actions-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  margin-top: 1.5rem;
}
.quick-action-card {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center; cursor: pointer; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none; display: block; color: inherit;
}
.quick-action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quick-action-icon { font-size: 2rem; margin-bottom: .75rem; }

/* ── Coupon Input ────────────────────────────────────────────────────────────── */
.coupon-section {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: .875rem 0; margin: .75rem 0;
}

/* ── Font mono ───────────────────────────────────────────────────────────────── */
.font-mono { font-family: 'Courier New', Courier, monospace; }

/* ── Data Table (vendor products, etc.) ──────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: var(--gray-50); }
.data-table th {
  padding: .75rem 1rem; text-align: left; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200); font-weight: 700;
}
.data-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .thumb { width: 44px; height: 44px; border-radius: var(--radius); object-fit: cover; }
.data-table .cell-main { font-weight: 600; color: var(--gray-800); }
.data-table .cell-sub { font-size: .75rem; color: var(--gray-400); margin-top: .125rem; }
.data-table .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .375rem; }
.data-table .status-dot.active { background: #22c55e; }
.data-table .status-dot.inactive { background: var(--gray-300); }
.data-table .pill {
  display: inline-flex; align-items: center; padding: .2rem .625rem;
  border-radius: 99px; font-size: .7rem; font-weight: 600; letter-spacing: .03em;
}
.data-table .pill-live { background: #dcfce7; color: #166534; }
.data-table .pill-pending { background: var(--accent-tint); color: var(--accent-dark); border: 1px solid var(--accent); }
.data-table .pill-category { background: var(--gray-100); color: var(--gray-600); }

/* Data table compact for admin/vendor layouts */
.admin-layout .data-table th,
.admin-layout .data-table td { padding: .75rem .625rem; font-size: .85rem; }
.admin-layout .data-table th { font-size: .65rem; }

/* Responsive data table → card layout (only on truly small screens) */
@media (max-width: 480px) {
  .data-table thead { display: none; }
  .data-table tbody tr {
    display: block; padding: 1rem; margin-bottom: .75rem;
    background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  }
  .data-table td { display: flex; justify-content: space-between; padding: .375rem 0; border: none; }
  .data-table td::before { content: attr(data-label); font-weight: 600; color: var(--gray-500); font-size: .75rem; }
}

/* ── Form Section (card-based form layout) ──────────────────────────────────── */
.form-section {
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin-bottom: 1.5rem; overflow: hidden;
}
.form-section-header {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: .75rem;
}
.form-section-header h3 { font-size: 1.0625rem; font-weight: 700; }
.form-section-header .icon { font-size: 1.25rem; }
.form-section-body { padding: 1.5rem; }
.form-section-body .form-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.5rem;
}

/* ── Vendor Page Header ─────────────────────────────────────────────────────── */
.vendor-page-header {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary), #2a3a50);
  padding: 2rem 2rem; border-radius: var(--radius-lg); margin-bottom: 1.5rem;
  color: white;
}
.vendor-page-header h1 { color: white; font-size: 1.75rem; margin-bottom: .25rem; }
.vendor-page-header p { color: rgba(255,255,255,.7); font-size: .9375rem; }
.vendor-page-header .header-actions { display: flex; gap: .75rem; margin-top: 1rem; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero h1 { font-size: 2.25rem; }
  .search-hero h1 { font-size: 2rem; }
  .search-hero-form { flex-direction: column; }
  .search-hero-btn { padding: .875rem; }
  .trust-strip { gap: 1.5rem; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .category-pills { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.875rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr 1fr; }
}
