/* ==========================================================================
   Tyohaarik — Luxury UI Stylesheet (rewrite)
   - Text-only gold logo
   - Calm spacing + couture typography
   - Sticky header shrink
   - Mobile nav drawer
   ========================================================================== */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; object-fit: contain; display: block; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* Design tokens */
:root{
  /* Brand */
  --maroon: #6b1c23;
  --maroon-dark: #4a1419;

  /* Gold (champagne) */
  --gold: #E8D8B0;
  --gold-2: #D6C08D;

  /* Neutrals */
  --bg: #f9f7f4;
  --surface: #ffffff;
  --ink: #2c2416;
  --text: #4a4a4a;
  --muted: rgba(44, 36, 22, 0.65);
  --border: rgba(44, 36, 22, 0.12);

  /* Shadows */
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.06);
  --shadow-hover: 0 14px 34px rgba(0,0,0,0.12);

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  /* Layout */
  --container: 1200px;

  /* Header heights */
  --nav-h: 88px;
  --nav-h-sticky: 72px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Base */
body{
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
}

h1,h2,h3,h4,h5,h6{
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Promotional Banner
   ========================================================================== */
.promo-banner {
  background: linear-gradient(135deg, #ff6b9d 0%, #c94b7d 100%);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(201, 75, 125, 0.3);
  animation: slideDown 0.5s ease-out;
  z-index: 1001;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.promo-banner.hidden {
  display: none;
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-icon {
  font-size: 1.5rem;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

.promo-text {
  font-size: clamp(0.85rem, 2vw, 1rem);
  text-align: center;
  line-height: 1.4;
}

.promo-text strong {
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.promo-cta {
  background: #fff;
  color: #c94b7d;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.promo-cta:hover {
  background: #fff5f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) rotate(90deg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .promo-banner {
    padding: 10px 15px;
  }
  
  .promo-content {
    gap: 8px;
  }
  
  .promo-icon {
    font-size: 1.2rem;
  }
  
  .promo-cta {
    padding: 5px 12px;
    font-size: 0.85rem;
  }
  
  .promo-close {
    right: 10px;
    width: 25px;
    height: 25px;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Header + Navigation (Luxury sizing)
   ========================================================================== */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--maroon);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar{
  padding: 0; /* height controls vertical rhythm */
}

.navbar .container{
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Sticky shrink */
.header.header--sticky .navbar .container{
  height: var(--nav-h-sticky);
}

/* Logo wrapper (keep .logo in markup compatible) */
.logo{
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Text-only logo */
.logo-text{
  font-family: "Didot","Bodoni Moda","Playfair Display",serif;
  font-size: 26px;
  letter-spacing: 0.18em; /* couture tracking */
  font-weight: 400;
  text-transform: capitalize;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
  transform: translateY(1px); /* optical centering */
  transition: opacity .25s var(--ease);
  white-space: nowrap;
}
.logo-text:hover{ opacity: .86; }

/* Optional footer variant */
.logo-text--footer{
  font-size: 20px;
  letter-spacing: 0.16em;
  opacity: .82;
}

/* Keep legacy image class safe (if still used somewhere) */
.logo-image{
  height: 56px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* Nav */
.nav-menu{
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2.2rem;
}

.nav-link{
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: .85rem;
  position: relative;
  opacity: .92;
  padding: .35rem 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-link:hover{
  opacity: 1;
  transform: translateY(-1px);
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background: rgba(232,216,176,0.9);
  transition: width .25s var(--ease);
}
.nav-link:hover::after{ width:100%; }

/* Actions */
.nav-actions{
  display:flex;
  align-items:center;
  gap: .75rem;
}

.icon-btn{
  background:none;
  border:none;
  cursor:pointer;
  font-size: 1.35rem;
  line-height: 1;
  position:relative;
  transform: translateZ(0);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
  opacity: .95;
  filter: grayscale(100%) brightness(1.9) sepia(100%) hue-rotate(10deg) saturate(280%);
}
.icon-btn:hover{
  transform: scale(1.06);
  opacity: 1;
}

.cart-count{
  position:absolute;
  top:-6px;
  right:-6px;
  background: var(--gold-2);
  color: var(--maroon-dark);
  font-size: .70rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
}

/* Search Bar */
.search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

.search-bar.active {
  display: flex;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--gold);
}

.search-go {
  display: block;
  visibility: visible;
  opacity: 1;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.search-go:hover {
  background: #8b1c24;
  transform: translateY(-1px);
}

.search-go:active {
  transform: translateY(0);
}

.search-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.search-close:hover {
  color: var(--ink);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg);
  border-radius: var(--r-md);
}

.no-results p:first-child {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.no-results p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--surface);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

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

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-size: 1.5rem;
  color: var(--ink);
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.cart-close:hover {
  color: var(--ink);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  min-height: 0;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--bg);
}

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

.cart-item-name {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.cart-item-category {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--gold-2);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.25rem;
}

.cart-item-qty button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.cart-item-qty span {
  min-width: 30px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.cart-item-remove:hover {
  color: #d32f2f;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.cart-total-amount {
  color: var(--gold-2);
}

.cart-checkout {
  width: 100% !important;
  padding: 1rem !important;
  font-size: 1rem !important;
  background: var(--maroon) !important;
  color: white !important;
  border: 2px solid var(--maroon) !important;
  border-radius: var(--r-sm) !important;
  cursor: pointer;
  transition: background 0.3s ease;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-checkout:hover {
  background: var(--maroon-dark) !important;
  border-color: var(--maroon-dark) !important;
  transform: translateY(-2px);
}

/* Mobile menu toggle */
.mobile-menu-toggle{
  display:none;
  flex-direction:column;
  gap: 5px;
  background:none;
  border:none;
  cursor:pointer;
}
.mobile-menu-toggle span{
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  height: 600px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  background: linear-gradient(135deg, #8B1538 0%, var(--maroon) 50%, var(--maroon-dark) 100%);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.08)"/></svg>') no-repeat center;
  background-size: cover;
}

.hero-content{
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding: 2rem;
}

.hero-title{
  font-size: 4.6rem;
  margin-bottom: .65rem;
  color:#fff;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .02em;
}

.hero-subtitle{
  font-size: 1.55rem;
  margin-bottom: 2.25rem;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.4;
  opacity: .98;
}

/* Decorative elements (keep existing classes) */
.hero-decor{ position:absolute; z-index:2; pointer-events:none; }
.hero-decor-left{ left:5%; top:50%; transform: translateY(-50%); }
.hero-decor-right{ right:5%; top:50%; transform: translateY(-50%); }
.decor-item{
  position:absolute;
  font-size: 3rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.28));
}

/* Animations removed for better performance */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-block;
  padding: .85rem 2.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor:pointer;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .86rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn-primary{
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}
.btn-primary:hover{
  background: var(--gold-2);
  color: var(--maroon);
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary{
  background: var(--gold-2);
  color: var(--maroon-dark);
}
.btn-secondary:hover{
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline{
  background: transparent;
  color: var(--gold-2);
  border-color: rgba(214,192,141,0.9);
}
.btn-outline:hover{
  background: rgba(214,192,141,0.14);
  border-color: rgba(214,192,141,1);
  transform: translateY(-2px);
}

.btn-cart{
  padding: .55rem 1.05rem;
  font-size: .82rem;
  letter-spacing: .08em;
  transition: all 0.3s ease;
}

.btn-cart.in-cart {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
}

.btn-cart.in-cart:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.btn-cart .qty-btn {
  background: var(--maroon);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.btn-cart .qty-btn:hover {
  background: var(--maroon-dark);
  transform: scale(1.1);
}

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

.btn-cart .qty-display {
  font-weight: 700;
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
  color: var(--ink);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.featured-section,
.categories-section,
.products-section,
.about-content,
.contact-section{
  padding: 5rem 0;
}

.section-title{
  font-size: 2.5rem;
  text-align:center;
  margin-bottom: .75rem;
}

.section-subtitle{
  text-align:center;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* ==========================================================================
   Cards + Product grid
   ========================================================================== */
.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card{
  background: var(--surface);
  border-radius: var(--r-md);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-image{
  position:relative;
  height: 300px;
  overflow:hidden;
  background: var(--bg);
}
.product-image img{
  width:100%;
  height:100%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-image img{
  transform: scale(1.08);
}

.product-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.46);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition: opacity .25s var(--ease);
}
.product-card:hover .product-overlay{ opacity:1; }

.product-info{ padding: 1.4rem 1.5rem 1.5rem; }

.product-category{
  display:inline-block;
  font-size: .78rem;
  color: rgba(107,28,35,0.9);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: .5rem;
}

.product-name{
  font-size: 1.25rem;
  margin-bottom: .45rem;
}

.product-description{
  font-size: .95rem;
  color: rgba(74,74,74,0.92);
  margin-bottom: 1rem;
}

.product-footer{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 1rem;
}
.product-price{
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  color: rgba(107,28,35,0.95);
  white-space: nowrap;
  line-height: 1.3;
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Price Container for Discount Display */
.price-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Original Price (Strikethrough) */
.product-price-original {
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  white-space: nowrap;
}

/* Discounted Price (Highlighted) */
.price-container .product-price {
  color: var(--maroon);
  font-weight: 700;
}

/* ==========================================================================
   Categories
   ========================================================================== */
.categories-section{ background: var(--surface); }

.categories-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.category-card{
  display: block;
  text-decoration: none;
  color: inherit;
  text-align:center;
  padding: 2rem 1.25rem;
  background: rgba(249,247,244,0.9);
  border-radius: var(--r-md);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  cursor:pointer;
}
.category-card:hover{
  background: rgba(214,192,141,0.18);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.category-icon{
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   About Preview / Page Header
   ========================================================================== */
.about-preview{
  background: linear-gradient(135deg, #8B1538 0%, var(--maroon) 50%, var(--maroon-dark) 100%);
  color:#fff;
  text-align:center;
}
.about-preview h2{ color:#fff; font-size: 2.5rem; margin-bottom: 1rem; }
.about-preview p{
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  opacity: .95;
}

.page-header{
  background: linear-gradient(135deg, #8B1538 0%, var(--maroon) 50%, var(--maroon-dark) 100%);
  color:#fff;
  text-align:center;
  padding: 4rem 0;
}
.page-header h1{
  color:#fff;
  font-size: 3rem;
  margin-bottom: .5rem;
}
.page-subtitle{
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .82;
  margin-top: .5rem;
}

/* ==========================================================================
   Products Page Layout
   ========================================================================== */
.products-layout{
  display:grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
}
.filters-sidebar{
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 12px);
}
.filters-sidebar h3{ margin-bottom: 1rem; font-size: 1.1rem; }
.filter-list{ list-style:none; margin-bottom: 2rem; }
.filter-list li{ margin-bottom: .55rem; }
.filter-list a{
  display:block;
  padding: .55rem .65rem;
  border-radius: 10px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.filter-list a:hover,
.filter-list a.active{
  background: rgba(214,192,141,0.22);
  color: var(--ink);
}
/* Price filter form */
.price-filter form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-slider-wrapper {
  position: relative;
  height: 5px;
  margin: 30px 0 20px 0;
}

.slider-track {
  position: absolute;
  width: 100%;
  height: 5px;
  background: #ddd;
  border-radius: 5px;
  z-index: 1;
}

.slider-range {
  position: absolute;
  height: 5px;
  background: var(--primary-color);
  border-radius: 5px;
  z-index: 2;
}

.slider-thumb {
  position: absolute;
  width: 100%;
  height: 5px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  z-index: 3;
}

.slider-thumb::-webkit-slider-track {
  background: transparent;
  border: none;
}

.slider-thumb::-moz-range-track {
  background: transparent;
  border: none;
}

.slider-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  margin-top: -7px;
}

.slider-thumb::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.slider-thumb::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 6px rgba(107, 28, 35, 0.3);
}

.slider-thumb::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 6px rgba(107, 28, 35, 0.3);
}

.price-range-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.btn-filter {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--gold-2);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-filter:hover {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 192, 141, 0.3);
}

.btn-clear-price {
  display: block;
  width: 100%;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-clear-price:hover {
  color: var(--maroon);
}

.products-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
  background: #8b1c24;
}

/* Hide on desktop */
@media (min-width: 769px) {
  .mobile-filter-toggle {
    display: none !important;
  }
}

/* Show on mobile */
@media (max-width: 768px) {
  .mobile-filter-toggle {
    display: flex !important;
  }
}

.sort-select{
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor:pointer;
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items:center;
  margin-bottom: 4rem;
}
.about-text h2{ font-size: 2.3rem; margin-bottom: 1.25rem; }
.about-text p{ margin-bottom: 1rem; font-size: 1.05rem; color: rgba(44,36,22,0.82); }
.about-image img{ border-radius: var(--r-md); box-shadow: var(--shadow); }

.values-section{ text-align:center; }
.values-section h2{ font-size: 2.3rem; margin-bottom: 3rem; }
.values-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.value-card{
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.value-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.value-icon{ font-size: 2.6rem; margin-bottom: 1rem; opacity: .7; }
.value-card h3{ margin-bottom: .5rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info h2{ font-size: 2.3rem; margin-bottom: 1rem; }
.contact-details{ margin-top: 2rem; }
.contact-item{ display:flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon{ font-size: 2rem; opacity: .85; }

.contact-form-wrapper{
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
}
.contact-form .form-group{ margin-bottom: 1.25rem; }
.contact-form label{ display:block; margin-bottom: .45rem; font-weight: 500; color: rgba(44,36,22,0.9); }
.contact-form input,
.contact-form textarea{
  width:100%;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color: rgba(214,192,141,0.9);
  box-shadow: 0 0 0 4px rgba(214,192,141,0.18);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  background: var(--ink);
  color: rgba(255,255,255,0.92);
  padding: 3rem 0 1rem;
}
.footer-content{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4{
  color:#fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-column p{ 
  margin-bottom: 1rem; 
  opacity: .82;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column ul{ 
  list-style:none;
  padding: 0;
}

.footer-column ul li{ 
  margin-bottom: .55rem;
}

.footer-column a:hover{ 
  color: var(--gold);
}

.footer-social{
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a{
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-social a:hover{
  transform: translateY(-3px);
}

.footer-social img{
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-social img:hover{
  opacity: 1;
}

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

.footer-links li{
  margin-bottom: 0.5rem;
}

.footer-links a{
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover{
  color: var(--gold);
}

.footer-section h3,
.footer-section h4{
  color:#fff;
  margin-bottom: 1rem;
}
.footer-section p{ margin-bottom: 1rem; opacity: .82; }
.footer-section ul{ list-style:none; }
.footer-section ul li{ margin-bottom: .55rem; }
.footer-section a:hover{ color: var(--gold); }

.footer-logo{
  height: 32px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: .85;
  filter: brightness(0) invert(1);
}

.social-links{ display:flex; gap: 1rem; font-size: 1.45rem; }
.social-links a:hover{ transform: scale(1.12); }

.social-icons img {
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Order Confirmation Page */
.order-confirmation-section {
  padding: 4rem 0;
  background: var(--bg);
  min-height: 80vh;
}

.confirmation-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.success-icon {
  margin-bottom: 2rem;
}

.success-circle {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: scaleIn 0.5s ease-out;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.checkmark {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  animation: checkmarkPop 0.3s ease-out 0.3s both;
}

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

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.confirmation-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.confirmation-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.order-details-card {
  background: white;
  border-radius: var(--r-md);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  margin-bottom: 2rem;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.order-header h2 {
  font-family: var(--font-heading);
  color: var(--ink);
  margin: 0;
}

.order-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--maroon);
  background: rgba(107, 28, 35, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.order-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.status-paid {
  color: #4caf50;
  font-weight: 600;
}

.order-items-section,
.shipping-address-section,
.gift-message-section,
.order-notes-section,
.order-summary-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

.gift-message-section {
  background: #fff8e1;
  padding: 1.5rem;
  border-left: 4px solid var(--maroon);
  border-radius: 4px;
}

.gift-message-content p {
  margin: 0.5rem 0;
}

.gift-message-text {
  font-style: italic;
  font-size: 1.1rem;
  padding: 1rem;
  background: white;
  border-radius: 4px;
  margin-top: 1rem !important;
}

.order-notes-section {
  background: #f5f5f5;
  padding: 1.5rem;
  border-left: 4px solid var(--gray);
  border-radius: 4px;
}

.order-notes-content p {
  margin: 0.5rem 0;
  color: var(--ink);
}

.order-items-section h3,
.shipping-address-section h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.confirmation-order-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--r-sm);
}

.confirmation-order-item .item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.confirmation-order-item .item-details h4 {
  margin: 0 0 0.25rem 0;
  color: var(--ink);
  font-size: 1rem;
}

.confirmation-order-item .item-variant {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-style: italic;
  margin: 0.25rem 0;
}

.confirmation-order-item .item-category {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.confirmation-order-item .item-quantity,
.confirmation-order-item .item-price {
  font-weight: 600;
  color: var(--ink);
}

.address-details {
  background: var(--bg);
  padding: 1rem;
  border-radius: var(--r-sm);
  line-height: 1.8;
}

.address-details p {
  margin: 0;
  color: var(--ink);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  color: var(--ink);
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.summary-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--maroon);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--border) !important;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.confirmation-actions .btn {
  min-width: 180px;
}

.confirmation-note {
  background: rgba(107, 28, 35, 0.05);
  padding: 1.5rem;
  border-radius: var(--r-md);
  border-left: 4px solid var(--maroon);
}

.confirmation-note p {
  margin: 0.5rem 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.confirmation-note span {
  font-weight: 600;
  color: var(--maroon);
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .confirmation-actions {
    display: none;
  }
  
  .order-confirmation-section {
    padding: 0;
  }
  
  .order-details-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .confirmation-order-item {
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
  }
  
  .confirmation-order-item .item-quantity,
  .confirmation-order-item .item-price {
    grid-column: 2;
    text-align: right;
  }
  
  .confirmation-actions {
    flex-direction: column;
  }
  
  .confirmation-actions .btn {
    width: 100%;
  }
}


/* Checkout Page */
.checkout-section {
  padding: 3rem 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

.checkout-form-container {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.checkout-step {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.checkout-step:last-of-type {
  border-bottom: none;
}

.checkout-step-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--maroon);
  color: white;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 600;
}

.step-description {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  margin-top: -0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.phone-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: stretch;
}

.country-code-select {
  width: auto;
  max-width: 100px;
  flex-shrink: 0;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.country-code-select:focus {
  outline: none;
  border-color: var(--gold);
}

.phone-number-input {
  flex: 1 1 auto;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
  display: block;
}

.phone-number-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Pincode Validation Styles */
.pincode-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.pincode-input-group input {
  flex: 1;
}

.btn-validate-pincode {
  padding: 0.75rem 1.5rem;
  background: var(--maroon);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-validate-pincode:hover {
  background: var(--maroon-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 28, 35, 0.3);
}

.btn-validate-pincode:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.pincode-status {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.pincode-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.pincode-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.pincode-status.loading {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.pincode-info {
  margin-top: 0.75rem;
  padding: 1rem;
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
}

.pincode-details {
  color: var(--ink);
  line-height: 1.6;
}

.pincode-details strong {
  color: var(--maroon);
}

.form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #2e7d32;
  font-style: italic;
  font-weight: 500;
}

.form-group input[readonly] {
  background: #e8f5e9;
  border-color: #81c784;
  color: var(--ink);
  font-weight: 500;
  cursor: default;
}

.form-group input[readonly]:focus {
  outline: none;
  border-color: #66bb6a;
  box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.1);
}

.shipping-info {
  padding: 0.5rem 1rem;
  background: #f0f9ff;
  border-radius: var(--r-sm);
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
}

.shipping-info small {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.shipping-zone,
.delivery-days,
.package-weight {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.payment-info-box {
  background: var(--bg);
  border: 2px solid var(--gold-2);
  border-radius: var(--r-md);
  padding: 1.5rem;
}

.payment-gateway-info h3 {
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-gateway-info p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.payment-options-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.payment-options-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.95rem;
}

.payment-options-list li:last-child {
  border-bottom: none;
}

.payment-note {
  background: rgba(107, 28, 35, 0.05);
  padding: 1rem;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--maroon);
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: 1rem;
  margin-bottom: 0;
}

.btn-place-order {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: var(--maroon);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 600;
}

.btn-place-order:hover {
  background: var(--maroon-dark);
  color: white;
}

.btn-place-order:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

/* Order Summary */
.order-summary {
  position: sticky;
  top: 100px;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  z-index: 1;
}

.order-summary h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.order-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.5rem;
}

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

.order-item:last-child {
  border-bottom: none;
}

.order-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--bg);
}

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

.order-item-name {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.order-item-variant {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.order-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.order-item-qty {
  color: var(--muted);
}

.order-item-price {
  font-weight: 600;
  color: var(--gold-2);
}

.order-totals {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.order-total-row:last-child {
  margin-bottom: 0;
}

.order-total-final {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--border);
}

.order-total-final span:last-child {
  color: var(--gold-2);
}

.promo-code {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.promo-code input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
}

.btn-apply-promo {
  padding: 0.75rem 1.5rem;
  background: var(--gold-2);
  color: var(--ink);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.btn-apply-promo:hover {
  background: var(--gold);
}

.btn-apply-promo:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

.order-security {
  text-align: center;
  padding: 1rem;
  background: rgba(107, 28, 35, 0.05);
  border-radius: var(--r-sm);
}

.order-security p:first-child {
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 0.25rem;
}

.security-text {
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.newsletter-form{ display:flex; flex-direction:column; gap: .6rem; }
.newsletter-form input{
  padding: .9rem 1rem;
  border:none;
  border-radius: 12px;
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1rem;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 1rem;
}
/* Removed old footer-links flex - now using block display for vertical list */

/* ==========================================================================
   Legal Pages (Privacy Policy, Terms of Service)
   ========================================================================== */
.legal-page {
  padding: 6rem 0 4rem;
  background: var(--bg);
  min-height: 100vh;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

.legal-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.legal-content .last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-content p {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 1rem 0 1rem 1.5rem;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content li strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #8b1c24;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 5rem 0 3rem;
  }
  
  .legal-content {
    padding: 2rem 1.5rem;
  }
  
  .legal-content h1 {
    font-size: 2rem;
  }
  
  .legal-content h2 {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Mobile Footer Responsive
   ========================================================================== */
@media (max-width: 768px){
  .footer-content{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-column{
    text-align: center;
  }
  
  .footer-social{
    justify-content: center;
  }
  
  .footer-bottom{
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom-links{
    justify-content: center;
  }
}

/* ==========================================================================
   Mobile nav open state (works with main.js)
   ========================================================================== */
@media (max-width: 768px){
  .nav-menu{ display:none; }
  .mobile-menu-toggle{ display:flex; }

  .nav-menu.active{
    display:flex;
    flex-direction:column;
    position:absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--maroon);
    padding: 1rem 1.25rem 1.25rem;
    gap: 1rem;
    box-shadow: 0 14px 34px rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu.active .nav-link{ padding: .5rem 0; }

  /* Header sizing mobile */
  :root{ --nav-h: 76px; --nav-h-sticky: 66px; }
  .logo-text{ font-size: 22px; letter-spacing: .16em; transform: translateY(1px); }
  .logo-text--footer{ font-size: 18px; }

  /* Hero */
  .hero{ height: 520px; }
  .hero-title{ font-size: 3rem; }
  .hero-subtitle{ font-size: 1.2rem; letter-spacing: .10em; }

  /* Hide decorative elements */
  .hero-decor-left, .hero-decor-right{ display:none; }

  /* Grids */
  .product-grid{ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
  .products-layout{ grid-template-columns: 1fr; }
  .filters-sidebar{ 
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
  }
  .filters-sidebar.active{
    left: 0;
  }
  .products-main{ width: 100%; }
  .about-grid, .contact-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; text-align:center; }

  /* Checkout responsive */
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .order-summary {
    position: static;
    order: -1;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* Tablet tweaks */
@media (max-width: 1024px){
  .hero-decor-left{ left: 2%; }
  .hero-decor-right{ right: 2%; }
  .decor-item{ font-size: 2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===================================
   PRODUCT QUICK VIEW MODAL
   =================================== */

/* Modal Container */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal Overlay */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* Modal Content Box */
.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
  align-items: start;
}

/* Gallery Section */
.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

/* Gallery Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.gallery-nav:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f0f0f0;
}

/* Custom scrollbar for webkit browsers */
.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
  background: #8b1c24;
}

.gallery-thumbnail {
  min-width: 60px;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: #f5f5f5;
}

.gallery-thumbnail:hover {
  border-color: var(--primary-color);
}

.gallery-thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(107, 28, 35, 0.2);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Details Section */
.modal-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-category {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
}

.modal-description {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Modal Price */
.modal-price-section {
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

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

/* Variant Selector */
.modal-variant-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-variant-selector label {
  font-weight: 600;
  color: var(--text-color);
}

.variant-select {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.variant-select:hover {
  border-color: var(--primary-color);
}

.variant-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 28, 35, 0.1);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Hide any stray quantity controls outside the button */
.modal-actions > .qty-controls,
.modal-actions > button:not(.btn-add-to-cart-modal),
.modal-actions .qty-minus:not(.btn-add-to-cart-modal .qty-minus),
.modal-actions .qty-plus:not(.btn-add-to-cart-modal .qty-plus),
.modal-actions .qty-display:not(.btn-add-to-cart-modal .qty-display) {
  display: none !important;
}

/* Ensure modal actions only shows the Add to Cart button */
.modal-details > .modal-actions {
  margin-top: 20px;
}

.btn-add-to-cart-modal {
  width: 100%;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--primary-color) !important;
  color: white !important;
  border: none;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Force button to always be visible - override any inline styles */
#modalAddToCart,
.modal-details #modalAddToCart,
.modal-body #modalAddToCart,
.modal #modalAddToCart {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
}

/* Ensure button is not hidden by parent */
.modal-details,
.modal-body {
  overflow: visible !important;
}

.btn-add-to-cart-modal:hover {
  background: #8b1c24 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 28, 35, 0.3);
}

.btn-add-to-cart-modal .cart-text {
  display: block !important;
}

.btn-add-to-cart-modal .qty-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.btn-add-to-cart-modal.in-cart .cart-text {
  display: none;
}

.btn-add-to-cart-modal.in-cart .qty-controls {
  display: flex;
}

.btn-add-to-cart-modal .qty-controls button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.btn-add-to-cart-modal .qty-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-add-to-cart-modal .qty-display {
  font-size: 1.2rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  color: white;
}

/* Modal Tabs */
.modal-tabs {
  margin-top: 8px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-buttons {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid #eee;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(107, 28, 35, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

.tab-contents {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 10px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  color: var(--text-light);
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-price {
    font-size: 1.5rem;
  }
  
  .gallery-main {
    aspect-ratio: 4/3;
  }
  
  .modal-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* CRITICAL: Force Add to Cart button to always be visible */
button#addToCartModal,
.modal-actions button#addToCartModal,
.modal-details .modal-actions button#addToCartModal,
#productModal button#addToCartModal {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  background-color: #6b1c23 !important;
  color: #ffffff !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 999 !important;
  width: 100% !important;
  padding: 15px 30px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  transform: none !important;
  transition: all 0.3s ease !important;
}

button#addToCartModal:hover {
  background-color: #8b1c24 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(107, 28, 35, 0.3) !important;
}