/* ADITION ELECTRIC SOLUTION - Premium Salon Store CSS */

:root {
  --primary: #111111;
  --accent: #D4AF37;
  --accent-dark: #b8942e;
  --bg: #F5F2EC;
  --bg-white: #FFFFFF;
  --text: #111111;
  --text-light: #555555;
  --text-muted: #888888;
  --border: #E8E4DC;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --transition: all 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; }
input, textarea, select { font-family: var(--font); outline: none; }

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: white;
  line-height: 1.2;
}

.logo-sub {
  font-size: 10px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  position: relative;
}

.btn-icon:hover { background: rgba(255,255,255,0.2); }

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

/* Search Bar */
.search-bar {
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px 12px;
}

.search-input-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 10px 40px 10px 16px;
  border-radius: 50px;
  font-size: 14px;
  transition: var(--transition);
}

.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus { background: rgba(255,255,255,0.15); border-color: var(--accent); }

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  padding: 4px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #111111 0%, #1a1a2e 50%, #2d1b00 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px 16px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,175,55,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 400px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,175,55,0.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); }

.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---- TRUST BADGES ---- */
.trust-badges {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trust-badges::-webkit-scrollbar { display: none; }

.trust-inner {
  display: flex;
  gap: 24px;
  min-width: max-content;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
}

.trust-icon {
  font-size: 18px;
}

/* ---- SECTION ---- */
.section {
  padding: 32px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- CATEGORY SLIDER ---- */
.cat-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.cat-slider::-webkit-scrollbar { display: none; }

.cat-card {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  scroll-snap-align: start;
  cursor: pointer;
}

.cat-img-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
  border: 2.5px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover .cat-img-wrap,
.cat-card.active .cat-img-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.2);
}

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

.cat-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  line-height: 1.3;
}

/* ---- PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- PRODUCT CARD ---- */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

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

.product-card:active { transform: scale(0.98); }

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

.product-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-sale { background: #ef4444; color: white; }
.badge-new { background: var(--accent); color: var(--primary); }
.badge-hot { background: var(--primary); color: white; }

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.stars {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
}

.rating-count {
  font-size: 11px;
  color: var(--text-muted);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

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

.price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  background: #fef2f2;
  padding: 2px 5px;
  border-radius: 4px;
}

.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-cart:hover { background: #333; }
.btn-add-cart:active { background: var(--accent); color: var(--primary); }

/* ---- SKELETON LOADER ---- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.2s ease infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}

.skeleton-img { height: 180px; }
.skeleton-text { height: 14px; margin: 8px 12px; }
.skeleton-text-sm { height: 12px; width: 60%; margin: 6px 12px; }
.skeleton-btn { height: 36px; margin: 8px 12px 12px; border-radius: var(--radius-sm); }

/* ---- CART DRAWER ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

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

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: white;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

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

.cart-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.cart-close {
  background: rgba(255,255,255,0.1);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.cart-empty p { font-size: 16px; font-weight: 500; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.qty-num {
  font-size: 15px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  color: var(--error);
  font-size: 16px;
  padding: 4px;
  background: none;
  align-self: flex-start;
}

.cart-footer {
  padding: 16px;
  border-top: 2px solid var(--border);
  background: var(--bg);
}

.cart-summary {
  margin-bottom: 16px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.cart-row.total {
  border-top: 1.5px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 700;
}

.free-delivery-msg {
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-align: center;
}

/* ---- CHECKOUT ---- */
.checkout-page { max-width: 900px; margin: 0 auto; padding: 20px 16px; }

.checkout-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr 380px; }
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title span {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.form-group { margin-bottom: 16px; }

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

.form-label .required { color: var(--error); margin-left: 2px; }

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: white;
  transition: var(--transition);
}

.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.form-input.error { border-color: var(--error); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---- ORDER SUMMARY ---- */
.order-summary { position: sticky; top: 80px; }

.summary-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.summary-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}

.summary-item-info { flex: 1; min-width: 0; }
.summary-item-name { font-size: 13px; font-weight: 600; }
.summary-item-price { font-size: 13px; color: var(--text-light); }

.summary-totals { margin-top: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.summary-row.total { border-top: 2px solid var(--primary); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 700; }

.coupon-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* ---- PAYMENT ---- */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }

.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-option.selected { border-color: var(--accent); background: rgba(212,175,55,0.05); }
.payment-option:hover { border-color: var(--accent); }

.payment-icon { font-size: 28px; }
.payment-info h4 { font-size: 14px; font-weight: 600; }
.payment-info p { font-size: 12px; color: var(--text-muted); }

/* ---- UPI PAYMENT MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}

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

.modal {
  background: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 20px;
  width: 100%;
  max-width: 460px;
  max-height: 95vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
  .modal { border-radius: var(--radius-lg); transform: scale(0.9); }
  .modal-overlay.open .modal { transform: scale(1); }
}

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

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

@media (min-width: 640px) { .modal-handle { display: none; } }

.upi-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.upi-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  background: white;
}

.upi-app-btn:hover { border-color: var(--accent); background: rgba(212,175,55,0.05); transform: translateY(-2px); }
.upi-app-btn img { width: 40px; height: 40px; border-radius: 10px; }
.upi-app-btn span { font-size: 12px; font-weight: 600; }

.upi-or { text-align: center; color: var(--text-muted); font-size: 13px; font-weight: 500; margin: 16px 0; position: relative; }
.upi-or::before, .upi-or::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.upi-or::before { left: 0; } .upi-or::after { right: 0; }

.upi-id-box {
  background: var(--bg);
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.upi-id-box p { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.upi-id-box h3 { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; }
.upi-amount { font-size: 24px; font-weight: 800; color: var(--accent); margin-top: 8px; }

/* ---- PRODUCT PAGE ---- */
.product-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }

.product-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.product-gallery { position: relative; }

.main-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.main-img-wrap:hover .main-img { transform: scale(1.05); }

.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.thumbnail {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: white;
  transition: var(--transition);
}

.thumbnail.active { border-color: var(--accent); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.product-details { }

.product-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rating-stars { color: var(--accent); font-size: 16px; }
.rating-num { font-size: 16px; font-weight: 700; }
.rating-reviews { font-size: 14px; color: var(--text-light); }

.product-price-row {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.product-price-current {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}

.product-price-original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 10px;
}

.product-discount-badge {
  display: inline-block;
  background: #fef2f2;
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
}

.saving-text {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  margin-top: 4px;
}

.stock-status {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.in-stock { background: #d1fae5; color: #065f46; }
.low-stock { background: #fef3c7; color: #92400e; }
.out-of-stock { background: #fee2e2; color: #991b1b; }

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 8px 12px;
  width: fit-content;
}

.qty-selector .qty-btn {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-weight: 700;
}

.qty-selector .qty-num { font-size: 18px; min-width: 32px; }

.product-tabs { margin-top: 24px; border-top: 1px solid var(--border); }

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: var(--transition);
  background: none;
  flex-shrink: 0;
}

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

.tab-content { padding: 20px 0; display: none; }
.tab-content.active { display: block; }

.tab-content ul { list-style: none; }
.tab-content ul li { padding: 6px 0; padding-left: 20px; position: relative; font-size: 14px; }
.tab-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) td { background: var(--bg); }
.specs-table td { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; color: var(--text-light); width: 40%; }

/* ---- REVIEWS ---- */
.review-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

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

.review-author { font-size: 14px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.review-text { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ---- ORDER TRACKING ---- */
.track-page { max-width: 600px; margin: 40px auto; padding: 20px 16px; }

.timeline { padding: 20px 0; }

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item.done::after { background: var(--success); }

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item.done .timeline-dot { background: var(--success); border-color: var(--success); }
.timeline-item.active .timeline-dot { background: var(--accent); border-color: var(--accent); animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
}

.timeline-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.timeline-content p { font-size: 13px; color: var(--text-muted); }

/* ---- ADMIN ---- */
.admin-layout {
  display: grid;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .admin-layout { grid-template-columns: 260px 1fr; }
}

.admin-sidebar {
  background: var(--primary);
  color: white;
  padding: 0;
  position: fixed;
  left: -260px;
  top: 0;
  bottom: 0;
  width: 260px;
  z-index: 1500;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.admin-sidebar.open { left: 0; }

@media (min-width: 1024px) {
  .admin-sidebar { position: relative; left: 0; }
}

.sidebar-logo {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-text h2 { font-size: 16px; font-weight: 700; color: white; }
.sidebar-logo-text p { font-size: 11px; color: var(--accent); font-weight: 500; }

.sidebar-nav { padding: 16px 0; }

.nav-section {
  padding: 0 16px 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-item.active { background: rgba(212,175,55,0.2); color: var(--accent); font-weight: 600; }

.nav-item-icon { font-size: 18px; width: 22px; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.admin-main {
  margin-left: 0;
  min-height: 100vh;
  background: var(--bg);
}

@media (min-width: 1024px) {
  .admin-main { margin-left: 0; }
}

.admin-topbar {
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.admin-menu-btn {
  background: none;
  color: var(--text);
  font-size: 22px;
  padding: 4px;
}

@media (min-width: 1024px) {
  .admin-menu-btn { display: none; }
}

.admin-content { padding: 24px; }

.admin-page { display: none; }
.admin-page.active { display: block; }

/* ---- STATS CARDS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- DATA TABLES ---- */
.data-table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  background: white;
}

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

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

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

/* ---- STATUS BADGES ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-pending_payment { background: #fef3c7; color: #92400e; }
.status-payment_verification { background: #dbeafe; color: #1e40af; }
.status-accepted { background: #ede9fe; color: #5b21b6; }
.status-preparing { background: #cffafe; color: #0e7490; }
.status-dispatched { background: #ffedd5; color: #c2410c; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ---- FORM ELEMENTS ---- */
.input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: white;
  color: var(--text);
  transition: var(--transition);
}

.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); outline: none; }

.select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: white;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.select:focus { border-color: var(--accent); outline: none; }

.textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: white;
  color: var(--text);
  resize: vertical;
  min-height: 80px;
  font-family: var(--font);
  transition: var(--transition);
}

.textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); outline: none; }

/* ---- TOGGLE ---- */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ---- MISC ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ---- FLOATING BUTTONS ---- */
.float-btns {
  position: fixed;
  right: 16px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-decoration: none;
}

.float-btn:hover { transform: scale(1.1); }

.float-btn-wa { background: #25D366; color: white; }
.float-btn-cart { background: var(--accent); color: var(--primary); position: relative; }

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
  position: relative;
}

.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item .nav-icon { font-size: 22px; }

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s;
  pointer-events: all;
  max-width: 100%;
  text-align: center;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-warning { background: var(--warning); color: var(--primary); }

@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; } }

/* ---- PAGE TRANSITION ---- */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- FILTERS PANEL ---- */
.filters-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filters-bar::-webkit-scrollbar { display: none; }

.filters-inner {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  background: white;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-chip:hover, .filter-chip.active {
  border-color: var(--accent);
  background: rgba(212,175,55,0.08);
  color: var(--accent-dark);
  font-weight: 600;
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ---- MISC UTILS ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ---- BODY PADDING FOR BOTTOM NAV ---- */
body:not(.admin-body) { padding-bottom: 60px; }

@media (min-width: 1024px) {
  body:not(.admin-body) { padding-bottom: 0; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* ---- PRODUCT LIST SLIDER ---- */
.products-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.products-slider::-webkit-scrollbar { display: none; }

.products-slider .product-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

@media (min-width: 480px) {
  .products-slider .product-card { flex: 0 0 180px; }
}

/* ---- MODAL FORMS ---- */
.modal-form-group { margin-bottom: 14px; }
.modal-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---- IMAGE UPLOAD ---- */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.img-upload-area:hover { border-color: var(--accent); background: rgba(212,175,55,0.05); }

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

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

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-text { font-size: 14px; line-height: 1.6; }

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1400;
  display: none;
}
.sidebar-overlay.open { display: block; }

/* ---- FOOTER ---- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 16px 20px;
  margin-top: 40px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; gap: 32px; margin-bottom: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand h3 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-accent { color: var(--accent); }

.footer-section h4 { font-size: 14px; font-weight: 600; color: white; margin-bottom: 12px; letter-spacing: 0.5px; }
.footer-section ul { list-style: none; }
.footer-section li { padding: 4px 0; font-size: 13px; }
.footer-section a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
