/* ============================================================
   VIDUAL COMMUNICATIONS INDIA PVT. LTD. - Multi-Vendor E-Commerce Design System
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --primary:        #FF6B35;
  --primary-dark:   #E55A26;
  --primary-light:  #FF8C5A;
  --primary-bg:     #FFF4F0;

  --secondary:      #1A1A2E;
  --secondary-dark: #0F0F1A;

  --accent:         #16213E;
  --accent-blue:    #0F3460;
  --accent-teal:    #00B4D8;

  /* Neutrals */
  --white:          #FFFFFF;
  --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;

  /* Status Colors */
  --success:        #10B981;
  --success-light:  #D1FAE5;
  --warning:        #F59E0B;
  --warning-light:  #FEF3C7;
  --danger:         #EF4444;
  --danger-light:   #FEE2E2;
  --info:           #3B82F6;
  --info-light:     #DBEAFE;

  /* Typography */
  --font-main:      'Inter', sans-serif;
  --font-heading:   'Poppins', sans-serif;

  /* Font Sizes */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.25s ease;
  --transition-slow:   all 0.4s ease;

  /* Layout */
  --container-max: 1320px;
  --nav-height: 70px;
  --topbar-height: 38px;
}

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

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

body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-main);
}

input, select, textarea {
  font-family: var(--font-main);
  font-size: var(--text-base);
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.grid { display: grid; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden      { display: none; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.overflow-hidden { overflow: hidden; }
.relative        { position: relative; }
.absolute        { position: absolute; }

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

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--gray-500);
  margin-bottom: var(--space-8);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--gray-100);
}

.section-header .view-all {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: var(--transition-base);
}

.section-header .view-all:hover {
  color: var(--primary-dark);
  gap: var(--space-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: var(--font-main);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

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

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

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-ghost:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 1.1rem 2.5rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon-round {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary   { background: var(--primary-bg);    color: var(--primary); }
.badge-success   { background: var(--success-light); color: #065F46; }
.badge-warning   { background: var(--warning-light); color: #92400E; }
.badge-danger    { background: var(--danger-light);  color: #991B1B; }
.badge-info      { background: var(--info-light);    color: #1E40AF; }
.badge-gray      { background: var(--gray-100);      color: var(--gray-600); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-base);
}

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

/* ---------- Product Card ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-base);
  position: relative;
}

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

.product-card .img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card .img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-card .card-actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition-base);
}

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

.card-action-btn {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  color: var(--gray-600);
  cursor: pointer;
  border: none;
  font-size: 14px;
}

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

.product-card .card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

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

.product-card .product-vendor {
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
  font-weight: 500;
}

.product-card .product-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-main);
}

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

.product-card .rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.rating .stars { color: #F59E0B; font-size: 12px; }

.rating .count {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-current {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
}

.price-old {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: var(--space-2);
}

.price-discount {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.btn-cart {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-cart:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* ---------- Form Elements ---------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: var(--text-sm);
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  outline: none;
  font-family: var(--font-main);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.form-control::placeholder { color: var(--gray-400); }

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

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-500);
  padding: var(--space-4) 0;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray-400); font-size: 12px; }
.breadcrumb .active { color: var(--gray-800); font-weight: 500; }

/* ---------- Star Rating ---------- */
.star-rating {
  display: flex;
  gap: 2px;
}
.star-rating .star { color: var(--gray-300); font-size: 14px; }
.star-rating .star.filled { color: #F59E0B; }

/* ---------- Progress Bar ---------- */
.progress {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--space-6) 0;
}

/* ---------- Alert ---------- */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert-success { background: var(--success-light); border-color: #A7F3D0; color: #065F46; }
.alert-warning { background: var(--warning-light); border-color: #FDE68A; color: #92400E; }
.alert-danger  { background: var(--danger-light);  border-color: #FECACA; color: #991B1B; }
.alert-info    { background: var(--info-light);    border-color: #BFDBFE; color: #1E40AF; }

/* ---------- Section Spacing ---------- */
.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition-fast);
  cursor: pointer;
}

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

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

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  transition: var(--transition-fast);
  cursor: pointer;
}

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

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

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

/* ---------- Tooltip ---------- */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  font-size: 11px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ---------- Header / Navbar ---------- */
.topbar {
  height: var(--topbar-height);
  background: var(--secondary);
  color: var(--gray-300);
  font-size: var(--text-xs);
}

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

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.topbar-divider {
  width: 1px;
  height: 12px;
  background: var(--gray-600);
}

.navbar {
  height: var(--nav-height);
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200), var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
}

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

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.nav-logo .logo-text span { color: var(--primary); }

/* footer logo smaller */
.footer .nav-logo .logo-img { height: 38px; filter: brightness(0) invert(1); opacity: .9; }

.nav-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  transition: var(--transition-base);
  overflow: hidden;
}

.search-wrapper:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.search-category {
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-600);
  border-right: 1px solid var(--gray-200);
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-left: none;
  outline: none;
  font-weight: 500;
  min-width: 120px;
  cursor: pointer;
}

.search-input {
  flex: 1;
  padding: 0.625rem var(--space-4);
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--gray-800);
  outline: none;
}

.search-input::placeholder { color: var(--gray-400); }

.search-btn {
  width: 48px;
  height: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
  flex-shrink: 0;
  padding: 0.625rem var(--space-4);
}

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

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

.nav-action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  transition: var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

.nav-action-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1.5px solid var(--gray-200);
}

.nav-user:hover { background: var(--gray-50); border-color: var(--gray-300); }

.nav-user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.nav-user-info .name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1;
}

.nav-user-info .role {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

/* ---------- Category Nav ---------- */
.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
  border-top: none;
  border-left: none;
  border-right: none;
  background: none;
  text-decoration: none;
}

.cat-nav-item:hover, .cat-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.cat-nav-item .cat-icon { font-size: 16px; }

/* ---------- Mega Menu ---------- */
.mega-menu-wrapper {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 720px;
  background: var(--white);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  display: none;
  z-index: 999;
  border-top: 3px solid var(--primary);
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.mega-menu.open { display: grid; }

/* ---------- Footer ---------- */
.footer {
  background: var(--secondary);
  color: var(--gray-400);
  padding: var(--space-16) 0 0;
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--gray-400);
  margin-bottom: var(--space-5);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 15px;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-size: var(--text-sm);
}

.footer-bottom .payment-icons {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.payment-icon {
  height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
}

/* ---------- Newsletter Strip ---------- */
.newsletter-strip {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-blue) 100%);
  padding: var(--space-10) 0;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.newsletter-text h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.newsletter-text p {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  flex: 1;
  max-width: 440px;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: var(--text-sm);
  outline: none;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: var(--primary); background: rgba(255,255,255,0.12); }

/* ---------- Mobile Menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

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

.mobile-menu-drawer {
  width: 300px;
  height: 100%;
  background: var(--white);
  overflow-y: auto;
  padding: var(--space-6);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-drawer { transform: translateX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-search { max-width: 380px; }
  .search-category { min-width: 90px; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
    --topbar-height: 0px;
  }

  .container { padding: 0 var(--space-4); }
  .topbar { display: none; }

  .nav-search { display: none; }
  .hamburger { display: flex; }
  .nav-user-info { display: none; }
  .category-nav { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .newsletter-content { flex-direction: column; }
  .newsletter-form { max-width: 100%; width: 100%; }

  .section { padding: var(--space-10) 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

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

/* ---------- Selection ---------- */
::selection {
  background: rgba(255, 107, 53, 0.2);
  color: var(--gray-900);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

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

.animate-fade-in   { animation: fadeIn 0.4s ease forwards; }
.animate-slide-in  { animation: slideInRight 0.4s ease forwards; }
.animate-pulse     { animation: pulse 2s infinite; }

/* ---------- Loading Spinner ---------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-base);
  padding: var(--space-4);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

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

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

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

.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--gray-400);
  transition: var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 20px;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 380px;
  pointer-events: all;
  animation: slideInRight 0.3s ease forwards;
  border-left: 4px solid var(--success);
}

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

.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-message { font-size: var(--text-sm); font-weight: 500; color: var(--gray-800); flex: 1; }

/* ---------- Sticky Cart Bar ---------- */
.sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary);
  padding: var(--space-3) var(--space-4);
  display: none;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .sticky-cart { display: flex; align-items: center; justify-content: space-between; }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  font-size: 18px;
  transition: var(--transition-base);
  opacity: 0;
  pointer-events: none;
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top { bottom: 70px; }
}
