/* ═══════════════════════════════════════════════════════
   Atlas Furniture — مفروشات أطلس
   Luxury Arabic RTL Design
   ═══════════════════════════════════════════════════════ */

:root {
  --atlas-dark: var(--t-dark, #241B16);
  --atlas-charcoal: var(--t-charcoal, #3A2B22);
  --atlas-gold: var(--brand, #C8102E);
  --atlas-gold-light: var(--brand-light, #E8455A);
  --atlas-cream: var(--t-cream, #FAF5EF);
  --atlas-warm-gray: var(--t-warm-gray, #F0E9E0);
  --atlas-text: var(--t-text, #241B16);
  --atlas-text-light: var(--t-text-light, #6E5F52);
  --atlas-rose: #B76E79;
  --atlas-green: #5B7B6F;
  --atlas-white: #FFFFFF;
  --whatsapp: #25D366;
  --font-display: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.1);
  --gold-gradient: linear-gradient(135deg, var(--atlas-gold), var(--atlas-gold-light));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--atlas-cream);
  color: var(--atlas-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--atlas-cream); }
::-webkit-scrollbar-thumb { background: var(--atlas-gold); border-radius: 3px; }

::selection { background: var(--atlas-gold); color: #fff; }

a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─────────────── Section headers ─────────────── */
.section-eyebrow {
  font-size: 13px;
  color: var(--atlas-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--atlas-text);
}
.section-head { text-align: center; margin-bottom: 56px; }

/* ─────────────── Navbar ─────────────── */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: transparent;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled,
.navbar.solid {
  background: rgba(var(--t-cream-rgb, 250, 245, 239), 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(var(--brand-rgb, 200, 16, 46), 0.15);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  color: var(--atlas-text);
  line-height: 1.2;
}
.brand-sub {
  font-size: 10px;
  color: var(--atlas-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: rgba(36, 27, 22, 0.72);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--atlas-gold); }

.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 18px;
  background: rgba(var(--t-cream-rgb, 250, 245, 239), 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--brand-rgb, 200, 16, 46), 0.14);
  border-radius: 999px;
  color: var(--atlas-text);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cart-btn:hover {
  color: var(--atlas-gold);
  border-color: rgba(var(--brand-rgb, 200, 16, 46), 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.cart-count {
  position: absolute;
  top: -5px; inset-inline-end: -5px;
  background: var(--atlas-gold);
  color: #fff;
  font-size: 11px; font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--atlas-cream);
}
.cart-count.hidden { display: none; }

.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(var(--t-cream-rgb, 250, 245, 239), 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--brand-rgb, 200, 16, 46), 0.14);
  border-radius: 999px;
  color: var(--atlas-text);
  font-size: 19px;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
}
.menu-btn:hover { color: var(--atlas-gold); border-color: rgba(var(--brand-rgb, 200, 16, 46), 0.4); }
.mobile-menu {
  display: none;
  background: rgba(var(--t-cream-rgb, 250, 245, 239), 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(var(--brand-rgb, 200, 16, 46), 0.1);
  padding: 12px 24px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: rgba(36, 27, 22, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ─────────────── Hero ─────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(165deg, #FDFAF6 0%, var(--atlas-cream) 45%, #F1E7DB 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; pointer-events: none; }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slides img.active { opacity: 1; }
.hero.has-slides .hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(var(--t-cream-rgb, 250, 245, 239), 0.97) 22%, rgba(var(--t-cream-rgb, 250, 245, 239), 0.72) 52%, rgba(var(--t-cream-rgb, 250, 245, 239), 0.18) 100%);
}
@media (max-width: 768px) {
  .hero.has-slides .hero-slides::after {
    background: linear-gradient(to top, rgba(var(--t-cream-rgb, 250, 245, 239), 0.97) 30%, rgba(var(--t-cream-rgb, 250, 245, 239), 0.72) 65%, rgba(var(--t-cream-rgb, 250, 245, 239), 0.3) 100%);
  }
}
[data-theme="dark"] .hero.has-slides .hero-slides::after {
  background: linear-gradient(to left, rgba(20, 16, 13, 0.95) 22%, rgba(20, 16, 13, 0.7) 52%, rgba(20, 16, 13, 0.25) 100%);
}

.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  top: 10%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--brand-rgb, 200, 16, 46), 0.08) 0%, transparent 70%);
}
.hero-glow-2 {
  bottom: -10%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(138, 90, 59, 0.07) 0%, transparent 70%);
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-inner { max-width: 700px; }
.hero-eyebrow {
  font-size: 13px; font-weight: 500;
  color: var(--atlas-gold);
  letter-spacing: 3px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--atlas-gold);
  display: inline-block;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--atlas-text);
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-word {
  display: block;
  background: linear-gradient(135deg, var(--atlas-gold), var(--atlas-gold-light), var(--atlas-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 32px;
  min-height: 1.2em;
  transition: opacity 0.4s ease;
}
.hero-word.fading { opacity: 0; }
.hero p {
  font-size: 18px;
  color: var(--atlas-text-light);
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  border: none;
  border-radius: 14px;
  padding: 16px 40px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-gold {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(var(--brand-rgb, 200, 16, 46), 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--brand-rgb, 200, 16, 46), 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--atlas-gold);
  border: 1px solid rgba(var(--brand-rgb, 200, 16, 46), 0.3);
}
.btn-outline:hover { background: rgba(var(--brand-rgb, 200, 16, 46), 0.08); border-color: var(--atlas-gold); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4); }

.hero-stats { display: flex; gap: 48px; margin-top: 64px; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: var(--atlas-gold);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--atlas-text-light);
  margin-top: 4px;
}
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--atlas-cream), transparent);
  pointer-events: none;
}

/* Geometric pattern overlay */
.pattern-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23C8A96E' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='4' fill='none' stroke='%23C8A96E' stroke-width='0.3'/%3E%3C/svg%3E");
}

/* ─────────────── Categories ─────────────── */
.categories-section { background: var(--atlas-cream); padding: 80px 24px; position: relative; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.category-card {
  border-radius: var(--radius);
  padding: 32px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.category-card .cat-icon-bg {
  position: absolute;
  top: -20px; left: -20px;
  font-size: 100px;
  opacity: 0.1;
  pointer-events: none;
}
.category-card .cat-icon { font-size: 40px; margin-bottom: 8px; }
.category-card .cat-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
}
.category-card .cat-name-en {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.category-card .cat-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.category-card .cat-arrow { font-size: 18px; transition: transform 0.2s; }
.category-card:hover .cat-arrow { transform: translateX(-4px); }

/* ─────────────── Features banner ─────────────── */
.features-section {
  background: linear-gradient(135deg, var(--atlas-dark) 0%, var(--atlas-charcoal) 100%);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}
.feature-item { text-align: center; }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--atlas-white);
}
.feature-desc { font-size: 14px; color: rgba(255, 255, 255, 0.4); margin-top: 4px; }

/* ─────────────── Products ─────────────── */
.products-section { background: var(--atlas-warm-gray); padding: 80px 24px; }

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-chip {
  font-size: 14px;
  background: transparent;
  color: var(--atlas-text-light);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--atlas-gold); color: var(--atlas-gold); }
.filter-chip.active {
  background: var(--atlas-charcoal);
  color: var(--atlas-gold);
  border-color: var(--atlas-charcoal);
  font-weight: 700;
}

.sort-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  align-items: center;
}
.sort-bar select, .sort-bar input[type="search"] {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--atlas-text);
  outline: none;
}
.sort-bar select:focus, .sort-bar input:focus { border-color: var(--atlas-gold); }
.sort-bar input[type="search"] { min-width: 220px; }

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

.product-card {
  background: var(--atlas-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  position: relative;
  display: block;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-badge {
  position: absolute;
  top: 16px; inset-inline-start: 16px;
  z-index: 2;
  font-size: 12px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: #fff;
}
.product-badge.badge-new { background: var(--atlas-gold); color: #fff; }
.product-badge.badge-sale { background: var(--atlas-rose); color: #fff; }
.product-badge.badge-exclusive { background: var(--atlas-charcoal); color: #fff; }

.product-media {
  height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3A2B22 0%, #3C3F4F 50%, #2B2019 100%);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media .placeholder-logo {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 300;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 4px;
}
.product-media.light { background: linear-gradient(135deg, #E8E4DD 0%, #F5F2EB 50%, #D5D0C8 100%); }
.product-media.light .placeholder-logo { color: rgba(0, 0, 0, 0.08); }
.product-media.wood { background: linear-gradient(135deg, #3A2820 0%, #5A4840 50%, #2A1810 100%); }
.product-media.sand { background: linear-gradient(135deg, #F5F0E8 0%, #E8E0D5 50%, #D5CCC0 100%); }
.product-media.sand .placeholder-logo { color: rgba(0, 0, 0, 0.08); }

.product-hover-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}
.product-card:hover .product-hover-bar { transform: translateY(0); }
.add-cart-mini {
  font-size: 13px; font-weight: 700;
  background: var(--atlas-gold);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
}
.add-cart-mini:disabled { background: #999; cursor: not-allowed; }
.view-details { font-size: 12px; color: rgba(255, 255, 255, 0.7); }

.product-info { padding: 20px 24px 24px; }
.product-category { font-size: 12px; color: var(--atlas-text-light); margin-bottom: 6px; }
.product-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--atlas-text);
  margin-bottom: 12px;
}
.product-colors { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; min-height: 18px; }
.color-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.product-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.product-price {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--atlas-gold);
}
.product-currency { font-size: 13px; color: var(--atlas-text-light); margin-inline-start: 4px; }
.product-old-price {
  font-size: 14px;
  color: #ccc;
  text-decoration: line-through;
  margin-inline-start: 8px;
}
.stock-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.stock-pill.in { color: var(--atlas-green); background: rgba(91, 123, 111, 0.1); }
.stock-pill.out { color: var(--atlas-rose); background: rgba(183, 110, 121, 0.1); }

.load-more-wrap { text-align: center; margin-top: 48px; }
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--atlas-text-light);
  grid-column: 1 / -1;
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }

/* Skeleton loading */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--atlas-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.skeleton-card .sk-img, .skeleton-card .sk-line {
  background: linear-gradient(90deg, #f0ede6 25%, #faf7f2 50%, #f0ede6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-card .sk-img { height: 240px; }
.skeleton-card .sk-body { padding: 20px 24px 24px; }
.skeleton-card .sk-line { height: 14px; border-radius: 6px; margin-bottom: 12px; }
.skeleton-card .sk-line.w60 { width: 60%; }
.skeleton-card .sk-line.w40 { width: 40%; }

/* ─────────────── CTA ─────────────── */
.cta-section {
  background: var(--atlas-cream);
  padding: 100px 24px;
  text-align: center;
}
.cta-section .inner { max-width: 600px; margin: 0 auto; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px;
  color: var(--atlas-text-light);
  line-height: 1.9;
  margin-bottom: 40px;
}

/* ─────────────── Footer ─────────────── */
.footer {
  background: var(--atlas-dark);
  padding: 64px 24px 32px;
  border-top: 1px solid rgba(var(--brand-rgb, 200, 16, 46), 0.1);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}
.footer-about p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  margin-top: 16px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--atlas-gold);
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--atlas-gold); }
.footer-contact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 2.2;
}
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}
.footer-social a:hover { color: var(--atlas-gold); border-color: rgba(var(--brand-rgb, 200, 16, 46), 0.4); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.25); }
.footer-powered { font-size: 12px; color: rgba(255, 255, 255, 0.15); }
.footer-powered a { color: rgba(255, 255, 255, 0.25); }

/* ─────────────── Cart Drawer (slides from right in RTL) ─────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: var(--atlas-white);
  z-index: 201;
  transform: translateX(110%);
  transition: transform 0.35s ease;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
}
.drawer-close {
  background: none; border: none;
  font-size: 24px;
  color: var(--atlas-text-light);
  line-height: 1;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-empty { text-align: center; padding-top: 60px; color: var(--atlas-text-light); }
.drawer-empty .icon { font-size: 48px; margin-bottom: 16px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--atlas-charcoal), #4A3626);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
}
.cart-item-price { font-size: 13px; color: var(--atlas-text-light); margin-top: 4px; }
.cart-item-variant { font-size: 12px; color: var(--atlas-text-light); margin-top: 2px; }
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 2px 8px;
}
.qty-controls button {
  background: none; border: none;
  font-size: 16px; font-weight: 700;
  color: var(--atlas-gold);
  width: 24px; height: 26px;
}
.qty-controls span { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none; border: none;
  font-size: 16px;
  color: var(--atlas-rose);
  align-self: flex-start;
  padding: 4px;
}
.drawer-footer { padding: 24px; border-top: 1px solid #eee; }
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.drawer-total .label { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.drawer-total .value {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--atlas-gold);
}
.drawer-footer .btn { width: 100%; margin-bottom: 10px; }
.drawer-footer .btn:last-child { margin-bottom: 0; }

/* ─────────────── Toast ─────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 50%;
  transform: translate(50%, 100px);
  background: var(--atlas-charcoal);
  color: #fff;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid rgba(var(--brand-rgb, 200, 16, 46), 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 300;
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translate(50%, 0); opacity: 1; }
.toast.error { border-color: var(--atlas-rose); }

/* ─────────────── Page hero (inner pages) ─────────────── */
.page-hero {
  background: linear-gradient(165deg, var(--atlas-dark) 0%, var(--atlas-charcoal) 100%);
  padding: 130px 24px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--atlas-white);
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--atlas-gold); }

/* ─────────────── Product detail page ─────────────── */
.product-detail-section { padding: 56px 24px 80px; background: var(--atlas-cream); }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #3A2B22, #2B2019);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .placeholder-logo {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 300;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 6px;
}
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.gallery-thumb {
  width: 76px; height: 76px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: var(--atlas-warm-gray);
}
.gallery-thumb.active { border-color: var(--atlas-gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-category { font-size: 13px; color: var(--atlas-gold); letter-spacing: 2px; margin-bottom: 8px; }
.pd-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}
.pd-title-en { font-size: 14px; color: var(--atlas-text-light); letter-spacing: 1px; margin-bottom: 20px; }
.pd-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.pd-price {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 800;
  color: var(--atlas-gold);
}
.pd-old-price { font-size: 18px; color: #bbb; text-decoration: line-through; }
.pd-save {
  font-size: 13px; font-weight: 700;
  color: var(--atlas-rose);
  background: rgba(183, 110, 121, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
}
.pd-stock { margin-bottom: 24px; }
.pd-desc {
  font-size: 15px;
  color: var(--atlas-text-light);
  line-height: 2;
  margin-bottom: 28px;
  border-top: 1px solid #eee5d5;
  padding-top: 24px;
}
.pd-option-label {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  margin-bottom: 10px;
}
.pd-colors { display: flex; gap: 10px; margin-bottom: 24px; }
.pd-color {
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(0, 0, 0, 0.08);
  transition: all 0.15s;
  position: relative;
}
.pd-color.active { border-color: var(--atlas-gold); transform: scale(1.12); box-shadow: 0 0 0 3px rgba(var(--brand-rgb, 200, 16, 46),.25); }
.pd-sizes { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.pd-size {
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.pd-size.active {
  background: var(--atlas-charcoal);
  color: var(--atlas-gold);
  border-color: var(--atlas-charcoal);
  font-weight: 700;
}
.pd-actions { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 28px; }
.pd-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.pd-qty button {
  background: none; border: none;
  font-size: 20px; font-weight: 700;
  color: var(--atlas-gold);
  width: 46px; height: 100%;
  min-height: 54px;
}
.pd-qty span {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  min-width: 40px;
  text-align: center;
}
.pd-actions .btn { flex: 1; min-width: 200px; }
.pd-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
}
.pd-meta-item { font-size: 13px; color: var(--atlas-text-light); display: flex; align-items: center; gap: 8px; }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.specs-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f0ede6;
}
.specs-table td:first-child { font-weight: 700; color: var(--atlas-text); width: 35%; }
.specs-table td:last-child { color: var(--atlas-text-light); }

.related-section { padding: 0 24px 80px; background: var(--atlas-cream); }
.related-section .section-head { margin-bottom: 36px; }

/* ─────────────── Cart page / checkout ─────────────── */
.cart-page-section { padding: 56px 24px 80px; background: var(--atlas-cream); min-height: 50vh; }
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.cart-panel, .summary-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0ede6;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding: 8px 0;
  color: var(--atlas-text-light);
}
.summary-row.total {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800;
  color: var(--atlas-text);
  border-top: 1px solid #f0ede6;
  margin-top: 12px;
  padding-top: 16px;
}
.summary-row.total .value { color: var(--atlas-gold); }
.free-delivery-note {
  font-size: 13px;
  color: var(--atlas-green);
  background: rgba(91, 123, 111, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 12px 0;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px; font-weight: 700;
  margin-bottom: 8px;
}
.form-group label .req { color: var(--atlas-rose); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  background: var(--atlas-cream);
  color: var(--atlas-text);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--atlas-gold);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.payment-options { display: grid; gap: 10px; margin-bottom: 20px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}
.payment-option:has(input:checked) {
  border-color: var(--atlas-gold);
  background: rgba(var(--brand-rgb, 200, 16, 46), 0.06);
}
.payment-option input { accent-color: var(--atlas-gold); }
.payment-option .pay-title { font-weight: 700; }
.payment-option .pay-desc { font-size: 12px; color: var(--atlas-text-light); }

.order-success {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.order-success .icon { font-size: 64px; margin-bottom: 20px; }
.order-success h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 8px; }
.order-success .order-num {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--atlas-gold);
  background: rgba(var(--brand-rgb, 200, 16, 46), 0.08);
  border: 1px dashed rgba(var(--brand-rgb, 200, 16, 46), 0.5);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 20px 0;
}
.order-success p { color: var(--atlas-text-light); line-height: 1.9; margin-bottom: 24px; }

/* ─────────────── WhatsApp float ─────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links a:not(.cart-btn) { display: none; }
  .nav-links { gap: 12px; }
  .menu-btn { display: block; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .section-title { font-size: 28px; }
  .cta-section h2 { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero p { font-size: 16px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ─────────────── Navbar action chips (lang / theme / account) ─────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: rgba(var(--t-cream-rgb, 250, 245, 239), 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--brand-rgb, 200, 16, 46), 0.14);
  border-radius: 999px;
  color: var(--atlas-text);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.icon-btn:hover {
  color: var(--atlas-gold);
  border-color: rgba(var(--brand-rgb, 200, 16, 46), 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
a.icon-btn { text-decoration: none; cursor: pointer; }

/* Kill the browser's default focus box; show a clean brand ring for keyboard users only */
.icon-btn:focus, .cart-btn:focus, .menu-btn:focus { outline: none; }
.icon-btn:focus-visible, .cart-btn:focus-visible, .menu-btn:focus-visible {
  outline: 2px solid rgba(var(--brand-rgb, 200, 16, 46), 0.55);
  outline-offset: 2px;
}

/* Dark mode: darker glass so the chips melt into photos */
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .cart-btn,
[data-theme="dark"] .menu-btn {
  background: rgba(20, 16, 13, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--atlas-text);
  box-shadow: none;
}
[data-theme="dark"] .icon-btn:hover,
[data-theme="dark"] .cart-btn:hover,
[data-theme="dark"] .menu-btn:hover {
  color: var(--atlas-gold-light);
  border-color: rgba(var(--brand-rgb, 200, 16, 46), 0.5);
}

/* ─────────────── Dark mode ─────────────── */
:root[data-theme="dark"] {
  --atlas-cream: #171110;
  --atlas-warm-gray: #14100D;
  --atlas-text: #EDE9E0;
  --atlas-text-light: #9A968C;
}
[data-theme="dark"] body { background: var(--atlas-cream); color: var(--atlas-text); }

[data-theme="dark"] .product-card,
[data-theme="dark"] .skeleton-card { background: #2B2019; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
[data-theme="dark"] .product-card:hover { box-shadow: 0 20px 48px rgba(0,0,0,.5); }
[data-theme="dark"] .product-name { color: var(--atlas-text); }
[data-theme="dark"] .product-old-price { color: #6B5B4E; }
[data-theme="dark"] .color-dot { border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .skeleton-card .sk-img,
[data-theme="dark"] .skeleton-card .sk-line {
  background: linear-gradient(90deg, #2B211B 25%, #33271F 50%, #2B211B 75%);
  background-size: 200% 100%;
}

[data-theme="dark"] .filter-chip { border-color: #37291F; color: var(--atlas-text-light); }
[data-theme="dark"] .filter-chip.active { background: var(--atlas-gold); color: #fff; border-color: var(--atlas-gold); }
[data-theme="dark"] .sort-bar select,
[data-theme="dark"] .sort-bar input[type="search"] { background: #2B2019; border-color: #37291F; color: var(--atlas-text); }

[data-theme="dark"] .cart-drawer { background: #1F1712; }
[data-theme="dark"] .drawer-header,
[data-theme="dark"] .drawer-footer { border-color: #2E231C; }
[data-theme="dark"] .drawer-header h3 { color: var(--atlas-text); }
[data-theme="dark"] .cart-item { border-color: #2B211B; }
[data-theme="dark"] .cart-item-name,
[data-theme="dark"] .drawer-total .label { color: var(--atlas-text); }
[data-theme="dark"] .qty-controls { border-color: #37291F; }

[data-theme="dark"] .cart-panel,
[data-theme="dark"] .summary-panel,
[data-theme="dark"] .order-success,
[data-theme="dark"] .pd-meta { background: #2B2019; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
[data-theme="dark"] .panel-title,
[data-theme="dark"] .summary-row.total { border-color: #2E231C; color: var(--atlas-text); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select { background: #171110; border-color: #37291F; color: var(--atlas-text); }
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus { background: #1F1712; border-color: var(--atlas-gold); }
[data-theme="dark"] .payment-option { border-color: #37291F; }
[data-theme="dark"] .payment-option:has(input:checked) { border-color: var(--atlas-gold); background: rgba(var(--brand-rgb, 200, 16, 46),.08); }

[data-theme="dark"] .pd-desc { border-color: #2E231C; }
[data-theme="dark"] .pd-size { background: #2B2019; border-color: #37291F; color: var(--atlas-text); }
[data-theme="dark"] .pd-size.active { background: var(--atlas-gold); color: #fff; border-color: var(--atlas-gold); }
[data-theme="dark"] .pd-qty { background: #2B2019; border-color: #37291F; }
[data-theme="dark"] .pd-qty span { color: var(--atlas-text); }
[data-theme="dark"] .specs-table td { border-color: #2B211B; }
[data-theme="dark"] .gallery-thumb { background: #2B2019; }

[data-theme="dark"] .stock-pill.in { background: rgba(91,123,111,.2); color: #8fbca8; }
[data-theme="dark"] .stock-pill.out { background: rgba(183,110,121,.2); color: #d99aa4; }
[data-theme="dark"] .free-delivery-note { background: rgba(91,123,111,.15); color: #8fbca8; }
[data-theme="dark"] .order-success .order-num { background: rgba(var(--brand-rgb, 200, 16, 46),.1); }

[data-theme="dark"] ::-webkit-scrollbar-track { background: #171110; }
[data-theme="dark"] .hero-fade { background: linear-gradient(to top, var(--atlas-cream), transparent); }
[data-theme="dark"] .btn-outline.on-light { color: var(--atlas-text); border-color: #37291F; }

/* Dark-mode overrides for the light (cream) hero & navbar */
[data-theme="dark"] .hero { background: linear-gradient(165deg, #14100D 0%, #1B1512 45%, #241B16 100%); }
[data-theme="dark"] .navbar.scrolled,
[data-theme="dark"] .navbar.solid { background: rgba(20, 16, 13, 0.92); }
[data-theme="dark"] .nav-links a { color: rgba(237, 233, 224, 0.72); }
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.active { color: var(--atlas-gold-light); }
[data-theme="dark"] .mobile-menu { background: rgba(20, 16, 13, 0.98); }
[data-theme="dark"] .mobile-menu a { color: rgba(237, 233, 224, 0.85); border-bottom-color: rgba(255, 255, 255, 0.06); }

/* ─────────────── Reviews (Google badge + animated marquee) ─────────────── */
.reviews-section { background: var(--atlas-warm-gray); padding: 80px 0; overflow: hidden; }

.reviews-badge { display: flex; justify-content: center; }
.rbadge {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  background: var(--atlas-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 16px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.rbadge-g { display: flex; align-items: center; }
.rbadge-g svg { width: 26px; height: 26px; }
.rbadge-main { display: flex; align-items: center; gap: 10px; }
.rbadge-score { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--atlas-text); line-height: 1; }
.rbadge-stars { display: flex; gap: 1px; }
.rbadge-count { font-family: var(--font-body); font-size: 14px; color: var(--atlas-text-light); }
.rbadge-link {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  color: var(--atlas-gold);
  border: 1px solid rgba(var(--brand-rgb, 200, 16, 46), 0.3);
  border-radius: 999px; padding: 7px 16px; transition: all 0.2s;
}
.rbadge-link:hover { background: rgba(var(--brand-rgb, 200, 16, 46), 0.08); border-color: var(--atlas-gold); }

.star { color: #E2C24B; font-size: 15px; line-height: 1; }
.star:not(.on) { color: rgba(0, 0, 0, 0.15); }

.reviews-marquee {
  margin-top: 34px;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  direction: ltr;
  animation: reviews-scroll 60s linear infinite;
}
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  flex: 0 0 auto;
  width: 320px;
  background: var(--atlas-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.review-who { flex: 1; min-width: 0; }
.review-name {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--atlas-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-stars { display: flex; gap: 1px; margin-top: 3px; }
.review-src { flex-shrink: 0; display: flex; align-items: center; opacity: 0.9; }
.review-text {
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.9; color: var(--atlas-text-light);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 768px) {
  .review-card { width: 270px; }
  .reviews-section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .reviews-marquee { -webkit-mask-image: none; mask-image: none; padding: 0 24px; }
}

/* Dark mode */
[data-theme="dark"] .rbadge,
[data-theme="dark"] .review-card { background: #2B2019; border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 2px 12px rgba(0,0,0,.3); }
[data-theme="dark"] .star:not(.on) { color: rgba(255, 255, 255, 0.18); }

/* Reviews: second opposing row */
.reviews-track + .reviews-track { margin-top: 20px; }
.reviews-track--rev { animation-name: reviews-scroll-rev; }
@keyframes reviews-scroll-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .reviews-track--rev { display: none !important; } }
