/* CSS Variables */
:root {
  --primary: #FF6B6B;
  --secondary: #1a1a2e;
  --accent: #FFD93D;
  --accent2: #6BCB77;
  --accent3: #4D96FF;
  --bg: #fff8f0;
  --card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #e9ecef;
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.cart-count {
  background: var(--primary);
  color: white;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.3rem;
}

.search-box {
  display: flex;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 0.5rem;
  border: 2px solid transparent;
  transition: var(--transition);
}

.search-box:hover {
  border-color: var(--primary);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  padding: 0.5rem;
  width: 250px;
}

.search-box button {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent3) 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="confetti" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="2" fill="%23FFD93D" opacity="0.8"/><circle cx="80" cy="30" r="1.5" fill="%236BCB77" opacity="0.7"/><circle cx="40" cy="80" r="2.5" fill="%23FF6B6B" opacity="0.6"/></pattern></defs><rect width="100" height="100" fill="url(%23confetti)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff5252);
  color: white;
  box-shadow: var(--shadow);
}

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

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}

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

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.hero-emojis {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.emoji-float {
  position: absolute;
  font-size: 4rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.3;
  z-index: 1;
}

.emoji-float:nth-child(1) { top: 10%; left: 3%; animation-delay: 0s; }
.emoji-float:nth-child(2) { top: 60%; left: 5%; animation-delay: 1.5s; font-size: 3rem; }
.emoji-float:nth-child(3) { top: 15%; right: 3%; animation-delay: 2s; }
.emoji-float:nth-child(4) { top: 65%; right: 5%; animation-delay: 3.5s; font-size: 3rem; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* Stats Bar */
.stats-bar {
  background: white;
  box-shadow: var(--shadow);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
}

/* Categories Section */
.categories-section {
  padding: 4rem 0;
  background: white;
}

.categories-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent2));
}

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

.category-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  color: var(--primary);
  filter: drop-shadow(0 5px 15px rgba(255, 107, 107, 0.2));
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Featured Products */
.featured-products {
  padding: 4rem 0;
  background: var(--bg);
}

.featured-products h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary);
}

.products-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  min-width: 280px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.product-card.featured {
  flex: 0 0 300px;
}

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

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sale-price {
  color: var(--primary);
}

.original-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 400;
  font-size: 1rem;
  margin-left: 0.5rem;
}

/* Marquee */
.marquee {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--secondary);
  font-weight: 600;
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  animation: marquee 15s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Features Section */
.features-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

/* Newsletter */
.newsletter-section {
  background: var(--secondary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: none;
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

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

/* Shop Page */
.shop-page {
  padding: 4rem 0;
}

.shop-header {
  text-align: center;
  margin-bottom: 3rem;
}

.shop-header h1 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.shop-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}

.shop-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.sidebar-section:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-hover);
}

.sidebar-section h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.category-list {
  list-style: none;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  font-weight: 500;
}

.category-list a i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.category-list li:last-child a {
  border-bottom: none;
}

.category-list a:hover,
.category-list a.active {
  color: var(--primary);
  padding-left: 0.8rem;
}

.price-range {
  margin: 1.5rem 0;
}

#priceRange {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

#priceRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border: 4px solid white;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

#priceRange::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: #ff5252;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

#priceValue {
  font-weight: 700;
  color: white;
  background: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.quick-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .quick-actions {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
}

.product-info h3 a {
  color: var(--secondary);
  text-decoration: none;
}

.stars {
  color: var(--accent);
  margin-bottom: 1rem;
}

.stars i {
  font-size: 0.9rem;
}

.add-to-cart-prominent {
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.product-card:hover .add-to-cart-prominent {
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

/* Product Page */
.product-page {
  padding: 4rem 0;
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.product-gallery img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
}

.gallery-thumbs img.active {
  border-color: var(--primary);
}

.stock {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.stock.in-stock {
  background: var(--accent2);
  color: white;
}

.stock.low-stock {
  background: #ffc107;
  color: var(--secondary);
}

.stock.out-stock {
  background: #dc3545;
  color: white;
}

.price-section {
  margin: 1.5rem 0;
}

.savings {
  background: var(--accent2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.qty-buttons {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 50px;
  overflow: hidden;
}

.qty-btn {
  width: 45px;
  height: 45px;
  border: none;
  background: white;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.qty-btn.minus {
  border-right: 1px solid var(--border);
}

.qty-btn.plus {
  border-left: 1px solid var(--border);
}

#productQty {
  width: 60px;
  height: 45px;
  border: none;
  background: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.product-tabs {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 4rem;
}

.tab-buttons {
  display: flex;
  background: #f8f9fa;
}

.tab-btn {
  flex: 1;
  padding: 1.5rem;
  border: none;
  background: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  background: white;
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.tab-pane {
  padding: 2.5rem;
  display: none;
}

.tab-pane.active {
  display: block;
}

.features-list {
  list-style: none;
  margin-top: 1.5rem;
}

.features-list li {
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
  border-bottom: none;
}

/* Cart Page */
.cart-page {
  padding: 4rem 0;
  min-height: 60vh;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart i {
  font-size: 6rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.empty-cart h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.cart-items {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr 120px 200px;
  gap: 1.5rem;
  padding: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-details h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.item-total {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.remove-item {
  background: #f8f9fa;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: #dc3545;
  transition: var(--transition);
}

.remove-item:hover {
  background: #dc3545;
  color: white;
}

.qty-buttons {
  display: flex;
  background: #f8f9fa;
  border-radius: 25px;
  overflow: hidden;
}

.qty-buttons input {
  width: 50px;
  text-align: center;
  border: none;
  background: none;
  height: 40px;
}

.cart-summary-box {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.discount {
  color: var(--accent2);
}

.summary-total {
  margin-top: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.coupon-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: var(--border-radius);
}

.coupon-form {
  display: flex;
  gap: 0.5rem;
}

.coupon-form input {
  flex: 1;
  padding: 0.8rem;
  border: 2px solid var(--border);
  border-radius: 8px;
}

.coupon-form button {
  padding: 0.8rem 1.5rem;
  white-space: nowrap;
}

.checkout-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.2rem;
  font-size: 1.1rem;
}

/* Checkout Page */
.checkout-page {
  padding: 4rem 0;
  background: var(--bg);
}

.checkout-header {
  text-align: center;
  margin-bottom: 4rem;
}

.progress-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  color: var(--text-light);
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  right: -2rem;
  width: 3rem;
  height: 2px;
  background: var(--border);
}

.progress-step.active {
  color: var(--primary);
}

.progress-step.active::after {
  background: var(--primary);
}

.progress-step i {
  font-size: 1.5rem;
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 4rem;
}

.checkout-section {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.checkout-section h2 {
  margin-bottom: 2rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.order-items-section {
  margin-top: 2rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.order-item-info img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.order-total {
  font-size: 1.5rem !important;
  margin-top: 1.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 3px solid var(--primary) !important;
}

.payment-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  font-size: 0.95rem;
}

.checkout-btn {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.2rem;
  margin-top: 2rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent3) 100%);
  padding: 2rem;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 450px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  display: block;
  margin: 0.5rem 0;
  color: var(--text-light);
  text-decoration: none;
}

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

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .search-box {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .shop-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .shop-sidebar {
    position: static;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .product-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cart-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr 100px;
    gap: 1rem;
  }
  
  .checkout-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .progress-bar {
    gap: 2rem;
  }
  
  .progress-step:not(:last-child)::after {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

/* Admin Styles */
.admin-body {
  background: #f8f9fa;
  font-family: 'Poppins', sans-serif;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background: var(--secondary);
  color: white;
  padding: 2rem 0;
}

.sidebar-header {
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-nav {
  list-style: none;
  padding: 2rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-main {
  flex: 1;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logout-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
}

.stat-card.revenue .stat-icon i {
  color: var(--accent2);
}

.stat-card.orders .stat-icon i {
  color: var(--primary);
}

.stat-card.products .stat-icon i {
  color: var(--accent3);
}

.stat-card.users .stat-icon i {
  color: var(--accent);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255,107,107,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.admin-panel {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-panel h2 {
  padding: 2rem 2rem 1.5rem;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.admin-table {
  display: block;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 120px 2fr 1fr 1fr 120px 1fr;
  gap: 1rem;
  padding: 1.5rem 2rem;
  align-items: center;
}

.table-header {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--secondary);
  border-bottom: 2px solid var(--border);
}

.table-row:nth-child(even) {
  background: #f8f9fa;
}

.table-row:hover {
  background: #e9ecef;
}

.admin-table-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending { background: #ffc107; color: var(--secondary); }
.status-processing { background: #17a2b8; color: white; }
.status-shipped { background: #28a745; color: white; }
.status-delivered { background: var(--accent2); color: white; }
.status-cancelled { background: #dc3545; color: white; }

.admin-form {
  padding: 2rem;
}

.admin-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-form .form-group.full-width {
  grid-column: 1 / -1;
}

.admin-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
}

.admin-form input[type="file"] {
  padding: 0.5rem;
}

.admin-product-preview,
.admin-category-preview {
  max-width: 150px;
  max-height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
}

.order-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.order-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: var(--border-radius);
}

.order-section h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.detail-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-row pre {
  white-space: pre-wrap;
  font-family: inherit;
}

.status-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.table-responsive {
  overflow-x: auto;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none; }

/* Alert Styles */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive for smaller screens */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .form-actions {
    flex-direction: column;
  }
}
/* --- PREMIUM PRODUCT PAGE OVERRIDES --- */

.premium-product-wrapper {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.8);
  margin-bottom: 4rem;
}

.premium-product-wrapper .product-main {
  gap: 5rem;
  align-items: flex-start;
  margin-bottom: 0;
}

.main-image-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  padding: 1rem;
}

.main-image-container:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.main-image-container img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-thumbs img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.product-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--secondary) 0%, #4a4a6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #ffc107 100%);
  color: var(--secondary);
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

.stars-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.reviews-count {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.premium-price-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.premium-price-section .sale-price,
.premium-price-section .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.premium-price-section .original-price {
  font-size: 1.4rem;
  color: #adb5bd;
  text-decoration: line-through;
  font-weight: 500;
}

.savings-badge {
  background: rgba(107, 203, 119, 0.15);
  color: var(--accent2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.premium-stock-status {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.premium-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.qty-selector label {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

.qty-control {
  display: inline-flex;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.qty-btn {
  background: none;
  border: none;
  width: 45px;
  height: 45px;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #e9ecef;
  color: var(--primary);
}

#productQty {
  width: 60px;
  border: none;
  background: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  -moz-appearance: textfield;
}

#productQty::-webkit-outer-spin-button,
#productQty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-premium {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #ff4757 100%);
  color: white;
  border: none;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 107, 107, 0.4);
}

.btn-premium i {
  transition: transform 0.3s;
}

.btn-premium:hover i {
  transform: translateX(5px);
}

.premium-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}

.meta-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.meta-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.meta-item a:hover {
  color: #ff4757;
}

.secure-checkout {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  color: var(--accent2);
  font-weight: 600;
}

/* Make related products matching */
.related-products {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-products h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary);
}

@media (max-width: 992px) {
  .premium-product-wrapper .product-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

