/* ============================================================
   SHOPHUB - MAIN STYLESHEET
   Colors: Primary #2563EB | Secondary #111827 | Accent #22C55E
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --secondary: #111827;
  --accent: #22C55E;
  --accent-dark: #16a34a;
  --bg: #FFFFFF;
  --text: #374151;
  --light-gray: #F3F4F6;
  --border: #E5E7EB;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(37,99,235,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: none;
  transition: var(--transition); position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%); transition: transform 0.4s ease;
}
.btn:hover::after { transform: translateX(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--secondary); color: #fff;
  font-size: 13px; padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-bar-right a { color: #fff; opacity: 0.8; transition: var(--transition); }
.top-bar-right a:hover { opacity: 1; }
.top-bar span i { margin-right: 5px; color: var(--accent); }

/* ---- MAIN HEADER ---- */
.main-header {
  background: #fff; padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 1000;
}
.main-header .container { display: flex; align-items: center; gap: 24px; }

.logo {
  font-size: 26px; font-weight: 800; color: var(--secondary);
  white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.logo i { color: var(--primary); }
.logo span { color: var(--primary); }

.search-form {
  flex: 1; display: flex; max-width: 520px;
  border: 2px solid var(--border); border-radius: 50px; overflow: hidden;
  transition: var(--transition);
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.search-form select {
  border: none; outline: none; padding: 0 16px;
  background: var(--light-gray); font-size: 13px; font-family: inherit;
  border-right: 1px solid var(--border); cursor: pointer;
}
.search-form input {
  flex: 1; border: none; outline: none;
  padding: 12px 16px; font-size: 14px; font-family: inherit;
}
.search-form button {
  background: var(--primary); color: #fff; border: none;
  padding: 0 20px; cursor: pointer; font-size: 16px;
  transition: var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-btn {
  position: relative; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--secondary); font-size: 18px;
  transition: var(--transition); background: var(--light-gray);
}
.header-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--secondary);
}

/* ---- NAVIGATION ---- */
.main-nav {
  background: var(--secondary); padding: 0;
  position: relative; z-index: 999;
}
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; list-style: none; }
.nav-links > li > a {
  display: block; padding: 16px 20px; color: #fff;
  font-weight: 500; font-size: 14px; transition: var(--transition);
  position: relative;
}
.nav-links > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--accent); transition: var(--transition);
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { left: 0; right: 0; }
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--accent); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
  list-style: none; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition);
  z-index: 1000; overflow: hidden;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
  display: block; padding: 12px 20px; color: var(--text);
  font-size: 14px; transition: var(--transition);
  border-bottom: 1px solid var(--border);
}
.dropdown-menu li a:hover { background: var(--light-gray); color: var(--primary); padding-left: 28px; }

.promo-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; padding: 6px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { box-shadow: 0 0 5px rgba(245,158,11,0.5); }
  to { box-shadow: 0 0 20px rgba(245,158,11,0.8); }
}

/* ---- HERO SECTION ---- */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 60%, var(--primary) 100%);
  min-height: 85vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content { animation: fadeInLeft 0.8s ease; }
.hero-badge {
  display: inline-block; background: rgba(34,197,94,0.2);
  color: var(--accent); padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(34,197,94,0.3);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat { color: #fff; text-align: center; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-stat span { font-size: 13px; opacity: 0.7; }

.hero-image { animation: fadeInRight 0.8s ease; text-align: center; }
.hero-image img { border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.3); max-height: 500px; }
.floating-cards { position: absolute; right: 10%; top: 50%; }
.floating-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px; padding: 12px 20px; color: #fff;
  font-size: 13px; display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; animation: float 3s ease-in-out infinite;
}
.floating-card:nth-child(2) { animation-delay: 1s; }
.floating-card:nth-child(3) { animation-delay: 2s; }
.floating-card i { color: var(--accent); font-size: 20px; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- SECTION TITLES ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--secondary); margin-bottom: 12px; }
.section-header p { color: #6B7280; font-size: 16px; max-width: 560px; margin: 0 auto; }
.section-header .subtitle {
  display: inline-block; color: var(--primary); font-weight: 600;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px;
}
.divider {
  width: 60px; height: 4px; background: var(--primary);
  border-radius: 2px; margin: 16px auto 0;
}

/* ---- CATEGORIES ---- */
.categories-section { padding: 80px 0; background: var(--light-gray); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.category-card {
  background: #fff; border-radius: var(--radius); padding: 30px 20px;
  text-align: center; transition: var(--transition); cursor: pointer;
  border: 2px solid transparent; box-shadow: var(--shadow);
}
.category-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.category-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 26px; color: #fff;
  transition: var(--transition);
}
.category-card:hover .category-icon { transform: rotate(10deg) scale(1.1); }
.category-card h3 { font-size: 15px; font-weight: 600; color: var(--secondary); }
.category-card span { font-size: 12px; color: #9CA3AF; }

/* ---- PRODUCT CARDS ---- */
.products-section { padding: 80px 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.product-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-img-wrap { position: relative; overflow: hidden; height: 240px; background: var(--light-gray); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge-sale { background: #ef4444; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-new { background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }

.product-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(20px); transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--secondary); box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.product-action-btn:hover { background: var(--primary); color: #fff; }

.product-body { padding: 20px; }
.product-category { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--secondary); margin-bottom: 8px; line-height: 1.4; }
.product-rating { color: #f59e0b; font-size: 13px; margin-bottom: 12px; }
.product-rating span { color: var(--text); font-size: 12px; margin-left: 4px; }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.price-current { font-size: 20px; font-weight: 800; color: var(--secondary); }
.price-old { font-size: 14px; color: #9CA3AF; text-decoration: line-through; }
.add-to-cart {
  width: 100%; padding: 12px; background: var(--accent);
  color: #fff; border: none; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.add-to-cart:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---- BANNER ---- */
.promo-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e3a5f, var(--primary));
}
.promo-banner .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.promo-content h2 { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.promo-content p { color: rgba(255,255,255,0.8); font-size: 17px; margin-bottom: 28px; }
.countdown { display: flex; gap: 16px; margin-bottom: 32px; }
.countdown-item { text-align: center; background: rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 20px; }
.countdown-item strong { display: block; font-size: 32px; font-weight: 800; color: #fff; }
.countdown-item span { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { padding: 80px 0; background: var(--light-gray); }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { min-width: 100%; padding: 0 20px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: #fff; border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  animation: fadeInUp 0.6s ease;
}
.testimonial-stars { color: #f59e0b; font-size: 18px; margin-bottom: 16px; }
.testimonial-text { color: var(--text); font-size: 15px; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: 18px;
}
.testimonial-author h4 { font-size: 15px; font-weight: 700; color: var(--secondary); }
.testimonial-author span { font-size: 12px; color: #9CA3AF; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: var(--transition); border: none;
}
.slider-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }
.slider-arrows { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.slider-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  cursor: pointer; font-size: 16px; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ---- FEATURES BAR ---- */
.features-bar { background: var(--secondary); padding: 40px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 16px; color: #fff; }
.feature-item i { font-size: 32px; color: var(--accent); }
.feature-item h4 { font-size: 15px; font-weight: 600; }
.feature-item p { font-size: 12px; opacity: 0.7; }

/* ---- FORMS ---- */
.auth-section {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
  padding: 60px 20px;
}
.auth-card {
  background: #fff; border-radius: 20px;
  padding: 48px; max-width: 480px; width: 100%; margin: 0 auto;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
  animation: slideUp 0.6s ease;
}
.auth-card h2 { font-size: 28px; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.auth-card .subtitle { color: #6B7280; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--secondary); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; transition: var(--transition);
  outline: none; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9CA3AF; }
.input-icon input { padding-left: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: #6B7280; }
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-size: 24px; font-weight: 800; color: var(--secondary); }
.auth-logo a span { color: var(--primary); }
.auth-logo a i { color: var(--primary); }

/* ---- ALERTS ---- */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--accent); }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--primary); }

/* ---- CART & WISHLIST ---- */
.page-section { padding: 60px 0; }
.page-header { background: linear-gradient(135deg, var(--secondary), #1e3a5f); padding: 48px 0; margin-bottom: 0; }
.page-header h1 { color: #fff; font-size: 36px; font-weight: 800; }
.page-header .breadcrumb { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 8px; }
.page-header .breadcrumb a { color: var(--accent); }

.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-table table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--light-gray); padding: 16px 20px; text-align: left; font-size: 13px; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }
.cart-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-product h4 { font-size: 14px; font-weight: 600; color: var(--secondary); }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 32px; height: 32px; border: 2px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; font-size: 16px; transition: var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input { width: 50px; text-align: center; border: 2px solid var(--border); border-radius: 6px; padding: 6px; font-size: 14px; }

.cart-summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: sticky; top: 120px; }
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--secondary); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 15px; }
.summary-row.total { font-weight: 800; font-size: 18px; color: var(--secondary); border-top: 2px solid var(--border); padding-top: 14px; margin-top: 4px; }
.coupon-form { display: flex; gap: 8px; margin: 20px 0; }
.coupon-form input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; outline: none; font-size: 14px; }
.coupon-form input:focus { border-color: var(--primary); }
.coupon-form button { padding: 10px 18px; background: var(--secondary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* ---- PRODUCT DETAIL ---- */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin: 48px 0; }
.product-gallery .main-image { border-radius: var(--radius); overflow: hidden; height: 460px; background: var(--light-gray); }
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 12px; margin-top: 12px; }
.product-thumbnails img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: var(--transition); }
.product-thumbnails img:hover, .product-thumbnails img.active { border-color: var(--primary); }
.product-info h1 { font-size: 28px; font-weight: 800; color: var(--secondary); margin-bottom: 12px; }
.stock-badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.stock-badge.in-stock { background: #d1fae5; color: #065f46; }
.stock-badge.out-stock { background: #fee2e2; color: #991b1b; }
.product-price-wrap { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.product-price-wrap .big-price { font-size: 36px; font-weight: 800; color: var(--secondary); }
.product-price-wrap .old-price { font-size: 20px; color: #9CA3AF; text-decoration: line-through; }
.product-actions-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }

/* ---- CHECKOUT ---- */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; margin: 48px 0; align-items: start; }
.checkout-form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.checkout-form-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; color: var(--secondary); padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.payment-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.payment-option {
  border: 2px solid var(--border); border-radius: 8px; padding: 16px;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 12px;
}
.payment-option:hover { border-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: rgba(37,99,235,0.05); }
.payment-option input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.payment-option i { font-size: 24px; color: var(--primary); }

/* ---- ORDER TRACKING ---- */
.tracking-steps { display: flex; justify-content: space-between; position: relative; margin: 48px 0; }
.tracking-steps::before {
  content: ''; position: absolute; top: 24px; left: 0; right: 0;
  height: 3px; background: var(--border); z-index: 0;
}
.tracking-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.step-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--border); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 12px; font-size: 20px;
  color: #fff; transition: var(--transition);
}
.tracking-step.done .step-icon { background: var(--accent); }
.tracking-step.active .step-icon { background: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
.tracking-step p { font-size: 13px; font-weight: 600; color: var(--secondary); }
.tracking-step span { font-size: 11px; color: #9CA3AF; }

/* ---- ACCOUNT ---- */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin: 48px 0; }
.account-sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; height: fit-content; }
.account-avatar { text-align: center; margin-bottom: 20px; }
.avatar-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 32px;
  font-weight: 700; margin: 0 auto 12px;
}
.account-sidebar h3 { text-align: center; font-size: 16px; font-weight: 700; color: var(--secondary); }
.account-nav { list-style: none; margin-top: 20px; }
.account-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 8px; font-size: 14px;
  font-weight: 500; color: var(--text); transition: var(--transition);
}
.account-nav li a:hover, .account-nav li a.active { background: rgba(37,99,235,0.08); color: var(--primary); }
.account-nav li a i { width: 18px; }

/* ---- WISHLIST ---- */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

/* ---- ABOUT ---- */
.about-hero { background: linear-gradient(135deg, var(--secondary), #1e3a5f); padding: 100px 0; text-align: center; }
.about-hero h1 { color: #fff; font-size: 52px; font-weight: 800; }
.about-hero p { color: rgba(255,255,255,0.8); font-size: 18px; margin-top: 16px; }
.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; display: block; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.team-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; transition: var(--transition); }
.team-card:hover { transform: translateY(-6px); }
.team-img { height: 200px; background: linear-gradient(135deg, var(--primary), #7c3aed); display: flex; align-items: center; justify-content: center; font-size: 60px; color: rgba(255,255,255,0.3); }
.team-card h4 { padding: 16px 16px 4px; font-size: 16px; font-weight: 700; }
.team-card span { color: #9CA3AF; font-size: 13px; }
.team-card p { padding: 8px 16px 16px; font-size: 13px; color: var(--text); }

/* ---- SERVICES ---- */
.services-hero { background: linear-gradient(135deg, var(--primary), #7c3aed); padding: 100px 0; text-align: center; }
.services-hero h1 { color: #fff; font-size: 52px; font-weight: 800; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; margin-top: 48px; }
.service-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; text-align: center; transition: var(--transition); border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-8px); border-bottom-color: var(--primary); box-shadow: var(--shadow-hover); }
.service-icon { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c3aed); display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; margin: 0 auto 24px; transition: var(--transition); }
.service-card:hover .service-icon { transform: scale(1.1) rotate(10deg); }
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.service-card p { color: #6B7280; font-size: 14px; line-height: 1.7; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; margin: 64px 0; }
.contact-info h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.contact-details { margin-top: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-item-icon { width: 52px; height: 52px; background: rgba(37,99,235,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); flex-shrink: 0; }
.contact-item h4 { font-weight: 700; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: #6B7280; }
.contact-form-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 40px; }
.contact-form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 28px; }

/* ---- TERMS & PRIVACY ---- */
.legal-section { padding: 60px 0; max-width: 840px; margin: 0 auto; }
.legal-section h2 { font-size: 32px; font-weight: 800; color: var(--secondary); margin-bottom: 12px; }
.legal-date { color: #9CA3AF; font-size: 13px; margin-bottom: 36px; }
.legal-section h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--secondary); }
.legal-section p, .legal-section li { color: var(--text); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.legal-section ul { padding-left: 24px; }
.legal-section li { margin-bottom: 8px; }

/* ---- ADMIN ---- */
.admin-login { min-height: 100vh; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); display: flex; align-items: center; justify-content: center; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--secondary); flex-shrink: 0; display: flex; flex-direction: column; }
.admin-sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-logo { font-size: 20px; font-weight: 800; color: #fff; }
.admin-logo span { color: var(--accent); }
.admin-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; transition: var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: #fff; border-left: 3px solid var(--accent); }
.admin-nav a i { width: 20px; font-size: 16px; }
.admin-content { flex: 1; background: #f1f5f9; overflow: auto; }
.admin-topbar { background: #fff; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.admin-topbar h2 { font-size: 18px; font-weight: 700; color: var(--secondary); }
.admin-main { padding: 28px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.admin-card-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.admin-card-icon.blue { background: var(--primary); }
.admin-card-icon.green { background: var(--accent); }
.admin-card-icon.orange { background: #f59e0b; }
.admin-card-icon.red { background: #ef4444; }
.admin-card h3 { font-size: 26px; font-weight: 800; color: var(--secondary); }
.admin-card p { font-size: 13px; color: #9CA3AF; }
.admin-table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-table-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-table-header h3 { font-size: 16px; font-weight: 700; }
table.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--light-gray); padding: 14px 20px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #6B7280; }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(37,99,235,0.02); }
.status-badge { padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-active { background: #d1fae5; color: #065f46; }
.status-inactive { background: #f3f4f6; color: #6B7280; }
.action-btns { display: flex; gap: 8px; }
.action-btn { padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); }
.action-btn.edit { background: #dbeafe; color: #1e40af; }
.action-btn.delete { background: #fee2e2; color: #991b1b; }
.action-btn:hover { opacity: 0.85; transform: scale(0.97); }
.admin-form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.admin-form-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--secondary); color: #fff; padding: 14px 24px;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(100px); opacity: 0; transition: all 0.4s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid #ef4444; }

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; visibility: hidden; transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }

/* ---- ANIMATIONS ---- */
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 64px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.empty-state p { color: #9CA3AF; margin-bottom: 24px; }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn { width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; transition: var(--transition); display: flex; align-items: center; justify-content: center; color: var(--text); }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .cart-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .main-nav.open { display: block; }
  .nav-links { flex-direction: column; }
  .search-form select { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .top-bar-left { display: none; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .promo-banner .container { grid-template-columns: 1fr; }
  .countdown { gap: 8px; }
  .auth-card { padding: 28px 20px; }
  .admin-main { padding: 16px; }
}