/* ============================================================
   TIENDA.CSS — Aguademar Shop
   Paleta: Navy #0a1628 | Gold #c9a84c | Teal #7ecac3 | Pearl #f5f0e8
   Tipografía: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

/* ============================================================
   0. CUSTOM PROPERTIES (shop-specific)
   ============================================================ */
:root {
  --navy:        #0a1628;
  --navy-light:  #122040;
  --navy-mid:    #1a2f52;
  --gold:        #c9a84c;
  --gold-light:  #e0c47a;
  --gold-dark:   #a07f30;
  --teal:        #7ecac3;
  --teal-dark:   #5bb5ad;
  --pearl:       #f5f0e8;
  --pearl-dark:  #ede5d4;
  --white:       #ffffff;
  --text-dark:   #0a1628;
  --text-muted:  #5b6a7e;
  --text-light:  #f0f4f8;
  --success:     #25d366;
  --danger:      #e53e3e;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Inter', system-ui, sans-serif;

  --shadow-sm:   0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md:   0 8px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg:   0 20px 48px rgba(10, 22, 40, 0.18);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.35);

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 9999px;

  --transition:       0.3s ease;
  --transition-fast:  0.15s ease;

  --sidebar-width:    280px;
  --navbar-h:         72px;
  --cart-panel-w:     420px;
}

/* ============================================================
   1. BASE
   ============================================================ */
.shop-body {
  font-family: var(--font-body);
  background: var(--pearl);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   2. NAVBAR — shop sticky variant
   ============================================================ */
.navbar-shop {
  position: sticky !important;
  top: 0 !important;
  background: rgba(10, 22, 40, 0.97) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 2px 20px rgba(10, 22, 40, 0.3) !important;
  z-index: 1100 !important;
  padding: 1rem 5% !important;
}

.navbar-shop .logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white) !important;
}

.navbar-shop .logo-icon {
  color: var(--teal) !important;
}

.navbar-shop .nav-links a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.navbar-shop .nav-links a:hover,
.navbar-shop .nav-links a.active {
  color: var(--gold) !important;
}

.navbar-shop .nav-links a::after {
  background-color: var(--gold) !important;
}

/* Cart nav button */
.cart-nav-btn {
  position: relative;
  background: rgba(201, 168, 76, 0.15);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  flex-shrink: 0;
}

.cart-nav-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.08);
}

.cart-nav-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ============================================================
   3. GRADIENT TEXT GOLD
   ============================================================ */
.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ============================================================
   4. SHOP HEADER
   ============================================================ */
.shop-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--navy-mid) 100%);
  padding: 4rem 5% 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(126, 202, 195, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.shop-header-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.shop-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
}

.shop-header-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.shop-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.shop-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
}

.shop-stats span i {
  color: var(--teal);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb-sep { color: rgba(255, 255, 255, 0.3); }

.breadcrumb span:last-child {
  color: var(--gold);
  font-weight: 600;
}

/* ============================================================
   5. SHOP LAYOUT
   ============================================================ */
.shop-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 5% 4rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}

/* ============================================================
   6. SIDEBAR
   ============================================================ */
.shop-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--navbar-h) + 1rem);
  max-height: calc(100vh - var(--navbar-h) - 2rem);
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.3) transparent;
}

.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 4px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-close {
  display: none;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border: none;
}

.sidebar-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Filter sections */
.filter-section { margin-bottom: 1.5rem; }

.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

/* Search box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 2.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
}

.search-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.search-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

.search-clear {
  position: absolute;
  right: 0.625rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color var(--transition-fast);
}

.search-clear:hover { color: var(--white); }

/* Category Chips */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}

.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.chip.chip-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.4);
}

/* Price Range */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.price-dash {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.price-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0 0.625rem;
  transition: border-color var(--transition-fast);
}

.price-input-wrap:focus-within { border-color: var(--gold); }

.price-input-wrap span {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
}

.price-input {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 0.25rem;
  outline: none;
  -moz-appearance: textfield;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.price-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.5);
  transition: transform var(--transition-fast);
}

.price-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.5);
}

/* Sort Select */
.select-wrap { position: relative; }

.sort-select {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.sort-select:focus { border-color: var(--gold); }
.sort-select option { background: var(--navy-light); color: var(--white); }

.select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  pointer-events: none;
}

/* Clear filters */
.btn-clear-filters {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-clear-filters:hover {
  background: rgba(229, 62, 62, 0.1);
  border-color: rgba(229, 62, 62, 0.4);
  color: #fc8181;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay { display: none; }

/* Sidebar toggle (mobile) */
.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--navy);
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.filter-count-badge {
  background: var(--danger);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  margin-left: 0.25rem;
}

/* ============================================================
   7. PRODUCTS SECTION
   ============================================================ */
.products-section {
  flex: 1;
  min-width: 0;
}

/* Results bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-count strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Mobile sort bar */
.sort-bar-mobile {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-select-mobile {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid rgba(10, 22, 40, 0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   8. PRODUCT CARDS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  animation: fadeInUp 0.5s ease both;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Staggered delays */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.40s; }

/* Card image */
.card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--pearl);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-img { transform: scale(1.08); }

/* Hover overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.product-card:hover .card-overlay { opacity: 1; }

.btn-view-more {
  padding: 0.625rem 1.5rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transform: translateY(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.5);
}

.product-card:hover .btn-view-more { transform: translateY(0); }

.btn-view-more:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.7);
}

/* Badges */
.card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-category            { background: rgba(10, 22, 40, 0.85); color: var(--teal); }
.badge-category.cat-comestible  { color: #86efac; }
.badge-category.cat-belleza     { color: #f9a8d4; }
.badge-category.cat-terapeutica { color: var(--teal); }
.badge-category.cat-combos      { color: var(--gold-light); }
.badge-stock { background: rgba(229, 62, 62, 0.9); color: var(--white); }
.badge-new   { background: var(--gold); color: var(--navy); }

/* Card body */
.card-body {
  padding: 1.1rem 1.1rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-category-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-dark);
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.2;
}

/* Card footer */
.card-footer {
  padding: 0 1.1rem 1.1rem;
  margin-top: auto;
}

.btn-add-cart {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-add-cart:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   9. SKELETON CARDS
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sk-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #e8e0d4 25%, #f0ebe0 50%, #e8e0d4 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}

.sk-line {
  height: 14px;
  border-radius: 8px;
  margin: 0 1.1rem;
  background: linear-gradient(90deg, #e8e0d4 25%, #f0ebe0 50%, #e8e0d4 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}

.sk-title {
  width: 75%;
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
  height: 18px;
}

.sk-price { width: 40%; margin-bottom: 1rem; }

.sk-btn {
  height: 38px;
  border-radius: var(--radius-sm);
  margin: 0 1.1rem 1.1rem;
  background: linear-gradient(90deg, #e8e0d4 25%, #f0ebe0 50%, #e8e0d4 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}

/* ============================================================
   10. EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 4rem;
  color: var(--pearl-dark);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   11. BUTTONS (shop-specific)
   ============================================================ */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.5);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20b557;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   12. PRODUCT MODAL
   ============================================================ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.35s ease;
  scrollbar-width: thin;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.08);
  border: none;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover { background: var(--danger); color: var(--white); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Modal image */
.modal-image-section {
  background: var(--pearl);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}

.modal-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modal-img-wrap img:hover { transform: scale(1.04); }

.modal-badges-row {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Modal info */
.modal-info-section {
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(126, 202, 195, 0.15);
  color: var(--teal-dark);
  border: 1px solid rgba(126, 202, 195, 0.4);
}

.modal-product-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

.modal-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0;
  line-height: 1;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Modal meta */
.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem;
  background: var(--pearl);
  border-radius: var(--radius-sm);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item i { color: var(--teal-dark); width: 16px; text-align: center; }

/* Quantity selector */
.modal-qty-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-qty {
  display: flex;
  align-items: center;
  background: var(--pearl);
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: fit-content;
  border: 1.5px solid rgba(10, 22, 40, 0.15);
}

.qty-btn {
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--gold); color: var(--navy); }

.qty-val {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

/* Modal actions */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.modal-actions .btn-gold,
.modal-actions .btn-whatsapp {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

/* ============================================================
   13. CART SIDEBAR
   ============================================================ */
.cart-sidebar {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.cart-sidebar.open { pointer-events: all; }

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: pointer;
}

.cart-sidebar.open .cart-overlay { opacity: 1; }

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--cart-panel-w);
  max-width: 100%;
  height: 100%;
  background: var(--white);
  box-shadow: -8px 0 32px rgba(10, 22, 40, 0.2);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open .cart-panel { transform: translateX(0); }

/* Cart header */
.cart-header {
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white);
}

.cart-header-title i { color: var(--gold); font-size: 1.1rem; }

.cart-header-title h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.cart-item-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.cart-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cart-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Cart items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 22, 40, 0.15) transparent;
}

/* Cart empty */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.cart-empty-icon { font-size: 3rem; color: var(--pearl-dark); }
.cart-empty p { font-size: 0.95rem; }

/* Cart item */
.cart-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem;
  background: var(--pearl);
  border-radius: var(--radius-sm);
  position: relative;
  transition: background var(--transition-fast);
}

.cart-item:hover { background: var(--pearl-dark); }

.cart-item-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 1.5rem;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  margin-top: auto;
  background: var(--white);
  border-radius: var(--radius-pill);
  width: fit-content;
  border: 1px solid rgba(10, 22, 40, 0.12);
  overflow: hidden;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.cart-qty-btn:hover { background: var(--gold); color: var(--navy); }

.cart-qty-num {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

.cart-item-subtotal {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: rgba(10, 22, 40, 0.3);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 0.25rem;
}

.cart-item-remove:hover { color: var(--danger); }

/* Cart footer */
.cart-footer {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.cart-total-row span:first-child {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cart-total-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}

.cart-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-note i { color: var(--teal); }

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.btn-checkout {
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  justify-content: center;
}

.btn-outline-navy { justify-content: center; }

/* ============================================================
   14. FLOATING CART BUTTON
   ============================================================ */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.25); }
  60%       { transform: scale(0.95); }
}

@keyframes cartPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4); }
  50%       { box-shadow: 0 4px 32px rgba(201, 168, 76, 0.7); }
}

.cart-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  color: var(--navy);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  transition: transform 0.25s ease;
}

.cart-fab:hover { transform: scale(1.1); }
.cart-fab.bounce { animation: cartBounce 0.5s ease; }
.cart-fab.has-items { animation: cartPulse 2.5s ease infinite; }

.cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--white);
}

/* ============================================================
   15. CHECKOUT MODAL
   ============================================================ */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.checkout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.checkout-content {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-icon { font-size: 3rem; color: #25d366; }

.checkout-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
}

.checkout-content p { color: var(--text-muted); font-size: 0.95rem; }

.checkout-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(10, 22, 40, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--pearl);
  outline: none;
  transition: border-color var(--transition-fast);
}

.checkout-input:focus { border-color: var(--gold); background: var(--white); }

.checkout-summary {
  background: var(--pearl);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-height: 180px;
  overflow-y: auto;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.07);
  color: var(--navy);
}

.checkout-summary-item:last-child { border-bottom: none; }

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.625rem;
  font-weight: 700;
  color: var(--navy);
  border-top: 1.5px solid rgba(10, 22, 40, 0.15);
  margin-top: 0.5rem;
}

.btn-checkout-confirm {
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  justify-content: center;
  width: 100%;
}

/* ============================================================
   16. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 320px;
  box-shadow: var(--shadow-md);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: all;
}

.toast.show { transform: translateX(0); opacity: 1; }
.toast i { font-size: 1rem; flex-shrink: 0; }
.toast-success { border-left: 4px solid var(--success); }
.toast-success i { color: var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-error i { color: var(--danger); }
.toast-info { border-left: 4px solid var(--teal); }
.toast-info i { color: var(--teal); }

/* ============================================================
   17. SHOP FOOTER
   ============================================================ */
.shop-footer {
  background: var(--navy);
  padding: 2.5rem 5%;
  text-align: center;
}

.shop-footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand i { color: var(--teal); }

.footer-tagline { color: rgba(255, 255, 255, 0.55); font-size: 0.875rem; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy { color: rgba(255, 255, 255, 0.35); font-size: 0.8rem; }

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
  /* Sidebar: off-canvas on mobile */
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1200;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100%;
    overflow-y: auto;
    width: min(var(--sidebar-width), 85vw);
  }

  .shop-sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.55);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .sidebar-overlay.active { opacity: 1; pointer-events: all; }
  .sidebar-toggle { display: inline-flex; }
  .sort-bar-mobile { display: flex; }

  .shop-layout {
    flex-direction: column;
    padding: 1.5rem 4% 3rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .modal-grid { grid-template-columns: 1fr; }

  .modal-image-section {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-img-wrap { max-height: 280px; }
  .modal-product-name { font-size: 1.4rem; }
  .cart-panel { width: 100%; }

  .navbar-shop .nav-links {
    background: var(--navy-light) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 480px) {
  .shop-header { padding: 3rem 5% 2rem; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .card-name { font-size: 0.95rem; }
  .card-price { font-size: 1.2rem; }

  .btn-add-cart {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
  }

  .cart-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
  }

  .modal-content { border-radius: var(--radius-md); }
  .modal-info-section { padding: 1.25rem; }
  .checkout-content { padding: 1.75rem 1.25rem; }
}
