/* Base styles */
:root {
  /* Modern color scheme */
  --primary: #f9f7f3;
  --secondary: #e6e2dd;
  --accent: #d4c8be;
  --text: #4a4a4a;
  --highlight: #422f27;

  /* Functional colors */
  --success: #a8c9b6;
  --error: #ff6b6b;
  --warning: #f1c40f;

  /* Legacy colors - kept for backward compatibility */
  --primary-color: #422f27;
  --secondary-color: #595959;
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --text-color: var(--text);
  --light-gray: #f5f5f5;
  --border-color: #ddd;

  /* Typography */
  --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-s: 0.5rem;
  --spacing-m: 1rem;
  --spacing-l: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border radius */
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;

  /* Accent colors */
  --accent-rgb: 212, 200, 190;
  --accent-hover: #c8b2a3;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Offset for fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  position: relative;
  /* Mobile performance optimizations */
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding-top: 80px; /* Account for fixed header */
}

/* Mobile scrolling stutter fix - minimal approach */
@media (max-width: 768px) {
  body {
    /* Fix mobile scrolling stutter - minimal approach */
    -webkit-overflow-scrolling: touch;
    /* Remove potentially problematic transforms */
  }

  /* Disable hover effects on mobile to prevent lag */
  .product-card:hover {
    transform: none !important;
  }
}

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-color);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-m);
}

section {
  padding: var(--spacing-xxl) 0;
}

/* Product Grid */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--spacing-xl) 0;
}

/* When not using brand sections (category pages), use grid layout */
body:not(.main-page) .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

/* Ensure consistent card heights in grid - only for non-main pages */
body:not(.main-page) .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  align-items: stretch;
}

.product-card {
  background: white;
  border-radius: var(--radius-m);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all var(--transition-medium);
  position: relative;
  /* Performance optimizations */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Ensure consistent card height and button alignment */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background-color: var(--secondary);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
  backdrop-filter: blur(2px);
}

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

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

.product-info {
  padding: var(--spacing-l);
  /* Make product info flex to push buttons to bottom */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-s);
  color: var(--text);
}

.product-price {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  color: var(--text);
  margin-bottom: var(--spacing-s);
}

.product-description {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: var(--spacing-m);
  line-height: 1.5;
}

/* Product card button area - pushes buttons to bottom */
.product-card .product-info .quantity-controls,
.product-card .product-info .btn-add-cart {
  margin-top: auto;
}

.product-card .product-info .btn-add-cart {
  margin-top: var(--spacing-m);
}

.product-stock {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-m);
  font-weight: 500;
}

.product-stock.out-of-stock {
  color: var(--error);
}

.product-stock.stock-low {
  color: var(--warning);
}

/* Size Selector Improvements */
.size-selector {
  margin-bottom: var(--spacing-m);
  width: 100%;
  padding: 10px;
  background-color: rgba(249, 247, 243, 0.5);
  border-radius: 8px;
}

.size-selector label {
  display: block;
  margin-bottom: var(--spacing-s);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.size-select {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-m);
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  background: white
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333'%3E%3Cpath d='M8 12L1 5h14z'/%3E%3C/svg%3E")
    no-repeat right 15px center;
  background-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

.size-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 47, 39, 0.1);
}

.size-select option {
  padding: 10px;
  font-size: 1rem;
}

/* Mobile custom select styles */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
  z-index: 1000;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-l);
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition-medium);
  user-select: none;
  min-height: 48px;
  box-sizing: border-box;
}

.custom-select-trigger:hover {
  border-color: var(--accent);
  background: var(--secondary);
}

.custom-select-trigger:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary);
  border: 2px solid var(--secondary);
  border-top: none;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: -2px;
}

.custom-select-options.open {
  display: block;
}

.custom-select-option {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--secondary);
  transition: all var(--transition-medium);
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
  min-height: 48px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.custom-select-option:hover {
  background: var(--secondary);
  color: var(--accent);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:focus {
  outline: none;
  background: var(--accent);
  color: white;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .custom-select-trigger {
    min-height: 56px;
    font-size: 18px;
  }

  .custom-select-option {
    min-height: 56px;
    font-size: 18px;
    padding: 16px 20px;
  }

  .custom-select-options {
    max-height: 250px;
  }
}

/* Touch-friendly improvements */
.custom-select-option {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.custom-select-trigger {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Scrollbar styling */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Ensure proper stacking */
.custom-select-wrapper {
  z-index: 100;
}

.custom-select-options {
  z-index: 101;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
  margin-bottom: var(--spacing-m);
}

.quantity-btn {
  background: var(--secondary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

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

.quantity-input {
  width: 60px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--secondary);
  border-radius: var(--radius-s);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-m) var(--spacing-l);
  border: none;
  border-radius: var(--radius-m);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: var(--spacing-s);
  /* Mobile touch optimization */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn-primary {
  background-color: var(--highlight);
  color: var(--text);
  padding: var(--spacing-m) var(--spacing-xl);
  border-radius: var(--radius-m);
  font-weight: 500;
  display: inline-block;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover:after {
  opacity: 1;
}

.btn-add-cart {
  width: 100%;
  background: var(--highlight);
  color: white;
}

.btn-add-cart:hover {
  background: var(--accent);
}

.btn-add-cart:disabled {
  background: var(--secondary);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
  opacity: 0;
  visibility: hidden;
}

.cart-sidebar.open {
  right: 0;
  opacity: 1;
  visibility: visible;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-l);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--primary);
}

.cart-header h2 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.cart-header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
}

.close-cart {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition-fast);
  background-color: rgba(0, 0, 0, 0.05);
}

.close-cart:hover {
  color: var(--error);
  background-color: rgba(255, 107, 107, 0.1);
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-l);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  max-height: calc(100vh - 200px);
  min-height: 0;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}

.cart-items::-webkit-scrollbar-track {
  background: var(--primary);
}

.cart-items::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 20px;
}

.cart-item {
  display: flex;
  padding: var(--spacing-m);
  border-radius: var(--radius-m);
  background-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  margin-bottom: var(--spacing-m);
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-s);
  overflow: hidden;
  margin-right: var(--spacing-m);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.cart-item:hover .cart-item-image img {
  transform: scale(1.1);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-xs);
}

.cart-item-size {
  font-size: 0.85rem;
  background-color: rgba(181, 202, 208, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-s);
  display: inline-block;
  margin-bottom: var(--spacing-s);
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-m);
}

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

.cart-item-quantity .quantity-input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  font-size: 0.9rem;
  -moz-appearance: textfield;
}

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

.cart-footer {
  padding: var(--spacing-l);
  border-top: 1px solid var(--border-color);
  background-color: var(--primary);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-m);
  font-size: 1.3rem;
  font-weight: 600;
}

.cart-total span:first-child {
  color: var(--text);
}

.cart-total span:last-child {
  color: var(--primary-color);
}

.btn-checkout {
  width: 100%;
  padding: var(--spacing-m);
  background-color: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-checkout i {
  font-size: 1.1rem;
}

.btn-checkout:hover:not(:disabled) {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-checkout:disabled {
  background-color: var(--border-color);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Cart Icon */
.cart-icon {
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
  background-color: rgba(0, 0, 0, 0.03);
}

.cart-icon:hover {
  background-color: rgba(74, 144, 226, 0.1);
}

.cart-icon i {
  font-size: 1.3rem;
  color: var(--text);
  transition: all var(--transition-fast);
}

.cart-icon:hover i {
  color: #422f27;
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-color);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  border: 2px solid white;
}

.cart-icon:hover .cart-count {
  transform: scale(1.1);
}

/* Enhanced Notification */
.notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateX(-400px) scale(0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1001;
  max-width: 400px;
  min-width: 320px;
  word-wrap: break-word;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

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

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  animation: bounceIn 0.6s ease;
}

.notification-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}

/* Enhanced Cart Success Notification */
.notification-cart-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3), 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.notification-cart-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.notification-cart-success:hover::before {
  left: 100%;
}

.notification-cart-success .notification-content {
  gap: 16px;
  align-items: flex-start;
  padding: 4px 0;
}

.notification-cart-success .notification-icon {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.15)
  );
  color: white;
  animation: enhancedCartBounce 1s ease;
  width: 48px;
  height: 48px;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.notification-cart-success .notification-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: iconPulse 2s ease-in-out infinite;
}

.notification-cart-success .notification-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.notification-cart-success .notification-close {
  color: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.notification-cart-success .notification-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

@keyframes enhancedCartBounce {
  0% {
    transform: scale(0.3) rotate(-15deg);
    opacity: 0;
  }
  40% {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
  }
  60% {
    transform: scale(0.9) rotate(-3deg);
  }
  80% {
    transform: scale(1.1) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Other notification types */
.notification-success {
  background: linear-gradient(145deg, #10b981, #059669);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-success .notification-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.notification-error {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-error .notification-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.notification-warning {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-warning .notification-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.notification-info {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-info .notification-icon {
  color: #3498db;
}

/* Cart Icon Animation */
.cart-icon-bounce {
  animation: cartIconBounce 0.6s ease;
}

/* Keyframe Animations */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes cartBounce {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1) rotate(-5deg);
  }
  50% {
    transform: scale(1.2);
  }
  75% {
    transform: scale(1.1) rotate(5deg);
  }
}

@keyframes cartIconBounce {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2) rotate(-10deg);
  }
  50% {
    transform: scale(1.3);
  }
  75% {
    transform: scale(1.2) rotate(10deg);
  }
}

/* Enhanced Mobile Notifications */
@media (max-width: 768px) {
  .notification {
    bottom: 20px;
    left: 15px;
    right: 15px;
    max-width: none;
    min-width: auto;
    width: calc(100vw - 30px);
    transform: translateY(100px) scale(0.9);
    padding: 18px;
    border-radius: 16px;
  }

  .notification.show {
    transform: translateY(0) scale(1);
  }

  .notification-cart-success .notification-content {
    gap: 14px;
    flex-wrap: wrap;
  }

  .notification-cart-success .notification-actions {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .go-to-cart-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  /* Enhanced close button for mobile */
  .notification-close {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 16px !important;
    border-radius: 50% !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
  }

  .notification-close:active {
    transform: scale(0.95);
  }

  .notification-close:hover {
    background: rgba(0, 0, 0, 0.1) !important;
  }

  .notification-cart-success .notification-close,
  .notification-success .notification-close,
  .notification-error .notification-close,
  .notification-warning .notification-close,
  .notification-info .notification-close {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}

.stock-status {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.5rem 0;
}

.stock-status.in-stock {
  color: #10b981;
}

.stock-status.out-of-stock {
  color: #ef4444;
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-m) var(--spacing-xxl);
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  transition: all var(--transition-medium);
  height: 80px;
}

header.scrolled {
  height: 70px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
  height: 160px;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: all var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo:hover img {
  opacity: 0.9;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
  align-items: center;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: var(--spacing-xs) var(--spacing-s);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 1rem;
  display: inline-block;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #422f27;
  transition: width var(--transition-medium);
}

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

nav a:hover::after {
  width: 80%;
}

nav a.active {
  color: #422f27;
  font-weight: 600;
}

nav a.active::after {
  width: 80%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-m);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  background-color: rgba(0, 0, 0, 0.03);
  display: none; /* Hidden by default on large screens */
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
}

.mobile-menu-btn i {
  transition: transform 0.3s ease;
}

.mobile-menu-btn:active i {
  transform: scale(0.9);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('/images/Barebound Fev.2025 Menina-136_websize.webp') center/cover
      no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  color: white;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  margin: 0 0 30px 0;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #f8f6f3 !important;
}

.hero-content p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  color: #f8f6f3 !important;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
  }

  .hero-content p {
    font-size: 1.4rem;
  }
}

/* Scroll Indicator - Now Hidden */
.scroll-indicator {
  display: none; /* Hide the scroll indicator */
}

.products-section {
  padding: 80px 0;
  background: #f8f6f3;
}

.particle-6 {
  width: 5px;
  height: 5px;
  top: 80%;
  left: 60%;
  animation-delay: -30s;
  animation-duration: 42s;
}

.particle-7 {
  width: 6px;
  height: 6px;
  top: 15%;
  left: 80%;
  animation-delay: -10s;
  animation-duration: 52s;
}

.particle-8 {
  width: 8px;
  height: 8px;
  bottom: 15%;
  left: 25%;
  animation-delay: -40s;
  animation-duration: 38s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  20% {
    opacity: 0.4;
  }
  80% {
    opacity: 0.4;
    transform: translateY(-80vh) translateX(10px) scale(1);
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-100vh) translateX(15px) scale(1);
    opacity: 0;
  }
}

.particle-9 {
  width: 5px;
  height: 5px;
  top: 5%;
  left: 50%;
  animation-delay: -12s;
  animation-duration: 46s;
}

.particle-10 {
  width: 7px;
  height: 7px;
  top: 75%;
  right: 30%;
  animation-delay: -28s;
  animation-duration: 44s;
}

.particle-11 {
  width: 4px;
  height: 4px;
  top: 35%;
  left: 30%;
  animation-delay: -22s;
  animation-duration: 50s;
}

.particle-12 {
  width: 6px;
  height: 6px;
  bottom: 40%;
  right: 50%;
  animation-delay: -32s;
  animation-duration: 41s;
}

.geometric-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.shape {
  position: absolute;
  animation: shapeRotate 60s linear infinite;
}

.triangle-1 {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid rgba(139, 115, 85, 0.08);
  top: 20%;
  right: 10%;
  animation-delay: -20s;
}

.circle-glow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(66, 47, 39, 0.06) 0%,
    rgba(139, 115, 85, 0.04) 50%,
    transparent 70%
  );
  top: 70%;
  left: 80%;
  animation-delay: -30s;
}

.rectangle-1 {
  width: 20px;
  height: 12px;
  background: linear-gradient(
    45deg,
    rgba(139, 115, 85, 0.06),
    rgba(66, 47, 39, 0.04),
    rgba(139, 115, 85, 0.03)
  );
  bottom: 25%;
  left: 5%;
  animation-delay: -40s;
  border-radius: 2px;
}

.triangle-2 {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(66, 47, 39, 0.07);
  bottom: 10%;
  right: 25%;
  animation-delay: -50s;
  animation-duration: 65s;
}

.circle-glow-2 {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 115, 85, 0.08) 0%,
    rgba(66, 47, 39, 0.05) 40%,
    transparent 70%
  );
  top: 10%;
  left: 25%;
  animation-delay: -35s;
  animation-duration: 70s;
}

.rectangle-2 {
  width: 18px;
  height: 10px;
  background: linear-gradient(
    135deg,
    rgba(66, 47, 39, 0.06),
    rgba(139, 115, 85, 0.05),
    rgba(66, 47, 39, 0.04)
  );
  top: 55%;
  right: 8%;
  animation-delay: -20s;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(66, 47, 39, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.3);
  animation-duration: 16s;
}

@keyframes shapeRotate {
  0% {
    transform: rotate(0deg) translateY(0px);
    opacity: 0.3;
  }
  25% {
    transform: rotate(90deg) translateY(-20px);
    opacity: 0.7;
  }
  50% {
    transform: rotate(180deg) translateY(-40px);
    opacity: 1;
  }
  75% {
    transform: rotate(270deg) translateY(-20px);
    opacity: 0.7;
  }
  100% {
    transform: rotate(360deg) translateY(0px);
    opacity: 0.3;
  }
}

.products-container {
  position: relative;
  z-index: 2;
}

.section-header-animated {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.products-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #422f27;
  margin: 0;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  margin: 0 0.3em;
  opacity: 0;
  transform: translateY(100px) rotateX(90deg);
  animation: titleReveal 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  text-shadow: 0 8px 16px rgba(66, 47, 39, 0.2), 0 0 40px rgba(66, 47, 39, 0.1);
  letter-spacing: 0.05em;
}

.title-word:nth-child(1) {
  animation-delay: 0.8s;
}

.title-word:nth-child(2) {
  animation-delay: 1.2s;
  background: linear-gradient(45deg, #422f27, #8b7355, #422f27);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleReveal 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
    titleShimmer 4s ease-in-out infinite 2.5s;
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.title-underline {
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #422f27, #8b7355, #422f27);
  margin: 20px auto;
  border-radius: 2px;
  animation: underlineExpand 1s ease-out forwards;
  animation-delay: 1.8s;
  box-shadow: 0 2px 10px rgba(66, 47, 39, 0.3);
}

@keyframes underlineExpand {
  to {
    width: 120px;
  }
}

/* Section Title - Updated for other sections */
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-m);
  font-weight: 700;
  color: #422f27;
  letter-spacing: 2px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Enhanced product cards with hover animations */
.products-section .product-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 115, 85, 0.1);
}

.products-section .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 115, 85, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.products-section .product-card:hover::before {
  left: 100%;
}

.products-section .product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(66, 47, 39, 0.15),
    0 0 0 1px rgba(139, 115, 85, 0.2);
}

/* Mobile responsiveness for particles */
@media (max-width: 768px) {
  .products-section {
    padding: 80px 0;
    margin-top: 40px;
  }

  .section-header-animated {
    margin-bottom: 60px;
  }

  .products-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .title-word {
    margin: 0 0.15em;
    letter-spacing: 0.02em;
  }

  .particle {
    transform: scale(0.7);
  }

  .geometric-shapes .shape {
    transform: scale(0.6);
  }

  .title-underline {
    width: 80px !important;
  }
}

/* Footer */
footer {
  background-color: #595959;
  color: white;
  padding: var(--spacing-l) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-l);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-m);
  font-weight: var(--font-weight-medium);
}

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

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

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

.copyright {
  text-align: center;
  margin-top: var(--spacing-m);
  padding-top: var(--spacing-s);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.developer-credit {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 6px;
  text-align: center;
  position: static;
  padding: 0;
  line-height: 1.2;
}

.developer-credit a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.developer-credit a:hover {
  color: #f9f7f3;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile styling for developer credit to prevent overlap */
@media (max-width: 768px) {
  .copyright {
    position: relative;
    padding-bottom: 0;
  }
  .developer-credit {
    position: static;
    right: auto;
    bottom: auto;
    top: auto;
    transform: none;
    font-size: 0.75rem;
    line-height: 1.1;
    padding-right: 0;
    text-align: center;
    width: 100%;
    margin-top: 6px;
  }
  .developer-credit a {
    display: inline-block;
    padding: 3px 8px;
  }
}

/* Payment Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

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

.payment-modal {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-m);
  padding: var(--spacing-l);
  transform: translateY(-50px);
  transition: transform var(--transition-medium);
}

.modal-overlay.open .payment-modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-l);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.close-modal:hover {
  color: var(--error-color);
}

#payment-element {
  margin-bottom: var(--spacing-l);
}

.submit-payment {
  width: 100%;
  padding: var(--spacing-m);
  background-color: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.submit-payment:hover {
  background-color: var(--primary-color);
}

.submit-payment:disabled {
  background-color: var(--border-color);
  cursor: wait;
  opacity: 0.7;
}

.success-message {
  display: none;
  text-align: center;
}

.success-message i {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: var(--spacing-m);
}

.success-message h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-m);
}

.success-message p {
  margin-bottom: var(--spacing-l);
}

.error-message {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-top: var(--spacing-s);
}

.form-control.error {
  border-color: var(--error-color);
  background-color: rgba(231, 76, 60, 0.05);
}

/* Contact Section Enhancements */
.contact-section {
  padding: 80px 0;
  background-color: #f9f7f3;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(66, 47, 39, 0.05);
  z-index: 0;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-section .section-title {
  margin-bottom: 50px;
  color: #422f27;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.contact-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #422f27;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 20px 25px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out forwards;
  max-width: 400px;
  margin: 0 auto;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-item:nth-child(1) {
  animation-delay: 0.2s;
}
.info-item:nth-child(2) {
  animation-delay: 0.4s;
}
.info-item:nth-child(3) {
  animation-delay: 0.6s;
}

.info-item i {
  color: #422f27;
  font-size: 1.5rem;
  margin-right: 15px;
  background-color: rgba(66, 47, 39, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item-content {
  flex: 1;
}

.info-item h3 {
  color: #422f27;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-item p {
  color: #595959;
  line-height: 1.6;
}

.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: #422f27;
}

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

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

.form-group label {
  color: #595959;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #422f27;
  box-shadow: 0 0 0 3px rgba(66, 47, 39, 0.1);
  background-color: #fff;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* General Responsive Media Queries */
@media (max-width: 768px) {
  /* Header & Nav */
  header {
    padding: var(--spacing-m);
    height: 70px;
  }

  .logo {
    height: 120px;
  }

  /* Mobile navigation rules moved to final section below */

  /* Cart Sidebar */
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .cart-sidebar.open {
    right: 0;
  }

  .cart-items {
    max-height: calc(100vh - 220px) !important;
    padding: var(--spacing-m) !important;
  }

  .cart-footer {
    padding: var(--spacing-m) !important;
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-m);
  }

  /* Preview Modal */
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-image {
    border-radius: var(--radius-m) var(--radius-m) 0 0;
    max-height: 300px;
  }

  /* Hero Section */
  .hero {
    height: 80vh;
    min-height: 450px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    gap: 0.1em;
  }

  .hero-word {
    letter-spacing: 0.02em;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: #f9f7f3;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(66, 47, 39, 0.05);
  z-index: 0;
}

.about-section::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(66, 47, 39, 0.05);
  z-index: 0;
}

.about-section .section-title {
  margin-bottom: 40px; /* Reduced spacing */
  color: #422f27;
  font-size: 2.2rem; /* Slightly smaller */
  position: relative;
  display: inline-block;
  font-weight: 500; /* Cleaner look */
}

.about-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #422f27;
}

/* About Section animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-content-main {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 40px; /* Reduced padding */
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  text-align: left;
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-content-main p {
  margin-bottom: 20px; /* Reduced spacing */
  font-size: 1rem; /* Reduced size */
  line-height: 1.7; /* Slightly reduced */
  color: #595959;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-content-main p:nth-child(1) {
  animation-delay: 0.2s;
}
.about-content-main p:nth-child(2) {
  animation-delay: 0.4s;
}
.about-content-main p:nth-child(3) {
  animation-delay: 0.6s;
}
.about-content-main p:nth-child(4) {
  animation-delay: 0.8s;
}
.about-content-main p:nth-child(5) {
  animation-delay: 1s;
}

.about-content-main p:last-child {
  margin-bottom: 0;
  font-weight: 500; /* Reduced from 600 */
  color: #f8f6f3 !important;
  font-size: 1.2rem; /* Reduced size */
  text-align: center;
  margin-top: 30px; /* Reduced from 40px */
  font-style: italic;
  background-color: #422f27 !important;
  padding: 15px 20px;
  border-radius: 8px;
  display: inline-block;
}

/* More specific selector to ensure it overrides */
.about-section .about-content-main p:last-child,
.about-content-main p:last-child,
body .about-content-main p:last-child {
  color: #f8f6f3 !important;
  background-color: #422f27 !important;
}

/* Target the specific text content */
.about-content-main p:contains('Dobrodošli u Ormarich'),
.about-content-main p:last-child {
  color: #f8f6f3 !important;
  background-color: #422f27 !important;
  font-weight: 500 !important;
  font-size: 1.2rem !important;
  text-align: center !important;
  margin-top: 30px !important;
  font-style: italic !important;
  padding: 15px 20px !important;
  border-radius: 8px !important;
  display: inline-block !important;
}

/* Values Section */
.values-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.value-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #422f27, #d4c8be);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #422f27, #595959);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #2a1e19, #422f27);
}

.value-icon i {
  font-size: 2rem;
  color: white;
}

.value-card h3 {
  font-size: 1.2rem;
  font-weight: 300;
  color: #422f27;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #595959;
  margin: 0;
}

@media (max-width: 768px) {
  .values-section {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
  }

  .value-card {
    padding: 30px 25px;
  }

  .value-icon {
    width: 70px;
    height: 70px;
  }

  .value-icon i {
    font-size: 1.8rem;
  }

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

/* Contact form button specific styling */
.contact-form .btn-primary {
  background-color: #422f27;
  color: #ffffff;
  padding: 15px 30px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.contact-form .btn-primary:hover {
  background-color: #2a1e19;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-form .btn-primary:hover::before {
  transform: translateX(100%);
}

.contact-form .btn-primary i {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* Button primary */
.btn-primary {
  background-color: var(--highlight);
  color: var(--text);
  padding: var(--spacing-m) var(--spacing-xl);
  border-radius: var(--radius-m);
  font-weight: 500;
  display: inline-block;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover:after {
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: var(--spacing-m);
  margin-top: var(--spacing-s);
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icons a:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.social-icons a:hover::before {
  left: 100%;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-top: var(--spacing-xs);
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Preview Quantity Controls */
.preview-quantity .quantity-controls {
  margin-bottom: var(--spacing-m);
  display: inline-flex;
}

.preview-quantity .quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-quantity .quantity-btn:first-child {
  border-radius: var(--radius-s) 0 0 var(--radius-s);
}

.preview-quantity .quantity-btn:last-child {
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.preview-quantity .quantity-input {
  width: 45px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 1rem;
}

/* Additional button styles for the actual buttons used in the code */
.quantity-btn.decrease,
.quantity-btn.increase {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  color: var(--text);
}

.quantity-btn.decrease:hover,
.quantity-btn.increase:hover {
  background: var(--highlight);
  color: white;
}

.quantity-btn.decrease:active,
.quantity-btn.increase:active {
  transform: scale(0.95);
}

.quantity-btn.decrease {
  border-radius: var(--radius-s) 0 0 var(--radius-s);
}

.quantity-btn.increase {
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.cart-item-remove {
  background-color: rgba(255, 107, 107, 0.1);
  border: none;
  color: var(--error);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.cart-item-remove:hover {
  background-color: var(--error);
  color: white;
  transform: translateY(-2px);
}

.cart-item-remove i {
  margin-right: 6px;
}

/* Input between quantity buttons */
input[type='number'][data-item-id] {
  width: 30px;
  height: 26px;
  font-size: 0.8rem;
  background-color: var(--primary);
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  text-align: center;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
}

input[type='number'][data-item-id]::-webkit-outer-spin-button,
input[type='number'][data-item-id]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Quantity selector container in cart items */
.quantity-selector {
  display: flex;
  align-items: center;
  margin-right: var(--spacing-s);
}

/* Product Preview */
.product-preview {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1002;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  -webkit-overflow-scrolling: touch;
  overflow: hidden; /* Prevent overall container movement */
}

.product-preview.active {
  opacity: 1;
  transform: translateY(0);
}

.preview-content {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* Prevent scroll chaining */
}

.preview-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  touch-action: pan-y;
  overflow: hidden;
}

.main-media-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-m);
  background-color: var(--secondary);
  touch-action: pan-x; /* Allow horizontal swiping while preventing scroll bounce */
  position: relative;
}

.main-preview-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.preview-video {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  width: 100%;
  background: rgba(249, 247, 243, 0.5);
  padding: 15px;
  border-radius: 4px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.8;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  flex-shrink: 0;
}

.thumb-img,
.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
  border-color: var(--highlight);
  opacity: 1;
}

/* Video thumbnail specific styling */
.video-thumbnail {
  position: relative;
  background-color: #000;
}

.play-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  z-index: 2;
}

/* Mobile optimized gallery - swipeable gallery */
@media (max-width: 768px) {
  .product-preview {
    padding: 10px;
  }

  .preview-content {
    max-height: 95vh;
    border-radius: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .preview-image {
    padding: 15px;
    width: 100%;
    overflow: hidden;
  }

  .main-media-container {
    max-height: 300px;
    margin-bottom: 10px;
    pointer-events: auto; /* Ensure touch events are captured */
    touch-action: pan-x; /* Allow horizontal swiping */
    -webkit-user-select: none; /* Prevent unwanted selection */
    user-select: none;
    padding: 5px; /* Add some padding */
  }

  .main-preview-image,
  .preview-video {
    max-height: 280px; /* Slightly reduced to ensure full visibility */
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  /* Style for swipe indicator */
  .swipe-indicator {
    width: 100%;
    padding: 8px 0;
    background-color: rgba(249, 247, 243, 0.8);
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
  }

  /* Add dots for current image indicator */
  .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
  }

  .gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .gallery-dot.active {
    background-color: var(--highlight);
    transform: scale(1.2);
  }

  /* Thumbnail gallery for mobile - horizontal scrolling */
  .gallery-thumbnails {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    justify-content: flex-start;
    margin: 0;
    padding: 10px 15px;
    background: rgba(249, 247, 243, 0.5);
    border-radius: 4px;
    overflow-y: hidden; /* Prevent vertical scrolling */
  }

  .gallery-thumbnails::-webkit-scrollbar {
    height: 4px;
  }

  .gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 4px;
  }

  .gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--highlight);
    border-radius: 4px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    scroll-snap-align: start;
    border-width: 3px;
    flex: 0 0 auto;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
  }

  .thumbnail.active {
    opacity: 1;
    border-color: var(--highlight);
  }

  .video-thumbnail .play-icon {
    font-size: 18px;
  }

  .play-icon i {
    background-color: rgba(66, 47, 39, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile adjustments for product preview modal */
@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .main-media-container {
    max-height: 300px;
  }

  .main-preview-image,
  .preview-video {
    max-height: 300px;
  }

  #previewQuantity {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
  }

  .preview-quantity .quantity-controls {
    margin-bottom: 15px;
  }

  .preview-quantity .quantity-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .preview-quantity input[type='number'] {
    width: 60px;
    height: 45px;
    font-size: 18px;
  }
}

/* Scandinavian pattern fallback */
.scandi-pattern-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e5e5e5;
  z-index: 0;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 40px;
  width: 80%;
  height: 80%;
  max-width: 1200px;
}

.pattern-item {
  background-color: var(--accent);
  position: relative;
  border-radius: 2px;
  opacity: 0.4;
  transition: all var(--transition-medium);
}

.pattern-item:nth-child(odd) {
  background-color: var(--highlight);
}

.pattern-item:nth-child(3n) {
  transform: rotate(45deg);
}

.pattern-item:nth-child(2n) {
  opacity: 0.2;
}

.pattern-item:nth-child(3n + 1)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border: 2px solid var(--primary);
  border-radius: 50%;
}

.pattern-item:nth-child(7)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 2px;
  background-color: var(--primary);
}

.pattern-item:nth-child(7)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 70%;
  height: 2px;
  background-color: var(--primary);
}

.pattern-item:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .pattern-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Fix button focus state */
.btn:focus,
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(181, 202, 208, 0.5);
}

/* Add no-scroll class for when cart is open */
body.no-scroll {
  overflow: hidden;
}

/* Additional mobile responsive adjustments */
@media (max-width: 768px) {
  .btn-primary {
    padding: var(--spacing-s) var(--spacing-l);
    font-size: 0.8rem;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .cart-sidebar.open {
    right: 0;
  }

  /* Fix section titles on mobile */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-l);
  }

  /* Improve Product display on mobile */
  .product-name {
    font-size: 1.1rem;
  }

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

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

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
  }

  .hero-word {
    letter-spacing: 0.03em;
  }
}

/* Empty cart message */
.empty-cart {
  text-align: center;
  padding: var(--spacing-xl) 0;
  color: var(--text);
  opacity: 0.7;
  font-size: 1.1rem;
}

/* Old mobile navigation section removed - replaced with final solution below */

/* Product Card Quantity Controls */
.product-info .quantity-controls {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-m);
}

.product-info .quantity-btn {
  width: 42px;
  height: 42px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-info .quantity-btn.decrease {
  border-radius: 4px 0 0 4px;
}

.product-info .quantity-btn.increase {
  border-radius: 0 4px 4px 0;
}

.product-info .quantity-btn:hover {
  background-color: #e9e9e9;
}

.product-info .quantity-input {
  width: 60px;
  height: 42px;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 16px;
  background-color: white;
  color: #333;
  -moz-appearance: textfield;
  appearance: textfield;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.preview-info {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.preview-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text);
  line-height: 1.2;
}

.preview-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding: 10px 0;
  border-bottom: 2px solid var(--border-color);
}

.preview-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 25px;
  padding: 15px 0;
}

.preview-features h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.preview-features ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.preview-features li {
  position: relative;
  padding: 8px 0 8px 25px;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.preview-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.size-guide-section,
.care-instructions-section {
  margin: 25px 0;
  padding: 20px;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.size-guide-section h4,
.care-instructions-section h4 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-guide-section h4 i,
.care-instructions-section h4 i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.size-guide-section p,
.care-instructions-section p {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .size-guide-section,
  .care-instructions-section {
    margin: 15px 0;
    padding: 15px;
  }

  .size-guide-section h4,
  .care-instructions-section h4 {
    font-size: 1rem;
  }

  .size-guide-section p,
  .care-instructions-section p {
    font-size: 0.9rem;
  }
}

.size-selector-under-images {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
}

.size-selector-under-images label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.size-selector-under-images select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: white;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.size-selector-under-images select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.size-selector-under-images select:hover {
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  .size-selector-under-images {
    margin: 15px 0;
    padding: 12px;
  }

  .size-selector-under-images label {
    font-size: 0.9rem;
  }

  .size-selector-under-images select {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

.preview-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  z-index: 1003;
}

@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .preview-info {
    padding: 15px 0;
    order: 2;
  }

  .preview-image {
    order: 1;
    padding: 20px;
  }

  .preview-title {
    font-size: 1.6rem;
  }

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

  .preview-description {
    font-size: 1rem;
  }

  .main-media-container {
    max-height: 300px;
  }

  .main-preview-image,
  .preview-video {
    max-height: 300px;
  }
}

/* Input number styling for quantity inputs */
input[type='number'] {
  width: 50px;
  height: 40px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: #333;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0 5px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number']:focus {
  outline: none;
  border-color: #422f27;
  box-shadow: 0 0 0 2px rgba(66, 47, 39, 0.2);
}

/* Specific styling for preview quantity */
#preview-quantity {
  width: 60px;
  height: 42px;
  font-weight: 500;
  margin: 0 5px;
}

/* Quantity controls in the preview */
.preview-quantity .quantity-controls {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.preview-quantity .quantity-btn {
  width: 42px;
  height: 42px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-quantity .quantity-btn:hover {
  background-color: #e9e9e9;
}

.preview-quantity .quantity-btn.decrease {
  border-radius: 4px 0 0 4px;
}

.preview-quantity .quantity-btn.increase {
  border-radius: 0 4px 4px 0;
}

/* Responsive Media Queries for Contact Section */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .info-item {
    margin-bottom: 0;
    max-width: 350px;
    padding: 18px 20px;
  }

  .contact-form {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .info-item {
    max-width: 100%;
    padding: 15px 18px;
  }

  .info-item i {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-right: 12px;
  }

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

/* Mobile product gallery styles */
.mobile-gallery {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  margin: 0;
  box-sizing: border-box;
}

.mobile-gallery img {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center;
  transition: all 0.3s ease;
  border-radius: 12px 12px 0 0;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  vertical-align: top;
  display: block;
}

.mobile-nav-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.mobile-nav-arrows .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.mobile-nav-arrows .nav-arrow.left {
  left: 10px;
}

.mobile-nav-arrows .nav-arrow.right {
  right: 10px;
}

.mobile-nav-arrows .nav-arrow:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.mobile-nav-arrows .nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.dots-indicator {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.dots-indicator .gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.dots-indicator .gallery-dot.active {
  background-color: var(--highlight);
  transform: scale(1.2);
}

/* Mobile gallery improvements */
@media (max-width: 768px) {
  .product-card .product-image:not(.mobile-gallery) {
    cursor: pointer;
  }

  .product-card .product-overlay {
    display: none;
  }

  .mobile-gallery {
    touch-action: pan-y;
    margin-bottom: 20px;
  }

  .mobile-nav-arrows .nav-arrow {
    opacity: 1;
    width: 40px;
    height: 40px;
  }

  .mobile-nav-arrows .nav-arrow i {
    font-size: 18px;
  }

  .dots-indicator {
    bottom: 10px;
  }

  .dots-indicator .gallery-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
  }
}

/* Fix for mobile - prevent horizontal scrolling */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: var(--spacing-m);
    padding-right: var(--spacing-m);
    overflow-x: hidden;
  }

  .mobile-nav-arrows {
    padding: 0 10px;
  }

  /* Prevent swipe gestures from causing page scroll */
  .mobile-gallery {
    touch-action: pan-y;
  }

  .nav-arrow.left {
    left: 8px;
    position: absolute;
  }

  .nav-arrow.right {
    right: 8px;
    position: absolute;
  }

  /* Mobile scrolling performance optimizations */
  * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Optimize interactive elements for touch */
  button,
  .btn,
  .product-card,
  .cart-icon,
  .notification-action-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    will-change: transform;
    backface-visibility: hidden;
  }

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

/* Legal Content Styles */
.legal-content {
  min-height: 70vh;
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.legal-content .container {
  max-width: 900px;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--highlight);
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  position: relative;
}

.legal-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.legal-content section {
  background: white;
  padding: var(--spacing-xxl);
  border-radius: var(--radius-l);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: var(--spacing-xl);
  transition: transform var(--transition-medium);
}

.legal-content section:hover {
  transform: translateY(-2px);
}

.legal-content h2 {
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--highlight);
  margin-bottom: var(--spacing-l);
  padding-bottom: var(--spacing-s);
  border-bottom: 2px solid var(--accent);
}

.legal-content h3 {
  font-size: 1.3rem;
  font-weight: var(--font-weight-medium);
  color: var(--text);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-m);
  position: relative;
  padding-left: var(--spacing-m);
}

.legal-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--spacing-m);
}

.legal-content ul,
.legal-content ol {
  margin: var(--spacing-m) 0;
  padding-left: var(--spacing-xl);
}

.legal-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--spacing-s);
  position: relative;
}

.legal-content ul li::marker {
  color: var(--accent);
}

.legal-content ol li::marker {
  color: var(--accent);
  font-weight: var(--font-weight-medium);
}

.legal-content strong {
  color: var(--highlight);
  font-weight: var(--font-weight-medium);
}

.legal-content section:first-of-type {
  border-top: 4px solid var(--accent);
}

/* Responsive adjustments for legal content */
@media (max-width: 768px) {
  .legal-content {
    padding: var(--spacing-xl) 0;
  }

  .legal-content h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
  }

  .legal-content section {
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-l);
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }

  .legal-content h3 {
    font-size: 1.2rem;
  }
}

/* Preview quantity section improvements */
.preview-quantity {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.preview-quantity .quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 0;
}

.preview-quantity .quantity-btn {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border: 2px solid var(--border-color);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.preview-quantity .quantity-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.preview-quantity .quantity-btn.decrease {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.preview-quantity .quantity-btn.increase {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

#preview-quantity {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-left: none;
  border-right: none;
  font-size: 1rem;
  font-weight: 600;
  background: white;
  color: var(--text);
}

#preview-quantity:focus {
  outline: none;
  background: rgba(74, 144, 226, 0.05);
}

@media (max-width: 768px) {
  .preview-quantity {
    margin-top: 15px;
    padding: 15px;
  }

  .preview-quantity .quantity-controls {
    margin-bottom: 15px;
  }

  .preview-quantity .quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  #preview-quantity {
    width: 50px;
    height: 36px;
    font-size: 0.95rem;
  }
}

/* Quantity controls under size selector */
.quantity-controls-under-size {
  margin: 20px 0;
}

.quantity-controls-under-size label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.quantity-controls-under-size .quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  width: 100%;
}

.quantity-controls-under-size .quantity-btn {
  width: 50px;
  height: 45px;
  background: var(--secondary);
  border: 2px solid var(--border-color);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-controls-under-size .quantity-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.quantity-controls-under-size .quantity-btn.decrease {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.quantity-controls-under-size .quantity-btn.increase {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

.quantity-controls-under-size #preview-quantity {
  width: 80px;
  height: 45px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-left: none;
  border-right: none;
  font-size: 1.1rem;
  font-weight: 600;
  background: white;
  color: var(--text);
}

.quantity-controls-under-size #preview-quantity:focus {
  outline: none;
  background: rgba(74, 144, 226, 0.05);
}

/* Add to cart button under size selector */
.size-selector-under-images .btn-add-cart {
  width: 100%;
  padding: 15px 25px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
}

.size-selector-under-images .btn-add-cart:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.size-selector-under-images .btn-add-cart:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.size-selector-under-images .btn-add-cart i {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .quantity-controls-under-size {
    margin: 15px 0;
  }

  .quantity-controls-under-size .quantity-controls {
    margin-bottom: 15px;
  }

  .quantity-controls-under-size .quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .quantity-controls-under-size #preview-quantity {
    width: 50px;
    height: 36px;
    font-size: 0.95rem;
  }

  .size-selector-under-images .btn-add-cart {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

/* Dropdown Menu Styles - Desktop Only */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius-m);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: var(--spacing-m) 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
  z-index: 1000;
  border: 1px solid var(--secondary);
  pointer-events: none;
}

nav li:hover .nav-dropdown,
nav li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown a {
  display: block;
  padding: var(--spacing-s) var(--spacing-l);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-normal);
  border-left: 3px solid transparent;
}

.nav-dropdown a:hover {
  background-color: var(--secondary);
  color: var(--highlight);
  border-left-color: var(--highlight);
}

.nav-dropdown a::after {
  display: none; /* Remove the underline animation for dropdown items */
}

.nav-divider {
  height: 1px;
  background: rgba(66, 47, 39, 0.2);
  margin: var(--spacing-s) var(--spacing-m);
}

/* Hide dropdown on mobile */
@media (max-width: 768px) {
  .nav-dropdown {
    display: none !important;
  }
}

/* Brand Hero Section */
.brand-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  text-align: center;
  margin-top: 80px; /* Account for fixed header */
}

.brand-hero-content h1 {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--highlight);
  margin-bottom: var(--spacing-m);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-hero-content p {
  font-size: 1.25rem;
  color: var(--text);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* No Products Display */
.no-products {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  background: var(--secondary);
  border-radius: var(--radius-l);
  margin: var(--spacing-xl) 0;
}

.no-products p {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: var(--spacing-l);
  opacity: 0.8;
}

.no-products .btn {
  margin-top: var(--spacing-m);
}

@media (max-width: 768px) {
  .brand-hero {
    padding: var(--spacing-xl) 0 var(--spacing-l);
    margin-top: 60px;
  }

  .brand-hero-content h1 {
    font-size: 2rem;
  }

  .brand-hero-content p {
    font-size: 1rem;
    padding: 0 var(--spacing-m);
  }
}

/* Brand Section Styles */
.brand-section {
  margin: 0;
  padding: 100px 0;
  position: relative;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  border: none;
  width: 100%;
  transition: background-color 0.3s ease;
}

.brand-section:nth-child(even) {
  background: #fafafa;
}

.brand-section:not(:last-child) {
  margin-bottom: 40px;
  position: relative;
}

/* Visual separator between brand sections */
.brand-section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
  border-radius: 2px;
}

/* Optional: Add a subtle pattern separator for more visual interest */
.brand-section:not(:last-child)::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #f0f0f0 2px, transparent 2px);
  background-size: 12px 12px;
  background-position: center;
  opacity: 0.3;
  border-radius: 50%;
}

.brand-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  border: none;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

.brand-header::before {
  display: none;
}

.brand-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  color: #422f27;
  margin-bottom: 24px;
  text-shadow: none;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
  text-transform: none;
  font-family: 'Inter', sans-serif;
}

.brand-title-link {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-medium);
  position: relative;
  display: inline-block;
}

.brand-title-link:hover {
  color: var(--highlight);
  transform: translateY(-2px);
}

.brand-title-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--highlight);
  transition: width var(--transition-medium);
}

.brand-title-link:hover::after {
  width: 100%;
}

.brand-description {
  font-size: 1.2rem;
  color: #422f27;
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  text-align: center;
  padding: 0;
  opacity: 0.9;
}

.products-by-brand {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  padding: 0 40px;
  margin-top: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.products-by-brand .product-card {
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.products-by-brand .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: #d0d0d0;
}

.no-products-brand {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  background: rgba(249, 247, 243, 0.5);
  border-radius: var(--radius-l);
  border: 2px dashed var(--border-color);
}

.no-products-brand h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: var(--spacing-m);
  opacity: 0.8;
}

.no-products-brand p {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.6;
  margin-bottom: var(--spacing-l);
}

.no-products-brand .btn {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-m) var(--spacing-l);
  border-radius: var(--radius-m);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-medium);
}

.no-products-brand .btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .brand-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 20px;
  }

  .brand-description {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 20px;
    margin: 0 auto 25px auto;
  }

  .brand-header {
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .products-by-brand {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
    margin-top: 0;
  }

  .brand-section {
    margin: 0;
    padding: 80px 0;
  }

  .brand-section:not(:last-child) {
    margin-bottom: 30px;
  }

  .brand-section:not(:last-child)::after {
    width: 150px;
    height: 2px;
    bottom: -15px;
  }

  .brand-section:not(:last-child)::before {
    width: 40px;
    height: 40px;
    bottom: -15px;
    background-size: 10px 10px;
  }
}

/* Notification action buttons */
.notification-actions {
  display: flex;
  gap: var(--spacing-s);
  margin-top: var(--spacing-s);
  align-items: center;
}

.notification-action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: var(--spacing-xs) var(--spacing-s);
  border-radius: var(--radius-s);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(10px);
}

.notification-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.notification-action-btn i {
  font-size: 0.8rem;
}

.go-to-cart-btn {
  background: linear-gradient(
    135deg,
    rgba(66, 47, 39, 0.95),
    rgba(66, 47, 39, 0.8)
  );
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(66, 47, 39, 0.3);
}

.go-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.go-to-cart-btn:hover::before {
  left: 100%;
}

.go-to-cart-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(66, 47, 39, 1),
    rgba(66, 47, 39, 0.9)
  );
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(66, 47, 39, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.go-to-cart-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.go-to-cart-btn i {
  margin-right: 8px;
  font-size: 1rem;
  animation: cartIconWiggle 0.8s ease-in-out;
}

@keyframes cartIconWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

/* Mobile Navigation - Consolidated above to avoid conflicts */

/* ==========================================================================
   MOBILE NAVIGATION - CLEAN REDESIGN
   ========================================================================== */

@media (max-width: 768px) {
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex !important;
  }

  /* Hide desktop navigation */
  nav#mainNav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100vw;
    height: 0;
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1001;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  /* Active state - slide down */
  nav#mainNav.active {
    height: auto;
    max-height: 80vh;
    opacity: 1;
    pointer-events: all;
    padding: 20px 0;
  }

  /* Navigation container */
  nav#mainNav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 0;
  }

  /* Navigation items */
  nav#mainNav li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(66, 47, 39, 0.1);
  }

  nav#mainNav li:last-child {
    border-bottom: none;
  }

  /* Navigation links */
  nav#mainNav li a {
    display: block;
    width: 100%;
    padding: 20px 30px;
    margin: 0;
    text-align: left;
    text-decoration: none;
    color: #422f27;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    background: white;
    border: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
  }

  /* Hover effects */
  nav#mainNav li a:hover {
    background-color: #f8f6f3;
    color: #422f27;
    padding-left: 35px;
  }

  /* Active link */
  nav#mainNav li a.active {
    background-color: #422f27;
    color: white;
    font-weight: 500;
  }

  /* Remove all pseudo-elements */
  nav#mainNav li a::before,
  nav#mainNav li a::after {
    display: none !important;
  }

  /* Hide dropdown menus on mobile */
  nav#mainNav .nav-dropdown {
    display: none !important;
  }

  /* Mobile menu button styling */
  .mobile-menu-btn {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    color: #422f27;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    background-color: rgba(66, 47, 39, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
  }

  .mobile-menu-btn:hover {
    background-color: rgba(66, 47, 39, 0.1);
    color: #422f27;
  }

  .mobile-menu-btn i {
    transition: transform 0.3s ease;
  }

  .mobile-menu-btn:active i {
    transform: scale(0.9);
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* ==========================================================================
   HERO WELCOME TEXT STYLING - MINIMALIST IKEA STYLE
   ========================================================================== */

/* Target the hero title words "DOBRODOŠLI U ORMARICH" */
.hero-overlay .hero-title .hero-word,
.hero-title .hero-word,
.hero-word {
  color: #f8f6f3 !important;
  font-size: clamp(2.2rem, 5vw, 3rem) !important;
  font-weight: 300 !important;
  letter-spacing: 1px !important;
  text-shadow: none !important;
  margin: 0 8px !important;
  display: inline-block !important;
  line-height: 1.4 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Target the hero description text */
.hero-overlay .hero-description p,
.hero-description p {
  color: #f8f6f3 !important;
  font-size: 1.2rem !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
  text-shadow: none !important;
  max-width: 500px !important;
  margin: 15px auto 0 !important;
  text-align: center !important;
  font-family: 'Inter', sans-serif !important;
  opacity: 0.9 !important;
}

/* Hero title container */
.hero-overlay .hero-title,
.hero-title {
  margin-bottom: 20px !important;
  text-align: center !important;
}

/* ==========================================================================
   SECTION TITLES - MINIMALIST IKEA STYLE
   ========================================================================== */

/* Target the "NAŠI PROIZVODI" section title */
.section-title .title-word,
.products-title .title-word,
.title-word {
  color: #422f27 !important;
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  font-weight: 300 !important;
  letter-spacing: 1px !important;
  text-shadow: none !important;
  margin: 0 6px !important;
  display: inline-block !important;
  line-height: 1.4 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Section title container */
.section-title,
.products-title {
  margin-bottom: 40px !important;
  text-align: center !important;
  font-family: 'Inter', sans-serif !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-overlay .hero-title .hero-word,
  .hero-title .hero-word,
  .hero-word {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    margin: 0 4px !important;
    letter-spacing: 0.5px !important;
  }

  .hero-overlay .hero-description p,
  .hero-description p {
    font-size: 1rem !important;
    padding: 0 15px !important;
    max-width: 400px !important;
  }

  .section-title .title-word,
  .products-title .title-word,
  .title-word {
    font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
    margin: 0 4px !important;
    letter-spacing: 0.5px !important;
  }
}

/* ===== FLUID MOBILE PRODUCT CARD DESIGN ===== */

@media (max-width: 768px) {
  .product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(66, 47, 39, 0.12);
    background: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(66, 47, 39, 0.1);
  }

  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(66, 47, 39, 0.18);
  }

  .product-info {
    padding: 0;
    background: white;
    position: relative;
  }

  /* Unified flowing content container */
  .mobile-product-content {
    padding: 24px 8px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
  }

  /* Flowing product header */
  .mobile-product-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
  }

  .mobile-product-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--highlight), var(--accent));
    border-radius: 1px;
  }

  .mobile-product-header .product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--highlight);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  .mobile-product-header .product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.02em;
  }

  .mobile-product-header .stock-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .mobile-product-header .stock-status.in-stock {
    color: var(--success);
  }

  .mobile-product-header .stock-status.out-of-stock {
    color: var(--error);
  }
}

/* ===== FLOWING MOBILE DESCRIPTION ===== */

@media (max-width: 768px) {
  .mobile-description {
    position: relative;
    margin-bottom: 24px;
    padding-left: 0;
  }

  .description-preview,
  .description-full {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    opacity: 0.85;
    font-weight: 400;
  }

  .description-full {
    margin-top: 12px;
  }

  .description-full p {
    margin: 0;
  }

  .description-toggle {
    background: none;
    border: none;
    color: var(--highlight);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 0 0 0;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
  }

  .description-toggle:hover {
    color: var(--highlight);
    opacity: 1;
    transform: translateX(2px);
  }
}

/* ===== FLOWING MOBILE FEATURES ===== */

@media (max-width: 768px) {
  .mobile-features {
    position: relative;
    margin-bottom: 24px;
  }

  .mobile-features h4 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--highlight);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
  }

  .mobile-features h4 i {
    font-size: 1rem;
    color: var(--success);
    opacity: 0.8;
  }

  .features-list {
    margin: 0;
    display: grid;
    gap: 12px;
  }

  .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0.85;
  }

  .feature-item:hover {
    opacity: 1;
    transform: translateX(2px);
  }

  .feature-item i {
    color: var(--success);
    font-size: 0.8rem;
    margin-top: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 0.7;
  }

  .feature-item:hover i {
    opacity: 1;
    color: var(--highlight);
  }

  .feature-item span {
    color: var(--text);
    font-weight: 400;
  }

  .features-hidden {
    margin-top: 12px;
    display: grid;
    gap: 12px;
  }

  .features-toggle {
    background: none;
    border: none;
    color: var(--highlight);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 16px 0 0 0;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
  }

  .features-toggle:hover {
    color: var(--highlight);
    opacity: 1;
    transform: translateX(2px);
  }

  /* Flowing mobile controls */
  .size-selector {
    position: relative;
    margin-bottom: 32px;
  }

  .size-selector label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 12px;
    display: block;
    opacity: 0.9;
  }

  .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    margin-bottom: 16px;
  }

  .quantity-controls label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--highlight);
    margin: 0;
    flex-shrink: 0;
    opacity: 0.9;
  }

  .quantity-controls > div {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .quantity-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(66, 47, 39, 0.08);
    color: var(--highlight);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .quantity-btn:hover {
    background: var(--highlight);
    color: white;
    transform: translateY(-1px);
  }

  .quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--highlight);
    background: rgba(66, 47, 39, 0.08);
    transition: all 0.3s ease;
  }

  .quantity-input:focus {
    outline: none;
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--accent);
  }

  .btn-add-cart {
    margin-top: 32px;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(66, 47, 39, 0.2);
    border: none;
    background: var(--highlight);
    color: white;
    letter-spacing: 0.5px;
  }

  .btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(66, 47, 39, 0.3);
    background: var(--primary-color);
  }

  .btn-add-cart:active {
    transform: translateY(-1px);
  }

  /* Flowing mobile gallery */
  .mobile-gallery {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 100%;
    margin: 0;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }

  .mobile-gallery img {
    border: none;
    outline: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    vertical-align: top;
    display: block;
    object-position: center;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* Mobile Gallery View Indicator */
  .mobile-gallery::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: subtleAppear 6s ease-in-out 2s infinite;
  }

  @keyframes subtleAppear {
    0%,
    75%,
    100% {
      opacity: 0;
      transform: scale(1);
    }
    20%,
    60% {
      opacity: 0.8;
      transform: scale(1);
    }
    40% {
      opacity: 0.9;
      transform: scale(1.05);
    }
  }

  .mobile-gallery::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 16;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    animation: subtleAppearIcon 6s ease-in-out 2s infinite;
  }

  @keyframes subtleAppearIcon {
    0%,
    75%,
    100% {
      opacity: 0;
      transform: scale(1);
    }
    20%,
    60% {
      opacity: 1;
      transform: scale(1);
    }
    40% {
      opacity: 1;
      transform: scale(1.05);
    }
  }

  .mobile-gallery:active::after {
    transform: scale(0.9);
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
  }

  .mobile-gallery:active::before {
    transform: scale(0.9);
  }

  /* Mobile Image Zoom Overlay */
  .mobile-image-zoom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-image-zoom.active {
    opacity: 1;
  }

  .mobile-zoom-container {
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-zoom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  }

  .mobile-zoom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10001;
  }

  .mobile-zoom-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .mobile-zoom-arrow:hover {
    background: white;
    transform: scale(1.1);
  }

  .mobile-zoom-arrow.left {
    margin-left: 20px;
  }

  .mobile-zoom-arrow.right {
    margin-right: 20px;
  }

  .mobile-zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10002;
  }

  .mobile-zoom-close:hover {
    background: white;
    transform: scale(1.1);
  }

  .mobile-zoom-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  .mobile-zoom-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }

  .mobile-zoom-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .mobile-zoom-dot.active {
    background: white;
    transform: scale(1.3);
  }

  .mobile-nav-arrows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
  }

  .nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.8)
    );
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--highlight);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    opacity: 0.9;
  }

  .nav-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(66, 47, 39, 0.1),
      rgba(66, 47, 39, 0.05)
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-arrow:hover {
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.95));
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25), 0 6px 15px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
  }

  .nav-arrow:hover::before {
    opacity: 1;
  }

  .nav-arrow:active {
    transform: translateY(-1px) scale(1.05);
    transition: all 0.1s ease;
  }

  .nav-arrow i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
  }

  .nav-arrow:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
  }

  .nav-arrow.left:hover i {
    animation: arrowSlideLeft 0.6s ease-in-out;
  }

  .nav-arrow.right:hover i {
    animation: arrowSlideRight 0.6s ease-in-out;
  }

  @keyframes arrowSlideLeft {
    0%,
    100% {
      transform: translateX(0) scale(1.2);
    }
    50% {
      transform: translateX(-3px) scale(1.3);
    }
  }

  @keyframes arrowSlideRight {
    0%,
    100% {
      transform: translateX(0) scale(1.2);
    }
    50% {
      transform: translateX(3px) scale(1.3);
    }
  }

  .dots-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .gallery-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .gallery-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .gallery-dot.active {
    background: white;
    transform: scale(1.5);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4),
      0 0 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    animation: dotPulse 2s ease-in-out infinite;
  }

  .gallery-dot.active::before {
    width: 6px;
    height: 6px;
    background: var(--highlight);
  }

  @keyframes dotPulse {
    0%,
    100% {
      box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
      box-shadow: 0 6px 16px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.3);
    }
  }
}

/* ===== CUSTOM SIZE SELECTOR STYLES ===== */

/* Custom Size Selector */
.custom-size-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
  z-index: 100;
}

.custom-size-trigger {
  width: 100%;
  padding: 12px 60px 12px 16px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: var(--radius-m);
  cursor: pointer;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  overflow: hidden;
}

.custom-size-trigger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(66, 47, 39, 0.1),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.custom-size-trigger:hover {
  border-color: var(--highlight);
  background: linear-gradient(135deg, var(--primary), white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 47, 39, 0.15);
}

.custom-size-trigger:hover::before {
  left: 100%;
}

.custom-size-trigger:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(66, 47, 39, 0.12);
}

.custom-size-trigger:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(66, 47, 39, 0.2), 0 8px 25px rgba(66, 47, 39, 0.15);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary), white);
}

.custom-size-trigger:focus::before {
  left: 100%;
}

.custom-size-trigger::after {
  content: var(--arrow-content, '▼');
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--highlight);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    135deg,
    rgba(66, 47, 39, 0.1),
    rgba(66, 47, 39, 0.05)
  );
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.8;
}

.custom-size-trigger:hover::after {
  transform: translateY(-50%) rotate(180deg) scale(1.1);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: arrowBounce 0.6s ease-in-out;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(-50%) rotate(180deg) scale(1.1);
  }
  50% {
    transform: translateY(-50%) rotate(180deg) scale(1.2);
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes arrowPulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(66, 47, 39, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(66, 47, 39, 0);
  }
}

.custom-size-wrapper.open .custom-size-trigger::after {
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  opacity: 1;
  animation: arrowPulse 2s infinite ease-in-out;
}

.custom-size-wrapper:not(.open) .custom-size-trigger::after {
  transform: translateY(-50%) rotate(0deg);
  background: linear-gradient(
    135deg,
    rgba(66, 47, 39, 0.1),
    rgba(66, 47, 39, 0.05)
  );
  color: var(--highlight);
  opacity: 0.8;
  animation: none;
}

.custom-size-container {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--accent);
  border-bottom: none;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  padding-top: 8px;
  margin-bottom: -2px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.custom-size-container[style*='block'] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: slideUpFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-size-option {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--secondary);
}

.custom-size-option:hover {
  background-color: var(--primary);
}

.custom-size-option.selected {
  background-color: var(--accent);
  color: var(--highlight);
  font-weight: var(--font-weight-medium);
}

.custom-size-option:last-child {
  border-bottom: none;
  margin-bottom: 4px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .custom-size-trigger {
    padding: 16px 70px 16px 16px;
    font-size: 16px;
    min-height: 48px;
  }

  .custom-size-trigger:hover {
    transform: translateY(-1px);
  }

  .custom-size-trigger:active {
    transform: translateY(0);
  }

  .custom-size-option {
    padding: 16px;
    font-size: 16px;
    min-height: 48px;
  }

  .custom-size-container {
    max-height: 350px;
    z-index: 10001;
  }

  .custom-size-wrapper {
    z-index: 101;
  }
}

/* Scrollbar styling */
.custom-size-container::-webkit-scrollbar {
  width: 6px;
}

.custom-size-container::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: 3px;
}

.custom-size-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.custom-size-container::-webkit-scrollbar-thumb:hover {
  background: var(--highlight);
}
