/* ============================================================
   Moodhush — Global Styles
   Luxury intimate wellness e-commerce for UAE market
   Palette: deep plum / midnight navy + gold / rose gold accents
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand colors */
  --bg-0: #0a0612;           /* deepest background */
  --bg-1: #120a1f;           /* surface base */
  --bg-2: #1a1028;           /* raised surface */
  --bg-3: #241836;           /* card hover */

  --plum-dark: #2d1b4e;
  --plum: #3d2366;
  --plum-light: #5a3590;

  --navy: #0f172a;
  --navy-2: #1e293b;

  /* Accents */
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --gold-dark: #b8941f;
  --rose-gold: #e8b4b8;
  --rose-gold-dark: #c98895;

  /* Text */
  --text-0: #faf8f5;         /* primary white */
  --text-1: #e8e4dd;         /* secondary */
  --text-2: #a8a0b5;         /* muted */
  --text-3: #7a7289;         /* dim */

  /* Border / line */
  --line: rgba(212, 175, 55, 0.15);
  --line-strong: rgba(212, 175, 55, 0.35);

  /* States */
  --success: #69d69c;
  --error: #f87171;

  /* Gradients */
  --grad-hero: radial-gradient(ellipse at 20% 10%, rgba(90, 53, 144, 0.35), transparent 55%),
               radial-gradient(ellipse at 80% 90%, rgba(212, 175, 55, 0.12), transparent 50%),
               linear-gradient(135deg, #0a0612 0%, #120a1f 50%, #1a1028 100%);

  --grad-card: linear-gradient(145deg, #1a1028 0%, #241836 100%);
  --grad-product: linear-gradient(135deg, #2d1b4e 0%, #3d2366 40%, #d4af37 100%);
  --grad-gold: linear-gradient(135deg, #d4af37 0%, #f0d78c 50%, #d4af37 100%);

  /* Typography */
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-py: 96px;
  --container: 1280px;

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

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur: 0.35s;
  --dur-slow: 0.6s;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--gold-light); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 500; }

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

/* ---------- Utility ---------- */
.gradient-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-transform: none;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--bg-0);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.35);
  color: var(--bg-0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.05);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--gold-light); }

/* ---------- Section base ---------- */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: var(--plum);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--plum-light); }

/* ---------- RTL ---------- */
html[dir="rtl"] body { font-family: var(--font-body); }

html[dir="rtl"] .btn { flex-direction: row-reverse; }

/* ============================================================
   1. Age Verify Overlay
   ============================================================ */
.age-verify {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-0);
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(90, 53, 144, 0.4), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.1), transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s var(--ease);
}

.age-verify-inner {
  max-width: 520px;
  width: 90%;
  text-align: center;
  padding: 64px 48px;
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s var(--ease);
}

.age-verify-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 600;
}

.age-verify h2 { margin-bottom: 12px; font-size: 2rem; }
.age-verify p { color: var(--text-2); margin-bottom: 32px; font-size: 0.95rem; }

.age-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-verify .btn-primary { padding: 16px 32px; font-size: 1rem; }
.age-verify .btn-secondary { padding: 14px 28px; font-size: 0.9rem; }

/* ============================================================
   2. Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--dur) var(--ease);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.navbar-logo span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-menu a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-1);
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.navbar-menu a:hover { color: var(--gold-light); }
.navbar-menu a:hover::after { transform: scaleX(1); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-0);
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.nav-icon-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}

.nav-icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--gold);
  color: var(--bg-0);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-1);
  transition: all var(--dur-fast) var(--ease);
  margin-left: 8px;
}
.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.whatsapp-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 999px;
  color: #25d366;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
  margin-left: 8px;
}
.whatsapp-nav-btn:hover {
  background: #25d366;
  color: #fff;
}
.whatsapp-nav-btn svg { width: 16px; height: 16px; }

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text-0);
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 6, 18, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 32px;
  gap: 8px;
  animation: fadeIn 0.3s var(--ease);
}
.mobile-menu a {
  padding: 16px 0;
  font-size: 1.2rem;
  color: var(--text-0);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
}
.mobile-menu-link-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  font-size: 1.2rem;
  color: var(--text-0);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  background: none;
  cursor: pointer;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-0);
}

/* ============================================================
   3. Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90, 53, 144, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease) both;
  font-family: var(--font-display);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.1;
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero-title em {
  font-style: italic;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 48px;
  color: var(--text-2);
  font-size: 0.9rem;
  animation: fadeInUp 0.8s var(--ease) 0.25s both;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badges svg { color: var(--gold); width: 18px; height: 18px; }

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease) 0.35s both;
}

/* Abstract decorative elements */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.hero-orb-1 {
  top: 15%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: var(--plum-light);
}
.hero-orb-2 {
  bottom: 20%;
  right: 8%;
  width: 400px;
  height: 400px;
  background: var(--gold-dark);
}
.hero-orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: var(--plum);
  opacity: 0.15;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeIn 1s var(--ease) 1s both;
}
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================================
   4. Trust Bar
   ============================================================ */
.trust-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--line);
  color: var(--gold);
}
.trust-icon svg { width: 24px; height: 24px; }

.trust-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-0);
  margin-bottom: 2px;
}
.trust-text p {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ============================================================
   5. Categories
   ============================================================ */
.categories {
  background: var(--bg-0);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px;
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: center;
  overflow: hidden;
}

.category-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  transition: all var(--dur) var(--ease);
  filter: saturate(0.5);
}

.category-card:hover .category-img-bg {
  opacity: 0.4;
  transform: scale(1.05);
  filter: saturate(0.7);
}

.category-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 10, 25, 0.3) 0%, rgba(15, 10, 25, 0.7) 100%);
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-gold);
}

.category-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(90, 53, 144, 0.15));
  color: var(--gold-light);
  transition: all var(--dur) var(--ease);
  position: relative;
  z-index: 1;
}
.category-card:hover .category-icon {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(90, 53, 144, 0.25));
  transform: scale(1.08);
}
.category-icon svg { width: 28px; height: 28px; }

.category-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-0);
  position: relative;
  z-index: 1;
}

/* ============================================================
   6. Products
   ============================================================ */
.products {
  background: var(--bg-1);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  background: var(--grad-product);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

.product-img-tag {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}
}

.product-img-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: all var(--dur) var(--ease);
}
.product-card:hover .product-img-bg {
  opacity: 1;
  transform: scale(1.02);
}
.product-img-overlay {
  display: none;
}
.product-image::before {
  display: none;
}
.product-icon {
  display: none;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  background: var(--gold);
  color: var(--bg-0);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}

.product-badge.new {
  background: var(--rose-gold);
  color: var(--bg-0);
}

.quick-view {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--dur) var(--ease);
}
.product-card:hover .quick-view {
  opacity: 1;
  transform: translateY(0);
}
.quick-view:hover { background: rgba(212, 175, 55, 0.8); }
.quick-view svg { width: 18px; height: 18px; }

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-0);
  line-height: 1.35;
  flex: 1;
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.product-size-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text-2);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
  font-family: var(--font-body);
}

.price-original {
  font-size: 0.9rem;
  color: var(--text-3);
  text-decoration: line-through;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text-0);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.add-to-cart-btn:hover {
  background: var(--grad-gold);
  color: var(--bg-0);
  border-color: var(--gold);
}
.add-to-cart-btn svg { width: 16px; height: 16px; }

/* ============================================================
   7. Cart Drawer
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}
.cart-drawer.open { transform: translateX(0); }

html[dir="rtl"] .cart-drawer {
  left: 0;
  right: auto;
  border-left: none;
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4);
}
html[dir="rtl"] .cart-drawer.open { transform: translateX(0); }

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

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: all var(--dur-fast) var(--ease);
}
.cart-close:hover { background: rgba(255,255,255,0.08); color: var(--text-0); }
.cart-close svg { width: 20px; height: 20px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--grad-product);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-thumb svg { width: 32px; height: 32px; color: rgba(255,255,255,0.8); }

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-name {
  font-size: 0.9rem;
  color: var(--text-0);
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-price {
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-control button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--dur-fast) var(--ease);
  font-size: 0.9rem;
}
.qty-control button:hover { background: rgba(255,255,255,0.05); color: var(--text-0); }
.qty-control span {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-0);
  font-weight: 500;
}

.remove-item {
  color: var(--text-3);
  font-size: 0.8rem;
  transition: color var(--dur-fast) var(--ease);
}
.remove-item:hover { color: var(--error); }

/* Empty cart */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}
.cart-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.3;
  color: var(--text-3);
}
.cart-empty-icon svg { width: 100%; height: 100%; }
.cart-empty p { margin-bottom: 20px; font-size: 0.95rem; }

/* Cart footer */
.cart-footer {
  flex-shrink: 0;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-0);
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.cart-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.cart-footer-actions .btn { width: 100%; }

/* ============================================================
   8. Checkout Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
  backdrop-filter: blur(6px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg-1);
  z-index: 1;
}
.modal-header h2 {
  font-size: 1.6rem;
}
.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: all var(--dur-fast) var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-0); }
.modal-close svg { width: 20px; height: 20px; }

.modal-body { padding: 28px; }

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--dur-fast) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 80px; }

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

.section-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-0);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-label:not(:first-child) { margin-top: 32px; }

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

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.payment-option:hover { border-color: var(--line-strong); }
.payment-option.selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.payment-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-3);
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
  transition: all var(--dur-fast) var(--ease);
}
.payment-option.selected .payment-radio {
  border-color: var(--gold);
}
.payment-option.selected .payment-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.payment-info h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 2px;
}
.payment-info p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}

.order-summary-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 8px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-1);
}
.summary-item.total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-0);
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.place-order-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
}

/* ============================================================
   9. Why Us / Features
   ============================================================ */
.why-us {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(90, 53, 144, 0.15), transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--dur) var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(90, 53, 144, 0.2));
  color: var(--gold-light);
}
.feature-icon svg { width: 32px; height: 32px; }

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ============================================================
   10. How It Works
   ============================================================ */
.how-it-works {
  background: var(--bg-1);
  position: relative;
}
.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--bg-0);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--gold-light);
}
.step-icon svg { width: 100%; height: 100%; }

.step-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* Connector line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(to right, var(--line), var(--gold), var(--line));
  z-index: 1;
}

/* ============================================================
   11. FAQ
   ============================================================ */
.faq {
  background: var(--bg-0);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-1);
  transition: all var(--dur-fast) var(--ease);
}

.faq-item.open {
  border-color: var(--line-strong);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--text-0);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--dur-fast) var(--ease);
}
.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold-light);
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform var(--dur) var(--ease);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-toggle svg { width: 16px; height: 16px; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 24px;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.65;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ============================================================
   12. Footer
   ============================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-0);
}
.footer-logo span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

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

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: all var(--dur-fast) var(--ease);
}
.social-link:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.social-link svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-0);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-2);
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.payment-badge {
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.05em;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ============================================================
   13. WhatsApp Float Button
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 30px;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  color: #fff;
  animation: breathe 2.5s ease-in-out infinite;
  transition: transform var(--dur) var(--ease);
}
.whatsapp-float-btn:hover {
  transform: scale(1.1);
  animation: none;
}
.whatsapp-float-btn svg { width: 30px; height: 30px; }

.whatsapp-float-label {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-0);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.5s var(--ease);
}

/* ============================================================
   14. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }

  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; }

  .navbar-menu,
  .whatsapp-nav-btn { display: none; }

  .mobile-menu-btn { display: flex; }

  .hero { min-height: 90vh; }
  .hero-badges { flex-direction: column; gap: 10px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-info { padding: 14px; }
  .product-name { font-size: 0.95rem; }

  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .category-card { padding: 20px 10px; }
  .category-icon { width: 48px; height: 48px; }
  .category-icon svg { width: 22px; height: 22px; }
  .category-name { font-size: 0.8rem; }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .steps-grid::before { display: none; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .trust-item { flex-direction: column; text-align: center; }
  .trust-text h4 { font-size: 0.9rem; }
  .trust-text p { font-size: 0.78rem; }

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

  .form-row { grid-template-columns: 1fr; gap: 0; }

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

  .whatsapp-float { bottom: 20px; right: 20px; }
  html[dir="rtl"] .whatsapp-float { left: 20px; }
  .whatsapp-float-btn { width: 54px; height: 54px; }
  .whatsapp-float-btn svg { width: 26px; height: 26px; }
  .whatsapp-float-label { display: none; }

  .cart-drawer { width: 100%; }

  .modal { border-radius: var(--radius-lg); }
  .modal-header, .modal-body { padding: 20px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-icon { width: 56px; height: 56px; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .lang-toggle { padding: 6px 10px; font-size: 0.75rem; }
  .navbar-logo { font-size: 1.3rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 18px 8px; gap: 10px; }
  .category-icon { width: 44px; height: 44px; }
  .category-icon svg { width: 20px; height: 20px; }
  .category-name { font-size: 0.78rem; }
  .filter-tab { padding: 6px 12px; font-size: 0.75rem; }
}

/* ============================================================
   All Products Modal
   ============================================================ */
.navbar-link-btn {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-1);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
  font-family: inherit;
}
.navbar-link-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.navbar-link-btn:hover { color: var(--gold-light); }
.navbar-link-btn:hover::after { transform: scaleX(1); }

.all-products-modal {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 85vh;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.all-products-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.all-products-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 4px 0;
}

.all-products-count {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: 0;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text-1);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-0);
  transform: rotate(90deg);
}
.modal-close-btn svg { width: 18px; height: 18px; }


/* Search Bar */
.search-bar-container {
  padding: 0 32px 16px;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.search-input-wrapper:focus-within {
  border-color: var(--gold);
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 0.95rem;
  font-family: inherit;
}
.search-input::placeholder {
  color: var(--text-3);
}
.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.search-clear-btn:hover {
  color: var(--text-1);
  background: var(--bg-2);
}
.all-products-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.all-products-filters::-webkit-scrollbar { display: none; }

.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.filter-tab:hover {
  border-color: var(--line-strong);
  color: var(--text-0);
}
.filter-tab.active {
  background: var(--gold);
  color: var(--bg-0);
  border-color: var(--gold);
}

.all-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 24px 32px 32px;
  overflow-y: auto;
  flex: 1;
}

.all-products-card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.all-products-card .product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.all-products-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-gold);
}

.all-products-empty {
  padding: 60px 32px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
}
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .all-products-modal {
    width: 95%;
    max-height: 90vh;
  }
  .all-products-header {
    padding: 20px 20px 16px;
  }
  .all-products-title {
    font-size: 1.3rem;
  }
  .all-products-filters {
    padding: 12px 20px;
  }
  .all-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    padding: 16px 20px 24px;
  }
}

/* ============================================================
   Admin Panel Styles
   ============================================================ */
.admin-panel {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.3s var(--ease);
}
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.admin-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-0);
  margin: 0;
}
.admin-subtitle {
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 4px 0 0;
}
.admin-actions {
  display: flex;
  gap: 10px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.admin-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-0);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.admin-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.admin-btn.primary {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  font-weight: 600;
}
.admin-btn.primary:hover {
  opacity: 0.9;
  color: var(--bg-dark);
}
.admin-btn.danger {
  color: #ff6b6b;
  border-color: rgba(255,107,107,0.3);
}
.admin-btn.danger:hover {
  background: rgba(255,107,107,0.1);
  border-color: #ff6b6b;
  color: #ff6b6b;
}
.admin-btn.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}
.admin-product-list {
  overflow-y: auto;
  flex: 1;
  padding: 16px 28px 28px;
}
.admin-product-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.admin-product-item:last-child {
  margin-bottom: 0;
}
.admin-product-item:not(:has(.admin-edit-form)) {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-product-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-1);
}
.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.7rem;
  text-align: center;
}
.admin-product-info {
  flex: 1;
  min-width: 0;
}
.admin-product-name {
  font-weight: 600;
  color: var(--text-0);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.admin-product-meta {
  color: var(--text-2);
  font-size: 0.85rem;
}
.admin-original-price {
  text-decoration: line-through;
  opacity: 0.6;
  margin-left: 6px;
}
.admin-product-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.admin-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
.admin-badge.new {
  background: rgba(255,182,193,0.2);
  color: #ffb6c1;
}
.admin-badge.sale {
  background: rgba(212,175,55,0.2);
  color: var(--accent);
}
.admin-product-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.admin-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-edit-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-edit-row.inline {
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.admin-edit-row label {
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
}
.admin-edit-row input[type="text"],
.admin-edit-row input[type="number"] {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--text-0);
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.admin-edit-row input[type="text"]:focus,
.admin-edit-row input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-edit-row.inline label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.admin-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Admin entry button in footer */
.admin-entry-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.5;
  transition: opacity 0.2s;
  font-family: var(--font-body);
}
.admin-entry-btn:hover {
  opacity: 1;
  color: var(--text-2);
}

/* ============================================================
   Product Detail Page
   ============================================================ */
.product-detail-page {
  padding: 100px 0 80px;
  min-height: 60vh;
}

.back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--gold);
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 24px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.back-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Image Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}
.main-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 手机端产品详情页：取消sticky，滚动缩小图片 ===== */
@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-gallery {
    position: relative !important;
    top: auto !important;
  }
  .main-image {
    transition: padding-top 0.12s linear;
  }
  .main-image img {
    object-fit: contain;
  }
}

.sale-badge, .new-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}
.sale-badge {
  background: #e74c3c;
  color: white;
}
.new-badge {
  background: var(--gold);
  color: var(--bg-dark);
}

.thumbnail-list {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.thumbnail {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.thumbnail.active {
  border-color: var(--gold);
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-detail-info {
  padding: 8px 0;
}
.product-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
  line-height: 1.3;
}
.product-detail-category {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.original-price {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.discount-percent {
  background: #e74c3c;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* SKU Selection */
.sku-section {
  margin-bottom: 28px;
}
.sku-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.sku-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sku-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}
.sku-option:hover {
  border-color: var(--gold);
}
.sku-option.selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}
.sku-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.sku-price {
  font-size: 0.8rem;
  color: var(--gold);
}

/* Quantity */
.quantity-section {
  margin-bottom: 28px;
}
.quantity-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}
.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.qty-btn:hover {
  background: var(--bg-hover);
}
.qty-value {
  width: 56px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.btn-add-cart, .btn-buy-now {
  flex: 1;
  min-width: 160px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-add-cart {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-add-cart:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-buy-now {
  background: linear-gradient(135deg, var(--gold), #d4a030);
  color: var(--bg-dark);
}
.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

/* Trust Badges */
.detail-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.trust-icon {
  font-size: 1.2rem;
}

/* ============================================================
   Checkout Page
   ============================================================ */
.checkout-page {
  padding: 100px 0 80px;
  min-height: 60vh;
}
.checkout-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 32px;
  color: var(--text-primary);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

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

/* Shipping Form */
.shipping-form {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-color);
}
.form-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--text-primary);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row:first-child {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}
.error-text {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 6px;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.payment-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.payment-icon {
  font-size: 1.3rem;
}

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-color);
  position: sticky;
  top: 100px;
}
.summary-items {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 8px;
}
.summary-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.summary-item:last-child {
  border-bottom: none;
}
.summary-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-dark);
}
.summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.summary-item-info {
  flex: 1;
  min-width: 0;
}
.summary-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.summary-item-sku {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.summary-item-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.summary-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

.summary-totals {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.total-row.grand-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 0;
}

.place-order-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.place-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.secure-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   Enhanced Admin Panel Styles
   ============================================================ */
.admin-panel.enhanced {
  max-width: 900px;
  max-height: 90vh;
}
.admin-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}
.admin-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.admin-btn.primary {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}
.admin-btn.primary:hover {
  opacity: 0.9;
  color: var(--bg-dark);
}
.admin-btn.danger {
  color: #e74c3c;
  border-color: #e74c3c;
}
.admin-btn.danger:hover {
  background: #e74c3c;
  color: white;
}
.admin-btn.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}
.admin-product-list {
  max-height: calc(90vh - 180px);
  overflow-y: auto;
  padding: 16px 24px;
}
.admin-product-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.admin-product-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-dark);
}
.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.admin-product-info {
  flex: 1;
  min-width: 0;
}
.admin-product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.admin-product-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.admin-stock {
  color: var(--gold);
  font-weight: 500;
}
.admin-original-price {
  text-decoration: line-through;
  opacity: 0.6;
}
.admin-product-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.admin-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-dark);
  color: var(--text-muted);
}
.admin-badge.new {
  background: var(--gold);
  color: var(--bg-dark);
}
.admin-badge.sale {
  background: #e74c3c;
  color: white;
}
.admin-product-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Edit Form Enhanced */
.admin-edit-form.enhanced {
  width: 100%;
}
.edit-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.edit-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.edit-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 16px;
}
.admin-edit-row {
  margin-bottom: 12px;
}
.admin-edit-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.admin-edit-row input,
.admin-edit-row select,
.admin-edit-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}
.admin-edit-row input:focus,
.admin-edit-row select:focus,
.admin-edit-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.admin-edit-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-edit-row.two-col > div {
  margin-bottom: 0;
}
.admin-edit-row.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.admin-edit-row.three-col > div {
  margin-bottom: 0;
}
.admin-edit-row.inline {
  display: flex;
  gap: 24px;
}
.admin-edit-row.inline label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
}
.admin-edit-row.inline input[type="checkbox"] {
  width: auto;
}
.admin-edit-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Image Upload */
.image-upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.image-upload-area .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.image-edit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.image-edit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.image-edit-preview {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-edit-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-edit-preview span {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.image-edit-item input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* SKU Edit */
.sku-edit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.sku-edit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sku-edit-item input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* ============================================================
   Policy Modal — Privacy, Terms, Shipping
   ============================================================ */
.policy-modal {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.3s var(--ease);
}

.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.policy-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-0);
  margin: 0;
}

.policy-content {
  padding: 24px 32px 32px;
  overflow-y: auto;
  flex: 1;
}

.policy-section {
  margin-bottom: 24px;
}

.policy-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 10px 0;
}

.policy-section-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

@media (max-width: 768px) {
  .policy-modal {
    width: 95%;
    max-height: 90vh;
  }
  .policy-header {
    padding: 18px 20px;
  }
  .policy-content {
    padding: 18px 20px 24px;
  }
  .policy-title {
    font-size: 1.25rem;
  }
}

/* ============================================================
   Hero 白底背景适配 — 导航栏与 Hero 深色文字
   ============================================================ */

/* --- 导航栏顶部状态（透明背景 + hero白底图）--- */
.navbar .navbar-logo {
  color: #1a0f2e;
}
.navbar .navbar-menu a {
  color: #2d1b4e;
}
.navbar .navbar-menu a:hover {
  color: #b8941f;
}
.navbar .navbar-menu a::after {
  background: #b8941f;
}
.navbar .nav-icon-btn {
  color: #1a0f2e;
}
.navbar .nav-icon-btn:hover {
  background: rgba(26, 15, 46, 0.08);
  color: #b8941f;
}
.navbar .lang-toggle {
  color: #2d1b4e;
  border-color: rgba(26, 15, 46, 0.2);
}
.navbar .lang-toggle:hover {
  border-color: #b8941f;
  color: #b8941f;
}
.navbar .cart-badge {
  background: #b8941f;
  color: #fff;
}
.navbar .mobile-menu-btn {
  color: #1a0f2e;
}

/* --- 导航栏滚动后（深色半透明背景）恢复浅色 --- */
.navbar.scrolled .navbar-logo {
  color: var(--text-0);
}
.navbar.scrolled .navbar-menu a {
  color: var(--text-1);
}
.navbar.scrolled .navbar-menu a:hover {
  color: var(--gold-light);
}
.navbar.scrolled .nav-icon-btn {
  color: var(--text-0);
}
.navbar.scrolled .nav-icon-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}
.navbar.scrolled .lang-toggle {
  color: var(--text-1);
  border-color: var(--line);
}
.navbar.scrolled .mobile-menu-btn {
  color: var(--text-0);
}

/* --- Hero 区域文字深色 --- */
.hero-eyebrow {
  color: #b8941f;
}
.hero-title {
  color: #1a0f2e;
}
.hero-title em {
  background: linear-gradient(135deg, #b8941f 0%, #d4af37 50%, #b8941f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: #4a3a5c;
}
.hero-badges {
  color: #2d1b4e;
}
.hero-badges svg {
  color: #b8941f;
}
.scroll-hint {
  color: #5a4a6c;
}
.scroll-hint-line {
  background: linear-gradient(to bottom, #b8941f, transparent);
}

/* --- Hero 按钮适配白底 --- */
.hero .btn-secondary {
  border-color: rgba(26, 15, 46, 0.3);
  color: #1a0f2e;
}
.hero .btn-secondary:hover {
  background: rgba(26, 15, 46, 0.06);
  border-color: #b8941f;
  color: #b8941f;
}
.hero .btn-secondary svg {
  color: #1a0f2e;
}
.hero .btn-secondary:hover svg {
  color: #b8941f;
}

/* ============================================================
   Gift Popup — Free lubricant giveaway
   ============================================================ */
.gift-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 240px;
  background: linear-gradient(145deg, #1a1028 0%, #241836 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 20px 18px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.15);
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.gift-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.gift-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #7a7289;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.gift-close:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}
.gift-icon {
  font-size: 32px;
  margin-bottom: 8px;
  animation: giftBounce 2s ease-in-out infinite;
}
@keyframes giftBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.gift-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: #f0d78c;
  margin-bottom: 4px;
}
.gift-desc {
  font-size: 12px;
  color: #a8a0b5;
  margin-bottom: 14px;
}
.gift-claim-btn {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #d4af37 0%, #f0d78c 50%, #d4af37 100%);
  border: none;
  border-radius: 100px;
  color: #1a0f2e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}
.gift-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* ============================================================
   Chat Widget — Live chat with WhatsApp bridge
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 95;
  width: 320px;
  height: 420px;
  background: linear-gradient(180deg, #1a1028 0%, #120a1f 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.1);
  animation: chatSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2d1b4e 0%, #1a1028 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-info {
  flex: 1;
  min-width: 0;
}
.chat-name {
  font-size: 14px;
  font-weight: 600;
  color: #faf8f5;
  margin-bottom: 2px;
}
.chat-status {
  font-size: 11px;
  color: #69d69c;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69d69c;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chat-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #7a7289;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.chat-close:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  animation: msgIn 0.3s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #e8e4dd;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: #1a0f2e;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 100px;
  color: #e8e4dd;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input::placeholder {
  color: #7a7289;
}
.chat-input:focus {
  border-color: rgba(212, 175, 55, 0.5);
}
.chat-send {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  border: none;
  border-radius: 50%;
  color: #1a0f2e;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

/* --- Mobile responsive --- */
@media (max-width: 480px) {
  .gift-popup {
    width: 200px;
    bottom: 16px;
    left: 16px;
    padding: 16px 14px 14px;
  }
  .gift-title { font-size: 15px; }
  .gift-desc { font-size: 11px; }
  .chat-widget {
    width: calc(100vw - 32px);
    height: 60vh;
    max-height: 480px;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
}

/* ============================================================
   Tawk.to widget — force bottom-left to avoid WhatsApp overlap
   ============================================================ */
.tawk-min-container,
iframe[title*="tawk"],
div[class*="tawk"] {
  left: 24px !important;
  right: auto !important;
}
@media (max-width: 480px) {
  .tawk-min-container {
    left: 16px !important;
    right: auto !important;
  }
}

/* ============================================================
   Tawk.to widget — force size & position (iframe-level)
   ============================================================ */
/* 浮动按钮位置 */
.tawk-min-container,
div[class*="tawk"][class*="min"],
iframe[title*="tawk"][class*="min"] {
  right: 20px !important;
  left: auto !important;
  bottom: 20px !important;
  z-index: 90 !important;
}
/* 聊天窗口外部容器 — 强制尺寸 */
.tawk-chat-container,
div[class*="tawk"][class*="chat"],
div[class*="tawk"][class*="window"] {
  right: 20px !important;
  left: auto !important;
  bottom: 20px !important;
  width: 340px !important;
  max-width: 340px !important;
  height: 440px !important;
  max-height: 440px !important;
  z-index: 95 !important;
}
/* 聊天窗口iframe — 强制尺寸 */
.tawk-chat-container iframe,
div[class*="tawk"] iframe[title*="Tawk"],
div[class*="tawk"] iframe[name*="tawk"],
iframe[title*="Tawk To"],
iframe[title*="tawk"] {
  width: 340px !important;
  height: 440px !important;
  max-width: 340px !important;
  max-height: 440px !important;
}
/* 手机端适配 */
@media (max-width: 480px) {
  .tawk-min-container,
  div[class*="tawk"][class*="min"] {
    right: 12px !important;
    bottom: 12px !important;
  }
  .tawk-chat-container,
  div[class*="tawk"][class*="chat"],
  div[class*="tawk"][class*="window"] {
    right: 12px !important;
    left: 12px !important;
    bottom: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    height: 60vh !important;
    max-height: 60vh !important;
  }
  .tawk-chat-container iframe,
  div[class*="tawk"] iframe[title*="Tawk"],
  iframe[title*="tawk"] {
    width: 100% !important;
    height: 60vh !important;
    max-width: none !important;
    max-height: 60vh !important;
  }
}


/* ============================================================
   Hero — Order via WhatsApp button gold style + eyebrow stroke
   ============================================================ */
.hero .btn-secondary {
  background: linear-gradient(135deg, #f0d78c 0%, #d4af37 50%, #b8941f 100%);
  color: #1a0f2e;
  border: 1px solid transparent;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}
.hero .btn-secondary:hover {
  background: linear-gradient(135deg, #f5e3a0 0%, #e0bc4a 50%, #c9a528 100%);
  color: #1a0f2e;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.45);
}
.hero .btn-secondary svg {
  color: #1a0f2e;
}

/* ============================================================
   Custom Floating Chat Button (replaces Tawk default widget)
   ============================================================ */
.custom-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #f0d78c);
  color: #0a0612;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  padding: 0;
}
.custom-chat-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.55);
}
.custom-chat-btn:active {
  transform: translateY(0) scale(0.98);
}
.custom-chat-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .custom-chat-btn {
    width: 50px;
    height: 50px;
    bottom: 12px;
    right: 12px;
  }
  .custom-chat-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ============================================================
   Contact Us Tag — next to gold chat button (bottom right)
   ============================================================ */
.contact-us-tag {
  position: fixed;
  bottom: 30px;
  right: 88px;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px 9px 14px;
  background: rgba(26, 16, 40, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  color: #d4af37;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  z-index: 9997;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  white-space: nowrap;
  line-height: 1;
}
.contact-us-tag:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: #d4af37;
  color: #f0d78c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.18);
}
.contact-us-tag:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .contact-us-tag {
    bottom: 22px;
    right: 74px;
    padding: 7px 12px 7px 10px;
    font-size: 0.72rem;
  }
}
