:root {
  --bg: #0b0b0c;
  --bg-soft: #141414;
  --card: #1a1a1a;
  --card-border: #2a2620;
  --gold: #c9a24b;
  --gold-light: #e8ca8a;
  --text: #f3efe6;
  --text-muted: #a9a297;
  --header-bg: rgba(11,11,12,0.9);
  --hairline: rgba(255,255,255,0.06);
  --outline-border: rgba(243,239,230,0.35);
  --radius: 10px;
}

html[data-theme="light"] {
  --bg: #f8f4ec;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-border: #e7ddc9;
  --gold: #a9791f;
  --gold-light: #8a6516;
  --text: #201c14;
  --text-muted: #7a7263;
  --header-bg: rgba(248,244,236,0.92);
  --hairline: rgba(0,0,0,0.08);
  --outline-border: rgba(32,28,20,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.eyebrow {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #161207; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border-color: var(--outline-border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 18px 32px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  direction: ltr;
}
.site-header .main-nav,
.site-header .header-actions { direction: rtl; }
.site-header .header-actions { margin-left: auto; }
.header-transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.header-transparent:not(.scrolled) {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  --text: #1e1a12;
  color: var(--text);
}
.header-transparent.scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--hairline);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg { width: 40px; height: 40px; }
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.logo .word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo .ar { font-size: 1.15rem; font-weight: 800; }
.logo .en { font-family: "Cormorant Garamond", serif; letter-spacing: 3px; font-size: 0.75rem; color: var(--gold); }

.main-nav ul {
  display: flex;
  gap: 34px;
  font-size: 0.95rem;
}
.main-nav a { opacity: 0.85; transition: opacity 0.15s, color 0.15s; }
.main-nav a:hover, .main-nav a.active { opacity: 1; color: var(--gold); }

/* Dropdown (العطور: رجالي / نسائي / يونيسكس) */
.has-dropdown { position: relative; }
.dropdown-trigger {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.95rem;
  opacity: 0.85;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: opacity 0.15s, color 0.15s;
}
.dropdown-trigger:hover, .has-dropdown.open .dropdown-trigger { opacity: 1; color: var(--gold); }
.dropdown-trigger svg { transition: transform 0.2s ease; }
.has-dropdown.open .dropdown-trigger svg, .has-dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  inset-inline-start: -14px;
  min-width: 170px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.9;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--gold); opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
}
.cart-badge {
  position: absolute;
  top: -8px;
  left: -10px;
  background: var(--gold);
  color: #161207;
  font-size: 0.65rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-switch { display: flex; gap: 6px; font-size: 0.85rem; }
.lang-switch span:first-child { color: var(--gold); }
.lang-switch span:last-child { opacity: 0.5; }
.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 40px 32px 60px;
  overflow: hidden;
  background: #f2ede1;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.28) 0%, rgba(11,11,12,0.05) 20%, rgba(11,11,12,0) 55%, rgba(11,11,12,0.2) 100%);
  z-index: 0;
}
.hero-watermark-patch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 70px;
  z-index: 0;
  background: radial-gradient(circle at 100% 100%, rgba(11,11,12,1) 0%, rgba(11,11,12,0.98) 40%, rgba(11,11,12,0.7) 65%, rgba(11,11,12,0) 100%);
  pointer-events: none;
}
.hero-index {
  position: absolute;
  right: 32px;
  top: 42%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #6b6355;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.hero-index .line { width: 1px; height: 46px; background: rgba(30,26,18,0.25); }

.hero-content {
  position: absolute;
  z-index: 1;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 640px;
  width: 90%;
  text-align: center;
}
.hero-content h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 22px;
  color: #fbf3e2;
  text-shadow: 0 4px 26px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
}
.hero-content p {
  color: #e9dcc0;
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 34px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; }
.hero .btn-outline { color: #fbf3e2; border-color: rgba(251,243,226,0.4); }
.hero .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(30,26,18,0.3);
  border-radius: 20px;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: dot 1.6s infinite;
}
@keyframes dot { 0% { top: 8px; opacity: 1; } 70% { top: 22px; opacity: 0; } 100% { top: 8px; opacity: 0; } }

/* Section heads */
.section {
  padding: 70px 32px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.section-head h2 { font-size: 1.7rem; font-weight: 800; }
.see-all { color: var(--gold); font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }

/* Categories */
.cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.cat-scroll::-webkit-scrollbar { height: 6px; }
.cat-scroll::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }

.cat-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-weight: 800;
  isolation: isolate;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cat-grad, linear-gradient(160deg, #2a2115, #0b0b0c));
  transition: transform 0.4s ease;
}
.cat-card:hover::before { transform: scale(1.08); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
}
.cat-card .cat-label { position: relative; }
.cat-card .cat-en { display: block; font-family: "Cormorant Garamond", serif; letter-spacing: 2px; color: var(--gold-light); font-size: 0.85rem; margin-top: 4px; }

.scroll-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}
.scroll-arrow:hover { border-color: var(--gold); color: var(--gold); }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}
.bakhoor-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 80px 20px;
  font-size: 1rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-4px); }

.product-thumb {
  height: 150px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--thumb-grad, radial-gradient(120% 120% at 30% 20%, #262019 0%, #111 70%));
}
.product-thumb svg { width: 46%; height: auto; opacity: 0.92; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.product-name-ar { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.product-name-en {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.product-size { color: var(--text-muted); }
.product-price { color: var(--gold); font-weight: 800; margin-inline-start: 6px; }
.product-price-old { color: var(--text-muted); text-decoration: line-through; font-size: 0.85em; }
.product-tag {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 8px;
}

.add-to-cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.add-to-cart-btn:hover { border-color: var(--gold); color: var(--gold); }
.add-to-cart-btn.is-added { background: var(--gold); border-color: var(--gold); color: #161207; }
.add-to-cart-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.add-to-cart-btn:disabled:hover { border-color: var(--card-border); color: var(--text); }

.product-card.is-out .product-thumb { opacity: 0.55; }
.product-card.is-out .product-name-ar,
.product-card.is-out .product-name-en,
.product-card.is-out .product-meta { opacity: 0.6; }
.out-of-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11,11,12,0.85);
  color: #e08383;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(224,131,131,0.4);
}
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: #161207;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 20px;
}
.cart-item-price-old { color: var(--text-muted); text-decoration: line-through; margin-inline-end: 6px; }
.cart-item-price-new { color: var(--gold); font-weight: 700; margin-inline-start: 6px; }

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(400px, 100%);
  background: var(--bg-soft);
  border-left: 1px solid var(--card-border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
html[dir="ltr"] .cart-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--card-border);
  transform: translateX(-100%);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline);
}
.cart-drawer-head h3 { font-size: 1.1rem; }
.cart-close { background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }
.cart-close:hover { color: var(--gold); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { color: var(--text-muted); text-align: center; padding: 60px 0; font-size: 0.9rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--thumb-grad, radial-gradient(120% 120% at 30% 20%, #262019 0%, #111 70%));
}
.cart-item-thumb svg { width: 60%; height: auto; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; }
.cart-item-price { color: var(--gold); font-size: 0.82rem; margin-top: 2px; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.cart-item-remove:hover { color: #e08383; }

.cart-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--hairline);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.cart-total-row span:last-child { color: var(--gold); }
.cart-subtotal-row, .cart-delivery-row {
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.cart-subtotal-row span:last-child, .cart-delivery-row span:last-child { color: var(--text-muted); }
.cart-checkout-btn { display: block; width: 100%; text-align: center; }

.cart-tester:not(:empty) {
  padding: 14px 24px;
  margin: 0 24px 4px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  background: rgba(201,162,75,0.06);
}
.cart-tester-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.cart-tester-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

/* Payment method */
.cart-payment:not(:empty) {
  padding: 14px 24px;
  margin: 0 24px 4px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card);
}
.cart-payment-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.payment-options {
  display: flex;
  gap: 10px;
}
.payment-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.payment-option input { accent-color: var(--gold); margin: 0; }
.payment-option.is-active { border-color: var(--gold); color: var(--gold); }
.payment-benefit-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed var(--gold);
  background: rgba(201,162,75,0.06);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Promo banner (distributions / gifts) */
.promo-banner {
  margin: 0 32px 70px;
  padding: 56px 32px;
  border-radius: 20px;
  background: radial-gradient(120% 160% at 50% 0%, #2a2115 0%, #16130d 60%, #0b0b0c 100%);
  border: 1px solid var(--card-border);
  text-align: center;
}
.promo-content { max-width: 560px; margin: 0 auto; }
.promo-content svg { color: var(--gold); margin-bottom: 16px; }
.promo-content h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; color: #f3efe6; }
.promo-content p { color: #b8b2a5; font-size: 0.95rem; line-height: 1.8; margin-bottom: 28px; }

.global-discount-banner {
  margin: 40px 32px;
  padding: 18px 24px;
  border-radius: 14px;
  background: rgba(201, 162, 75, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 162, 75, 0.4);
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* Features bar */
.features-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 46px 32px;
  border-top: 1px solid var(--hairline);
}
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-item svg { width: 32px; height: 32px; color: var(--gold); flex: none; }
.feature-item .f-title { font-weight: 700; font-size: 0.95rem; }
.feature-item .f-sub { color: var(--text-muted); font-size: 0.82rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 50px 32px 26px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Filters (products page) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  align-items: center;
}
.filter-btn {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-label { color: var(--text-muted); font-size: 0.9rem; }
.search-box {
  margin-inline-start: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 9px 18px;
  color: var(--text);
  font-family: inherit;
  min-width: 220px;
}
.search-box:focus { outline: none; border-color: var(--gold); }
.results-count { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-content h1 { animation: fadeInUp 0.7s ease both; }
.hero-content p { animation: fadeInUp 0.7s ease 0.15s both; }
.hero-content .hero-buttons { animation: fadeInUp 0.7s ease 0.3s both; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.product-card { animation: fadeInUp 0.5s ease both; }
.cat-card { animation: fadeInUp 0.5s ease both; }

.feature-item { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.feature-item.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-content h1, .hero-content p, .hero-content .hero-buttons,
  .product-card, .cat-card { animation: none; }
  .reveal, .feature-item { opacity: 1; transform: none; transition: none; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(0,0,0,0.4);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Contact section */
.contact-section { padding-top: 20px; }
.contact-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: -14px 0 30px;
  font-size: 0.98rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-card svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.contact-card .c-label { font-weight: 700; font-size: 0.95rem; }
.contact-card .c-val { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }

/* Rich footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
  text-align: start;
}
.footer-col h4 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 9px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-brand .footer-logo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; margin-bottom: 14px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); margin: 0;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Mobile */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 28px 22px;
    direction: rtl;
  }
  .main-nav.open ul { flex-direction: column; gap: 18px; align-items: flex-start; }
  .main-nav.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 0;
    min-width: 0;
  }
  .header-transparent:not(.scrolled) .main-nav.open { --text: #1e1a12; }
  .menu-toggle { display: flex; }
  .hero {
    min-height: 100vh;
    padding-right: 32px;
  }
  .hero-media { object-position: center 30%; }
  .hero-content { width: 92%; bottom: 8%; }
  .hero-index { display: none; }
  .search-box { margin-inline-start: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; text-align: start; }
  .footer-brand { grid-column: 1 / -1; }
}
