/* Kinoto Color Palette */
:root {
  /* Primary Brand Colors */
  --primary-amber2: #f59e0b;          /* amber-500 */
  --primary-amber-light2: #fbbf24;    /* amber-400 */
  --primary-amber-dark2: #d97706;     /* amber-600 */
  --primary-amber-502: #fffbeb;       /* amber-50 */
  --primary-amber-1002: #fef3c7;      /* amber-100 */
  --primary-amber-2002: #fde68a;      /* amber-200 */
  --primary-amber-3002: #fcd34d;      /* amber-300 */

  --primary-amber: #f79226;          /* kinoto orange */
  --primary-amber-light: #f9a84d;    /* kinoto orange-400 */
  --primary-amber-dark: #f97316;     /* kinoto orange-600 */
  --primary-amber-50: #fffbeb;       /* kinoto orange-50 */
  --primary-amber-100: #fef3c7;      /* kinoto orange-100 */
  --primary-amber-200: #fde68a;       /* kinoto orange-200 */
  --primary-amber-300: #fcd34d;       /* kinoto orange-300 */
  
  /* Light Brown Tones */
  --gray-light: #a3a3a3;            /* neutral-400 */
  --gray-medium: #737373;           /* neutral-500 */
  --gray-dark: #525252;             /* neutral-600 */
  --gray-25: #fdfdfd;               /* neutral-25 - very light background */
  --gray-50: #fafafa;               /* neutral-50 */
  --gray-100: #f5f5f5;              /* neutral-100 */
  --gray-200: #e5e5e5;              /* neutral-200 */
  --gray-250: #d4d4d4; 
  
  /* Base Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-900: #111827;         /* For text */
  
  /* Green Highlights */
  --highlight-green2: #10b981;        /* emerald-500 */
  --highlight-green-light2: #34d399;  /* emerald-400 */
  --highlight-green-dark2: #059669;   /* emerald-600 */
  --highlight-green-502: #ecfdf5;     /* emerald-50 */
  --highlight-green-1002: #d1fae5;    /* emerald-100 */

  --highlight-green: #3fb449;        /* kinoto green */
  --highlight-green-light: #65d672;  /* kinoto green-400 */
  --highlight-green-dark: #258532;   /* kinoto green-600 */
  --highlight-green-50: #f0fdf4;     /* kinoto green-50 */
  --highlight-green-100: #dcfce7;    /* kinoto green-100 */
  
  /* Status Colors */
  --success: var(--highlight-green);
  --warning: var(--primary-amber);
  --error: #ef4444;                   /* red-500 */
  --info: var(--primary-amber-light);
}
/* Custom Utility Classes */
.bg-primary {
  background-color: var(--primary-amber);
}

.bg-primary-light {
  background-color: var(--primary-amber-light);
}

.bg-primary-dark {
  background-color: var(--primary-amber-dark);
}

.bg-primary-50 {
  background-color: var(--primary-amber-50);
}

.bg-primary-100 {
  background-color: var(--primary-amber-100);
}

.bg-primary-200 {
  background-color: var(--primary-amber-200);
}

.bg-primary-300 {
  background-color: var(--primary-amber-300);
}

.bg-brown-light {
  background-color: var(--gray-light);
}

.bg-brown-100 {
  background-color: var(--gray-100);
}

.bg-brown-200 {
  background-color: var(--gray-200);
}

.bg-highlight {
  background-color: var(--highlight-green);
}

.bg-highlight-light {
  background-color: var(--highlight-green-light);
}

.bg-highlight-50 {
  background-color: var(--highlight-green-50);
}

.text-primary {
  color: var(--primary-amber);
}

.text-primary-dark {
  color: var(--primary-amber-dark);
}

.text-primary-100 {
  color: var(--primary-amber-100);
}

.text-primary-200 {
  color: var(--primary-amber-200);
}

.text-brown {
  color: var(--gray-medium);
}

.text-brown-dark {
  color: var(--gray-dark);
}

.text-highlight {
  color: var(--highlight-green);
}

.text-highlight-dark {
  color: var(--highlight-green-dark);
}

.border-primary {
  border-color: var(--primary-amber);
}

.border-brown {
  border-color: var(--gray-200);
}

.border-highlight {
  border-color: var(--highlight-green);
}

/* Hover States */
.hover\:bg-primary:hover {
  background-color: var(--primary-amber);
}

.hover\:bg-primary-dark:hover {
  background-color: var(--primary-amber-dark);
}

.hover\:bg-primary-50:hover {
  background-color: var(--primary-amber-50);
}

.hover\:bg-brown-100:hover {
  background-color: var(--gray-100);
}

.hover\:bg-highlight-dark:hover {
  background-color: var(--highlight-green-dark);
}

.hover\:text-primary:hover {
  color: var(--primary-amber);
}

.hover\:text-primary-200:hover {
  color: var(--primary-amber-200);
}

.hover\:text-brown-dark:hover {
  color: var(--gray-dark);
}

.hover\:text-highlight-dark:hover {
  color: var(--highlight-green-dark);
}

/* Focus States */
.focus\:ring-primary:focus {
  --tw-ring-color: var(--primary-amber);
}

.focus\:ring-highlight:focus {
  --tw-ring-color: var(--highlight-green);
}

.focus\:border-primary:focus {
  border-color: var(--primary-amber);
}

.focus\:border-highlight:focus {
  border-color: var(--highlight-green);
}

/* === PRODUCT GRID COMPONENT === */

/* Grid Container */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-radius: 2rem;
  margin: 0;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Product Card */

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary-amber);
}

/* Product Image */
.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  background: var(--gray-50);
}

/* Product Info */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* Product Actions */
.product-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.weight-price-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.mobile-weight-price-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Legacy add-btn class - redirects to unified classes */
.add-btn {
  /* Use the unified weight selector container styling */
  border: 2px solid var(--primary-amber);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-white);
  transition: all 0.2s ease;
  
  /* Add button styling */
  width: 100%;
  padding: 0.75rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-amber);
  cursor: pointer;
}

.add-btn:hover:not(:disabled) {
  background: var(--primary-amber);
  color: white;
}

.add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--primary-amber-200);
  color: var(--primary-amber-dark);
}

.add-btn:disabled:hover {
  background: var(--primary-amber-200);
  color: var(--primary-amber-dark);
}

/* Product Badges */
.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1;
}

.badge-featured {
  background: var(--primary-amber);
  color: var(--color-white);
}

.badge-offer {
  background: var(--error);
  color: var(--color-white);
}

.badge-stock {
  background: var(--highlight-green);
  color: var(--color-white);
}

.badge-low-stock {
  background: var(--warning);
  color: var(--color-white);
}

.badge-no-stock {
  background: var(--gray-medium);
  color: var(--color-white);
}

/* Mobile Optimizations - Former Style */
/* Loading States */
.product-card.loading {
  pointer-events: none;
}

.product-card.loading .product-img {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Weight Selector - Exact Former Style */
.weight-selector {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.weight-option {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}

.weight-option:hover {
  background: var(--primary-amber-100);
  color: var(--primary-amber);
}

.weight-option.selected {
  background: var(--primary-amber);
  color: white;
}

.weight-option.selected:hover {
  background: var(--primary-amber-dark);
}

.weight-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.weight-option:disabled:hover {
  background: transparent;
  color: #666;
}

/* Product Quantity Selector (for regular product cards) */
.product-quantity-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-amber);
  border: 2px solid var(--primary-amber);
  border-radius: 0.75rem;
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .product-quantity-selector {
    margin-bottom: 3px !important;
  }
}

.product-quantity-selector.disabled {
  background: var(--primary-amber-200);
  border: 2px solid var(--primary-amber-200);
  cursor: not-allowed;
  opacity: 0.5;
}

.product-qty-btn {
  width: 3rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-white);
}

@media (max-width: 767px) {
  .product-qty-btn {
    width: 2rem !important;
    height: 2rem !important;
  }
}

.product-qty-btn:hover:not(:disabled) {
  background: var(--primary-amber-dark);
}

.product-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-qty-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 767px) {
  .product-qty-btn svg {
    width: 1rem !important;
    height: 1rem !important;
  }
}

.product-qty-display {
  min-width: 4.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-gray-900);
  background: var(--color-white);
  border-radius: 0.75rem;
  margin: 0 2px;
}
@media (max-width: 767px) {
  .product-qty-display {
    min-width: 3.5rem !important;
    height: 2rem !important;
    font-size: 0.75rem !important;
  }
}

/* Quick View */
.product-card .quick-view {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.product-card:hover .quick-view {
  opacity: 1;
}

.quick-view:hover {
  background: var(--primary-amber);
  border-color: var(--primary-amber);
  color: var(--color-white);
}

.quick-view svg {
  width: 1rem;
  height: 1rem;
}

/* Component-specific styles */
.btn-primary {
  background-color: var(--primary-amber);
  color: var(--color-white);
  border: none;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-amber-dark);
}

.btn-secondary {
  background-color: var(--gray-100);
  color: var(--gray-dark);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--gray-200);
  color: var(--color-gray-900);
}

.btn-highlight {
  background-color: var(--highlight-green);
  color: var(--color-white);
  border: none;
  transition: background-color 0.2s ease;
}

.btn-highlight:hover {
  background-color: var(--highlight-green-dark);
}

/* Card and surface styles */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Weight-based product styles */
.weight-badge {
  background: linear-gradient(135deg, var(--primary-amber) 0%, var(--primary-amber-dark) 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-weight-badge {
  background: linear-gradient(135deg, var(--primary-amber) 0%, var(--primary-amber-dark) 100%);
  color: white;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Weight selector */
.weight-selector {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.weight-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
}

.weight-option:hover {
  border-color: var(--primary-amber);
  background: var(--primary-amber-100);
  transform: translateY(-1px);
}

.weight-option.selected {
  border-color: var(--primary-amber);
  background: var(--primary-amber);
  color: white;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
}

.weight-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.weight-label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.weight-price {
  font-size: 10px;
  font-weight: 500;
}

/* Weight selector pills (Option E style) */
.weight-selector-pills {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.weight-pill {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 0;
}

.weight-pill:hover {
  border-color: var(--primary-amber);
  color: var(--primary-amber);
  transform: translateY(-1px);
}

.weight-pill.selected {
  border-color: var(--primary-amber);
  background: var(--primary-amber);
  color: white;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
}

.weight-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.weight-pill:disabled:hover {
  border-color: #e5e7eb;
  color: #666;
  transform: none;
}

/* Unified weight selector (Option E - Merged Design) */
.unified-weight-selector {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
  transition: all 0.2s ease;
}

.unified-weight-selector:hover {
  border-color: var(--primary-amber);
}

.weight-pills-top {
  display: flex;
  background: var(--primary-amber);
  border-radius: 2rem;
  border: 2px solid var(--primary-amber);
}
.weight-pills-top.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--primary-amber-200);
  border: 2px solid var(--primary-amber-200);
  color: var(--primary-amber-dark);
}

.weight-pill-unified {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  border-radius: 2rem;
}


/* product card weight selector */

.weight-pill-unified:hover {
  background: var(--primary-amber-dark);
  color: var(--color-white);
}

.weight-pill-unified.selected {
  background: var(--color-white);
  color: var(--color-gray-900);
}


.weight-pills-container .weight-pill-unified {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  border-radius: 2rem;
}
@media (max-width: 767px) {
  .weight-pills-container .weight-pill-unified {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
  }
  .weight-pill-unified {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  .weight-pills-top {
    border: 1px solid var(--primary-amber);
  }
}

.weight-pill-unified:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--primary-amber-200);
    color: var(--primary-amber-dark);
}

.weight-pill-unified:disabled:hover {
  background: var(--primary-amber-200);
  color: var(--primary-amber-dark);
}

.add-button-unified {
  width: 100%;
  padding: 0.75rem;
  border: none;
  background: var(--primary-amber);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0.75rem;
  margin-top: 4px;
}
@media (max-width: 767px) {
  .add-button-unified {
    font-size: 0.875rem !important;
    padding: 0.5rem !important;
    margin-top: 3px !important;
  }
}

.add-button-unified:hover {
  background: var(--primary-amber-dark);
  color: var(--color-white);
}

.add-button-unified:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--primary-amber-200);
  color: var(--primary-amber-dark);
}

.add-button-unified:disabled:hover {
  background: var(--primary-amber-200);
  color: var(--primary-amber-dark);
}


/* Mobile weight selector */
.mobile-weight-selector {
  display: flex;
  gap: 0.5rem;
}

.mobile-weight-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
}

@media (pointer: fine) {
  .mobile-weight-option:hover {
    border-color: var(--primary-amber);
    background: var(--primary-amber-100);
  }
}

.mobile-weight-option.selected {
  border-color: var(--primary-amber);
  background: var(--primary-amber);
  color: white;
}

.mobile-weight-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-weight-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1px;
}

/* Special highlighting for category 10 products (legacy) */
.price-highlight-category-10 {
  background-color: var(--highlight-green-100) !important;
  color: var(--highlight-green-dark) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  border: 1px solid var(--highlight-green) !important;
}

/* Topbar styles */
/* === TOPBAR COMPONENT === */
.topbar {
  background-color: var(--primary-amber);
  color: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: none; /* Hidden by default, shown only when storage key is false */
}

.topbar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1rem;
  font-size: 0.75rem;
  opacity: 0.9;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-link {
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.topbar-link:hover {
  color: var(--primary-amber-200);
}

.topbar-close {
  color: var(--color-white);
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.topbar-close:hover {
  color: var(--primary-amber-200);
}

/* === LOGO COMPONENT === */
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-desktop {
  flex-shrink: 0;
  gap: 0.75rem;
}

.logo-mobile {
  gap: 0.5rem;
}

.logo-footer {
  gap: 0.75rem;
}

.logo-icon {
  object-fit: contain;
}

.logo-icon-desktop {
  height: 3rem;
}

.logo-icon-mobile {
  height: 2rem;
}

.logo-icon-footer {
  height: 2.5rem;
  width: auto;
}

.logo-text {
  object-fit: contain;
}

.logo-text-desktop {
  height: 3rem;
}

.logo-text-mobile {
  height: 2rem;
}

.logo-text-footer {
  height: 2.5rem;
}

@media (max-width: 1023px) {
  .logo-text-desktop {
    display: none;
  }
}

/* === SEARCH COMPONENT === */
.search {
  position: relative;
  display: flex;
}

.search-input {
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  outline: none;
  transition: all 0.2s ease;
  padding-left: 2.5rem;
  background-color: var(--color-white);
  color: var(--gray-dark);
}

.search-input::placeholder {
  color: var(--gray);
  opacity: 0.7;
}

.search-input:focus {
  border-color: var(--primary-amber);
  box-shadow: 0 0 0 2px var(--primary-amber-100);
  transform: scale(1.02);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray);
  pointer-events: none;
  transition: all 0.2s ease;
}

.search-input:focus + .search-icon {
  color: var(--primary-amber);
}

/* Desktop Search */
.search-desktop .search-input {
  width: 25rem;
  height: 2.5rem;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
}

.search-desktop .search-icon {
  top: 0.625rem;
}

.search-desktop .search-input:focus + .search-icon {
  transform: scale(1.15) translateX(-4px);
}

@media (min-width: 1280px) {
  .search-desktop .search-input {
    width: 37.5rem;
  }
}

/* Mobile Search */
.search-mobile .search-input {
  width: 100%;
  height: 3rem;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.search-mobile .search-input:focus {
  height: 3.5rem;
  padding: 1rem 1rem 1rem 2.5rem;
}

.search-mobile .search-icon {
  top: 0.875rem;
}

.search-mobile .search-input:focus + .search-icon {
  top: 1.125rem;
  transform: scale(1.15) translateX(-3px) translateY(2px);
}

/* Old category dropdown styles - replaced by CategoryNav component */

/* Loading and state indicators */
.loading-spinner {
  border-color: var(--gray-200);
  border-top-color: var(--primary-amber);
}

/* Transform and effects utilities */
.transform {
  transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Backdrop filter utilities */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Blur utilities */
.blur-xl {
  filter: blur(24px);
}

.blur-2xl {
  filter: blur(40px);
}

/* Focus ring utilities */
.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:ring-primary:focus {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5);
}

/* Navigation and menu styles */
/* Legacy navigation styles - kept for mobile menu compatibility */
.nav-active {
  background-color: #f3f4f6; /* gray-100 */
  color: #374151; /* gray-700 */
  position: relative;
}

.nav-item {
  color: var(--gray-dark);
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #374151; /* gray-700 */
  background-color: #f9fafb; /* gray-50 */
}

/* Mobile Menu Component */
.hamburger-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
  background-color: var(--gray-100);
}

.hamburger-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gray-dark);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 20rem;
  background: var(--color-white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.mobile-menu-panel.open {
  transform: translateX(0);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-dark);
}

.mobile-menu-close {
  padding: 0.5rem;
  border-radius: 0.5rem; 
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

@media (pointer: fine) {
  .mobile-menu-close:hover {
    background-color: var(--gray-100);
  }
}

.mobile-menu-close-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-dark);
}

.mobile-menu-content {
  padding: 0.5rem;
  overflow-y: auto;
  height: calc(100% - 80px);
  padding-bottom: 5rem;
}

/* Mobile menu item styles */
.mobile-menu-item {
  border-bottom: 1px solid var(--gray-100);
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInItem 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu-item:nth-child(7) { animation-delay: 0.4s; }
.mobile-menu-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (pointer: fine) {
  .mobile-menu-btn:hover {
    background-color: var(--gray-50);
  }
}

.mobile-menu-btn.ofertas {
  background: var(--highlight-green);
  color: var(--color-white);
  font-weight: 600;
}

@media (pointer: fine) {
  .mobile-menu-btn.ofertas:hover {
    background: var(--highlight-dark);
  }
}

.mobile-menu-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mobile-menu-text {
  font-weight: 500;
  color: var(--color-gray-900);
}

.mobile-menu-btn.ofertas .mobile-menu-text {
  color: var(--color-white);
}


.mobile-menu-toggle {
  padding: 0.75rem 1rem 0.75rem 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (pointer: fine) {
  .mobile-menu-toggle:hover {
    background-color: var(--gray-50);
  }
}

.mobile-menu-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.mobile-menu-toggle.expanded .mobile-menu-toggle-icon {
  transform: rotate(180deg);
}

.mobile-menu-sub {
  background: var(--gray-25);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu-sub.open {
  max-height: 500px;
  opacity: 1;
}

.mobile-menu-sub-btn {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 3rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

@media (pointer: fine) {
  .mobile-menu-sub-btn:hover {
    background-color: var(--gray-50);
    color: var(--gray-dark);
  }
}

.mobile-menu-sub-btn.active {
  background: linear-gradient(135deg, var(--primary-amber-100), var(--primary-amber-200));
  color: var(--primary-dark);
}

/* Mobile subcategory animations */
.animate-fadeIn {
  animation: mobileSubcategoryFadeIn 0.2s ease-in-out;
}

@keyframes mobileSubcategoryFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Cart slide animation */
.cart-panel {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.cart-panel.open {
  transform: translateX(0);
  box-shadow: -10px 0 30px -5px rgba(0, 0, 0, 0.15);
}

.cart-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Prevent background scrolling when overlays are open */
.no-scroll {
  overflow: hidden;
  padding-right: 15px;
}

@media (max-width: 767px) {
  .no-scroll {
    padding-right: 0;
  }
}

/* Carousel container base styles */
.carousel-container {
  position: relative;
  overflow: hidden;
}

/* Carousel items */
.carousel-item {
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
}
@media (max-width: 767px) {
  .carousel-item {
    padding: 0.25rem !important;
  }
}

/* === HERO SLIDESHOW COMPONENT === */
.hero-slideshow {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4), transparent);
  z-index: 10;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content-wrapper {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: end;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .hero-content-wrapper {
    align-items: center;
    margin-bottom: 0;
  }
}

.hero-content-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-content-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content-container {
    padding: 0 2rem;
  }
}

.hero-content-text {
  max-width: 48rem;
  color: var(--color-white);
}

.hero-text {
  display: none;
}

.hero-text.active {
  display: block;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-highlight {
  color: transparent;
  background: linear-gradient(to right, var(--primary-amber-200), var(--primary-amber-100));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-100);
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.5rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-btn-primary,
.hero-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.hero-btn-primary {
  background-color: var(--primary-amber);
  color: var(--color-white);
}

.hero-btn-primary:hover {
  background-color: var(--primary-amber-dark);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.hero-btn-secondary {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background-color: transparent;
}

.hero-btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-gray-900);
}

.hero-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-nav {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  padding: 0.75rem;
  transition: all 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.hero-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-nav-prev {
  left: 1rem;
}

.hero-nav-next {
  right: 1rem;
}

@media (min-width: 768px) {
  .hero-nav-prev {
    left: 2rem;
  }
  
  .hero-nav-next {
    right: 2rem;
  }
}

.hero-nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-white);
}

.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  pointer-events: auto;
}

.hero-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero-indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.hero-indicator.active {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Unified carousel navigation buttons */
.carousel-nav-btn {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Carousel dots/indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carousel-dot.active {
  background: var(--primary-amber);
}


/* Featured product card hover effects are now handled by the image sizing system */

/* Line clamp utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured badge animation */
.featured-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Stock status badges */
.stock-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Product Card Styles */


.featured-product-card{
  background: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  overflow: hidden;
  height: 100%;
} 

.product-image-wrapper {
  position: relative;
  margin-bottom: 0.75rem;
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-amber-200);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-amber), var(--primary-amber-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

@media (pointer: fine) {
  .product-card:hover::before {
    transform: scaleX(1);
  }
}



.stock-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.5rem 0;
}

.stock-badge.in-stock {
  background-color: var(--highlight-green-100);
  color: var(--highlight-green-dark);
}

.stock-badge.low-stock {
  background-color: var(--primary-amber-100);
  color: var(--primary-amber-dark);
}

.stock-badge.sold-out {
  background-color: var(--gray-200);
  color: var(--gray-dark);
}

/* Unified Add Button (matches weight selector style) */
.add-button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-amber);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-button:hover {
  border-color: var(--primary-amber);
  background: var(--primary-amber);
  color: white;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.15);
}

.add-button:active {
  transform: translateY(1px);
}

.add-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
  color: #666;
  border-color: #e5e7eb;
}

.add-button:disabled:hover {
  background: #f8f9fa;
  color: #666;
  border-color: #e5e7eb;
  box-shadow: none;
  transform: none;
}

/* Legacy add-to-cart-btn class for compatibility */
.add-to-cart-btn {
  transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ============================================================================
   LEGACY - UNIFIED HEADER SYSTEM (DEPRECATED)
   ============================================================================ */

/* Old unified-cart-btn styles removed - replaced by .cart-button component */

/* Responsive Header Layout */
.unified-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: white;
  border-bottom: 1px solid var(--gray-200);
}

/* Desktop Header: Horizontal layout */
@media (min-width: 768px) {
  .unified-header .desktop-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
  }
  
  .unified-header .mobile-layout {
    display: none;
  }
  .desktop-layout {
    display: flex !important;
    height: 100% !important;
    flex-direction: column !important;
  }
}

/* Mobile Header: Stacked layout */
@media (max-width: 767px) {
  .unified-header .desktop-layout {
    display: none;
  }
  
  .unified-header .mobile-layout {
    display: block;
  }
}

/* Search Container Responsive Behavior */
.search-container {
  position: relative;
  display: flex;
}

/* Search Icon Positioning */
.search-icon {
  position: absolute;
  left: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray);
  pointer-events: none;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .search-icon {
    top: 0.625rem;
  }
}

@media (max-width: 767px) {
  .search-icon {
    top: 0.875rem;
  }
}

/* Navigation Bar Responsive */
.unified-nav {
  position: sticky;
  top: 4rem;
  z-index: 30;
  background-color: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .unified-nav {
    display: none;
  }
}

/* ============================================================================
   SORT OPTIONS COMPONENT
   ============================================================================ */

.sort-options {
  position: relative;
  display: inline-block;
}

.sort-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
    color: var(--color-gray-900);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sort-button:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sort-button.active {
    background-color: var(--primary-amber);
    border-color: var(--primary-amber);
    color: var(--color-white);
}

.sort-button.active:hover {
    background-color: var(--primary-amber-light);
    border-color: var(--primary-amber-light);
}

.sort-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.sort-text {
    color: inherit;
    font-weight: inherit;
}

.sort-arrow {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sort-options.open .sort-arrow {
    transform: rotate(180deg);
}

.sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    min-width: 12rem;
    background-color: var(--color-white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: hidden;
}

.sort-dropdown-content {
    padding: 0.5rem 0;
}

.sort-option {
    display: block;
  width: 100%;
  padding: 0.5rem 1rem;
    text-align: left;
  color: var(--gray-dark);
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
  transition: background-color 0.15s ease;
}

.sort-option:hover {
  background-color: var(--gray-100);
}

.sort-option.active {
    background-color: var(--primary-amber-light);
    color: var(--gray-dark);
    font-weight: 600;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .sort-dropdown {
        position: fixed;
        z-index: 9999;
        max-width: calc(100vw - 2rem);
    }
    
    .sort-button {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.625rem;
    }
    
    .sort-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .sort-arrow {
        width: 0.6875rem;
        height: 0.6875rem;
    }
}

/* Product Image Sizing System */

/* Tiny images for micro thumbnails, badges, etc. */
.product-image-tiny {
  width: 32px;
  height: 32px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.375rem;
  flex-shrink: 0;
  /* Enhanced image quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

/* Small images for cart items, thumbnails, etc. */
.product-image-small {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  flex-shrink: 0;
  /* Enhanced image quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

/* Compact images for mobile product cards */
.product-image-compact {
  width: 128px;
  height: 128px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  flex-shrink: 0;
  /* Enhanced image quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

/* Medium images for product grid/list */
.product-image-medium {
  width: 100%;
  height: 256px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
  /* Enhanced image quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

.product-image-medium:hover {
  transform: translateZ(0) scale(1.05);
  filter: contrast(1.1) saturate(1.15) brightness(1.05);
}

/* Large images for quick view modal */
.product-image-large {
  width: 100%;
  max-width: 512px;
  height: 512px;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  margin: 0 auto;
  object-fit: contain;
}

/* Extra large images for detailed product view */
.product-image-xl {
  width: 100%;
  height: 512px;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  /* Enhanced image quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

/* Featured carousel images */
.product-image-featured {
  width: 100%;
  height: 256px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
  /* Enhanced image quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

.product-image-featured:hover {
  transform: translateZ(0) scale(1.02);
  filter: contrast(1.1) saturate(1.15) brightness(1.05);
}

/* Unified carousel layout fixes */
#categoryCarousel {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

#categoryCarousel .carousel-item {
  flex: 0 0 25%; /* 4 items per view on desktop */
  max-width: 25%;
}

@media (max-width: 1023px) {
  #categoryCarousel .carousel-item {
    flex: 0 0 33.333%; /* 3 items per view on tablet */
    max-width: 33.333%;
  }
}

@media (max-width: 767px) {
  #categoryCarousel .carousel-item {
    flex: 0 0 50%; /* 2 items per view on mobile */
    max-width: 50%;
  }
}

/* Stock badge for featured products */
.stock-badge.in-stock {
  background: linear-gradient(135deg, var(--primary-amber), var(--primary-amber-dark));
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
  .product-image-tiny {
    width: 32px;
    height: 32px;
  }
  
  .product-image-small {
    width: 64px;
    height: 64px;
  }
  
  .product-image-compact {
    width: 128px;
    height: 128px;
  }
  
  .product-image-medium {
    height: 256px;
  }
  
  .product-image-xl {
    height: 350px;
  }
  
  .product-image-featured {
    height: 140px;
  }
}

/* Image container for consistent aspect ratios */
.product-image-container {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Enhanced container properties */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

/* Loading state for image containers */
.product-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.4) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: image-loading 1.5s infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-image-container.loading::before {
  opacity: 1;
}

@keyframes image-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.product-image-container.tiny {
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.product-image-container.small {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.product-image-container.compact {
  width: 120px;
  height: 120px;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.product-image-container.medium {
  width: 100%;
  height: 200px;
  border-radius: 0.75rem;
  position: relative;
}

.product-image-container.large {
  width: 400px;
  height: 400px;
  border-radius: 1rem;
  position: relative;
}
@media (max-width: 767px) {
  .product-image-container.large {
    width: 300px;
    height: 300px;
    justify-self: center;
  }
}

.product-image-container.featured {
  width: 100%;
  height: 160px;
  border-radius: 0.75rem;
  position: relative;
}

/* Enhanced loading placeholder for images */
.product-image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: inherit;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* High-DPI image support */
/* Mobile Search Bar Styles */
.search-input-mobile {
  transition: all 0.3s ease;
}

.search-input-mobile:focus {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.search-input-mobile:focus + svg {
  transform: scale(1.1);
  color: var(--primary-amber);
}

/* Quick View Modal */
.quick-view-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-view-modal.open {
  opacity: 1;
  visibility: visible;
}

.quick-view-panel {
  background: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 64rem;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.quick-view-modal.open .quick-view-panel {
  transform: scale(1);
}

.quick-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.quick-view-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin: 0;
}

.quick-view-close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  color: var(--gray-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-view-close:hover {
  background: var(--gray-100);
  color: var(--gray-dark);
}

.quick-view-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.quick-view-content {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
  text-align: center;
}

.quick-view-tags {
  display: inline-block;
  background: var(--primary-amber-100);
  color: var(--primary-amber-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.quick-view-name {
  text-align: left;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0.5rem 0;
}

.quick-view-price {
  text-align: left;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-amber-dark);
  margin: 0.5rem 0;
}

.quick-view-price-per-kg {
  text-align: left;
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.quick-view-description {
  text-align: left;
  line-height: 1.6;
  color: var(--gray-dark);
  margin: 1rem 0;
  font-size: 0.95rem;
}

.quick-view-weight-selector {
  text-align: left;
  margin: 1rem 0;
}

.quick-view-weights {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.quick-view-weight {
  flex: 1;
  min-width: 80px;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.quick-view-weight:hover {
  border-color: var(--primary-amber);
  background: var(--primary-amber-100);
  color: var(--primary-amber-dark);
}

.quick-view-weight.selected {
  border-color: var(--primary-amber);
  background: var(--primary-amber);
  color: var(--color-white);
}

.quick-view-weight.selected:hover {
  background: var(--primary-amber-dark);
  border-color: var(--primary-amber-dark);
}

.quick-view-weight:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-medium);
}

.quick-view-weight:disabled:hover {
  border-color: var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-medium);
}

.quick-view-weight small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* QuickView Weight Pills Support */
.quick-view-weight-selector .weight-pills-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-view-weight-selector .weight-pill-unified {
  flex: 1;
  min-width: 80px;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.quick-view-weight-selector .weight-pill-unified:hover {
  background: var(--primary-amber-100);
}

.quick-view-weight-selector .weight-pill-unified.selected {
  border-color: var(--primary-amber);
  background: var(--primary-amber);
  color: var(--color-white);
}

.quick-view-weight-selector .weight-pill-unified:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-medium);
}

.quick-view-weight-selector .weight-pill-unified:disabled:hover {
  border-color: var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-medium);
}

.quick-view-weight-selector .weight-pill-unified small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
.quick-view-actions {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: calc(50% - 1rem);
}
}


.quick-view-price-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.quick-view-add-btn {
  background: var(--primary-amber);
  color: var(--color-white);
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.quick-view-add-btn:hover:not(:disabled) {
  background: var(--primary-amber-dark);
  transform: translateY(-1px);
}

.quick-view-add-btn:disabled {
  background: var(--gray-300);
  color: var(--gray-medium);
  cursor: not-allowed;
  transform: none;
}

/* Mobile Styles */
@media (max-width: 767px) {
  .quick-view-modal {
    padding: 0.5rem;
  }
  
  .quick-view-panel {
    max-height: 85vh;
    width: auto;
  }
  
  .quick-view-header {
    padding: 1rem;
  }
  
  .quick-view-title {
    font-size: 1.25rem;
  }
  
  .quick-view-content {
    padding: 1rem;
  }
  
  .quick-view-name {
    font-size: 1.25rem;
  }
  
  .quick-view-price {
    font-size: 1.375rem;
  }
  
  .quick-view-description {
    font-size: 0.875rem;
  }
  
  .quick-view-tags {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .quick-view-weights {
    gap: 0.125rem;
  }
  
  .quick-view-weight {
    min-width: 70px;
    padding: 0.5rem 0.25rem;
    font-size: 0.7rem;
    border-width: 1px;
  }

  .quick-view-weight-selector .weight-pills-container {
    gap: 0.5rem;
  }

  .quick-view-weight-selector .weight-pill-unified {
    border: 1px solid var(--gray-200);
  }

  .quick-view-weight-selector{
    margin: 0.5rem 0;
  }
  
  .quick-view-weight small {
    font-size: 0.65rem;
    margin-top: 0.125rem;
  }

  /* Mobile QuickView Weight Pills Support */

  .quick-view-weight-selector .weight-pill-unified small {
    display: none;
  }
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--highlight-green);
  margin-bottom: 0.5rem;
  min-width: 320px;
  max-width: 400px;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.toast.toast-error {
  border-left-color: #dc2626;
}

.toast.toast-error .toast-icon {
  background: #dc2626;
}

.toast.toast-error .toast-progress {
  background: #dc2626;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(100%);
  opacity: 0;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--highlight-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-message {
  flex-grow: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.toast-description {
  color: var(--gray-dark);
  font-size: 0.8rem;
  line-height: 1.4;
}

.toast-actions {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}

.toast-undo {
  background: var(--primary-amber-50);
  border: 1px solid var(--primary-amber-200);
  color: var(--primary-amber-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: normal;
}

.toast-undo:hover {
  background: var(--primary-amber-100);
  color: var(--primary-amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--highlight-green);
  transition: width 0.1s linear;
  border-radius: 0 0 0.75rem 0.75rem;
}

/* Toast animations */
@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile toast adjustments */
@media (max-width: 767px) {
  .toast-container {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    position: fixed;
    /* Remove flex layout for z-index stacking */
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
    margin-bottom: 0;
    min-height: 48px;
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* z-index will be set dynamically via JavaScript */
  }
  
  .toast.show {
    transform: translateY(0);
    opacity: 1;
  }
  
  .toast.hide {
    transform: translateY(100%);
    opacity: 0;
  }
  
  .toast-content {
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .toast-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
  }
  
  .toast-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 0.125rem;
  }
  
  .toast-description {
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--gray-dark);
  }
  
  .toast-actions {
    margin-left: auto;
    margin-top: 0.125rem;
  }
  
  .toast-undo {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .toast-progress {
    height: 2px;
  }
}

/* Toast positioning when cart modal is open (desktop only) */
@media (min-width: 768px) {
  .toast-container.cart-open {
    right: 470px; /* Move 450px left from original 20px position */
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .toast-container {
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Cart Item Styling */
.cart-item-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--gray-200);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateX(20px);
  animation: slideInCartItem 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.cart-item-horizontal:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cart-item-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-subtotal {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.cart-item-total-container {
  display: flex;
  justify-content: flex-end;
}

.cart-item-total {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.qty-btn-minus,
.qty-btn-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 0.375rem;
  background: var(--color-white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.qty-btn-minus:hover,
.qty-btn-plus:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.qty-btn-minus:active,
.qty-btn-plus:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.qty-btn-minus svg,
.qty-btn-plus svg {
  width: 16px;
  height: 16px;
}

.qty-display {
  font-weight: 600;
  color: var(--gray-800);
  min-width: 24px;
  text-align: center;
}

/* Staggered cart item animations */
.cart-item-horizontal:nth-child(1) { animation-delay: 0.1s; }
.cart-item-horizontal:nth-child(2) { animation-delay: 0.15s; }
.cart-item-horizontal:nth-child(3) { animation-delay: 0.2s; }
.cart-item-horizontal:nth-child(4) { animation-delay: 0.25s; }
.cart-item-horizontal:nth-child(5) { animation-delay: 0.3s; }
.cart-item-horizontal:nth-child(6) { animation-delay: 0.35s; }
.cart-item-horizontal:nth-child(7) { animation-delay: 0.4s; }
.cart-item-horizontal:nth-child(8) { animation-delay: 0.45s; }

/* Prevent animations on updates */
.cart-item-horizontal.cart-item-no-animation {
  opacity: 1;
  transform: translateX(0);
  animation: none;
}

.cart-item-horizontal.cart-item-animated {
  opacity: 1;
  transform: translateX(0);
  animation: none;
}

@keyframes slideInCartItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scaleBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.scale-bounce {
  animation: scaleBounce 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-item-image {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cart-item-content {
  flex: 1;
  min-width: 0;
}

.cart-item-header {
  margin-bottom: 0.5rem;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-900);
  line-height: 1.25;
  margin: 0 0 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-amber);
  margin: 0;
}

.cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.qty-btn-minus,
.qty-btn-plus {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: var(--color-white);
  color: var(--gray-dark);
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.qty-btn-minus:hover:not(:disabled),
.qty-btn-plus:hover:not(:disabled) {
  background: var(--primary-amber);
  color: var(--color-white);
}

.qty-btn-minus:disabled,
.qty-btn-plus:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-display {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-dark);
  min-width: 1.5rem;
  text-align: center;
}

.cart-item-total-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.cart-item-total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.cart-item-subtotal {
  color: var(--gray-medium);
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

.cart-item-actions {
  display: flex;
  gap: 0.25rem;
}

.remove-item-btn {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin: -0.5rem;
}

.remove-item-btn:hover {
    color: #ef4444;
  }

.remove-item-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Empty cart */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--color-gray-500);
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInScale 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s forwards;
}

.empty-cart::before {
  content: "🛒";
  font-size: 3rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .cart-item-subtotal {
    display: none;
  }
}

/* Scroll Indicator Styling */
#scrollIndicator {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollIndicator .bg-gradient-to-t {
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
}

#scrollIndicator > div > div {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.scroll-arrow svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Ensure scroll indicator is above content */
#confirmationScrollContainer {
  position: relative;
}

#scrollIndicator {
  z-index: 10;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .product-image-tiny,
  .product-image-small,
  .product-image-compact,
  .product-image-medium,
  .product-image-large,
  .product-image-xl,
  .product-image-featured {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Carousel Swipe Functionality */
@media (max-width: 767px) {
  #categoryCarousel,
  .category-gallery-carousel,
  #featuredCarousel,
  .featured-products-carousel {
    overflow-x: scroll !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    transform: none !important; /* Disable JS transform on mobile */
    transition: none !important; /* Disable transitions for native scroll */
    container-type: inline-size;
  }

  #categoryCarousel::-webkit-scrollbar,
  .category-gallery-carousel::-webkit-scrollbar,
  #featuredCarousel::-webkit-scrollbar,
  .featured-products-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  /* Carousel items snap to center */
  #categoryCarousel > div,
  .category-gallery-track > .category-card,
  #featuredCarousel > div,
  .featured-products-carousel .carousel-item {
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /*
   * Peek layout (1 22 3): cards are half the scrollport.
   * Infinite mode clones neighbors for peeks (no empty side padding).
   * Non-infinite fallback keeps 25cqw insets so the first card can center.
   */
  .category-gallery-track,
  .featured-products-track {
    transform: none !important; /* Disable JS transform */
    transition: none !important;
    width: max-content !important;
    justify-content: flex-start !important;
    padding: 0.5rem 25cqw !important;
    box-sizing: content-box;
    gap: 0.5rem;
  }

  .is-infinite-carousel .category-gallery-track,
  .is-infinite-carousel .featured-products-track,
  .is-infinite-carousel > .category-gallery-track,
  .is-infinite-carousel > .featured-products-track {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .category-gallery-carousel .category-card,
  .featured-products-carousel .carousel-item {
    width: calc(50cqw - 0.25rem) !important;
    flex: 0 0 calc(50cqw - 0.25rem) !important;
    max-width: none !important;
  }

  /* Hide navigation arrows and dots on mobile */
  #categoryPrevBtn,
  #categoryNextBtn,
  #categoryDots,
  .category-gallery-nav,
  .category-gallery-dots,
  .featured-products-nav,
  .featured-products-dots,
  #featuredPrevBtn,
  #featuredNextBtn,
  #featuredDots {
    display: none !important;
  }
}

/* Utility classes for scrollbar hiding */
.scrollbar-hide {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Desktop keeps the original behavior */
@media (min-width: 768px) {
  #categoryCarousel,
  .category-gallery-carousel,
  #featuredCarousel,
  .featured-products-carousel {
    overflow: hidden !important;
    scroll-snap-type: none;
    max-width: 100%;
  }
  
  .category-gallery-track,
  .featured-products-track {
    transition: transform 0.3s ease !important;
    max-width: none;
    min-width: 100%;
  }
}

/* QuickView Modal Two-Column Layout */
@media (min-width: 768px) {
  /* Show desktop layout, hide mobile layout */
  .quick-view-desktop-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }
  
  /* Left column: Image */
  .quick-view-image-column {
    flex: 0 0 45%;
    max-width: 45%;
  }
  
  /* Right column: Details */
  .quick-view-details-column {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
  }
  
  .quick-view-image-column .quick-view-image {
    position: sticky;
    top: 2rem;
  }

}

@media (max-width: 767px) {
  /* Hide desktop layout, show mobile layout */
  .quick-view-desktop-layout {
    display: flex;
    flex-direction: column;
  }
}



/* Product Badges */
.product-badge {
  position: absolute;
  z-index: 20;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.left-badge {
  top: 8px;
  left: 8px;
}

.right-badge {
  top: 8px;
  right: 8px;
}

/* Mobile badge adjustments */
@media (max-width: 768px) {
  .product-badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
  
  .left-badge {
    top: 6px;
    left: 6px;
  }
  
  .right-badge {
    top: 6px;
    right: 6px;
  }
}

/* Badge color variations */
.product-badge.bg-red-500 {
  background-color: #ef4444;
}

.product-badge.bg-red-600 {
  background-color: #dc2626;
}

.product-badge.bg-orange-500 {
  background-color: #f97316;
}

.product-badge.bg-orange-600 {
  background-color: #ea580c;
}

.product-badge.bg-green-500 {
  background-color: #10b981;
}

.product-badge.bg-blue-500 {
  background-color: #3b82f6;
}
.product-badge.bg-gray-900 {
  background-color: #111827;
}

/* ============================================================================
   BREADCRUMB COMPONENT
   ============================================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-link {
    color: var(--primary-amber);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
}

.breadcrumb-link:hover {
    color: var(--primary-amber-light);
    background-color: var(--gray-100);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--color-gray-900);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.breadcrumb-separator {
    color: var(--gray-300);
    font-size: 0.875rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .breadcrumb {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 0.8125rem;
        padding: 0.1875rem 0.375rem;
    }
    
    .breadcrumb-separator {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* ============================================================================
   PRODUCT COUNTER COMPONENT
   ============================================================================ */

.product-counter {
    color: var(--color-gray-900);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.product-counter.loading {
    color: var(--color-gray-900);
    animation: pulse 1.5s ease-in-out infinite;
}

.product-counter.empty {
    color: var(--color-gray-900);
    font-weight: 500;
}

.product-counter.filtered {
    color: var(--color-gray-900);
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .product-counter {
        font-size: 1rem;
        padding: 0.375rem 0;
    }
}

/* ============================================================================
   CART BUTTON COMPONENT
   ============================================================================ */

.cart-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.cart-button:hover {
    transform: scale(1.05);
}

/* Desktop Cart Button */
.cart-button-desktop {
    background-color: var(--primary-amber);
    color: var(--color-white);
    gap: 0.5rem;
    
    padding-right: 0.625rem;
}

.cart-button-desktop:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cart-button-desktop .cart-price {
    background-color: var(--color-white);
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.cart-button-desktop .cart-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-white);
}

.cart-button-desktop .cart-badge {
    background-color: var(--highlight-green);
    color: var(--color-white);
    width: 1rem;
    height: 1rem;
    top: -0.5rem;
    right: -0.5rem;
    font-size: 0.7rem;
}

/* Mobile Cart Button */
.cart-button-mobile {
    background-color: transparent;
    color: var(--gray-dark);
    position: relative;
}

@media (pointer: fine) {
  .cart-button-mobile:hover {
    background-color: var(--gray-100);
    transform: scale(1.05);
  }
}

.cart-button-mobile .cart-price {
    display: none;
}

.cart-button-mobile .cart-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gray-dark);
}

.cart-button-mobile .cart-badge {
    background-color: var(--highlight-green);
    color: var(--color-white);
    width: 1rem;
    height: 1rem;
    top: -0.25rem;
    right: -0.25rem;
}

/* Cart Icon Wrapper */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
}

/* Responsive Visibility */
@media (min-width: 768px) {
    .cart-button-desktop {
        display: flex;
    }
    
    .cart-button-mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .cart-button-desktop {
        display: none;
    }
    
    .cart-button-mobile {
        display: flex;
    }
}

/* ============================================================================
   CATEGORY NAVIGATION COMPONENT
   ============================================================================ */

.category-nav {
  display: block;
  background-color: var(--color-white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 4rem;
  z-index: 30;
}

@media (max-width: 767px) {
  .category-nav {
    display: none;
  }
}

.category-nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Loading handled by skeleton-nav class */

.category-nav-items {
    display: flex;
    align-items: center;
    gap: 0rem;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-items::-webkit-scrollbar {
    display: none;
}
/* ========================================
  CLEAN SWORD REFLECTION NAVBAR SKELETON
  ======================================== */

.category-nav-skeleton {
  position: relative;
  width: 100%;
  height: 48px;                    /* matches navbar button height */
  background-color: var(--gray-100); /* light brown from your theme */
  overflow: hidden;
}

/* The "sword reflection" stripe */
.category-nav-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;                      /* start off to the left */
  width: 50%;                      /* stripe width = 50% of container */
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: sword-shine 1.5s ease-in-out infinite;
}


/* Keyframes: slide stripe from left to right */
@keyframes sword-shine {
  0%   { left: -50%; }
  100% { left: 150%; }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .category-nav-skeleton::before {
    animation: none;
    display: none;
  }
}

@keyframes slide-in-line {
  0% {
    width: 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    width: 60%;
    opacity: 1;
  }
}

/* Shimmer animation removed - using original skeleton design */

  

/* Category Button */
.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-dark);
    background-color: transparent;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.category-btn:hover {
    color: var(--gray-dark);
    background-color: var(--gray-50);
}

.category-btn.active {
    background-color: var(--gray-100);
    color: var(--gray-dark);
}

.category-btn.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-amber), var(--primary-amber-light));
    border-radius: 2px;
    animation: slide-in-line 0.4s ease-out forwards;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

/* Special styling for Ofertas button */
.category-btn.ofertas {
    background-color: var(--highlight-green);
    color: var(--color-white);
    font-weight: 600;
    gap: 0.25rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    border-radius: 0.5rem;
}

.category-btn.ofertas:hover {
    background-color: var(--highlight-green-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-btn.ofertas.active {
    background-color: var(--highlight-green-dark);
}

.category-btn.ofertas.active::after {
    background: linear-gradient(90deg, var(--primary-amber), var(--primary-amber-light));
}

/* Category Icon */
.category-icon {
    font-size: 1rem;
}

/* Dropdown Container */
.category-dropdown-container {
    position: relative;
}

.category-dropdown-arrow {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--gray);
    transition: transform 0.2s ease;
}

.category-dropdown-container:hover .category-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.category-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    width: 100vw;
    background-color: var(--color-white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: none;
}

.category-dropdown.show {
    display: block;
}

.category-dropdown-content {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    padding: 0;
}

.category-dropdown-item {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--gray-dark);
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-dropdown-item:hover {
    background-color: var(--gray-100);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-dropdown-item.active {
    background-color: var(--primary-amber-light);
    color: var(--color-white);
}

/* === INFO BANNER COMPONENT === */

.info-banner {
    background: var(--color-white);
    border-bottom: 1px solid var(--gray-200);
}

.info-banner-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.info-banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .info-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .info-banner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .info-banner-container {
        padding: 2rem 2rem;
    }
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-white);
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
}

.info-card:hover {
    background: var(--color-white);
}

.info-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon-green {
    background: var(--highlight-green);
}

.info-card-icon-light {
    background: var(--primary-amber-light);
}

.info-card-icon-primary {
    background: var(--primary-amber);
}

.info-card-icon-dark {
    background: var(--primary-amber-dark);
}

.info-card-svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-white);
}

.info-card-content {
    flex: 1;
}

.info-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.info-card-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.info-card-description {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 767px) {
    .trust-indicators {
        display: none;
    }
}

.trust-indicators-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

@media (max-width: 640px) {
    .trust-indicators-container {
        display: none;
    }
}

.trust-item {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
}

.trust-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--highlight-green);
}

.trust-text {
    font-weight: 500;
}

/* === CATEGORY GALLERY COMPONENT === */

.category-gallery {
    background: var(--color-white);
    background-image:  radial-gradient(var(--primary-amber-100) 1.8px, transparent 1.8px), radial-gradient(var(--primary-amber-100) 1.8px, var(--color-white) 1.8px);
    background-size: 72px 72px;
    background-position: 0 0,36px 36px;
    padding: 3rem 0;
}

.category-gallery-container {
    max-width: 1280px;
    margin: 0 auto;
}

.category-gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-gallery-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.category-gallery-subtitle {
    color: var(--gray-600);
}

.category-gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    width: 100%;
    padding: 1rem 0rem;
}

/* Mobile and tablet: Keep carousel layout */
.category-gallery-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 0.5rem;
}

/* Desktop: Switch to grid layout */
@media (min-width: 768px) {
    .category-gallery-carousel {
        overflow: visible; /* Remove overflow hidden for grid */
        padding: 2rem; /* Add horizontal padding */
    }
    
    .category-gallery-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1rem;
        transform: none !important; /* Disable transform for grid */
        transition: none; /* Remove transition for grid */
        margin-left: 0;
    }
    
    /* Hide carousel navigation on desktop */
    .category-gallery-nav {
        display: none;
    }
    
    .category-gallery-dots {
        display: none;
    }
}

.category-card {
    flex: 0 0 auto;
    background: var(--color-white);
    border-radius: 0.75rem;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 12rem;
    display: flex;
    align-items: flex-end;
}

/* Desktop: Remove flex sizing for grid items */
@media (min-width: 768px) {
    .category-card {
        flex: none; /* Remove flex properties for grid */
        width: auto; /* Let grid control width */
        min-height: 10rem; /* Slightly smaller for grid layout */
    }
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.8;
}

/* Card widths as fraction of track (will be set by JavaScript) */
.category-gallery-track .category-card {
    width: calc(50% - 0.25rem); /* fallback for mobile */
}

/* Desktop: Override JavaScript width for grid items */
@media (min-width: 768px) {
    .category-gallery-track .category-card {
        width: auto !important; /* Override JavaScript width setting */
    }
}

/* Responsive adjustments handled by JavaScript track width */

.category-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-icon {
    font-size: 3rem;
    color: var(--primary-amber);
    opacity: 0.8;
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    width: 100%;
    color: white;
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.category-card-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.category-card-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for category cards */
@media (max-width: 767px) {
    .category-card {
        min-height: 12rem;
    }
    
    .category-card-title {
        font-size: 0.875rem;
    }
    
    .category-card-subtitle {
        font-size: 0.6875rem;
    }
    
    .category-card-icon {
        font-size: 2rem;
    }
}

/* Desktop grid specific styles */
@media (min-width: 768px) {
    .category-card {
        min-height: 12rem;
    }
    
    .category-card-title {
        font-size: 1rem;
    }
    
    .category-card-subtitle {
        font-size: 0.875rem;
    }
    
    .category-card-content {
        padding: 1.5rem 1rem;
    }
}

/* Navigation buttons - only show on mobile/tablet */
.category-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.category-gallery-nav:hover {
    background: var(--gray-50);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.category-gallery-nav:disabled {
    opacity: 0;
}

.category-gallery-prev {
    left: -1rem;
}

.category-gallery-next {
    right: -1rem;
}

/* Hide navigation on desktop */
@media (min-width: 768px) {
    .category-gallery-nav {
        display: none;
    }
}

.category-gallery-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-500);
}

/* Dots indicators - only show on mobile/tablet */
.category-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Hide dots on desktop */
@media (min-width: 768px) {
    .category-gallery-dots {
        display: none;
    }
}

.category-gallery-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-gallery-dot:hover {
    background: var(--gray-300);
}

.category-gallery-dot.active {
    background: var(--primary-amber);
    transform: scale(1.2);
}

/* ============================================================================
   FEATURED PRODUCTS COMPONENT
   ============================================================================ */
 /* section background 
  
.featured-products {
  padding: 3rem 0;
  --s: 150px;           
  --fade: 300px;         
  --c1: var(--primary-amber-50);
  --c2: var(--color-white);
  --_g: 
     var(--c1) 0%  5% ,var(--c2) 6%  15%,var(--c1) 16% 25%,var(--c2) 26% 35%,var(--c1) 36% 45%,
     var(--c2) 46% 55%,var(--c1) 56% 65%,var(--c2) 66% 75%,var(--c1) 76% 85%,var(--c2) 86% 95%,
     #0000 96%;

  background:
    
    linear-gradient(to bottom, var(--c2) 0%, transparent var(--fade)) top no-repeat,
    
    linear-gradient(to top,   var(--c2) 0%, transparent var(--fade)) bottom no-repeat,
    
    radial-gradient(50% 50% at 100% 0,   var(--_g)),
    radial-gradient(50% 50% at 0 100%,   var(--_g)),
    radial-gradient(50% 50%,            var(--_g)),
    radial-gradient(50% 50%,            var(--_g))
      calc(var(--s)/2) calc(var(--s)/2) var(--c1);

  
  background-size:
    100% var(--fade),   
    100% var(--fade),   
    var(--s) var(--s),
    var(--s) var(--s),
    var(--s) var(--s),
    var(--s) var(--s);

  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat;

}
*/
.featured-products {
  padding: 3rem 0;
  --s: 120px; 
  --c1: var(--primary-amber-50);
  --c2: var(--color-white);
  
  --_g:radial-gradient(#0000 60%,var(--c1) 61% 63%,#0000 64% 77%,var(--c1) 78% 80%,#0000 81%);
  --_c:,#0000 75%,var(--c2) 0;
  background:
    conic-gradient(at 12% 20% var(--_c)) calc(var(--s)* .44) calc(.9*var(--s)),
    conic-gradient(at 12% 20% var(--_c)) calc(var(--s)*-.06) calc(.4*var(--s)),
    conic-gradient(at 20% 12% var(--_c)) calc(.9*var(--s)) calc(var(--s)* .44),
    conic-gradient(at 20% 12% var(--_c)) calc(.4*var(--s)) calc(var(--s)*-.06),
    var(--_g),var(--_g) calc(var(--s)/2) calc(var(--s)/2) var(--c2);
  background-size: var(--s) var(--s);
}

.featured-products-container {
    max-width: 1280px;
    margin: 0 auto;

}

/* Header */
.featured-products-header {
    text-align: center;
    margin-bottom: 2rem;
}

.featured-products-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.featured-products-subtitle {
    color: var(--color-gray-900);
    font-size: 1rem;
}

/* Carousel Container */
.featured-products-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.featured-products-track {
    display: flex;
    transition: transform 0.3s ease;
    justify-content: space-around;
}

.featured-product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.featured-product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-amber);
    margin-bottom: 0.75rem;
}

.featured-product-button {
    width: 100%;
    background-color: var(--primary-amber);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.featured-product-button:hover {
    background-color: var(--primary-amber-dark);
    transform: translateY(-1px);
}

.featured-product-button:disabled {
    background-color: var(--gray-200);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
}

/* Navigation Buttons */
.featured-products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.featured-products-nav:hover {
    background-color: var(--primary-amber);
    border-color: var(--primary-amber);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-products-nav:hover .featured-products-nav-icon {
    color: var(--color-white);
}

.featured-products-nav:disabled {
  opacity: 0;
}

.featured-products-prev {
    left: 1rem;
}

.featured-products-next {
    right: 1rem;
}

.featured-products-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-600);
    transition: color 0.2s ease;
}

/* Dots Indicator */
.featured-products-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0rem;
}

.featured-products-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--gray-200);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.featured-products-dot:hover {
    background-color: var(--primary-amber-light);
}

.featured-products-dot.active {
    background-color: var(--primary-amber);
}

/* Footer */
.featured-products-footer {
    text-align: center;
}

.featured-products-view-all {
    background-color: var(--primary-amber);
    color: var(--color-white);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-products-view-all:hover {
    background-color: var(--primary-amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.featured-products-btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .featured-product-card {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 767px) {
    .featured-products {
        padding: 2rem 0;
    }
    
    .featured-products-title {
        font-size: 1.5rem;
    }
    
    /* Width controlled by .carousel-item peek rules above */
    .featured-product-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }
    
    .featured-products-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .featured-products-nav-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .featured-products-prev {
        left: -0.5rem;
    }
    
    .featured-products-next {
        right: -0.5rem;
    }
    
    .featured-products-view-all {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* === PRODUCT GRID COMPONENT === */

/* Grid Container */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Product Card */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary-amber);
}

/* Product Image */
.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  background: var(--gray-50);
}

/* Product Info */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.5rem;
}

@media (max-width: 767px) {
  .product-name {
    font-size: 0.875rem !important;
  }
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-amber-dark);
  margin: 0.5rem 0;
  line-height: 1.25;
}
@media (max-width: 767px) {
  .product-price {
    font-size: 1.25rem !important;
  }
}

/* Product Actions */
.product-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Add Button - Former Style */
.add-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-amber);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}
@media (max-width: 767px) {
  .add-btn {
    font-size: 0.875rem !important;
    padding: 0.5rem !important;
  }
}

.add-btn:hover:not(:disabled) {
  background: var(--primary-amber-dark);
  color: var(--color-white);
}
/* Product Badges */
.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1;
}

.badge-featured {
  background: var(--primary-amber);
  color: var(--color-white);
}

.badge-offer {
  background: var(--error);
  color: var(--color-white);
}

.badge-stock {
  background: var(--highlight-green);
  color: var(--color-white);
}

.badge-low-stock {
  background: var(--warning);
  color: var(--color-white);
}

.badge-no-stock {
  background: var(--gray-medium);
  color: var(--color-white);
}

/* Mobile Optimizations - Former Style */
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
    margin: -1rem !important;
  }
  
  .product-card {
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    box-shadow: none;
  }
  
  .product-card .desktop-layout {
    display: none !important;
  }
  
  .product-card .mobile-layout {
    display: flex !important;
    padding: 0.75rem;
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-50);
    min-height: 130px;
    width: 100%;
  }
  
  .mobile-image-wrapper {
    flex-shrink: 0;
    margin-right: 1rem;
    position: relative;
    width: 120px !important;
    max-width: 33.333% !important;
  }
  
  .mobile-image-wrapper .product-img {
    width: 100% !important;
    max-width: 120px !important;
    height: auto !important;
    object-fit: cover !important;
  }
  
  .mobile-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
  }
  
  .mobile-product-name {
    font-size: clamp(1.0625rem, 3.5vw, 1.25rem); 
    font-weight: 600;
    line-height: 1.30;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .mobile-product-price {
    font-size: clamp(1.0625rem, 3.5vw, 1.25rem); 
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--color-gray-900);
  }
  
  .mobile-add-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
  }
  
  .mobile-add-button:not(:disabled) {
    background-color: var(--primary-amber);
    color: var(--color-white);
  }
  
  @media (pointer: fine) {
    .mobile-add-button:not(:disabled):hover {
      background-color: var(--primary-amber-dark);
    }
  }
  
  .mobile-add-button:disabled {
    background-color: var(--gray-100);
    color: var(--gray-medium);
    border: 1px solid var(--gray-200);
    cursor: not-allowed;
  }
  
  .product-badges {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Loading States */
.product-card.loading {
  pointer-events: none;
}

.product-card.loading .product-img {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Weight Selector (for bulk products) - Former Style */
.weight-selector {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.weight-option {
  flex: 1;
  padding: 0.625rem 0.5rem;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}

.weight-option:hover {
  background: var(--primary-amber-100);
  color: var(--primary-amber);
}

.weight-option.selected {
  background: var(--primary-amber);
  color: var(--color-white);
}

.weight-option.selected:hover {
  background: var(--primary-amber-dark);
}

.weight-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.weight-option:disabled:hover {
  background: transparent;
  color: #666;
}

/* Quick View */
.product-card .quick-view {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.product-card:hover .quick-view {
  opacity: 1;
}

.quick-view:hover {
  background: var(--primary-amber);
  border-color: var(--primary-amber);
  color: var(--color-white);
}

.quick-view svg {
  width: 1rem;
  height: 1rem;
}

/* === PAGINATION COMPONENT === */

/* Container */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 0;
}

.pagination.hidden {
  display: none;
}

/* Info Text */
.page-info {
  font-size: 0.875rem;
  color: var(--gray-dark);
  font-weight: 500;
}

/* Controls Container */
.page-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Page Buttons */
.page-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--gray-dark);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary-amber);
  background: var(--primary-amber-100);
  color: var(--primary-amber-dark);
}

.page-btn.active {
  background: var(--primary-amber);
  border-color: var(--primary-amber);
  color: var(--color-white);
}

.page-btn.active:hover {
  background: var(--primary-amber-dark);
  border-color: var(--primary-amber-dark);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-100);
  color: var(--gray-medium);
  border-color: var(--gray-200);
}

.page-btn:disabled:hover {
  background: var(--gray-100);
  color: var(--gray-medium);
  border-color: var(--gray-200);
}

/* Ellipsis */
.page-ellipsis {
  padding: 0.5rem 0.25rem;
  color: var(--gray-medium);
  font-size: 0.875rem;
  user-select: none;
}

/* Navigation Buttons */
.page-nav {
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 767px) {
  .pagination {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .page-info {
    order: 2;
    font-size: 0.8rem;
  }
  
  .page-controls {
    order: 1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .page-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: 2.5rem;
    text-align: center;
  }
  
  .page-nav {
    min-width: 70px;
    font-size: 0.8rem;
  }
}

/* === PRODUCTS VIEW CONTAINER === */

/* Main Container */
.products-view {
  min-height: 100vh;
  background: var(--color-white);
  transition: opacity 0.3s ease;
  background-color: var(--primary-amber-50);
  background-size: 80px 80px;
  background-image:  repeating-linear-gradient(0deg, var(--gray-200), var(--gray-200) 1px, var(--gray-50) 1px, var(--gray-50));
}
@media (max-width: 768px) {
  .products-view {
    background-size: 65px 65px;
  }
}
.products-view.hidden {
  display: none;
}

.products-view.loading {
  pointer-events: none;
}

/* Container Content */
.products-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header Section */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

/* Loading State */
.products-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  min-height: 300px;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-amber);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-text {
  color: var(--gray-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Error State */
.products-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  text-align: center;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.error-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.error-message {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.error-retry {
  background: var(--primary-amber);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.error-retry:hover {
  background: var(--primary-amber-dark);
  transform: translateY(-1px);
}

/* Empty State */
.products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  text-align: center;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.empty-message {
  color: var(--gray-dark);
  font-size: 0.9rem;
}

/* States */
.products-loading,
.products-error,
.products-empty {
  display: none;
}

.products-view.state-loading .products-loading {
  display: flex;
}

.products-view.state-error .products-error {
  display: flex;
}

.products-view.state-empty .products-empty {
  display: flex;
}

.products-view.state-loading .products-content,
.products-view.state-error .products-content,
.products-view.state-empty .products-content {
  display: none;
}

/* Spin Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 767px) {
  .products-content {
    padding: 1rem;
  }
  
  .products-header {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .products-loading,
  .products-error,
  .products-empty {
    padding: 3rem 1rem;
  }
  
  .error-icon,
  .empty-icon {
    font-size: 3rem;
  }
  
  .error-title,
  .empty-title {
    font-size: 1.1rem;
  }
}

/* === CONTACT SECTION === */

/* Container */
.contact-section {
  position: relative;
  padding: 3rem 0;
  --s: 82px; /* control the size*/
  --c1: var(--highlight-green-50);
  --c2: var(--color-white);
  --c3: var(--gray-25);
  
  --_g: var(--c3) 0 120deg,#0000 0;
  background:
    conic-gradient(from -60deg at 50% calc(100%/3),var(--_g)),
    conic-gradient(from 120deg at 50% calc(200%/3),var(--_g)),
    conic-gradient(from  60deg at calc(200%/3),var(--c3) 60deg,var(--c2) 0 120deg,#0000 0),
    conic-gradient(from 180deg at calc(100%/3),var(--c1) 60deg,var(--_g)),
    linear-gradient(90deg,var(--c1)   calc(100%/6),var(--c2) 0 50%,
                          var(--c1) 0 calc(500%/6),var(--c2) 0);
  background-size: calc(1.732*var(--s)) var(--s); 
}

@media (max-width: 767px) {
  .contact-section {
    padding: 0rem !important;
  }
}

.contact-section.hidden {
  display: none;
}

/* Animated Background Elements */
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}


/* Content Container */
.contact-content {
  position: relative;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (max-width: 767px) {
  .contact-content {
    padding: 0rem !important;
  }
}

/* Map Container */
.contact-map {
  position: relative;
  height: 16rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 767px) {
  .contact-map {
    border-radius: 0rem !important;
    height: 26rem !important;
    border: none !important;
  }
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .contact-map iframe {
    height: 90vh !important;
    overflow: hidden !important;
    bottom: 20vh;
    position: relative;
  }
}

.contact-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
  pointer-events: none;
}

/* Floating Cards */
.contact-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-card {
  position: absolute;
  background: rgba(255, 255, 255, 1);
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: auto;
  max-width: 20rem;
}


.contact-card.info {
  bottom: 1rem;
  left: 1rem;
}

.contact-card.actions {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Info Card */
.contact-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-amber);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-white);
}

.contact-details h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 0.25rem 0;
}

.contact-address {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-dark);
  margin: 0;
}

.contact-hours {
  font-size: 0.75rem;
  color: var(--gray-medium);
  margin: 0.25rem 0 0 0;
}

/* Action Buttons */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
}

.contact-btn:hover {
  transform: scale(1.1) rotate(3deg);
}

.contact-btn.whatsapp {
  background: var(--highlight-green);
  color: var(--color-white);
}

.contact-btn.whatsapp:hover {
  background: var(--highlight-green-dark);
  transform: scale(1.1) rotate(-3deg);
}

.contact-btn.directions {
  background: var(--primary-amber);
  color: var(--color-white);
}

.contact-btn.directions:hover {
  background: var(--primary-amber-dark);
}

.contact-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.2s ease;
}

.contact-btn:hover svg {
  transform: scale(1.1);
}

.contact-btn-text {
  display: none;
}

/* CTA Section */
.contact-cta {
  margin-bottom: 2rem;
  text-align: center;
}


@media (max-width: 767px) {
  .contact-cta {
    position: absolute !important;
    margin-bottom: 0rem !important;
    padding: 0.5rem !important;
    z-index: 1 !important; 
  }
}

.contact-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-900);
}

.contact-notice svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-amber);
  flex-shrink: 0;
}

/* Animations */
@keyframes contactFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Responsive */
@media (min-width: 768px) {
  .contact-map {
    height: 30rem;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
  .contact-card.info {
    bottom: 1rem;
    left: 1rem;
  }
  
  .contact-card.actions {
    bottom: 1rem;
    right: 1rem;
  }
  
  .contact-details h3 {
    font-size: 1rem;
  }
  
  .contact-address {
    font-size: 0.875rem;
  }
  
  .contact-btn-text {
    display: block;
  }
  
  .contact-map iframe:hover {
    filter: saturate(1.1);
  }
  
  .contact-map {
    pointer-events: auto;
  }
}

@media (max-width: 767px) {
  .contact-map {
    pointer-events: none;
  }
  
  .contact-btn.whatsapp {
    display: none;
  }
  .contact-card.actions {
    bottom: 0.5rem;
    right: 0.5rem;
  }
}

/* === FOOTER SECTION === */

/* Container */
.footer-section {
  background: var(--color-gray-900);
  color: var(--color-white);
}

.footer-section.hidden {
  display: none;
}

/* Main Footer Content */
.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo img {
  width: auto;
}

.footer-logo .logo-icon,
.footer-logo .logo-icon-footer {
  height: 2.5rem;
}

.footer-logo .logo-text,
.footer-logo .logo-text-footer {
  height: 2.5rem;
}

/* Contact Info */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-300);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary-amber);
  flex-shrink: 0;
}

/* Navigation Links */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--color-gray-300);
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-nav-link:hover {
  color: var(--primary-amber);
}

/* WhatsApp Button */
.footer-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--highlight-green);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.footer-whatsapp:hover {
  background: var(--highlight-green-dark);
}

.footer-whatsapp-icon {
  width: 1rem;
  height: 1rem;
}

/* Bottom Footer */
.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  background: var(--color-gray-950);
}

.footer-bottom-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.footer-bottom-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-credits {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-security {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Responsive Design */
@media (min-width: 640px) {
  .footer-contact {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .footer-bottom-main {
    flex-direction: row;
    gap: 0;
  }
  
  .footer-copyright .mobile-hidden {
    display: inline;
  }
  
  .footer-credits .mobile-only {
    display: none;
  }
}

@media (min-width: 768px) {
  .footer-brand {
    flex-direction: row;
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .footer-main {
    flex-direction: row;
    gap: 2rem;
  }
  
  .footer-contact {
    align-items: flex-start;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 639px) {
  .footer-copyright .mobile-hidden {
    display: none;
  }
  
  .footer-credits .mobile-only {
    display: inline;
  }
}

/* === CART MODAL === */

/* Modal Overlay */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
  backdrop-filter: blur(3px);
  display: flex;
}

.cart-modal.open {
  opacity: 1;
  visibility: visible;
}

.cart-modal.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Modal Panel */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 28rem;
  background: var(--color-white);
  box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-modal.open .cart-panel {
  transform: translateX(0);
}

/* Modal Views */
.cart-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-view.hidden {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
}

/* Header */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInFromTop 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s forwards;
}

.cart-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.cart-close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-close:hover {
  background: var(--gray-100);
}

.cart-close svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gray-dark);
}

/* Back Button */
.cart-back {
  padding: 0.25rem;
  border-radius: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background-color 0.2s ease;
}

.cart-back:hover {
  background: var(--gray-100);
}

.cart-back svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-dark);
}

/* Items Container */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  opacity: 0;
  animation: fadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s forwards;
}

.cart-items.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--color-gray-500);
  font-size: 1rem;
}

.cart-items.empty::before {
  content: "🛒";
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Footer */
.cart-footer {
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInFromBottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s forwards;
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-gray-900);
}

.cart-checkout {
  width: 100%;
  background: var(--primary-amber);
  color: var(--color-white);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.cart-checkout:hover {
  background: var(--primary-amber-dark);
}

.cart-checkout svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Cart Actions Container */
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

/* Cart Footer Links Container */
.cart-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Continue Shopping Button */
.cart-continue-shopping {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cart-continue-shopping:hover {
  color: var(--primary);
}

.cart-continue-shopping svg {
  width: 1rem;
  height: 1rem;
}

/* Clear Cart Link - Subtle and De-emphasized */
.cart-clear-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cart-clear-link:hover {
  color: #ef4444;
}

.cart-clear-link svg {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.7;
}

.cart-clear-link:hover svg {
  opacity: 1;
}

/* Confirmation View */
.cart-confirmation {
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-confirmation.hidden {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

.cart-confirmation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInFromTop 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s forwards;
}

.cart-confirmation-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-confirmation-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

/* Scrollable Content */
.cart-confirmation-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  animation: slideInFromBottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.15s forwards;
}

/* Order Summary */
.cart-summary {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart-summary-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 0.75rem 0;
}

.cart-summary-box {
  background: var(--gray-50);
  border-radius: 0.5rem;
  padding: 1rem;
}

.cart-summary-items {
  margin-bottom: 0.75rem;
}

.cart-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  margin-bottom: 0.5rem;
}

.cart-summary-total {
  border-top: 1px solid var(--gray-200);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-gray-900);
}

/* Delivery Options */
.cart-delivery {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart-delivery-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 1rem 0;
}

.cart-delivery-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-delivery-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-delivery-option:hover {
  background: var(--gray-50);
}

.cart-delivery-option.disabled {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
  cursor: not-allowed;
  opacity: 0.6;
}

.cart-delivery-option input[type="radio"] {
  width: 1rem;
  height: 1rem;
  color: var(--primary-amber);
  border-color: var(--gray-200);
  margin-right: 0.75rem;
}

.cart-delivery-option.disabled input[type="radio"] {
  color: var(--color-gray-400);
  border-color: var(--color-gray-300);
}

.cart-delivery-details {
  flex: 1;
}

.cart-delivery-name {
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
}

.cart-delivery-option.disabled .cart-delivery-name {
  color: var(--color-gray-500);
}

.cart-delivery-price {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--highlight-green);
  margin-bottom: 0.25rem;
}

.cart-delivery-option.disabled .cart-delivery-price {
  color: var(--color-gray-400);
  text-decoration: line-through;
}

.cart-delivery-time {
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.cart-delivery-option.disabled .cart-delivery-time {
  color: var(--color-gray-400);
}

.cart-delivery-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

/* WhatsApp Info */
.cart-whatsapp-info {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart-whatsapp-box {
  background: var(--highlight-green-50);
  border: 1px solid var(--highlight-green-light);
  border-radius: 0.5rem;
  padding: 1rem;
}

.cart-whatsapp-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cart-whatsapp-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--highlight-green);
  flex-shrink: 0;
}

.cart-whatsapp-content {
  flex: 1;
}

.cart-whatsapp-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--highlight-green-dark);
  margin: 0 0 0.5rem 0;
}

.cart-whatsapp-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cart-whatsapp-step {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--highlight-green-dark);
}

.cart-whatsapp-step-number {
  width: 1rem;
  height: 1rem;
  background: var(--highlight-green);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cart-whatsapp-tip {
  background: var(--highlight-green-100);
  border: 1px solid var(--highlight-green-light);
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.cart-whatsapp-tip-text {
  font-size: 0.75rem;
  color: var(--highlight-green-dark);
  font-weight: 500;
  margin: 0;
}

.cart-whatsapp-tip-text strong {
  color: var(--highlight-green-dark);
  font-weight: 600;
}

/* Order Button */
.cart-order {
  padding: 1.5rem;
}

.cart-order-button {
  width: 100%;
  background: var(--highlight-green);
  color: var(--color-white);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background-color 0.2s ease;
  margin-bottom: 1rem;
}

.cart-order-button:hover {
  background: var(--highlight-green-dark);
}

.cart-order-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.cart-privacy {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-medium);
}

.cart-privacy-link {
  color: var(--primary-amber);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cart-privacy-link:hover {
  color: var(--primary-amber-dark);
}

/* Scroll Indicator */
.cart-scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.cart-scroll-indicator-content {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(to top, var(--color-white), var(--color-white), transparent);
}

.cart-scroll-indicator-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray-600);
  background: var(--color-white);
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-200);
}

.cart-scroll-indicator-text {
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0;
}

.cart-scroll-indicator-arrow {
  animation: cartBounce 1s infinite;
}

.cart-scroll-indicator-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-amber);
}

/* Animations */
@keyframes cartBounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .cart-panel {
    max-width: 100%;
  }
  
  .cart-header,
  .cart-items,
  .cart-footer,
  .cart-summary,
  .cart-delivery,
  .cart-whatsapp-info,
  .cart-order {
    padding: 1rem;
  }
  
  .cart-confirmation-header {
    padding: 1rem;
  }
  
  .cart-footer-links {
    gap: 0.75rem;
  }
  
  .cart-continue-shopping,
  .cart-clear-link {
    align-self: stretch;
    justify-content: center;
  }
}

/* Price wrapper styles for discount pricing */
.product-price-wrapper,
.mobile-product-price-wrapper,
.featured-price-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.product-price-wrapper .product-price,
.mobile-product-price-wrapper .mobile-product-price,
.featured-price-wrapper .text-lg {
  flex-shrink: 0;
}

.original-price {
  flex-shrink: 0;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 0.5rem;
  margin-left: 0.25rem;

}

/* Mobile adjustments for price wrappers */
@media (max-width: 767px) {
  .mobile-product-price-wrapper {
    align-items: center;
  }
  
  .mobile-product-price-wrapper .original-price {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    margin-left: 0.25rem;
    margin-top: 0rem;

  }
}

/* Featured carousel price wrapper */
.featured-price-wrapper {
  align-items: center;
  justify-content: flex-start;
}

.featured-price-wrapper .original-price {
  font-size: 0.875rem;
}

.product-price-symbol {
  padding-right: .2em;
}

.featured-carousel-card {
  background: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  overflow: hidden;
  height: 100%; 
}
@media (max-width: 767px) {
  .featured-carousel-card {
    padding: 0.5rem !important;
  }
  .product-card:hover {
    box-shadow: none;
  }
}