* { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }
:root {
  --primary: #1A237E;
  --primary-light: #3949AB;
  --primary-dark: #0D1757;
  --accent: #FFC107;
  --success: #10b981;
  --danger: #ef4444;
  --light: #F5F7FB;
  --dark: #1A1A1A;
}
body { background: var(--light); min-height: 100vh; display: flex; flex-direction: column; }

/* Loader */
.loader {
  width: 60px; height: 60px;
  border: 5px solid #e0e0e0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Navbar */
.main-navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 12px 0;
}
.navbar-brand { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.nav-link { font-weight: 600; transition: all 0.3s; padding: 8px 16px !important; border-radius: 8px; }
.nav-link:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* Logo Circle */
.logo-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), #FF9800);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(255,193,7,0.4);
}
.logo-circle-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1rem;
  margin-left: 8px;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before, .hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-section::before { top: -100px; right: -100px; width: 300px; height: 300px; }
.hero-section::after { bottom: -80px; left: -80px; width: 250px; height: 250px; }
.hero-icon { font-size: 4rem; opacity: 0.9; }

/* Section Title */
.section-title {
  font-weight: 800;
  color: var(--primary);
  position: relative;
  padding-bottom: 12px;
  display: inline-block;
  font-size: 1.8rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}

/* Search */
.search-box .form-control { border: 2px solid #e0e0e0; border-radius: 12px !important; font-weight: 500; }
.search-box .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(26,35,126,0.15); }

/* Product Card */
.product-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.product-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  background: #f0f0f0;
  transition: transform 0.4s;
}
.product-card:hover .product-img { transform: scale(1.05); }
.discount-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(239,68,68,0.4);
}
.price-old { text-decoration: line-through; color: #9ca3af; font-size: 14px; font-weight: 500; }
.price-new { color: var(--primary); font-weight: 800; font-size: 22px; }

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(26,35,126,0.25);
}
.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,35,126,0.4);
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  margin-top: auto;
}
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  margin-left: 8px;
  transition: all 0.3s;
  text-decoration: none;
}
.social-btn:hover { transform: translateY(-4px) scale(1.1); color: #fff; }
.social-btn.whatsapp { background: #25D366; }
.social-btn.facebook { background: #1877F2; }
.social-btn.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.social-btn.tiktok { background: #000; }

/* Cart Item */
.cart-item { border-radius: 16px !important; border: none; transition: all 0.3s; }
.cart-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important; }
.item-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}
.qty-btn { width: 36px; height: 36px; border-radius: 50% !important; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.summary-card { border-radius: 20px !important; border: none; position: sticky; top: 100px; }

/* Delivery Option */
.delivery-option {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.delivery-option.selected { border-color: #10b981; background: #f0fff4; box-shadow: 0 4px 12px rgba(16,185,129,0.2); }
.delivery-option:hover { border-color: #10b981; }

/* Order Status Badge */
.order-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section { padding: 40px 0; }
  .hero-section h1 { font-size: 1.8rem; }
  .hero-icon { font-size: 2.5rem; }
  .section-title { font-size: 1.4rem; }
  .product-img { height: 160px; }
}
