/* ============================================
   SHANVIKA COLLECTIONS - PREMIUM E-COMMERCE
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --secondary: #00CEFF;
  --accent: #FF6B6B;
  --accent-green: #00D68F;
  --gold: #F2C94C;
  --dark: #1A1A2E;
  --dark-2: #16213E;
  --dark-3: #0F3460;
  --gray-900: #212529;
  --gray-800: #343A40;
  --gray-700: #495057;
  --gray-600: #6C757D;
  --gray-500: #ADB5BD;
  --gray-400: #CED4DA;
  --gray-300: #DEE2E6;
  --gray-200: #E9ECEF;
  --gray-100: #F8F9FA;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(108,92,231,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--gray-100); color: var(--gray-900); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-200); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 48px; width: auto; }
.logo-text h1 { font-size: 1.3rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
.logo-text span { font-size: 0.65rem; color: var(--gray-600); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.nav-search { flex: 1; max-width: 500px; margin: 0 40px; position: relative; }
.nav-search input {
  width: 100%; padding: 12px 48px 12px 20px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-full);
  font-size: 0.95rem; background: var(--gray-100);
  transition: var(--transition); outline: none;
}
.nav-search input:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(108,92,231,0.1); }
.nav-search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.nav-search button:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.05); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; padding: 10px 16px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: badgePop 0.3s ease;
}
@keyframes badgePop { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

.admin-btn {
  padding: 10px 16px; border-radius: var(--radius-full);
  background: var(--gray-800); color: var(--white);
  font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.admin-btn:hover { background: var(--dark); transform: translateY(-2px); }

/* Mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); }

/* ---------- CATEGORY NAV ---------- */
.category-nav {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px; height: 50px; align-items: center;
  white-space: nowrap;
}
.category-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500; color: var(--gray-700);
  transition: var(--transition); flex-shrink: 0;
}
.category-nav a:hover, .category-nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-section {
  margin-top: 122px; margin-bottom: 40px;
  max-width: 1400px; margin-left: auto; margin-right: auto; padding: 0 24px;
}
.hero-slider { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.slider-container { position: relative; height: 480px; overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.05);
  display: flex; align-items: center;
}
.slide.active { opacity: 1; transform: scale(1); }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 55%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}
.slide-content {
  position: relative; z-index: 2; padding: 60px;
  max-width: 600px; color: var(--white);
}
.slide-content h2 {
  font-size: 2.8rem; font-weight: 900; line-height: 1.15;
  margin-bottom: 16px; animation: slideUp 0.6s ease forwards;
}
.slide-content p {
  font-size: 1.15rem; opacity: 0.9; margin-bottom: 28px;
  animation: slideUp 0.6s ease 0.15s forwards; opacity: 0;
}
.slide-content .slide-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full);
  background: var(--white); color: var(--primary);
  font-weight: 700; font-size: 1rem;
  animation: slideUp 0.6s ease 0.3s forwards; opacity: 0;
  transition: var(--transition);
}
.slide-content .slide-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.slider-controls {
  position: absolute; bottom: 24px; right: 24px;
  display: flex; gap: 8px; z-index: 5;
}
.slider-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: var(--white); transform: scale(1.2); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
  color: var(--white); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.slider-arrow:hover { background: rgba(255,255,255,0.4); transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ============================================
   SECTION STYLES
   ============================================ */
.section { max-width: 1400px; margin: 0 auto; padding: 0 24px 60px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--gray-900);
  display: flex; align-items: center; gap: 10px;
}
.section-title .icon { font-size: 1.5rem; }
.section-subtitle { font-size: 0.9rem; color: var(--gray-600); margin-top: 4px; }
.section-link {
  font-size: 0.9rem; color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.section-link:hover { gap: 8px; color: var(--primary-dark); }

/* ---------- CATEGORY CARDS ---------- */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
  transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.category-card:hover img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.category-card-overlay h3 { color: var(--white); font-size: 1rem; font-weight: 700; }
.category-card-overlay span { color: rgba(255,255,255,0.7); font-size: 0.8rem; }

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.product-card-image {
  position: relative; padding-top: 100%;
  background: var(--gray-100); overflow: hidden;
}
.product-card-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); font-size: 0.9rem;
  transition: var(--transition);
}
.product-action-btn:hover { background: var(--primary); color: var(--white); transform: scale(1.1); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-trending { background: linear-gradient(135deg, #00D68F, #00B894); color: var(--white); }
.badge-bestseller { background: linear-gradient(135deg, var(--accent), #ee5a24); color: var(--white); }
.badge-new { background: linear-gradient(135deg, var(--secondary), #0097E6); color: var(--white); }
.badge-outofstock { background: var(--gray-500); color: var(--white); }

.product-card-body { padding: 16px; }
.product-category {
  font-size: 0.75rem; color: var(--primary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.product-name {
  font-size: 0.95rem; font-weight: 600; color: var(--gray-900);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.stars { color: var(--gold); font-size: 0.8rem; }
.rating-count { font-size: 0.75rem; color: var(--gray-500); }
.product-pricing { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.product-mrp { font-size: 0.85rem; color: var(--gray-500); text-decoration: line-through; }
.product-discount {
  font-size: 0.75rem; font-weight: 700; color: var(--accent-green);
  background: rgba(0,214,143,0.1); padding: 2px 8px; border-radius: var(--radius-full);
}
.product-btns { display: flex; gap: 8px; }
.btn-add-cart {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-weight: 600; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
.btn-add-cart:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-buy-now {
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white); font-weight: 600; font-size: 0.85rem;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.btn-buy-now:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gray-600); font-size: 0.9rem;
}

/* ============================================
   FEATURES BAR
   ============================================ */
.features-bar {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 32px; margin-bottom: 40px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: var(--radius-md);
  transition: var(--transition);
}
.feature-item:hover { background: var(--gray-100); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.feature-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.feature-item p { font-size: 0.78rem; color: var(--gray-600); }

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 2000; opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px;
  background: var(--white); z-index: 2001;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.cart-header h3 { font-size: 1.2rem; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--gray-600);
  transition: var(--transition);
}
.cart-close:hover { background: var(--gray-100); color: var(--gray-900); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(20px); } }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.cart-item-qty {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-200); color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: var(--white); }
.qty-value { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  color: var(--accent); font-size: 0.8rem; cursor: pointer;
  transition: var(--transition); margin-top: 4px;
}
.cart-item-remove:hover { text-decoration: underline; }
.cart-empty {
  text-align: center; padding: 60px 24px; color: var(--gray-500);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.cart-empty p { font-size: 1rem; font-weight: 500; }
.cart-footer {
  padding: 20px 24px; border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cart-total-label { font-size: 1rem; font-weight: 600; }
.cart-total-value { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.cart-footer-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-whatsapp-order {
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--transition);
}
.btn-whatsapp-order:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
.btn-clear-cart {
  width: 100%; padding: 12px; border-radius: var(--radius-md);
  background: transparent; color: var(--gray-600);
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}
.btn-clear-cart:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.free-shipping-msg { text-align: center; font-size: 0.8rem; color: var(--accent-green); font-weight: 600; margin-bottom: 12px; }

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.product-modal {
  background: var(--white); border-radius: var(--radius-xl);
  max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .product-modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; z-index: 10;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.7); transform: scale(1.1); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-image {
  position: relative; background: var(--gray-100);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden; min-height: 400px;
}
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 32px; display: flex; flex-direction: column; }
.modal-category { font-size: 0.8rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.modal-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.modal-brand { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 12px; }
.modal-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.modal-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.modal-price { font-size: 2rem; font-weight: 900; color: var(--accent); }
.modal-mrp { font-size: 1.1rem; color: var(--gray-500); text-decoration: line-through; }
.modal-discount { font-size: 0.85rem; font-weight: 700; color: var(--accent-green); background: rgba(0,214,143,0.1); padding: 4px 12px; border-radius: var(--radius-full); }
.modal-description { font-size: 0.9rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 20px; }
.modal-features { margin-bottom: 20px; }
.modal-features h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.modal-features li { font-size: 0.85rem; color: var(--gray-700); padding: 4px 0; padding-left: 20px; position: relative; }
.modal-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-green); font-weight: 700; }
.modal-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.modal-qty-row label { font-size: 0.9rem; font-weight: 600; }
.modal-qty-control {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  overflow: hidden;
}
.modal-qty-control button {
  width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; font-weight: 600;
  background: var(--gray-100); color: var(--gray-700);
  transition: var(--transition);
}
.modal-qty-control button:hover { background: var(--primary); color: var(--white); }
.modal-qty-control span { font-weight: 700; min-width: 30px; text-align: center; }
.modal-btns { display: flex; gap: 10px; margin-top: auto; }
.modal-btn-cart {
  flex: 1; padding: 14px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.modal-btn-cart:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.modal-btn-whatsapp {
  flex: 1; padding: 14px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.modal-btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(37,211,102,0.4); }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 5000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.admin-overlay.open { opacity: 1; visibility: visible; }
.admin-login-box {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 48px; max-width: 420px; width: 100%;
  text-align: center;
  transform: scale(0.9); transition: transform 0.4s ease;
}
.admin-overlay.open .admin-login-box { transform: scale(1); }
.admin-login-box .lock-icon { font-size: 3rem; margin-bottom: 16px; }
.admin-login-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.admin-login-box p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 24px; }
.admin-login-box input {
  width: 100%; padding: 14px 18px; margin-bottom: 12px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  font-size: 1rem; transition: var(--transition); outline: none;
}
.admin-login-box input:focus { border-color: var(--primary); }
.admin-login-box .error-msg { color: var(--accent); font-size: 0.85rem; margin-top: 8px; display: none; }

.admin-panel {
  position: fixed; inset: 0; background: var(--gray-100);
  z-index: 5000; overflow-y: auto; display: none;
}
.admin-panel.open { display: block; }
.admin-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 260px;
  background: var(--dark); color: var(--white);
  padding: 24px 0; z-index: 10;
}
.admin-sidebar-logo {
  padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.admin-sidebar-logo h3 { font-size: 1.1rem; font-weight: 700; }
.admin-sidebar-logo span { font-size: 0.75rem; opacity: 0.6; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; color: rgba(255,255,255,0.7);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); cursor: pointer;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255,255,255,0.05); color: var(--white);
  border-left-color: var(--primary);
}
.admin-nav-item .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.admin-main { margin-left: 260px; padding: 32px; min-height: 100vh; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.admin-header h2 { font-size: 1.5rem; font-weight: 800; }
.admin-logout {
  padding: 8px 20px; border-radius: var(--radius-full);
  background: var(--accent); color: var(--white);
  font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}
.admin-logout:hover { background: #ee5a24; }

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--gray-600); }

.admin-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.admin-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.admin-form-group { margin-bottom: 16px; }
.admin-form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--gray-700);
}
.admin-form-group input, .admin-form-group textarea, .admin-form-group select {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.9rem; transition: var(--transition); outline: none;
}
.admin-form-group input:focus, .admin-form-group textarea:focus, .admin-form-group select:focus { border-color: var(--primary); }
.admin-form-group textarea { min-height: 80px; resize: vertical; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.admin-btn-primary {
  padding: 12px 24px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-weight: 700; font-size: 0.9rem;
  transition: var(--transition);
}
.admin-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.admin-btn-success {
  padding: 12px 24px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white); font-weight: 700; font-size: 0.9rem;
  transition: var(--transition);
}
.admin-btn-success:hover { transform: translateY(-2px); }
.admin-btn-danger {
  padding: 10px 18px; border-radius: var(--radius-md);
  background: var(--accent); color: var(--white);
  font-weight: 600; font-size: 0.85rem;
  transition: var(--transition);
}
.admin-btn-danger:hover { background: #ee5a24; }

.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--gray-200); }
.admin-tab {
  padding: 12px 20px; font-weight: 600; font-size: 0.9rem;
  color: var(--gray-600); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: var(--transition);
}
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-tab:hover { color: var(--primary); }

.product-table { width: 100%; border-collapse: collapse; }
.product-table th {
  text-align: left; padding: 12px 16px; font-size: 0.8rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--gray-600); border-bottom: 2px solid var(--gray-200);
}
.product-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.85rem; }
.product-table tr:hover td { background: var(--gray-100); }
.product-table .product-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; }
.product-table .action-btns { display: flex; gap: 6px; }
.product-table .action-btn {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
  transition: var(--transition);
}
.action-btn-edit { background: var(--primary); color: var(--white); }
.action-btn-edit:hover { background: var(--primary-dark); }
.action-btn-delete { background: var(--accent); color: var(--white); }
.action-btn-delete:hover { background: #ee5a24; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--gray-100);
}
.upload-area:hover { border-color: var(--primary); background: rgba(108,92,231,0.03); }
.upload-area.dragover { border-color: var(--primary); background: rgba(108,92,231,0.05); }
.upload-area .upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-area h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.upload-area p { font-size: 0.85rem; color: var(--gray-600); }
.upload-preview-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.upload-preview-item {
  width: 100px; height: 100px; border-radius: var(--radius-sm);
  overflow: hidden; position: relative;
}
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-item .remove-img {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark); color: var(--white);
  padding: 60px 24px 24px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; line-height: 1.7; }
.footer-col h4 {
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px; opacity: 0.5;
}
.footer-col a { display: block; font-size: 0.85rem; opacity: 0.7; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { opacity: 1; padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; align-items: center;
  justify-content: space-between; font-size: 0.85rem; opacity: 0.6;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-3px); }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed; top: 90px; right: 24px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 24px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 500;
  animation: toastIn 0.4s ease forwards;
  border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(50px); } }

/* ============================================
   LOADING / SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 100;
  opacity: 0; visibility: hidden; transition: var(--transition);
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-image { border-radius: var(--radius-xl) var(--radius-xl) 0 0; min-height: 280px; }
}
@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .category-nav { top: 64px; }
  .hero-section { margin-top: 114px; }
  .slider-container { height: 360px; }
  .slide-content { padding: 32px; }
  .slide-content h2 { font-size: 1.8rem; }
  .slide-content p { font-size: 0.95rem; }
  .nav-search { display: none; }
  .menu-toggle { display: flex; }
  .category-nav-inner { height: 44px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .features-bar { padding: 20px; }
  .feature-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .feature-item h4 { font-size: 0.8rem; }
  .feature-item p { font-size: 0.72rem; }
  .cart-sidebar { width: 100%; }
  .admin-sidebar { width: 0; padding: 0; overflow: hidden; }
  .admin-main { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-title { font-size: 1.4rem; }
  .product-card-actions { opacity: 1; transform: none; }
  .product-name { font-size: 0.85rem; }
  .product-price { font-size: 1.1rem; }
  .product-btns { flex-direction: column; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-body { padding: 10px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-content h2 { font-size: 1.4rem; }
  .slide-content p { font-size: 0.85rem; }
  .slider-container { height: 300px; }
}

/* ---------- MOBILE NAV OVERLAY ---------- */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--dark);
  z-index: 1500; padding: 80px 24px 24px;
  transform: translateX(-100%); transition: var(--transition);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: 16px 0; color: var(--white);
  font-size: 1.1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--primary); padding-left: 10px; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}

/* ---------- ANIMATIONS ---------- */
.fade-in { animation: fadeIn 0.6s ease forwards; }
.slide-in-up { animation: slideUp 0.6s ease forwards; }

/* ============================================
   WHATSAPP ORDER PREVIEW
   ============================================ */
.whatsapp-preview {
  background: #E5DDD5; border-radius: var(--radius-lg);
  padding: 20px; font-family: 'Segoe UI', sans-serif;
}
.wa-header {
  background: #075E54; color: white; padding: 12px 16px;
  border-radius: var(--radius-md); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.wa-header .wa-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.wa-header h4 { font-size: 0.95rem; font-weight: 600; }
.wa-header span { font-size: 0.7rem; opacity: 0.7; }
.wa-msg {
  background: var(--white); padding: 10px 14px;
  border-radius: var(--radius-md); font-size: 0.85rem;
  line-height: 1.6; max-width: 90%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.wa-msg .wa-time { font-size: 0.65rem; color: var(--gray-500); text-align: right; margin-top: 4px; }
.wa-product-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-200); }
.wa-product-item:last-child { border-bottom: none; }
.wa-product-item img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.wa-product-info { flex: 1; }
.wa-product-info h5 { font-size: 0.8rem; font-weight: 600; }
.wa-product-info .wa-qty { font-size: 0.75rem; color: var(--gray-600); }
.wa-product-info .wa-price { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
