:root {
  --primary: #771d1d;
  --primary-hover: #5e1515;
  --primary-light: #f7e4e7;
  --dark-wood: #392215;
  --dark-wood-hover: #29170c;
  --gold: #eab308;
  --gold-light: #fef9c3;
  --bg-warm: #fcf9f5;
  --bg-card: #ffffff;
  --text-main: #1c1917;
  --text-muted: #78716c;
  --border: #e7e5e4;
  --shadow-sm: 0 2px 4px rgba(57, 34, 21, 0.04);
  --shadow-md: 0 4px 12px rgba(57, 34, 21, 0.08);
  --shadow-lg: 0 12px 24px rgba(57, 34, 21, 0.12);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-warm);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Flex & Grid Helpers */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-align { display: flex; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2-col { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .grid-2-col { grid-template-columns: repeat(2, 1fr); } }
.grid-3-col { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 640px) { .grid-3-col { grid-template-columns: repeat(3, 1fr); } }
.grid-4-col { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .grid-4-col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4-col { grid-template-columns: repeat(4, 1fr); } }

/* Top Bar */
.top-bar {
  background-color: var(--dark-wood);
  color: #fef3c7;
  padding: 0.5rem 0;
}
.city-toggle {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
}
.top-link {
  color: #fef3c7;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.top-link:hover { color: #ffffff; }

/* Header & Glassmorphism */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 40;
}
.sticky-top {
  position: sticky;
  top: 0;
}

.brand-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark-wood);
  letter-spacing: -0.02em;
}
.brand-tagline {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.text-primary { color: var(--primary); }

/* Search Box */
.search-box {
  position: relative;
  width: 100%;
  max-width: 24rem;
}
.search-box input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border-radius: 9999px;
  background-color: #f5f5f4;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}
.search-box input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(119, 29, 29, 0.1);
}
.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a8a29e;
  width: 1.125rem;
  height: 1.125rem;
}

/* Category Pills (SpaNet Model) */
.category-nav {
  overflow-x: auto;
  white-space: nowrap;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.category-pill:hover {
  background-color: #f5f5f4;
}
.category-pill.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: scale(1.02);
}

/* Buttons & Badges */
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-cart {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.cart-badge {
  background-color: var(--gold);
  color: var(--dark-wood);
  font-weight: 800;
  font-size: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, rgba(247, 228, 231, 0.4) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #ffe4e6;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--dark-wood);
  font-weight: 700;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }

.quick-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.quick-filter-btn.primary { background-color: var(--primary); color: #ffffff; }
.quick-filter-btn.secondary { background-color: var(--dark-wood); color: #ffffff; }
.quick-filter-btn.accent { background-color: var(--gold-light); color: #854d0e; border: 1px solid #fde047; }

.hero-image-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  height: 22rem;
}
.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.floating-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
}
.floating-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f4;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.badge-gold {
  background-color: var(--gold-light);
  color: #854d0e;
  font-[600];
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
}

.badge-pill {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.select-input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  background-color: #f5f5f4;
  outline: none;
}

/* Slide-Over Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}
.cart-drawer {
  width: 100%;
  max-width: 28rem;
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  animation: slideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.method-btn {
  padding: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}
.method-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 0.5rem;
  background: var(--border);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-card {
  width: 100%;
  animation: popIn 0.25s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-bank-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
}
.payment-bank-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* Footer */
.main-footer {
  background-color: var(--dark-wood);
  color: #fef3c7;
}
.footer-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links, .footer-locations {
  list-style: none;
  space-y: 0.5rem;
}
.footer-link-btn {
  background: none;
  border: none;
  color: #fde68a;
  cursor: pointer;
  text-align: left;
}
.footer-link-btn:hover { text-decoration: underline; color: #ffffff; }

.hidden { display: none !important; }
@media (max-width: 767px) { .hidden-mobile { display: none !important; } }
@media (min-width: 768px) { .hidden-desktop { display: none !important; } }
