/* ========================================
   AMILANO PERFUME — Design System
   Luxury Dark Theme with Gold Accents
   ======================================== */

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

/* ── CSS Variables ── */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2a;
  --bg-card: #141430;
  --bg-card-hover: #1a1a40;
  --bg-glass: rgba(20, 20, 48, 0.6);
  --bg-glass-light: rgba(255, 255, 255, 0.03);

  --gold: #c9a96e;
  --gold-light: #e0c992;
  --gold-dark: #a88a4e;
  --gold-glow: rgba(201, 169, 110, 0.3);

  --text-primary: #f0ebe3;
  --text-secondary: #a09b93;
  --text-muted: #6b6760;

  --accent-rose: #c47a7a;
  --accent-teal: #5a8f8f;
  --accent-plum: #7a5a8f;

  --border-subtle: rgba(201, 169, 110, 0.15);
  --border-gold: rgba(201, 169, 110, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.2);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Tajawal', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic);
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

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

body.modal-open {
  overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

/* ── Utility ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── Announcement Bar ── */
.announcement-bar {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  padding: 10px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bg-primary);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 6px;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

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

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.header-btn:hover {
  color: var(--gold);
  background: var(--bg-glass);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Mobile Nav (hidden by default) ── */
.mobile-nav {
  display: none;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 40px;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-family: var(--font-arabic);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

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

.btn-primary:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--gold);
}

/* ── Section Styles ── */
.section {
  padding: 80px 0;
  overflow: hidden;
}

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

.section-header h2 {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-header .gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ── Category Filters ── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

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

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.product-card:hover {
  transform: translateY(-8px) translateZ(0);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  background: var(--bg-card-hover);
}

.product-card .image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a3a, #0f0f25);
}

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

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

.product-card .new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card .card-body {
  padding: 20px;
}

.product-card .card-body h3 {
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-card .card-body .en-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.product-card .card-body .price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.product-card .card-body .price span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.product-card .card-action {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--gold);
  color: var(--bg-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}

.product-card:hover .card-action {
  opacity: 1;
  transform: translateY(0);
}

/* ── New Collection Carousel ── */
.collection-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.collection-scroll::-webkit-scrollbar {
  height: 4px;
}

.collection-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 2px;
}

.collection-scroll .product-card {
  width: 280px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ── Product Detail Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  max-width: 900px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  box-shadow: var(--shadow-lg);
  will-change: transform;
}

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

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

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

.modal-image {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-details .product-name {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  font-weight: 700;
}

.modal-details .product-name-en {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-top: 4px;
}

.modal-details .product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
}

.modal-details .product-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Fragrance Pyramid ── */
.fragrance-pyramid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-layer {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color var(--transition-fast);
}

.note-layer:hover {
  border-color: var(--border-gold);
}

.note-layer .layer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.note-layer .layer-icon {
  font-size: 1.2rem;
}

.note-layer .layer-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}

.note-layer .layer-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.82rem;
  color: var(--text-primary);
}

/* ── AI Assistant Button ── */
.ask-ai-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.ask-ai-btn:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.ai-response {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 8px;
  display: none;
}

.ai-response.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-response h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-response p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.ai-response ul {
  list-style: none;
  padding: 0;
}

.ai-response ul li {
  color: var(--text-secondary);
  padding: 6px 0;
  padding-right: 20px;
  position: relative;
  font-size: 0.9rem;
}

.ai-response ul li::before {
  content: '✦';
  color: var(--gold);
  position: absolute;
  right: 0;
}

/* ── Chat Assistant ── */
.chat-fab {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  z-index: 300;
  transition: all var(--transition-normal);
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.4);
}

.chat-fab .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-rose);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-window {
  position: fixed;
  bottom: 104px;
  left: 32px;
  width: 400px;
  max-height: 550px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--bg-primary);
}

.chat-header-info h3 {
  font-size: 1rem;
  font-weight: 600;
}

.chat-header-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-close {
  margin-right: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.chat-close:hover {
  color: var(--text-primary);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.7;
  animation: fadeUp 0.3s ease;
}

.chat-message.bot {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message.bot .bot-name {
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 600;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.suggestion-chip {
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-arabic);
}

.suggestion-chip:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.chat-input-area {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
}

.chat-input {
  flex: 1;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:focus {
  border-color: var(--gold);
}

.chat-send {
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.chat-send:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

/* ── About Section ── */
.about-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-arabic);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-visual .glow-circle {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Loading / Typing Indicator ── */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ── Search Modal ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 250;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 600px;
  transform: translateY(-20px);
  transition: transform var(--transition-normal);
}

.search-overlay.active .search-box {
  transform: translateY(0);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

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

.search-result-item img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

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

.search-result-item .result-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .modal-content {
    grid-template-columns: 1fr 1fr;
  }

  .modal {
    max-width: 95vw;
  }

  .modal-details {
    padding: 28px;
  }

  .about-grid {
    gap: 40px;
  }

  .footer-grid {
    gap: 28px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .section {
    padding: 60px 0;
  }

  .about-visual .glow-circle {
    width: 280px;
    height: 280px;
    font-size: 6rem;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ══════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navigation ── */
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .header {
    padding: 12px 0;
  }

  .header .container {
    padding: 0 16px;
  }

  .logo {
    font-size: 1.6rem;
    letter-spacing: 4px;
  }

  /* ── Mobile nav drawer ── */
  .mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg-secondary);
    z-index: 150;
    padding: 80px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .mobile-nav.active {
    transform: translateX(0);
  }

  .mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

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

  .mobile-nav-close {
    position: absolute;
    top: 24px;
    left: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── Hero ── */
  .hero {
    min-height: 65vh;
    padding: 40px 0;
  }

  .hero-content {
    padding: 24px 16px;
  }

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

  .hero p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 18px;
    margin-bottom: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero::before {
    width: 350px;
    height: 350px;
  }

  /* ── Sections ── */
  .section {
    padding: 48px 0;
  }

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

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.9rem;
    padding: 0 8px;
  }

  /* ── Filters ── */
  .filter-bar {
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
  }

  /* ── Product Grid ── */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card .card-body {
    padding: 14px;
  }

  .product-card .card-body h3 {
    font-size: 0.92rem;
  }

  .product-card .card-body .en-name {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .product-card .card-body .price {
    font-size: 0.95rem;
  }

  .product-card .card-action {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    bottom: 14px;
    left: 14px;
    opacity: 1;
    transform: none;
  }

  .card-hover-hint {
    display: none;
  }

  /* ── Collection Scroll ── */
  .collection-scroll {
    gap: 14px;
    padding: 4px 0 16px;
  }

  .collection-scroll .product-card {
    width: 240px;
  }

  /* ── Modal (Full-screen on mobile) ── */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0;
    transform: translateY(100%);
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-image {
    border-radius: 0;
    max-height: 45vh;
    aspect-ratio: auto;
  }

  .modal-image img {
    max-height: 45vh;
  }

  .modal-details {
    padding: 20px 16px 40px;
    gap: 16px;
  }

  .modal-details .product-name {
    font-size: 1.4rem;
  }

  .modal-details .product-name-en {
    font-size: 0.88rem;
    letter-spacing: 1px;
  }

  .modal-details .product-price {
    font-size: 1.3rem;
  }

  .modal-close {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: none;
    z-index: 20;
  }

  .fragrance-pyramid {
    gap: 10px;
  }

  .note-layer {
    padding: 12px;
  }

  .note-layer .layer-title {
    font-size: 0.82rem;
  }

  .note-tag {
    padding: 3px 10px;
    font-size: 0.76rem;
  }

  .ask-ai-btn {
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .ai-response {
    padding: 16px;
  }

  .ai-response h4 {
    font-size: 0.9rem;
  }

  .ai-response p,
  .ai-response ul li {
    font-size: 0.85rem;
  }

  .ai-quick-tip {
    padding: 12px 14px;
  }

  .ai-quick-tip p {
    font-size: 0.82rem;
  }

  /* ── Order Form (Mobile) ── */
  .order-toggle-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .order-field input,
  .order-field select {
    padding: 14px 16px;
    font-size: 16px;
    /* Prevents iOS zoom */
  }

  .order-submit-btn {
    padding: 16px;
    font-size: 1rem;
  }

  /* ── About ── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-text h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .about-text p {
    font-size: 0.92rem;
    text-align: center;
  }

  .about-stats {
    gap: 16px;
  }

  .stat-item .stat-number {
    font-size: 1.6rem;
  }

  .stat-item .stat-label {
    font-size: 0.78rem;
  }

  .about-visual {
    order: -1;
  }

  .about-visual .glow-circle {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }

  /* ── Footer ── */
  .footer {
    padding: 40px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-brand .logo {
    display: block;
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-bottom {
    padding-top: 20px;
    font-size: 0.78rem;
  }

  /* ── Chat (Full-width on mobile) ── */
  .chat-fab {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .chat-window {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    max-height: 100%;
    border-radius: 0;
    z-index: 400;
  }

  .chat-messages {
    min-height: 200px;
    padding: 16px;
  }

  .chat-message {
    max-width: 90%;
    font-size: 0.88rem;
  }

  .chat-input-area {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .chat-input {
    padding: 10px 16px;
    font-size: 16px;
    /* Prevents iOS zoom */
  }

  .chat-send {
    width: 40px;
    height: 40px;
  }

  .suggestion-chip {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  /* ── Search ── */
  .search-overlay {
    padding-top: 60px;
  }

  .search-box {
    width: 95%;
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .search-input-wrapper input {
    font-size: 1rem;
  }

  .search-results {
    max-height: 50vh;
  }

  .search-result-item {
    padding: 10px 8px;
    gap: 12px;
  }

  .search-result-item img {
    width: 44px;
    height: 44px;
  }

  .search-result-item .result-info h4 {
    font-size: 0.88rem;
  }

  /* ── Announcement ── */
  .announcement-bar {
    padding: 8px 16px;
    font-size: 0.75rem;
  }

  /* ── Order Success (Mobile) ── */
  .order-success-card {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  .order-success-card h2 {
    font-size: 1.15rem;
  }

  .success-details div {
    font-size: 0.82rem;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — Small phones (≤ 480px)
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-card .card-body {
    padding: 10px;
  }

  .product-card .card-body h3 {
    font-size: 0.82rem;
  }

  .product-card .card-body .en-name {
    font-size: 0.68rem;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
  }

  .product-card .card-body .price {
    font-size: 0.85rem;
  }

  .product-card .card-action {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    bottom: 10px;
    left: 10px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.88rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .collection-scroll .product-card {
    width: 200px;
  }

  .modal-image {
    max-height: 35vh;
  }

  .modal-image img {
    max-height: 35vh;
  }

  .modal-details {
    padding: 16px 14px 32px;
  }

  .modal-details .product-name {
    font-size: 1.2rem;
  }

  .modal-details .product-price {
    font-size: 1.15rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-item .stat-number {
    font-size: 1.4rem;
  }

  .logo {
    font-size: 1.4rem;
    letter-spacing: 3px;
  }

  .chat-header {
    padding: 14px 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.92rem;
  }

  .order-field label {
    font-size: 0.75rem;
  }

  .meta-tag {
    padding: 2px 10px;
    font-size: 0.7rem;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — Very small phones (≤ 360px)
   ══════════════════════════════════════ */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .product-card .card-body {
    padding: 8px;
  }

  .product-card .card-body h3 {
    font-size: 0.78rem;
  }

  .product-card .card-body .price {
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .collection-scroll .product-card {
    width: 180px;
  }

  .modal-details .product-name {
    font-size: 1.1rem;
  }
}

/* ══════════════════════════════════════
   SAFE AREA (Notched phones)
   ══════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
  .chat-fab {
    bottom: max(20px, env(safe-area-inset-bottom));
  }

  .footer-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ══════════════════════════════════════
   ENHANCED PRODUCT CARD HOVER
   ══════════════════════════════════════ */
.card-hover-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: var(--gold-light);
  text-align: center;
  padding: 24px 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.product-card:hover .card-hover-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   PRODUCT META TAGS
   ══════════════════════════════════════ */
.product-meta-tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-block;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 50px;
  padding: 3px 14px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
}

/* ══════════════════════════════════════
   AI QUICK TIP (Auto-shows)
   ══════════════════════════════════════ */
.ai-quick-tip {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.06), rgba(201, 169, 110, 0.02));
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-quick-tip.show {
  opacity: 1;
  transform: translateY(0);
}

.ai-quick-tip .tip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.ai-quick-tip p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════
   ORDER FORM
   ══════════════════════════════════════ */
.order-section {
  margin-top: 8px;
}

.order-toggle-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.order-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(46, 204, 113, 0.3);
}

.order-form-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 4px;
}

.order-form-wrapper.show {
  max-height: 500px;
  padding-top: 20px;
}

.order-form-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.order-field {
  margin-bottom: 14px;
}

.order-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.order-field input,
.order-field select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.order-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23c9a96e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.order-field input:focus,
.order-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.order-field input::placeholder {
  color: var(--text-muted);
}

.order-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: 4px;
}

.order-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ══════════════════════════════════════
   ORDER SUCCESS OVERLAY
   ══════════════════════════════════════ */
.order-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.order-success-overlay.show {
  opacity: 1;
}

.order-success-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPop {
  from {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.order-success-card .success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: bounce 0.6s ease 0.3s;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.order-success-card h2 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.order-success-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.success-details {
  text-align: right;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.success-details div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.success-details div:last-child {
  border-bottom: none;
}

.success-details div span {
  font-size: 1rem;
  min-width: 24px;
}

.success-note {
  font-size: 0.83rem !important;
  color: var(--gold) !important;
}

.order-success-card button {
  padding: 12px 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  border: none;
  border-radius: 50px;
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.order-success-card button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}