/* ============================================
   AURA ACCESSORIES — Design System
   Premium E-Commerce | Egypt
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --gold: #D4AF37;
  --gold-light: #E8D48B;
  --gold-dark: #B8960C;
  --black: #0A0A0A;
  --black-light: #1A1A1A;
  --black-medium: #2A2A2A;
  --cream: #F5F0E8;
  --cream-dark: #E8DFD0;
  --rose-gold: #B76E79;
  --white: #FAFAFA;
  --white-pure: #FFFFFF;

  /* Neutral Palette */
  --gray-100: #F7F7F7;
  --gray-200: #E5E5E5;
  --gray-300: #CCCCCC;
  --gray-400: #999999;
  --gray-500: #666666;
  --gray-600: #444444;
  --gray-700: #333333;
  --gray-800: #222222;

  /* Accent Colors */
  --success: #2ECC71;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;

  /* Theme (Dark Mode Default) */
  --bg-primary: var(--black);
  --bg-secondary: var(--black-light);
  --bg-tertiary: var(--black-medium);
  --bg-card: rgba(26, 26, 26, 0.8);
  --bg-glass: rgba(26, 26, 26, 0.6);
  --text-primary: var(--cream);
  --text-secondary: var(--gray-400);
  --text-accent: var(--gold);
  --border-color: rgba(212, 175, 55, 0.2);
  --border-hover: rgba(212, 175, 55, 0.5);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --overlay: rgba(10, 10, 10, 0.7);

  /* Specific Components */
  --hero-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #0d0d0d 60%, #0a0a0a 100%);
  --hero-circle-border: rgba(212, 175, 55, 0.08);
  --hero-shimmer: rgba(212, 175, 55, 0.03);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Cairo', sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-max: 999;

  /* Container */
  --container-max: 1400px;
  --container-padding: var(--space-6);
}

/* ---------- Light Mode ---------- */
[data-theme="light"] {
  --bg-primary: var(--cream);
  --bg-secondary: var(--white);
  --bg-tertiary: var(--cream-dark);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-primary: var(--black);
  --text-secondary: var(--gray-600);
  --text-accent: var(--gold-dark);
  --border-color: rgba(212, 175, 55, 0.3);
  --border-hover: rgba(212, 175, 55, 0.6);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --overlay: rgba(245, 240, 232, 0.8);

  /* Specific Components */
  --hero-bg: linear-gradient(135deg, var(--cream) 0%, var(--white) 30%, var(--cream-dark) 60%, var(--cream) 100%);
  --hero-circle-border: rgba(212, 175, 55, 0.12);
  --hero-shimmer: rgba(212, 175, 55, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Added to prevent horizontal scroll */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden; /* Added to prevent horizontal scroll */
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border-color);
  outline: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--gold);
  color: var(--black);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1600px;
}

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

h1 {
  font-size: var(--text-6xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

.text-gold {
  color: var(--gold);
}

.text-rose {
  color: var(--rose-gold);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
  display: block;
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

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

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.btn-ghost {
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--gold);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px var(--shadow-color);
  transform: translateY(-4px);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  padding: var(--space-5) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-3) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gold);
  /* Retained from original, as it was likely an omission in the instruction */
}

.nav-logo {
  height: 110px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  margin-left: auto;
  margin-right: var(--space-12);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-base);
}

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

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

.nav-icons {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  color: var(--text-primary);
}

.nav-icon-btn:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.nav-icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: var(--z-max);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu - Premium Redesign */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
  width: 100%;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
  color: var(--gold);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  flex: 1;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  text-decoration: none;
  transition: all var(--transition-base);
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  color: var(--gold);
  padding-left: var(--space-6);
  background: rgba(212, 175, 55, 0.05);
}

.mobile-menu-item svg {
  color: var(--gold);
  opacity: 0.8;
  transition: transform var(--transition-base);
}

.mobile-menu-item:hover svg {
  transform: scale(1.1);
  opacity: 1;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.mobile-menu-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-4);
}

.mobile-menu-socials a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: color var(--transition-base), transform var(--transition-base);
}

.mobile-menu-socials a:hover {
  color: var(--gold);
  transform: translateY(-3px);
}

[dir="rtl"] .mobile-menu {
  right: auto;
  left: -100%;
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .mobile-menu.active {
  left: 0;
  right: auto;
}

[dir="rtl"] .mobile-menu-item:hover,
[dir="rtl"] .mobile-menu-item.active {
  padding-left: var(--space-4);
  padding-right: var(--space-6);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(10, 10, 10, 0.4) 0%,
      rgba(10, 10, 10, 0.7) 50%,
      rgba(10, 10, 10, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-6);
}

.hero-content .section-label {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-content h1 {
  font-size: var(--text-7xl);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-content p {
  font-size: var(--text-lg);
  color: var(--gray-300);
  margin-bottom: var(--space-10);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: float 3s ease-in-out infinite;
}

.hero-scroll span {
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden; /* Prevent horizontal scroll from reveal animations */
}

.section-dark {
  background: var(--bg-secondary);
}

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

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto var(--space-8);
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px var(--shadow-color);
}

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

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-4);
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
}

.product-card:hover .product-card-overlay {
  transform: translateY(0);
}

.product-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--gold);
  color: var(--black);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.product-wishlist {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  z-index: 2;
  color: var(--white);
}

.product-wishlist:hover,
.product-wishlist.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: scale(1.1);
}

.product-wishlist.active {
  animation: heartBeat 0.6s ease;
}

.product-card-info {
  padding: var(--space-5);
}

.product-card-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.product-card-price {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gold);
}

.product-card-price .old-price {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-left: var(--space-2);
  font-weight: 400;
  opacity: 0.7;
}

.discount-badge {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
  margin-left: var(--space-3);
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  color: var(--gold);
  font-size: var(--text-sm);
}

/* ---------- Category Tabs ---------- */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.category-tab {
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-base);
  color: var(--text-secondary);
}

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

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--black-light), var(--black-medium));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  color: var(--text-secondary);
  margin: var(--space-4) 0 var(--space-6);
  line-height: 1.8;
  font-size: var(--text-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--text-secondary);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: var(--gold);
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.footer-payments {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.footer-payments span {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* ---------- Form Elements ---------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

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

.form-input::placeholder {
  color: var(--text-secondary);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  appearance: none;
  cursor: pointer;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

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

.breadcrumbs .separator {
  color: var(--gray-500);
}

/* ---------- Tags / Badges ---------- */
.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-2xl);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.tag-rose {
  background: rgba(183, 110, 121, 0.15);
  color: var(--rose-gold);
}

/* ---------- Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  width: 100%;
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: color var(--transition-fast);
  text-align: left;
}

.accordion-header:hover {
  color: var(--gold);
}

.accordion-icon {
  transition: transform var(--transition-base);
  color: var(--gold);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-body-inner {
  padding: 0 0 var(--space-6);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 300px;
  animation: slideInRight 0.4s ease, fadeOut 0.4s ease 3s forwards;
  font-size: var(--text-sm);
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-info {
  border-left: 3px solid var(--gold);
}

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

.skeleton-text {
  height: 16px;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-4);
}

.skeleton-image {
  aspect-ratio: 1;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-2xl);
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

[data-theme="light"] .theme-toggle::after {
  transform: translateX(20px);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: calc(80px + var(--space-16)) 0 var(--space-16);
  text-align: center;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Stars Rating ---------- */
.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.stars svg.empty {
  fill: var(--gray-600);
}

/* ---------- Quantity Selector ---------- */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-selector button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.qty-selector button:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.qty-selector input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-weight: 500;
}

/* ---------- Swiper Overrides ---------- */
.swiper-pagination-bullet {
  background: var(--gold) !important;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--gold) !important;
}

/* ---------- Chat Widget ---------- */
.chat-widget {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-overlay);
}

.chat-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: all var(--transition-base);
  color: var(--black);
  font-size: var(--text-xl);
}

.chat-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  height: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 60px var(--shadow-color);
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
}

.chat-input-area {
  padding: var(--space-3);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--space-2);
}

.chat-input-area input {
  flex: 1;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --text-7xl: 3.5rem;
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --text-7xl: 2.5rem;
    --text-6xl: 2.25rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --container-padding: var(--space-4);
  }

  .hero {
    min-height: 600px;
  }

  .nav-logo {
    height: 80px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .newsletter {
    padding: var(--space-10) var(--space-6);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Shop: sidebar + grid */
  .section .container>div[style*="grid-template-columns: 260px"] {
    grid-template-columns: 1fr !important;
  }

  #shop-sidebar {
    position: static !important;
  }

  /* Product detail: single column */
  .product-detail-grid {
    grid-template-columns: 1fr !important;
  }

  /* Cart/checkout: single column */
  .section div[style*="grid-template-columns: 1fr 380px"],
  .section div[style*="grid-template-columns: 1fr 400px"],
  .checkout-grid {
    grid-template-columns: 1fr !important;
  }

  #cart-summary,
  .checkout-grid .glass-card {
    position: static !important;
  }

  /* Reviews section: stack summary and list */
  .section-dark [style*="grid-template-columns: 300px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .page-header h1 {
    font-size: var(--text-3xl) !important;
  }
}

@media (max-width: 480px) {
  :root {
    --text-7xl: 2rem;
    --text-6xl: 1.75rem;
    --text-5xl: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  .about-hero {
    padding: var(--space-12) 0 !important;
  }

  .about-hero h1 {
    font-size: var(--text-4xl) !important;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
  }

  .chat-window {
    width: calc(100vw - var(--space-8));
    right: calc(-1 * var(--space-4));
  }
}

/* ---------- Utility Classes ---------- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

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

[dir="rtl"] .nav-icons {
  margin-left: 0;
  margin-right: var(--space-6);
}

[dir="rtl"] .footer-social {
  justify-content: flex-start;
}

[dir="rtl"] .product-card-badge {
  left: auto;
  right: var(--space-3);
}

[dir="rtl"] .hero-content {
  text-align: right;
  align-items: flex-start;
}

[dir="rtl"] .section-header {
  text-align: right;
}

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

[dir="rtl"] .newsletter-input {
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  border-right: 1px solid var(--border-color);
  border-left: none;
}

[dir="rtl"] .newsletter-btn {
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}

[dir="rtl"] .filter-sidebar {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

[dir="rtl"] .cart-item-image {
  margin-right: 0;
  margin-left: var(--space-4);
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
  text-align: right;
}

[dir="rtl"] .step-item::after {
  left: -50%;
  right: auto;
}

[dir="rtl"] .step-item:first-child::after {
  display: none;
}

[dir="rtl"] .step-item:not(:last-child)::after {
  right: 50%;
  left: auto;
}

[dir="rtl"] .mobile-menu {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .mobile-menu.active {
  transform: translateX(0);
}

[dir="rtl"] .navbar .container {
  gap: var(--space-4);
}

[dir="rtl"] .nav-brand {
  margin-left: auto;
}

[dir="rtl"] .nav-links {
  margin-right: var(--space-2);
  display: flex !important;
}

@media (max-width: 992px) {
  [dir="rtl"] .nav-links {
    display: none !important;
  }
  
  .nav-icons {
    gap: var(--space-2) !important;
  }
}

/* Fix mobile overflow and clean up navbar */
@media (max-width: 500px) {
  .nav-logo {
    height: 45px !important; /* Smaller logo for very small screens */
  }
  
  /* Hide account and wishlist from top nav on mobile to prevent overflow */
  /* They are already available in the side mobile menu */
  .nav-icons a[title="Account"],
  .nav-icons button[title="Wishlist"],
  .nav-icons a[href="account.html"] {
    display: none !important;
  }
  
  .navbar .container {
    padding: 0 var(--space-2) !important;
  }
  
  .nav-icon-btn {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ==========================================
   RESPONSIVE — Tablet (≤992px)
   ========================================== */
@media (max-width: 992px) {
  :root {
    --text-7xl: 3rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --space-24: 4rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-icons {
    gap: var(--space-2);
  }

  .nav-logo {
    height: 70px;
  }

  .hero {
    min-height: 550px;
  }

  .hero-content h1 {
    font-size: var(--text-5xl);
  }

  .hero-content p {
    font-size: var(--text-base);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Collection sections — stack on tablet */
  #women-section .container>div,
  #men-section .container>div {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  /* Story section */
  #story .container>div {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  /* Design CTA steps */
  #design-cta .glass-card>div:nth-child(4) {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Instagram feed */
  #instagram .reveal {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  /* Product detail page */
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  /* Newsletter */
  .newsletter {
    padding: var(--space-8);
  }

  /* Section */
  .section {
    padding: var(--space-16) 0;
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }
}

/* ==========================================
   RESPONSIVE — Mobile (≤600px)
   ========================================== */
@media (max-width: 600px) {
  :root {
    --text-7xl: 2.2rem;
    --text-5xl: 1.6rem;
    --text-4xl: 1.4rem;
    --text-3xl: 1.2rem;
    --space-24: 3rem;
    --space-20: 2.5rem;
    --space-16: 2rem;
    --space-12: 1.5rem;
  }

  .nav-logo {
    height: 55px;
  }

  .hero {
    min-height: 480px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll {
    display: none;
  }

  /* Product grid — single column on mobile */
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Collection sections */
  #women-section .container>div,
  #men-section .container>div,
  #story .container>div {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }

  /* Reverse men's section so text comes first */
  #men-section .container>div {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  /* Collection image grids */
  #women-section .reveal-right,
  #men-section .reveal-left {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Design CTA steps — stack */
  #design-cta .glass-card>div:nth-child(4) {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }

  #design-cta .glass-card {
    padding: var(--space-8) !important;
  }

  /* Instagram — 2 columns */
  #instagram .reveal {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer — single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-payments {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Newsletter */
  .newsletter {
    padding: var(--space-6);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  /* Cart items */
  .cart-item {
    flex-wrap: wrap !important;
  }

  .cart-item .qty-selector {
    order: 4;
  }

  /* Category tabs - scroll horizontally */
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }

  .category-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Marquee */
  .marquee-item {
    font-size: var(--text-xs);
  }

  /* Section padding */
  .section {
    padding: var(--space-12) 0;
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--space-6);
  }

  /* Product detail */
  .product-detail-grid {
    grid-template-columns: 1fr !important;
  }

  /* Glass card */
  .glass-card {
    padding: var(--space-5);
  }

  /* Stats in story section */
  #story [style*="display:flex"][style*="gap: var(--space-12)"] {
    flex-wrap: wrap;
    gap: var(--space-6) !important;
  }
}