/* ==================== BOOMING MART - PREMIUM E-COMMERCE DESIGN ==================== */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* CSS Variables for easy theming */
:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --secondary: #EC4899;
  --accent: #10B981;
  --dark: #1F2937;
  --darker: #111827;
  --light: #F9FAFB;
  --white: #FFFFFF;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

main {
  min-height: 100vh;
  padding-top: 0;
}

/* ==================== NAVIGATION BAR ==================== */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo a:hover {
  transform: scale(1.05);
}

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

.navlinks li a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  position: relative;
}

.navlinks li a:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
}

.cart-badge, .wishlist-badge {
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  margin-left: 0.3rem;
  font-weight: 600;
  display: inline-block;
  animation: pulse 2s infinite;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-name {
  color: var(--dark);
  font-weight: 600;
}

.logout-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

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

/* ==================== HERO SECTION ==================== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.05'%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");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero > *, .hero-content > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
  font-weight: 400;
}

.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
  border: none;
  cursor: pointer;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  background: var(--light);
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
  background: var(--light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
  padding: 0.5rem;
}

.btn-icon:hover {
  color: var(--secondary);
  transform: scale(1.2);
}

/* ==================== FEATURED PRODUCTS SECTION ==================== */
.featured-products, .products-list {
  padding: 6rem 2rem;
  background: var(--white);
}

.featured-products > *, .products-list > * {
  max-width: 1400px;
  margin: 0 auto;
}

.featured-products h2, .products-list h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--darker);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.featured-products h2::after, .products-list h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  animation: fadeIn 0.6s ease-out;
}

/* ==================== PRODUCT CARD - FLOATING DESIGN ==================== */
.product-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: floatIn 0.6s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

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

.product-image {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(236, 72, 153, 0.1));
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-image::before {
  opacity: 1;
}

.product-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.product-card:hover .product-image img {
  transform: scale(1.1) rotate(2deg);
}

.discount-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: bounce 2s infinite;
}

.stock-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(239, 68, 68, 0.95);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--darker);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.current-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.compare-price {
  font-size: 1.1rem;
  color: var(--gray);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
  align-items: center;
}

.product-actions .btn {
  flex: 1;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  text-align: center;
}

.product-actions .btn-icon {
  flex: 0;
  font-size: 1.4rem;
  padding: 0.8rem;
  background: var(--light);
  border-radius: 0.8rem;
}

.product-actions .btn-icon:hover {
  background: rgba(236, 72, 153, 0.1);
  color: var(--secondary);
}

/* ==================== FILTERS ==================== */
.filters {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInDown 0.6s ease-out;
}

.filters select,
.filters input[type="text"] {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: var(--transition);
  min-width: 200px;
  box-shadow: var(--shadow-sm);
}

.filters select:focus,
.filters input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ==================== CART & WISHLIST PAGES ==================== */
.cart, .wishlist {
  padding: 4rem 0;
  min-height: 70vh;
}

.cart h2, .wishlist h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--darker);
  margin-bottom: 2rem;
}

.cart-items, .wishlist-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cart-item, .wishlist-item {
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: slideInLeft 0.4s ease-out backwards;
}

.cart-item:hover, .wishlist-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(8px);
}

.cart-item img, .wishlist-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: var(--light);
  border-radius: 1rem;
  padding: 1rem;
}

.cart-item-info, .wishlist-item-info {
  flex: 1;
}

.cart-item-info h3, .wishlist-item-info h3 {
  font-size: 1.3rem;
  color: var(--darker);
  margin-bottom: 0.5rem;
}

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

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.qty-input {
  width: 60px;
  text-align: center;
  padding: 0.5rem;
  border: 2px solid var(--gray-light);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.cart-item-subtotal {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--darker);
}

.remove-btn, .remove-wishlist-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  font-weight: 700;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.remove-btn:hover, .remove-wishlist-btn:hover {
  background: #EF4444;
  color: white;
  transform: scale(1.1);
}

.wishlist-item {
  position: relative;
}

/* ==================== CART SUMMARY ==================== */
.cart-summary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  color: white;
  position: sticky;
  top: 100px;
  animation: slideInRight 0.6s ease-out;
}

.cart-summary h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
}

.summary-row.total {
  border-top: 2px solid white;
  border-bottom: none;
  margin-top: 1rem;
  padding-top: 1.5rem;
  font-size: 1.4rem;
}

/* ==================== CHECKOUT PAGE ==================== */
.checkout {
  padding: 4rem 0;
}

.checkout h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--darker);
  margin-bottom: 2rem;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  margin-top: 2rem;
}

.checkout-form-section {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: slideInLeft 0.6s ease-out;
}

.checkout-form-section h3 {
  font-size: 1.6rem;
  color: var(--darker);
  margin: 2rem 0 1rem 0;
}

.checkout-form-section h3:first-child {
  margin-top: 0;
}

.checkout-form-section label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.checkout-form-section input,
.checkout-form-section textarea,
.checkout-form-section select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.checkout-form-section input:focus,
.checkout-form-section textarea:focus,
.checkout-form-section select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.payment-methods label {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.payment-methods label:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.payment-methods input[type="radio"] {
  width: auto;
  margin-right: 1rem;
}

.order-summary-section {
  animation: slideInRight 0.6s ease-out;
}

.order-summary-section h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--darker);
}

.order-items {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--gray-light);
}

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

.order-totals {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  font-size: 1.1rem;
}

.total-row.grand-total {
  border-top: 2px solid var(--gray-light);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1.4rem;
  color: var(--primary);
}

/* ==================== AUTH FORMS ==================== */
.login, .register {
  max-width: 500px;
  margin: 4rem auto;
  animation: zoomIn 0.6s ease-out;
}

.login h2, .register h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--darker);
  margin-bottom: 2rem;
}

.auth-form {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.auth-form label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-form button[type="submit"] {
  width: 100%;
  margin-top: 2rem;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  padding: 1rem;
  border-radius: 0.8rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #EF4444;
  font-weight: 500;
}

.login p, .register p {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray);
}

.login a, .register a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.login a:hover, .register a:hover {
  text-decoration: underline;
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
  position: fixed;
  top: 100px;
  right: 2rem;
  background: white;
  padding: 1.2rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-2xl);
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid var(--accent);
  min-width: 300px;
  font-weight: 600;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  border-left-color: var(--accent);
}

.notification-error {
  border-left-color: #EF4444;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--darker);
  color: white;
  text-align: center;
  padding: 3rem 0;
  margin-top: 5rem;
}

footer p {
  font-size: 1rem;
  opacity: 0.8;
}

/* ==================== UTILITY CLASSES ==================== */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.out-of-stock {
  color: #EF4444;
  font-weight: 700;
  font-size: 1.1rem;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

#loading, #empty-cart, #empty-wishlist {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.3rem;
  color: var(--gray);
}

.no-products, .error {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--gray);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
  
  .order-summary-section {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .navlinks {
    gap: 1rem;
  }
  
  .navlinks li a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .cart-item, .wishlist-item {
    flex-direction: column;
    text-align: center;
  }
  
  .featured-products h2, .products-list h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navlinks {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==================== PRODUCT DETAIL PAGE ==================== */
.product-detail-section {
  padding: 4rem 2rem;
  background: var(--white);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-image {
  background: var(--light);
  border-radius: 1.5rem;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.product-detail-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 500px;
  border-radius: 1rem;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-breadcrumb {
  font-size: 0.9rem;
  color: var(--gray);
}

.product-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--darker);
  margin: 0;
  line-height: 1.2;
}

.product-detail-category {
  display: inline-block;
  background: var(--primary-light);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.product-detail-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.in-stock {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.product-detail-description {
  padding: 1.5rem;
  background: var(--light);
  border-radius: 1rem;
  border-left: 4px solid var(--primary);
}

.product-detail-description h3 {
  margin-top: 0;
  color: var(--darker);
  font-size: 1.3rem;
}

.product-detail-quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-detail-quantity label {
  font-weight: 600;
  color: var(--dark);
}

.product-detail-quantity input {
  width: 100px;
  padding: 0.75rem;
  border: 2px solid var(--gray-light);
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.product-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.product-detail-meta {
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-light);
}

.product-detail-meta p {
  margin: 0.5rem 0;
  color: var(--gray);
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-detail-title {
    font-size: 2rem;
  }
  
  .product-detail-price {
    font-size: 2rem;
  }
  
  .product-detail-actions {
    flex-direction: column;
  }
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.feature-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--darker);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== PROMO BANNER ==================== */
.promo-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.05'%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");
  opacity: 0.3;
}

.promo-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.promo-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.promo-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

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

.btn-light:hover {
  background: var(--light);
}

/* ==================== CATEGORIES SHOWCASE ==================== */
.categories-showcase {
  padding: 5rem 2rem;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--darker);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.category-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-2xl);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}

.category-card:hover .category-icon {
  transform: scale(1.2) rotate(10deg);
}

.category-card:hover h3,
.category-card:hover p {
  color: white;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.category-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--darker);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.category-card p {
  color: var(--gray);
  font-size: 0.9rem;
  transition: var(--transition);
}

/* ==================== WHY CHOOSE US ==================== */
.why-choose-us {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
}

.benefit-number {
  font-size: 4rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  background: rgba(255, 255, 255, 0.2);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.benefit-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.benefit-item p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* ==================== NEWSLETTER SECTION ==================== */
.newsletter-section {
  padding: 5rem 2rem;
  background: var(--light);
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--darker);
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.newsletter-form button {
  padding: 1rem 2rem;
  border-radius: 50px;
  white-space: nowrap;
}

/* ==================== SECTION HEADER ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0;
}

.view-all-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--darker);
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
}

.footer-content {
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.footer-col h3,
.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

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

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.footer-contact a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
}

/* ==================== RESPONSIVE DESIGN UPDATES ==================== */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .promo-content h2 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== ADMIN DASHBOARD ==================== */
.admin-main {
  min-height: 100vh;
  background: var(--light);
  padding: 3rem 0;
}

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

.admin-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--darker);
  margin-bottom: 0.5rem;
}

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

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

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

.stat-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.stat-info p {
  color: var(--gray);
  margin: 0;
  font-size: 0.95rem;
}

.admin-section {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.filter-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.status-select,
#status-filter {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.status-select:focus,
#status-filter:focus {
  border-color: var(--primary);
}

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

.order-card {
  background: var(--light);
  border: 2px solid var(--gray-light);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.order-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

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

.order-id {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-id strong {
  font-size: 1.2rem;
  color: var(--darker);
}

.order-date {
  color: var(--gray);
  font-size: 0.85rem;
}

.order-status {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-customer,
.order-total {
  font-size: 0.95rem;
}

.order-shipping {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.order-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid var(--gray-light);
}

@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
  
  .filter-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-controls select,
  .filter-controls button {
    width: 100%;
  }
  
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .order-details {
    grid-template-columns: 1fr;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .order-actions select,
  .order-actions button {
    width: 100%;
  }
}

/* ==================== AUTH PAGES (LOGIN/REGISTER) ==================== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.05'%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");
  opacity: 0.3;
}

.auth-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: var(--shadow-2xl);
  animation: fadeInUp 0.6s ease-out;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--darker);
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.auth-subtitle {
  color: var(--gray);
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
}

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

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

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

.form-group label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 0.75rem;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder {
  color: var(--gray);
  opacity: 0.6;
}

.error-message {
  background: #FEE2E2;
  color: #991B1B;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  border-left: 4px solid #EF4444;
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-light);
}

.auth-footer p {
  color: var(--gray);
  margin: 0;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-title {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}



