/* ═══════════════════════════════════════════════════════════════
   ME MERACLE — Master Stylesheet
   Luxury Glassmorphism · Gold / Black · Montserrat + Cormorant
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Brand Colors */
  --gold:           #d4af37;
  --gold-light:     #f0d060;
  --gold-dark:      #a8871e;
  --gold-subtle:    rgba(212,175,55,0.12);
  --gold-border:    rgba(212,175,55,0.25);

  /* Backgrounds */
  --bg-primary:     #050505;
  --bg-secondary:   #0d0d0d;
  --bg-tertiary:    #141414;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(255,255,255,0.07);
  --bg-glass:       rgba(20,20,20,0.75);

  /* Text */
  --text-primary:   #f2f2f2;
  --text-secondary: #b0b0b0;
  --text-muted:     #6a6a6a;
  --text-gold:      var(--gold);

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.06);
  --border-gold:    var(--gold-border);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.6);
  --shadow-gold:    0 0 24px rgba(212,175,55,0.15);

  /* Glassmorphism */
  --glass-blur:     blur(16px);
  --glass-border:   1px solid var(--border-gold);

  /* Typography */
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Montserrat', -apple-system, sans-serif;

  /* Spacing */
  --section-gap:    80px;
  --container-max:  1200px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-pill:    999px;

  /* Transitions */
  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background radial glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.8; }

.text-gold    { color: var(--gold); }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); font-size: 0.875rem; }

/* Gradient heading */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 48px; } }

.section { padding: var(--section-gap) 0; position: relative; }
.section-sm { padding: 48px 0; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}

.section-title p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.45);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  font-size: 0.8rem;
}

.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }

.btn-block { width: 100%; }
.btn-sm    { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg    { padding: 18px 36px; font-size: 1rem; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Cards (Glassmorphism) ───────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all var(--transition);
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212,175,55,0.4);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

/* ─── Topbar ──────────────────────────────────────────────────── */
.topbar {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.08), transparent);
  border-bottom: 1px solid var(--border-gold);
  padding: 8px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ─── Site Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
  border-bottom-color: var(--border-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo { flex-shrink: 0; }
.logo img { height: 42px; width: auto; }

/* Main Nav */
.main-nav { flex: 1; }

.main-nav ul {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: var(--gold-subtle);
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Country Selector */
.country-selector { position: relative; }

.country-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.country-btn:hover {
  border-color: var(--gold-border);
  background: var(--gold-subtle);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-tertiary);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 100;
  overflow: hidden;
}

.country-selector.open .country-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.country-option:hover, .country-option.active {
  background: var(--gold-subtle);
  color: var(--gold);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover { color: var(--gold); }
.lang-sep { color: var(--text-muted); font-size: 0.7rem; }

/* Cart Icon */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.cart-icon:hover { color: var(--gold); }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: scale(0);
  transition: transform var(--transition-fast);
}

.cart-badge.show { transform: scale(1); }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero Section ────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 72px - 36px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(212,175,55,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(212,175,55,0.03) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text .subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(212,175,55,0.1));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ─── Product Cards ───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--bg-tertiary);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-category {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-price .current {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.product-price .compare {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price .no-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Category Filter Tabs ────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 10px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.filter-tab:hover, .filter-tab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

/* ─── Cart Drawer ─────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.cart-drawer.open { pointer-events: all; }

.cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
}

.cart-drawer.open .cart-drawer-overlay {
  background: rgba(0,0,0,0.7);
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: var(--glass-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.cart-drawer.open .cart-drawer-panel {
  transform: translateX(0);
}

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

.cart-drawer-header h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.cart-drawer-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.cart-drawer-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-drawer-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px 0;
}

.cart-drawer-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

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

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.cart-item-price { font-size: 0.82rem; color: var(--gold); font-weight: 600; margin-top: 2px; }
.cart-item-qty   { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

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

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.cart-drawer-total strong { color: var(--gold); font-size: 1.1rem; }

/* ─── Form Elements ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236a6a6a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-error {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 5px;
  display: none;
}

.form-error.show { display: block; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Toast Notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  max-width: 320px;
  pointer-events: all;
  animation: slideInRight 0.3s ease forwards;
}

.toast.success { border-color: rgba(39,174,96,0.4); }
.toast.error   { border-color: rgba(231,76,60,0.4); }
.toast-icon    { font-size: 1.1rem; flex-shrink: 0; }

@keyframes slideInRight {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0);   opacity: 1; }
  to   { transform: translateX(30px); opacity: 0; }
}

/* ─── Site Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 0;
  margin-top: var(--section-gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  font-size: 0.875rem;
  margin: 12px 0 20px;
  max-width: 280px;
}

.footer-logo { display: inline-block; margin-bottom: 4px; }
.footer-logo img { height: 36px; width: auto; }

.footer-links h4,
.footer-shipping h4,
.footer-contact h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a,
.footer-shipping li,
.footer-contact p {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--text-primary); }
.footer-shipping li   { list-style: none; }

.footer-badges { margin-top: 16px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--text-primary); }

/* ─── Badge / Pill ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-gold   { background: var(--gold-subtle); color: var(--gold); border: 1px solid var(--gold-border); }
.badge-green  { background: rgba(39,174,96,0.12); color: #27ae60; border: 1px solid rgba(39,174,96,0.25); }
.badge-red    { background: rgba(231,76,60,0.12); color: #e74c3c; border: 1px solid rgba(231,76,60,0.25); }
.badge-blue   { background: rgba(52,152,219,0.12); color: #3498db; border: 1px solid rgba(52,152,219,0.25); }
.badge-muted  { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* ─── Divider ─────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 32px 0;
}

.divider-gold {
  border-top-color: var(--gold-border);
}

/* ─── Scroll-reveal Animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.5s; }

/* ─── Page Banner ─────────────────────────────────────────────── */
.page-banner {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(212,175,55,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 60px;
}

.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ─── Skeleton Loading ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, rgba(255,255,255,0.06) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Quantity Input ──────────────────────────────────────────── */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.qty-btn:hover { background: rgba(255,255,255,0.08); }

.qty-input {
  width: 48px;
  height: 36px;
  background: none;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  outline: none;
}

/* ─── Mobile Nav Drawer ───────────────────────────────────────── */
.mobile-nav-backdrop {
  display: block;          /* 始终渲染，用opacity/pointer-events控制显隐 */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1001;           /* 高于 header (1000) */
  opacity: 0;
  pointer-events: none;    /* 隐藏时不拦截点击 */
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -110vw;          /* 完全移出屏幕右侧 */
  width: 300px;
  max-width: 85vw;
  height: 100%;
  height: 100dvh;         /* 支持动态视窗高度（iOS Safari）*/
  background: var(--bg-tertiary);
  border-left: 1px solid var(--border-gold);
  z-index: 1002;           /* 高于 backdrop (1001) */
  visibility: hidden;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.32s;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch; /* iOS 滚动顺滑 */
}
.mobile-nav-drawer.open {
  right: 0;
  visibility: visible;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.mobile-nav-header img { height: 34px; width: auto; }

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-nav-close:hover { color: var(--text-primary); background: var(--bg-card); }

.mobile-nav-links {
  list-style: none;
  padding: 12px 0;
  flex-shrink: 0;
}
.mobile-nav-links li a {
  display: block;
  padding: 13px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}
.mobile-nav-links li a:hover {
  color: var(--gold);
  background: var(--gold-subtle);
  border-left-color: var(--gold);
}

.mobile-nav-separator {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
  flex-shrink: 0;
}

.mobile-nav-section {
  padding: 16px 20px;
  flex-shrink: 0;
}
.mobile-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mobile-country-btns,
.mobile-lang-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-country-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mobile-country-btn.active,
.mobile-country-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-border);
  color: var(--gold);
}

.mobile-lang-btn {
  display: inline-block;
  padding: 7px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.mobile-lang-btn.active,
.mobile-lang-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-border);
  color: var(--gold);
}

/* ─── Responsive — Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-gap: 56px; }

  .mobile-menu-btn { display: flex; }
  .mobile-nav-backdrop { display: block; }

  /* Hide desktop nav and controls on mobile */
  .main-nav { display: none !important; }
  .header-controls .country-selector,
  .header-controls .lang-switcher { display: none; }

  .header-inner { gap: 8px; }
  .header-controls { margin-left: auto; } /* 推到最右边 */

  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text p { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 280px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .form-grid-2 { grid-template-columns: 1fr; }

  .cart-drawer-panel { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-image img { max-height: 220px; }
}
