/* ========================================
   Destined Hub - E-commerce Styles
   ======================================== */

/* Shop Page Header */

/* Shop Page Header */
.shop-header {
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shop-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shop-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.search-bar {
  display: flex;
  max-width: 500px;
  width: 100%;
  margin: 30px auto 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-bar input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  background: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar button {
  padding: 15px 25px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
}

.search-bar button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.search-bar button:hover svg {
  stroke-width: 3;
}

.search-bar button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Age Navigation Cards */
.age-nav {
  padding: 60px 0;
  background: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.age-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  justify-items: center;
}

.age-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  width: 100%;
  max-width: 320px;
}

.age-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}

.age-card * {
  pointer-events: none;
}

.age-card:nth-child(1) { border-top: 4px solid #FF85A2; }
.age-card:nth-child(2) { border-top: 4px solid #4ECDC4; }
.age-card:nth-child(3) { border-top: 4px solid #A78BFA; }
.age-card:nth-child(4) { border-top: 4px solid var(--brand-rose); }

.age-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.age-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--secondary-color);
  width: 70px;
  height: 70px;
  background: var(--light-color);
  border-radius: 50%;
  margin: 0 auto 15px;
}

.age-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.5;
  stroke: var(--secondary-color);
}

.age-card h3 {
  font-size: 1.3rem;
  color: var(--dark-color);
  margin-bottom: 8px;
  font-weight: 700;
}

.age-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Age Navigation Mobile */
@media (max-width: 768px) {
  .age-nav {
    padding: 20px 15px;
  }

  .age-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .age-cards::-webkit-scrollbar {
    display: none;
  }

  .age-card {
    flex-shrink: 0;
    min-width: 140px;
    padding: 20px 15px;
    text-align: center;
  }

  .age-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .age-icon svg {
    width: 24px;
    height: 24px;
  }

  .age-card h3 {
    font-size: 1rem;
    text-align: center;
  }

  .age-card p {
    font-size: 0.8rem;
    text-align: center;
  }
}

/* Shop Section Layout */
.shop-section {
  padding: 50px 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Sidebar Filters */
.shop-sidebar {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-section {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 15px;
}

.filter-section h3 {
  font-size: 1rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.filter-option:hover {
  background: var(--light-color);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
}

.filter-label {
  font-size: 0.95rem;
  color: var(--text-color);
}

.price-input-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 5px;
}

.price-input-labels span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.price-inputs input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  -moz-appearance: textfield;
  text-align: center;
}

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

.price-inputs input:focus {
  border-color: var(--secondary-color);
}

.price-inputs .price-separator {
  color: var(--text-light);
  flex-shrink: 0;
  font-weight: 600;
  font-size: 1rem;
}

.apply-price-btn {
  width: 100%;
  padding: 10px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.apply-price-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.clear-filters-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Shop Controls */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: nowrap;
  gap: 15px;
}

/* Filters and Sort Group */
.filters-sort-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: nowrap;
}

/* Category Filter Buttons */
.category-filter-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: nowrap;
  align-items: center;
}

.category-filter-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--light-color);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-filter-btn.active {
  background: var(--brand-lilac) !important;
  color: var(--brand-brown) !important;
}

.category-filter-btn:hover {
  background: var(--brand-lilac) !important;
  color: var(--brand-brown) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.results-count {
  color: var(--text-light);
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sort-controls label {
  color: var(--text-color);
  font-size: 0.85rem;
  white-space: nowrap;
}

.sort-controls select {
  padding: 8px 12px;
  border: 2px solid var(--light-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  background: white;
  flex-shrink: 0;
}

.sort-controls select:focus {
  border-color: var(--secondary-color);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Enhanced Product Card */
.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

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

.sale-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-yellow);
  color: var(--dark-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
  background: var(--light-color);
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover .product-overlay {
  opacity: 1;
  pointer-events: auto;
}

.quick-view-btn {
  padding: 12px 25px;
  background: white;
  color: var(--dark-color);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.product-card:hover .quick-view-btn {
  transform: translateY(0);
}

.quick-view-btn:hover {
  background: var(--accent-yellow);
}

.product-info {
  padding: 20px;
}

.product-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.product-age,
.product-category {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-age {
  background: transparent;
  color: var(--secondary-color);
}

.product-category {
  background: transparent;
  color: var(--text-light);
}

.product-name {
  font-size: 1rem;
  color: var(--dark-color);
  margin-bottom: 5px;
  line-height: 1.3;
}

.product-age-range {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.original-price {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 10px;
}

/* Add to Cart Buttons - Matching View Gallery Style */
.add-to-cart-btn,
.product-card .add-to-cart-btn,
.product-price-row .add-to-cart-btn {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--brand-lilac) !important;
  color: var(--brand-brown) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.add-to-cart-btn:hover:not(:disabled) {
  background: var(--brand-lilac) !important;
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 166, 142, 0.3);
}

.add-to-cart-btn:disabled {
  background: var(--brand-taupe) !important;
  color: var(--brand-brown) !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.add-to-cart-btn.added {
  background: var(--brand-rose) !important;
  color: var(--brand-brown) !important;
}

/* Modal Add to Cart Button - Lilac Design */
.add-to-cart-modal {
  flex: 1;
  padding: 12px;
  background: var(--brand-lilac) !important;
  color: var(--brand-brown) !important;
  border: none !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.add-to-cart-modal:hover:not(:disabled) {
  background: var(--brand-lilac) !important;
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.add-to-cart-modal:disabled {
  background: var(--brand-taupe) !important;
  color: var(--brand-brown) !important;
  border: none !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

/* Clear All Filters Button */
.clear-filters-btn {
  margin-left: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--brand-lilac) !important;
  color: var(--brand-brown) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 0.9rem;
  white-space: nowrap;
}

.clear-filters-btn:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 166, 142, 0.3);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--light-color);
  border-radius: var(--border-radius);
}

.no-results svg {
  color: var(--text-light);
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.no-results p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Category Showcase */
.category-showcase {
  background: var(--light-color);
  padding: 60px 0;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  background: white;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 4px solid var(--card-color, var(--primary-color));
  box-shadow: var(--shadow);
}

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

.category-card * {
  pointer-events: none;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--card-color, var(--primary-color));
}

.category-icon svg {
  width: 48px;
  height: 48px;
}

.category-card h3 {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Quick View Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

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

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--light-color);
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.modal-close:hover {
  background: var(--brand-lilac);
  color: var(--brand-brown);
  transform: rotate(90deg);
}

.modal-body {
  padding: 0;
}

.modal-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-product-image {
  position: relative;
  background: linear-gradient(135deg, var(--brand-lilac) 0%, var(--brand-beige) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

.modal-product-image img,
.product-image-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sale-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--brand-rose);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.modal-stock-status {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: inline-block;
}

.modal-stock-status.in-stock {
  background: rgba(107, 203, 119, 0.2);
  color: var(--accent-green);
}

.modal-stock-status.out-of-stock {
  background: rgba(255, 107, 107, 0.2);
  color: var(--primary-color);
}

.modal-product-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

/* Category and Age Tags */
.modal-category-age {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.modal-category-tag,
.modal-age-tag {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--brand-lilac);
  color: var(--brand-brown);
}

.modal-product-details h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-brown);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.modal-pricing {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.modal-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-brown);
}

.modal-original {
  font-size: 1.3rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.modal-description {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  font-size: 1rem;
}

.modal-features {
  margin-bottom: var(--spacing-lg);
}

.modal-features h4 {
  font-size: 1.1rem;
  color: var(--brand-brown);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.modal-features ul {
  margin-bottom: 0;
  padding-left: var(--spacing-lg);
}

.modal-features li {
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
  list-style-type: disc;
  line-height: 1.6;
}

.modal-specs {
  background: var(--light-color);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--brand-beige);
}

.modal-specs p {
  margin: var(--spacing-xs) 0;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

.modal-specs strong {
  color: var(--brand-brown);
  font-weight: 600;
}

.modal-stock-status {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.modal-stock-status.in-stock {
  background: rgba(167, 230, 175, 0.3);
  color: #2d7a3e;
}

.modal-stock-status.out-of-stock {
  background: rgba(255, 167, 167, 0.3);
  color: #c63737;
}

.stock-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stock-indicator.in-stock {
  background: #2d7a3e;
}

.stock-indicator.out-of-stock {
  background: #c63737;
}

.modal-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--brand-beige);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: white;
}

.qty-btn {
  width: 44px;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--brand-brown);
}

.qty-btn:hover {
  background: var(--brand-lilac);
}

.qty-input {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  color: var(--brand-brown);
}

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

.add-to-cart-modal {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--brand-lilac);
  color: var(--brand-brown);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.add-to-cart-modal:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 166, 142, 0.3);
}

.add-to-cart-modal:disabled {
  background: var(--brand-taupe);
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.btn-close-modal {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--brand-beige);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-close-modal:hover {
  background: var(--light-color);
  border-color: var(--brand-lilac);
  color: var(--brand-brown);
}

/* Full Screen Image Viewer */
.full-image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.full-image-viewer.active {
  opacity: 1;
  visibility: visible;
}

.full-image-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
}

.full-image-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.full-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#fullImage {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: imageZoomIn 0.3s ease;
}

@keyframes imageZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-zoom-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-product-image:hover .image-zoom-hint {
  opacity: 1;
}

.image-zoom-hint svg {
  width: 18px;
  height: 18px;
}
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.btn-close-modal:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Mobile Filter Button */
.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.5);
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.mobile-filter-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.6);
}

.mobile-filter-btn:hover svg {
  stroke-width: 3;
  transform: scale(1.1);
}

.mobile-filter-btn.active {
  background: #1e293b;
}

.mobile-filter-btn:focus {
  outline: none;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 250px 1fr;
    gap: 30px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-product {
    grid-template-columns: 1fr;
  }

  .modal-product-image {
    min-height: 250px;
  }

  .modal-product-image img {
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  .nav-right {
    margin-right: 10px;
  }

  .cart-link {
    width: 40px;
    height: 40px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    z-index: 1000;
    border-radius: 0;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .shop-sidebar.active {
    left: 0;
  }

  .mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-filter-btn.active {
    background: var(--dark-color);
  }

  .age-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .age-card {
    padding: 20px 15px;
  }

  .age-icon svg {
    width: 32px;
    height: 32px;
  }

  .age-card h3 {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-image {
    height: 150px;
  }

  .product-info {
    padding: 15px;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .add-to-cart-btn {
    padding: 10px;
    font-size: 0.85rem;
  }

  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-product-details {
    padding: 25px;
  }

  .modal-product-details h2 {
    font-size: 1.4rem;
  }

  .modal-price {
    font-size: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .quantity-selector {
    justify-content: center;
  }

  .shop-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .search-bar {
    margin: 20px auto 0;
  }

  .search-bar input {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 180px;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .category-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 15px;
    padding: 20px;
  }

  .category-icon {
    margin-bottom: 0;
  }

  .category-icon svg {
    width: 36px;
    height: 36px;
  }

  .category-card h3 {
    margin-bottom: 5px;
  }

  /* Price Input Fix */
  .price-input-labels {
    display: none;
  }

  .price-inputs {
    gap: 8px;
  }

  .price-inputs input {
    padding: 10px 8px;
    font-size: 0.85rem;
  }

  .price-inputs .price-separator {
    font-size: 0.9rem;
  }

  .filter-section h3 {
    font-size: 0.95rem;
  }

  .shop-sidebar {
    padding: 20px;
  }

  .apply-price-btn {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* ========================================
   ENHANCED SHOP MOBILE RESPONSIVE
   ======================================== */

/* Shop Header Mobile */
@media (max-width: 768px) {
  .shop-header {
    padding: 100px 15px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .shop-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
  }

  .shop-header h1 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .shop-header p {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .search-bar {
    max-width: 100%;
    margin: 30px auto 0;
  }

  .search-bar input {
    padding: 14px 50px 14px 16px;
    font-size: 16px;
  }

  .search-bar button {
    width: 48px;
    height: 48px;
  }
}

/* Shop Layout Mobile */
@media (max-width: 768px) {
  .shop-layout {
    display: block;
    padding: 15px;
  }

  /* Mobile Filter Button */
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-filter-btn:hover {
    background: #1e293b;
  }

  .mobile-filter-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Mobile Sidebar Overlay */
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    padding: 80px 20px 30px;
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .shop-sidebar.active {
    left: 0;
  }

  /* Sidebar Overlay Background */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

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

  /* Close Button for Sidebar */
  .sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s ease;
  }

  .sidebar-close:hover {
    background: var(--primary-color);
    color: var(--white);
  }

  /* Filter Sections */
  .filter-section {
    margin-bottom: 25px;
    text-align: left;
  }

  .filter-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    text-align: left;
  }

  .category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .category-item {
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .category-item:hover,
  .category-item.active {
    background: var(--light-color);
  }

  /* Price Filter Mobile */
  .price-filter {
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
  }

  .price-input-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .price-inputs input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    text-align: center;
    border-radius: 8px;
  }

  .price-separator {
    color: var(--text-light);
    font-weight: 600;
  }

  .apply-price-btn {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    font-size: 1rem;
  }

  /* Products Grid Mobile */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card {
    border-radius: 12px;
    overflow: hidden;
  }

  .product-image {
    height: 150px;
  }

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

  .product-info {
    padding: 12px;
    text-align: center;
  }

  .product-category {
    font-size: 0.7rem;
    text-align: center;
    margin-bottom: 5px;
  }

  .product-info h3 {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 1rem;
    text-align: center;
  }

  .product-price .original-price {
    font-size: 0.8rem;
  }

  .product-actions {
    padding: 10px 12px 12px;
    gap: 8px;
  }

  .add-to-cart-btn {
    padding: 10px;
    font-size: 0.85rem;
    flex: 1;
  }

  .quick-view-btn {
    width: 40px;
    height: 40px;
    padding: 0;
  }
}

/* Single Column for Very Small Screens */
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-image {
    height: 200px;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }
}

/* Quick View Modal Mobile */
@media (max-width: 768px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }

  .quick-view-content {
    flex-direction: column;
    gap: 0;
  }

  .quick-view-image {
    width: 100%;
    height: 250px;
  }

  .quick-view-image img {
    height: 100%;
    object-fit: cover;
  }

  .quick-view-details,
  .modal-product-details {
    padding: 25px 20px;
    text-align: center;
  }

  .quick-view-details h2,
  .modal-product-details h2 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .quick-view-price {
    font-size: 1.4rem;
    text-align: center;
    justify-content: center;
  }

  .quick-view-description,
  .product-description {
    font-size: 0.95rem;
    text-align: center;
  }

  .product-features {
    text-align: left;
  }

  .product-features li {
    padding: 8px 0;
    font-size: 0.9rem;
  }

  .quantity-selector {
    justify-content: center;
    margin: 20px auto;
  }

  .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .qty-input {
    width: 60px;
    height: 44px;
    font-size: 1rem;
  }

  .quick-view-actions,
  .modal-actions {
    flex-direction: column;
    gap: 12px;
  }

  .quick-view-actions .btn,
  .modal-actions .btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    justify-content: center;
  }

  .close-btn,
  .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
  }
}

/* Cart Page Mobile */
@media (max-width: 768px) {
  .cart-section {
    padding: 30px 15px;
  }

  .cart-container {
    flex-direction: column;
    gap: 25px;
  }

  .cart-items {
    width: 100%;
  }

  .cart-item {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    text-align: center;
  }

  .cart-item-image {
    width: 100%;
    max-width: 150px;
    height: 120px;
    margin: 0 auto;
    border-radius: 10px;
  }

  .cart-item-details {
    width: 100%;
    text-align: center;
  }

  .cart-item-details h3 {
    font-size: 1.1rem;
    text-align: center;
  }

  .cart-item-price {
    font-size: 1.2rem;
    text-align: center;
    margin: 10px 0;
  }

  .cart-item-quantity {
    justify-content: center;
    margin: 15px 0;
  }

  .cart-item-actions {
    justify-content: center;
    gap: 15px;
  }

  .remove-item-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Cart Summary Mobile */
  .cart-summary {
    width: 100%;
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 25px 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
  }

  .cart-summary h2 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1rem;
  }

  .summary-row.total {
    font-size: 1.2rem;
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
  }

  .checkout-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 20px;
  }

  .continue-shopping-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
  }

  /* Empty Cart Mobile */
  .empty-cart {
    padding: 50px 20px;
    text-align: center;
  }

  .empty-cart-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
  }

  .empty-cart h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .empty-cart p {
    font-size: 1rem;
    text-align: center;
  }

  .empty-cart .btn {
    margin-top: 20px;
  }
}

/* Checkout Page Mobile */
@media (max-width: 768px) {
  .checkout-section {
    padding: 30px 15px;
  }

  .checkout-container {
    flex-direction: column;
    gap: 25px;
  }

  .checkout-form {
    width: 100%;
    padding: 25px 20px;
  }

  .checkout-form h2 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 20px;
  }

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

  .form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
  }

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

  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Payment Methods Mobile */
  .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .payment-method {
    padding: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
  }

  .payment-method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .payment-method-info h4 {
    font-size: 1rem;
  }

  .payment-method-info p {
    font-size: 0.85rem;
  }

  /* Order Summary Sidebar Mobile */
  .order-summary-sidebar {
    width: 100%;
    position: sticky;
    top: 80px;
    background: var(--white);
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  }

  .order-summary-sidebar h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  .order-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .order-item-details {
    flex: 1;
  }

  .order-item-details h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .order-item-details p {
    font-size: 0.85rem;
    color: var(--text-light);
  }

  .place-order-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 20px;
  }
}

/* Category Showcase Mobile */
@media (max-width: 768px) {
  .category-showcase {
    padding: 40px 15px;
  }

  .category-showcase h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
  }

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

  .category-card {
    padding: 20px 15px;
    text-align: center;
    border-radius: 12px;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .category-card h3 {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 5px;
  }

  .category-card p {
    font-size: 0.8rem;
    text-align: center;
    display: none;
  }

  .category-count {
    font-size: 0.8rem;
    text-align: center;
  }
}

/* Nav Right (Cart Icon) Mobile */
@media (max-width: 768px) {
  .nav-right {
    margin-left: auto;
    margin-right: 10px;
  }

  .cart-link {
    width: 44px;
    height: 44px;
  }

  .cart-count {
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
}

/* Results Count and Sort Mobile */
@media (max-width: 768px) {
  .results-header {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
  }

  .results-count {
    font-size: 0.95rem;
    text-align: center;
  }

  .sort-options {
    width: 100%;
  }

  .sort-options select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }
}

/* Pagination Mobile */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
  }

  .pagination button,
  .pagination a {
    min-width: 44px;
    height: 44px;
    font-size: 0.95rem;
    border-radius: 8px;
  }
}

/* ========================================
   COMPREHENSIVE SHOP RESPONSIVE DESIGN
   ======================================== */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .category-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium Screens (992px - 1199px) */
@media (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .product-image {
    height: 180px;
  }

  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .shop-layout {
    grid-template-columns: 250px 1fr;
    gap: 30px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 15px;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Age Cards */
  .age-cards {
    gap: 20px;
  }

  .age-card {
    padding: 30px 20px;
    min-height: 180px;
  }

  .age-card h3 {
    font-size: 1.1rem;
  }

  /* Sidebar */
  .shop-sidebar {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
  }

  /* Filters */
  .filter-section h3 {
    font-size: 0.95rem;
  }

  .filter-option {
    padding: 10px 12px;
  }
}

/* Mobile Landscape (480px - 767px) */
@media (max-width: 767px) {
  .shop-layout {
    display: block;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .shop-sidebar.active {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

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

  .mobile-filter-btn {
    display: flex;
    margin-bottom: 20px;
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-image {
    height: 140px;
  }

  .product-info {
    padding: 12px;
    text-align: center;
  }

  .product-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .product-age,
  .product-category {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .product-name {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 8px;
  }

  .product-pricing {
    flex-direction: column;
    gap: 4px;
  }

  .product-price {
    font-size: 1rem;
    text-align: center;
  }

  .original-price {
    font-size: 0.85rem;
  }

  .product-actions {
    padding: 10px 12px;
  }

  .add-to-cart-btn {
    padding: 10px;
    font-size: 0.85rem;
  }

  /* Category Cards */
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .category-card {
    padding: 25px 15px;
  }

  .category-card h3 {
    font-size: 1rem;
  }

  .category-card p {
    font-size: 0.8rem;
  }

  /* Age Cards */
  .age-cards {
    padding: 20px 0;
  }

  .age-card {
    padding: 25px 20px;
    min-height: 160px;
  }

  .age-icon {
    width: 60px;
    height: 60px;
  }

  .age-icon svg {
    width: 32px;
    height: 32px;
  }

  .age-card h3 {
    font-size: 1rem;
  }

  .age-card p {
    font-size: 0.85rem;
  }
}

/* Mobile Portrait (320px - 479px) */
@media (max-width: 479px) {
  /* Header */
  .shop-header {
    padding: 90px 12px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .shop-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
  }

  .shop-header h1 {
    font-size: 1.5rem;
  }

  .shop-header p {
    font-size: 0.9rem;
  }

  .search-bar {
    margin: 20px auto 0;
  }

  .search-bar input {
    padding: 12px 40px 12px 15px;
    font-size: 16px;
  }

  .search-bar button {
    width: 40px;
    height: 40px;
  }

  .search-bar button svg {
    width: 20px;
    height: 20px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-image {
    height: 180px;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  /* Category Showcase */
  .category-showcase {
    padding: 40px 15px;
  }

  .category-showcase h2 {
    font-size: 1.3rem;
  }

  .category-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-card {
    padding: 20px;
  }

  /* Age Cards */
  .age-cards {
    padding: 15px 0;
  }

  .age-card {
    padding: 20px 15px;
    min-height: 150px;
  }

  .age-card h3 {
    font-size: 0.95rem;
  }

  .age-card p {
    font-size: 0.8rem;
  }

  /* Mobile Filter Button */
  .mobile-filter-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  /* Shop Controls */
  .shop-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filters-sort-group {
    flex-direction: column !important;
    width: 100%;
  }

  .category-filter-buttons {
    width: 100%;
    justify-content: center;
  }

  .category-filter-btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.8rem;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
  }

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

  .sort-controls {
    width: 100%;
    justify-content: center;
  }

  .sort-controls select {
    flex: 1;
    min-width: 150px;
    padding: 12px;
  }

  .clear-filters-btn {
    width: 100%;
    margin-top: var(--spacing-xs);
    margin-left: 0 !important;
  }

  /* CTA Section */
  .cta h2 {
    font-size: 1.3rem;
  }

  .cta p {
    font-size: 0.9rem;
  }

  .cta .btn {
    width: 100%;
    margin: 10px 0;
  }
}

/* ========================================
   TOUCH OPTIMIZATIONS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .add-to-cart-btn,
  .quick-view-btn,
  .age-card,
  .category-card,
  .filter-option {
    min-height: 44px;
    min-height: 44px;
  }

  /* Enhanced touch feedback */
  .product-card:active {
    transform: scale(0.98);
  }

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

  /* Focus indicators */
  a:focus,
  button:focus,
  input:focus,
  select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
  }
}

/* ========================================
   LANDSCAPE MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 767px) and (orientation: landscape) {
  .shop-header {
    padding: 60px 12px 30px;
  }

  .shop-header h1 {
    font-size: 1.3rem;
  }

  .age-card {
    padding: 20px 15px;
    min-height: 140px;
  }

  .modal-content {
    max-height: 80vh;
  }

  .quick-view-image {
    height: 200px;
  }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   HIGH DPI DISPLAYS
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  .add-to-cart-btn,
  .quick-view-btn,
  .filter-btn {
    border-width: 1px;
  }
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination-showing-text {
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 15px;
  padding: 10px;
  background: var(--light-color);
  border-radius: 8px;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 2px solid var(--secondary-color);
  background: white;
  color: var(--secondary-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 155, 213, 0.3);
}

.pagination-btn.active {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #ddd;
  color: #999;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
  padding: 0 16px;
  font-weight: 700;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .pagination-showing-text {
    font-size: 0.85rem;
    padding: 8px;
    margin-bottom: 12px;
  }

  .pagination {
    gap: 6px;
    padding: 15px;
    margin: 30px 0;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
    padding: 0 10px;
  }

  .pagination-btn.prev-btn,
  .pagination-btn.next-btn {
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .pagination-ellipsis {
    font-size: 1rem;
    padding: 0 6px;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 4px;
    padding: 12px;
  }

  .pagination-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
    padding: 0 8px;
  }

  .pagination-btn.prev-btn,
  .pagination-btn.next-btn {
    font-size: 0.75rem;
    padding: 0 8px;
  }
}

/* ========================================
   SHOP LAYOUT (Full Width - No Sidebar)
   ======================================== */

.shop-section {
  padding: var(--spacing-xl) 0;
}

.shop-layout {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.shop-main-full-width {
  flex: 1;
  width: 100%;
}

.shop-main-full-width .shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.shop-main-full-width .results-count {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

.shop-main-full-width .sort-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.shop-main-full-width .sort-controls label {
  font-weight: 500;
  color: var(--text-color);
  margin-right: var(--spacing-xs);
}

.shop-main-full-width .sort-controls select {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.shop-main-full-width .sort-controls select:hover {
  border-color: var(--primary-color);
}

.shop-main-full-width .sort-controls select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(192, 166, 142, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .shop-layout {
    flex-direction: column;
  }

  .shop-main-full-width .shop-controls {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  .shop-main-full-width .sort-controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .shop-main-full-width .sort-controls select {
    flex: 1;
    min-width: 150px;
  }

  .shop-main-full-width .clear-filters-btn {
    width: 100%;
    margin-top: var(--spacing-xs);
    margin-left: 0 !important;
  }
}

/* ========================================
   CATEGORY SECTION STYLES
   ======================================== */

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Category Cards */
.category-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-lilac);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.category-card:hover::before {
  opacity: 0.1;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card h3 {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.category-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Design for Category Section */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .category-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ========================================
   Package Gallery Modal Styles
   ======================================== */

.package-gallery-content {
  position: relative;
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
  animation: slideUp 0.3s ease-out;
}

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

.package-gallery-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.package-main-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--brand-white);
  border: 2px solid var(--brand-beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
  background: var(--brand-lilac);
  border-color: var(--brand-rose);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev-btn {
  left: 0;
}

.gallery-next-btn {
  right: 0;
}

.package-main-image {
  flex: 1;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.package-main-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-image-counter {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-brown);
  margin: var(--spacing-md) 0;
}

.package-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.package-thumbnail {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--brand-beige);
  transition: var(--transition);
  background: var(--brand-white);
}

.package-thumbnail:hover {
  border-color: var(--brand-lilac);
  transform: scale(1.05);
}

.package-thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.package-details {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--light-color);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-rose);
}

.package-details h3 {
  color: var(--brand-brown);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

.package-details ul {
  list-style: none;
  padding: 0;
  color: var(--text-light);
  line-height: 2;
}

.package-details li {
  padding: var(--spacing-xs) 0;
  font-size: 1rem;
}

/* Package Card Hover Effects */
.package-card {
  transition: var(--transition);
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(192, 166, 142, 0.25);
  border-color: var(--brand-rose) !important;
}

.package-card button {
  transition: var(--transition);
}

.package-card button:hover {
  background: var(--brand-rose) !important;
  color: var(--brand-white) !important;
  transform: scale(1.05);
}

/* Responsive Design for Package Gallery */
@media (max-width: 768px) {
  .package-gallery-content {
    padding: var(--spacing-lg);
    max-height: 85vh;
  }

  .package-main-image-container {
    gap: var(--spacing-sm);
  }

  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    position: absolute;
  }

  .gallery-nav-btn svg {
    width: 24px;
    height: 24px;
  }

  .package-main-image img {
    height: 300px;
  }

  .package-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--spacing-xs);
  }

  .package-thumbnail img {
    height: 60px;
  }

  .package-details {
    padding: var(--spacing-md);
  }

  .package-details h3 {
    font-size: 1.1rem;
  }

  .package-details li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .package-main-image img {
    height: 200px;
  }

  .package-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-nav-btn {
    width: 35px;
    height: 35px;
  }
}

