/* ==========================================================================
   G&VAROMA FRAGRANCES - Luxury Design System (Clean Branding & Professional Aesthetic)
   ========================================================================== */

:root {
  --bg-primary: #080b0b;
  --bg-secondary: #0f1614;
  --bg-card: #141c19;
  --bg-light: #f5f8f7;
  --bg-white: #ffffff;
  
  --text-main: #0d1211;
  --text-muted: #5a6663;
  --text-light: #f0f4f3;
  --text-dim: #98a5a2;
  
  --accent-emerald: #055c4e;
  --accent-emerald-light: #077a68;
  --accent-emerald-glow: rgba(5, 92, 78, 0.18);
  --accent-gold: #d4af37;
  --accent-gold-hover: #b8952b;
  --accent-dark: #080b0b;
  --accent-grey: #e0e7e4;
  
  --border-light: #e0e7e4;
  --border-dark: #1d2724;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(5, 92, 78, 0.12);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.25);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Helpers */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header.center {
  text-align: center;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-emerald-light);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--accent-emerald), var(--accent-gold));
  margin: 16px auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--accent-emerald-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: rgba(255,255,255,0.05);
}

.btn-secondary {
  background-color: var(--accent-grey);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--accent-emerald);
  color: var(--bg-white);
}

.btn-block {
  width: 100%;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--bg-primary);
  color: var(--text-light);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.announcement-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.announcement-content .dot {
  color: var(--accent-emerald-light);
}

/* Header / Navbar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 90;
  transition: var(--transition);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logos Styling */
.brand-logo-link {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.hero-emblem-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  margin-bottom: 16px;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.drawer-logo {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-emerald);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--text-main);
  transition: var(--transition);
}

.icon-btn:hover {
  background-color: var(--bg-light);
  color: var(--accent-emerald);
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--accent-gold);
  color: var(--accent-dark);
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-cart {
  background-color: var(--accent-emerald);
  color: var(--bg-white);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.3rem;
}

/* Search Bar Overlay */
.search-bar-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-light);
  display: none;
}

.search-bar-overlay.active {
  display: block;
}

.search-input-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 48px;
  font-size: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: var(--accent-emerald);
}

.close-search-btn {
  position: absolute;
  right: 16px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.search-results-dropdown {
  max-width: 800px;
  margin: 12px auto 0;
  max-height: 300px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover {
  background-color: var(--bg-light);
}

/* Mobile Drawer Navigation */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  left: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-link {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, #051411 0%, #0d211d 40%, #070909 100%);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  padding: 60px 24px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(5, 92, 78, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.hero-brand-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 92, 78, 0.25);
  border: 1px solid var(--accent-emerald-light);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 30px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.feature-item i {
  color: var(--accent-emerald-light);
  font-size: 1rem;
}

/* Lines / Categories Section */
.lines-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.line-card {
  position: relative;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  transition: var(--transition);
}

.line-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.line-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}

.line-card:hover .line-card-bg {
  transform: scale(1.08);
}

.line-bg-1 { background-image: linear-gradient(to top, rgba(5, 20, 17, 0.9), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&w=800&q=80'); }
.line-bg-2 { background-image: linear-gradient(to top, rgba(5, 20, 17, 0.9), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1541643600914-78b084683601?auto=format&fit=crop&w=800&q=80'); }
.line-bg-3 { background-image: linear-gradient(to top, rgba(5, 20, 17, 0.9), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1592945403244-b3fbafd7f539?auto=format&fit=crop&w=800&q=80'); }

.line-card-content {
  position: relative;
  z-index: 2;
  color: var(--bg-white);
}

.line-badge {
  display: inline-block;
  background: var(--accent-emerald);
  color: var(--bg-white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.line-card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.line-card-content p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.line-btn {
  color: var(--bg-white);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.line-btn:hover {
  color: var(--accent-gold);
  gap: 12px;
}

/* Catalog Section */
.catalog-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.catalog-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  max-width: 100%;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background-color: var(--bg-light);
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--accent-emerald);
  color: var(--bg-white);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.sort-select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-weight: 600;
  outline: none;
  font-size: 0.82rem;
  background-color: var(--bg-white);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .product-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
}

/* Product Card Component */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-emerald-light);
}

.product-badge-group {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

.product-badge {
  padding: 3px 8px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
}

.badge-sale { background-color: #e63946; color: white; }
.badge-niche { background-color: var(--accent-emerald); color: var(--bg-white); }
.badge-best { background-color: var(--accent-gold); color: var(--accent-dark); }

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: #f7f9f8;
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.quick-view-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background-color: rgba(5, 92, 78, 0.92);
  color: var(--bg-white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.product-card:hover .quick-view-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-emerald);
  margin-bottom: 2px;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.25;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: #f59e0b;
  margin-bottom: 8px;
}

.product-rating span {
  color: var(--text-muted);
  margin-left: 2px;
}

.product-sizes-chips {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.size-chip {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background-color: var(--bg-light);
  color: var(--text-muted);
}

.size-chip.selected {
  background-color: var(--accent-emerald);
  color: var(--bg-white);
  border-color: var(--accent-emerald);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.current-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.add-cart-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.add-cart-icon-btn:hover {
  background-color: var(--accent-emerald);
  color: var(--bg-white);
}

/* Service Info Section */
.decants-info-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  color: var(--bg-white);
}

.decants-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .decants-wrapper { grid-template-columns: 1fr; gap: 32px; }
}

.decants-text h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.decants-text p {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.decant-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  padding: 16px;
  border-radius: var(--radius-md);
}

.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 92, 78, 0.25);
  color: var(--accent-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.benefit-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.benefit-info p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

.size-comparison {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.size-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.size-box.highlight {
  border-color: var(--accent-emerald-light);
  background: rgba(5, 92, 78, 0.15);
}

.size-tag {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--accent-emerald-light);
}

.spray-count {
  font-size: 0.9rem;
  font-weight: 700;
}

.usage-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  background-color: var(--bg-primary);
  color: var(--text-light);
  padding-top: 60px;
  border-top: 1px solid var(--border-dark);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-container { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  color: var(--accent-emerald-light);
}

.footer-col p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--bg-white);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent-emerald);
  color: var(--bg-white);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 20px 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-methods {
  display: flex;
  gap: 14px;
  font-size: 1.2rem;
}

/* Slide-out Cart Drawer */
.cart-overlay, .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--bg-white);
  z-index: 210;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  .cart-drawer { width: 100%; right: -100%; }
}

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

.cart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
}

.cart-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.close-cart-btn, .close-modal-btn {
  font-size: 1.1rem;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-cart-btn:hover, .close-modal-btn:hover {
  background: var(--border-light);
  color: var(--text-main);
}

.free-shipping-bar {
  padding: 10px 20px;
  background: #f4faf8;
  border-bottom: 1px solid var(--border-light);
}

.shipping-msg {
  font-size: 0.75rem;
  margin-bottom: 4px;
  text-align: center;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-emerald);
  transition: width 0.4s ease;
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-cart-msg {
  text-align: center;
  padding: 36px 0;
  color: var(--text-muted);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
}

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

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-size {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  font-size: 0.75rem;
}

.qty-val {
  padding: 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.9rem;
}

.remove-item-btn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.remove-item-btn:hover { color: #e63946; }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.cart-summary-line.total-line {
  font-size: 1rem;
  font-weight: 800;
  border-top: 1px solid var(--border-light);
  padding-top: 6px;
  margin-top: 10px;
  margin-bottom: 14px;
}

/* Product Modal / Quick View */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 92%;
  max-width: 850px;
  max-height: 90vh;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  z-index: 220;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  padding: 24px;
  transition: var(--transition);
}

.modal-overlay.active .product-modal {
  transform: translate(-50%, -50%) scale(1);
}

.close-modal-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .modal-content-grid { grid-template-columns: 1fr; gap: 20px; }
  .modal-gallery-main { height: 260px !important; }
  .modal-title { font-size: 1.5rem !important; }
}

.modal-gallery-main {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-light);
}

.modal-brand {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-emerald);
  letter-spacing: 1.5px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 4px 0 10px;
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.size-selector-group {
  margin: 16px 0;
}

.size-selector-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.size-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.size-option-btn {
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.size-option-btn.active {
  border-color: var(--accent-emerald);
  background-color: var(--accent-emerald);
  color: var(--bg-white);
}

.size-option-btn span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
}

.size-option-btn small {
  font-size: 0.68rem;
  opacity: 0.8;
}

/* Olfactory Pyramid Component */
.olfactory-pyramid {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 16px 0;
  border-left: 3px solid var(--accent-emerald);
}

.pyramid-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--accent-emerald);
}

.note-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
}

.note-type {
  font-weight: 700;
  min-width: 90px;
  color: var(--text-muted);
}

.note-items {
  color: var(--text-main);
  font-weight: 500;
}

/* Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  z-index: 230;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.checkout-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-light);
}

.checkout-body {
  padding: 20px;
}

.form-section {
  margin-bottom: 20px;
}

.form-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

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

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.payment-option.active {
  border-color: var(--accent-emerald);
  background-color: #f4faf8;
}

.payment-option i {
  font-size: 1.1rem;
  margin-left: auto;
}

.order-summary-box {
  background: var(--bg-light);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.order-summary-box h4 {
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.summary-line.total {
  font-weight: 800;
  font-size: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 6px;
  margin-top: 6px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-primary);
  color: var(--bg-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  animation: slideIn 0.3s ease forwards;
  border-left: 4px solid var(--accent-emerald-light);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  z-index: 150;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.wh-tooltip {
  position: absolute;
  left: 60px;
  background: var(--accent-dark);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float:hover .wh-tooltip {
  opacity: 1;
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES (TELÉFONOS & TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .announcement-bar {
    padding: 6px 10px;
    font-size: 0.7rem;
    overflow-x: auto;
  }
  
  .navbar-container {
    padding: 8px 16px;
  }

  .site-logo {
    height: 42px;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 16px;
  }

  .hero-emblem-logo {
    height: 60px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
    width: 100%;
  }

  .hero-features {
    gap: 16px;
    padding-top: 16px;
  }

  .feature-item {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .lines-section, .catalog-section, .decants-info-section {
    padding: 50px 0;
  }

  .catalog-filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sort-wrapper {
    justify-content: space-between;
    width: 100%;
  }

  /* Cuadrícula compacta de 2 columnas en móvil */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .product-info {
    padding: 10px;
  }

  .product-brand {
    font-size: 0.62rem;
  }

  .product-title {
    font-size: 0.82rem;
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-rating {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  .current-price {
    font-size: 0.92rem;
  }

  .add-cart-icon-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}
