/* =====================================================
   PASSION 3D WORLD - MOBILE-FIRST REDESIGN
   Professional E-commerce Mobile Experience
   ===================================================== */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FFD700;
  --primary-dark: #FFA500;
  --dark: #1a1a1a;
  --darker: #000000;
  --light: #ffffff;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --gray-border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.15);
  --header-height: 56px;
  --bottom-nav-height: 60px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  color: var(--dark);
  background: var(--gray-light);
  line-height: 1.6;
  padding-bottom: var(--bottom-nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === MOBILE HEADER === */
.top-banner {
  background: linear-gradient(135deg, var(--darker) 0%, #2d2d2d 100%);
  color: var(--primary);
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.site-header {
  background: var(--light);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  height: var(--header-height);
  gap: 12px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  width: 40px;
  height: 40px;
}

.mobile-menu-toggle:active {
  background: var(--gray-light);
}

/* Logo - Compact Mobile */
.logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--darker);
  flex: 1;
  text-align: center;
  letter-spacing: -0.5px;
}

.logo-icon {
  color: var(--primary);
  font-size: 20px;
}

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

.header-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--dark);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  width: 40px;
  height: 40px;
}

.header-btn:active {
  background: var(--gray-light);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: var(--light);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--light);
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--light);
  z-index: 2000;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 16px rgba(0,0,0,0.2);
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  background: var(--light);
  z-index: 10;
}

.menu-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.menu-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.menu-close:active {
  background: var(--gray-light);
}

.menu-categories {
  padding: 8px 0;
}

.menu-category {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}

.menu-category:active,
.menu-category.active {
  background: var(--gray-light);
  border-left-color: var(--primary);
}

.menu-category i {
  font-size: 20px;
  width: 32px;
  margin-right: 12px;
  color: var(--primary);
}

/* === SEARCH BAR === */
.search-section {
  padding: 8px 12px;
  background: var(--light);
  border-bottom: 1px solid var(--gray-border);
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.2s;
  background: var(--gray-light);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--light);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--darker);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:active {
  background: var(--primary-dark);
}

/* === CATEGORY PILLS === */
.categories-section {
  background: var(--light);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-section::-webkit-scrollbar {
  display: none;
}

.category-pills {
  display: flex;
  gap: 6px;
  padding: 0 12px;
}

.category-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1.5px solid var(--gray-border);
  border-radius: 16px;
  background: var(--light);
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.2;
}

.category-pill:active,
.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--darker);
}

.category-pill i {
  margin-right: 4px;
  font-size: 11px;
}

/* === PRODUCTS GRID === */
.products-section {
  padding: 12px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--darker);
  letter-spacing: -0.5px;
}

.view-all {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 8px;
}

/* === PRODUCT CARD - MOBILE OPTIMIZED === */
.product-card {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 133.33%; /* 3:4 aspect ratio like LayerStory (450x600) */
  background: var(--gray-light);
  overflow: hidden;
  border-radius: var(--radius);
}

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

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

/* Badges */
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: var(--light);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

.stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--success);
  color: var(--light);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  z-index: 10;
}

.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.wishlist-btn:active {
  background: var(--light);
  color: var(--danger);
  transform: scale(0.9);
}

/* Product Info */
.product-info {
  padding: 12px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.product-category {
  font-size: 9px;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--darker);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  text-align: center;
  margin-top: 4px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
}

.rating-stars {
  color: var(--primary);
  font-size: 9px;
}

.rating-count {
  color: var(--gray);
  font-weight: 500;
  font-size: 9px;
}

/* Price Section */
.product-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--darker);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.original-price {
  font-size: 11px;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mrp-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
}

.save-amount {
  font-size: 10px;
  color: var(--success);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  text-align: center;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  padding: 10px 12px;
  background: var(--primary);
  color: var(--darker);
  border: 2px solid var(--darker);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: capitalize;
}

.add-to-cart-btn:active {
  background: var(--darker);
  color: var(--light);
  border-color: var(--darker);
  transform: scale(0.98);
}

.add-to-cart-btn i {
  font-size: 11px;
}

/* === FLOATING CART BUTTON === */
.floating-cart {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  right: 16px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255,215,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--darker);
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s;
}

.floating-cart:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}

.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: var(--light);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--light);
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: var(--light);
  border-top: 1px solid var(--gray-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--gray);
  font-size: 22px;
  transition: all 0.2s;
  position: relative;
}

.nav-item:active,
.nav-item.active {
  color: var(--primary);
}

.nav-item i {
  font-size: 24px;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 50%;
  transform: translateX(12px);
  background: var(--danger);
  color: var(--light);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === CART MODAL === */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cart-modal.active {
  opacity: 1;
  visibility: visible;
}

.cart-content {
  width: 100%;
  max-height: 85vh;
  background: var(--light);
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-modal.active .cart-content {
  transform: translateY(0);
}

.cart-header {
  position: sticky;
  top: 0;
  background: var(--light);
  padding: 20px;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.cart-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--darker);
}

.cart-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--gray);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.cart-close:active {
  background: var(--gray-light);
}

.cart-items {
  padding: 20px;
  min-height: 200px;
}

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

.cart-empty i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cart-footer {
  position: sticky;
  bottom: 0;
  background: var(--light);
  padding: 20px;
  border-top: 1px solid var(--gray-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--darker);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.checkout-btn:active {
  background: var(--primary-dark);
  transform: scale(0.98);
}

/* === TOAST NOTIFICATIONS === */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--darker);
  color: var(--light);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  max-width: 90%;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast i {
  font-size: 18px;
  color: var(--primary);
}

/* === FEATURES SECTION === */
.features-section {
  background: var(--light);
  padding: 20px 16px;
  margin: 16px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.feature-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--darker);
}

.feature-desc {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.4;
}

/* === FOOTER === */
.site-footer {
  background: var(--darker);
  color: var(--light);
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:active {
  opacity: 1;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-input {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: var(--light);
  font-size: 14px;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-btn {
  padding: 12px 20px;
  background: var(--primary);
  color: var(--darker);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-btn:active {
  background: var(--primary-dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  opacity: 0.7;
}

/* === LOADING STATE === */
.loading {
  padding: 40px;
  text-align: center;
  color: var(--gray);
}

.loading i {
  font-size: 32px;
  animation: spin 1s linear infinite;
}

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

/* === RESPONSIVE - TABLET & DESKTOP === */
@media (min-width: 768px) {
  :root {
    --bottom-nav-height: 0px;
  }
  
  body {
    padding-bottom: 0;
  }
  
  /* Hide mobile elements */
  .mobile-menu-toggle {
    display: none;
  }
  
  .bottom-nav {
    display: none;
  }
  
  .mobile-menu {
    display: none;
  }
  
  .menu-overlay {
    display: none;
  }
  
  /* Desktop header */
  .header-main {
    padding: 16px 0;
    gap: 32px;
  }
  
  .logo {
    font-size: 28px;
    text-align: left;
    flex: 0 0 auto;
  }
  
  /* Desktop search - inline in header */
  .search-section {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    flex: 1;
    max-width: 500px;
  }
  
  .search-bar input {
    background: var(--light);
    border: 2px solid var(--gray-border);
    padding: 12px 44px 12px 16px;
    font-size: 15px;
  }
  
  .search-btn {
    width: 38px;
    height: 38px;
    right: 6px;
  }
  
  /* Category pills - desktop */
  .categories-section {
    padding: 16px 0;
  }
  
  .category-pills {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 24px;
    gap: 12px;
  }
  
  .category-pill {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  .category-pill i {
    font-size: 14px;
    margin-right: 6px;
  }
  
  /* Products section - desktop */
  .products-section {
    padding: 32px 24px;
  }
  
  .section-header {
    margin-bottom: 24px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .view-all {
    font-size: 16px;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 0 16px;
  }
  
  /* Product cards - desktop hover */
  .product-card {
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  
  .product-card:active {
    transform: translateY(-2px);
  }
  
  .product-name {
    font-size: 14px;
  }
  
  .product-price {
    margin-top: 8px;
  }
  
  .current-price {
    font-size: 18px;
  }
  
  .original-price {
    font-size: 13px;
  }
  
  .add-to-cart-btn {
    font-size: 13px;
    padding: 12px;
    margin-top: 12px;
  }
  
  .add-to-cart-btn:hover {
    background: var(--darker);
    color: var(--light);
    border-color: var(--darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  .add-to-cart-btn:active {
    transform: scale(0.98);
  }
  
  /* Floating cart */
  .floating-cart {
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
  
  .floating-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255,215,0,0.5);
  }
  
  .floating-cart-badge {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  
  /* Features section - desktop */
  .features-section {
    padding: 48px 24px;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  
  .feature-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
  
  .feature-title {
    font-size: 16px;
  }
  
  .feature-desc {
    font-size: 14px;
  }
  
  /* Footer - desktop */
  .site-footer {
    padding: 64px 24px 32px;
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
  }
  
  /* Container */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  
  .container {
    max-width: 1400px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .products-section {
    padding: 40px 24px;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 columns like LayerStory */
    gap: 32px;
  }
  
  .container {
    max-width: 1600px;
  }
}

/* === ANIMATIONS === */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === UTILITY CLASSES === */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

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

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }

/* =====================================================
   PRODUCT DETAIL PAGE STYLES
   ===================================================== */

/* Product Page Header */
.product-page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--light);
  box-shadow: var(--shadow-sm);
}

.header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.mobile-back-btn {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.mobile-back-btn:active {
  background: var(--gray-light);
}

.site-logo {
  flex: 1;
  text-align: center;
  margin: 0;
}

.site-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--dark);
}

.logo-img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--darker);
}

.desktop-nav {
  display: none;
}

/* Breadcrumb - Hide on mobile */
.breadcrumb {
  display: none;
}

/* Product Detail Section */
.product-detail-section {
  padding: 0;
  background: var(--light);
}

.product-detail-grid {
  display: flex;
  flex-direction: column;
}

/* Product Gallery - Mobile */
.product-gallery {
  width: 100%;
  background: var(--gray-light);
}

.main-image {
  position: relative;
  width: 100%;
  height: 400px;
  background: var(--light);
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--danger);
  color: var(--light);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.thumbnail-grid {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.thumbnail-grid::-webkit-scrollbar {
  display: none;
}

.thumbnail-grid img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-border);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.thumbnail-grid img.active,
.thumbnail-grid img:hover {
  border-color: var(--primary);
}

/* Product Info */
.product-detail-info {
  padding: 20px 16px;
}

.brand-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--darker);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--darker);
  line-height: 1.3;
  margin-bottom: 16px;
}

.product-meta {
  margin-bottom: 20px;
}

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

.stars {
  color: var(--primary);
  font-size: 18px;
}

.rating-text {
  font-size: 14px;
  color: var(--gray);
  font-weight: 600;
}

.sku {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.stock-status {
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
}

/* Price Section */
.price-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.price-main {
  font-size: 32px;
  font-weight: 900;
  color: var(--darker);
  margin-bottom: 8px;
}

.price-was {
  font-size: 16px;
  color: var(--darker);
  text-decoration: line-through;
  opacity: 0.7;
  margin-bottom: 4px;
}

.price-save {
  font-size: 18px;
  color: var(--darker);
  font-weight: 700;
}

.tax-info {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}

/* Product Options */
.product-options {
  margin-bottom: 24px;
}

.option-group {
  margin-bottom: 20px;
}

.option-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--darker);
  margin-bottom: 10px;
}

.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 10px 16px;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--light);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.option-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--darker);
}

.option-btn:active {
  transform: scale(0.95);
}

/* Quantity Section */
.quantity-section {
  margin-bottom: 20px;
}

.quantity-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--darker);
  margin-bottom: 12px;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light);
}

.quantity-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--darker);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-right: 1px solid var(--gray-border);
}

.quantity-btn:last-child {
  border-right: none;
  border-left: 1px solid var(--gray-border);
}

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

.quantity-btn:active {
  background: var(--primary);
  color: var(--darker);
}

.quantity-input {
  width: 60px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--darker);
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-add-to-cart,
.btn-buy-now {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: capitalize;
}

.btn-add-to-cart {
  background: var(--primary);
  color: var(--darker);
  border: 2px solid var(--darker);
}

.btn-add-to-cart:hover {
  background: var(--darker);
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-add-to-cart:active {
  transform: scale(0.98);
}

.btn-buy-now {
  background: var(--darker);
  color: var(--light);
  border: 2px solid var(--darker);
}

.btn-buy-now:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.btn-buy-now:active {
  transform: scale(0.98);
}

/* Shipping Info */
.shipping-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.shipping-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
}

.shipping-item i {
  font-size: 20px;
  color: var(--primary);
}

.shipping-item div {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

/* Key Features */
.key-features {
  margin-bottom: 24px;
}

.key-features h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--darker);
  margin-bottom: 12px;
}

.key-features ul {
  list-style: none;
  padding: 0;
}

.key-features li {
  padding: 10px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.key-features li:before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

/* Product Tabs */
.product-tabs {
  margin-top: 32px;
  border-top: 1px solid var(--gray-border);
}

.tab-buttons {
  display: flex;
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--gray-border);
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

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

.tab-content {
  padding: 20px 16px;
}

.tab-panel {
  display: none;
}

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

.tab-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--darker);
  margin-bottom: 16px;
}

.tab-panel p {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tab-panel ul {
  list-style: disc;
  padding-left: 24px;
}

.tab-panel li {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--gray-border);
}

.specs-table td {
  padding: 12px 0;
  font-size: 14px;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--darker);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--dark);
}

/* FAQ */
.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 16px;
  background: var(--gray-light);
  font-size: 14px;
  font-weight: 700;
  color: var(--darker);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 16px;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.6;
  background: var(--light);
}

/* DESKTOP STYLES FOR PRODUCT PAGE */
@media (min-width: 768px) {
  .product-page-header .desktop-nav {
    display: flex;
    gap: 24px;
    margin-top: 16px;
  }
  
  .desktop-nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
  }
  
  .desktop-nav a:hover {
    background: var(--gray-light);
    color: var(--primary);
  }
  
  .breadcrumb {
    display: block;
    padding: 16px 0;
    background: var(--gray-light);
  }
  
  .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
  }
  
  .breadcrumb span {
    color: var(--gray);
    font-size: 14px;
  }
  
  .product-detail-grid {
    flex-direction: row;
    gap: 48px;
    padding: 40px 0;
  }
  
  .product-gallery {
    flex: 1;
    max-width: 600px;
  }
  
  .main-image {
    height: 500px;
    border-radius: var(--radius);
  }
  
  .thumbnail-grid {
    padding: 16px 0;
    gap: 12px;
  }
  
  .thumbnail-grid img {
    width: 90px;
    height: 90px;
  }
  
  .product-detail-info {
    flex: 1;
    padding: 0;
  }
  
  .product-title {
    font-size: 32px;
  }
  
  .price-section {
    padding: 24px;
  }
  
  .price-main {
    font-size: 40px;
  }
  
  .action-buttons {
    flex-direction: row;
  }
  
  .shipping-info {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .product-tabs {
    margin-top: 48px;
  }
  
  .tab-buttons {
    justify-content: center;
    overflow-x: visible;
  }
  
  .tab-btn {
    font-size: 16px;
    padding: 12px 24px;
  }
  
  .tab-content {
    padding: 32px 24px;
  }
}

@media (min-width: 1024px) {
  .product-detail-grid {
    gap: 64px;
  }
  
  .main-image {
    height: 600px;
  }
  
  .product-title {
    font-size: 36px;
  }
}

/* Checkout Modal Styles */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.checkout-container {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.checkout-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.checkout-header .close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-content {
  padding: 20px;
}

.checkout-section {
  margin-bottom: 30px;
}

.checkout-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.checkout-section h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #555;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFD700;
}

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

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.order-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.total-row {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #ddd;
  font-size: 18px;
  color: #333;
}

.checkout-footer {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
  background: white;
}

.checkout-footer button {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary {
  background: #f0f0f0;
  border: 2px solid #ddd;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-primary {
  background: #FFD700;
  border: 2px solid #FFA500;
  color: #333;
}

.btn-primary:hover {
  background: #FFA500;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

#checkoutOrderSummary {
  margin-bottom: 15px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.checkout-item-name {
  flex: 1;
}

.checkout-item-qty {
  margin: 0 10px;
  color: #999;
}

.checkout-item-price {
  font-weight: 600;
  color: #333;
}
