/* Khayrat Zaman — shared luxury styles */

:root {
  --gold: #d4af37;
  --gold-dark: #b8860b;
  --gold-soft: rgba(212, 175, 55, 0.18);
  --black: #0b0b0b;
  --ivory: #f8f5ec;
  --radius: 18px;
  --header-h: 84px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --transition: 0.28s ease;
  --max: 1180px;
}

html[data-theme="dark"] {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --surface: #17150f;
  --text: #f8f5ec;
  --muted: #c9c0a8;
  --border: rgba(212, 175, 55, 0.28);
  --header-bg: rgba(11, 11, 11, 0.88);
  --card: #14120c;
  --input: #0f0e0b;
  --success: #c9e4b4;
  --error: #f0b4b4;
}

html[data-theme="light"] {
  --bg: #f8f5ec;
  --bg-2: #efe8d6;
  --surface: #fffdf7;
  --text: #1a1710;
  --muted: #5d5648;
  --border: rgba(184, 134, 11, 0.35);
  --header-bg: rgba(248, 245, 236, 0.92);
  --card: #fffdf8;
  --input: #ffffff;
  --success: #2f6b3a;
  --error: #8b1e1e;
  --shadow: 0 16px 40px rgba(26, 23, 16, 0.1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Cairo", "Inter", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

html[lang="fr"] body { font-family: "Inter", system-ui, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, .display {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

html[lang="fr"] h1,
html[lang="fr"] h2,
html[lang="fr"] .display,
html[lang="fr"] .logo-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.02em;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  background: var(--gold);
  color: #0b0b0b;
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }

.logo img {
  width: 56px;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-title { font-size: 1.02rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.logo-sub { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.nav-list {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn,
.lang-btn,
.theme-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover,
.lang-btn:hover,
.theme-btn:hover,
.theme-btn[aria-pressed="true"] {
  background: var(--gold);
  color: #0b0b0b;
}

.lang-btn {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #0b0b0b;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* Shared luxury navbar (homepage reference, used on all pages) */
.site-header.home-header {
  position: relative;
  z-index: 40;
  height: auto;
  min-height: 72px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  overflow: visible;
  font-family: "Tajawal", "Cairo", sans-serif;
}

html[lang="fr"] .site-header.home-header {
  font-family: "Inter", system-ui, sans-serif;
}

html[data-theme="dark"] .site-header.home-header {
  background: #080706;
}

html[data-theme="light"] .site-header.home-header {
  background: #f8f5ec;
}

.home-header-grid {
  width: min(1360px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  direction: ltr;
}

.home-header-grid .nav-list {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.home-header-grid .nav-list a {
  color: var(--text);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.home-header-grid .nav-list a:hover {
  color: var(--gold);
  background: transparent;
  box-shadow: none;
}

.home-header-grid .nav-list a.active {
  color: #1a1208;
  background: #d9a441;
  box-shadow: none;
}

.home-logo {
  width: 128px;
  margin-bottom: -52px;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.home-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.home-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: var(--surface);
}

.home-tools .icon-btn,
.home-tools .lang-btn,
.home-tools .theme-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: var(--gold);
}

.home-tools .lang-btn {
  width: auto;
  padding: 0 8px;
  font-size: 0.72rem;
}

.home-tools .icon-btn:hover,
.home-tools .lang-btn:hover,
.home-tools .theme-btn:hover,
.home-tools .theme-btn[aria-pressed="true"] {
  background: #d9a441;
  color: #080706;
}

.home-header .cart-count {
  background: #d9a441;
  color: #080706;
}

.nav-drop { position: relative; }

.nav-drop-menu {
  display: none;
  position: absolute;
  top: 110%;
  inset-inline-start: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 8px;
  z-index: 30;
  box-shadow: var(--shadow);
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: grid; gap: 4px; }

.nav-drop-menu a {
  display: block;
  padding: 8px 10px !important;
  color: var(--gold) !important;
  border-radius: 8px !important;
}

@media (max-width: 980px) {
  .home-header .menu-toggle { display: grid; }
  .home-header-grid .nav-desktop { display: none; }
  .home-header-grid {
    grid-template-columns: auto 1fr;
    width: min(1360px, calc(100% - 16px));
    gap: 8px;
    padding-block: 6px;
  }
  .home-logo {
    width: 64px;
    margin-bottom: 0;
    grid-column: auto;
    justify-self: start;
    order: 0;
  }
  .home-tools {
    justify-self: end;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 4px;
  }
  .home-header .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: inherit;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    z-index: 50;
    box-shadow: var(--shadow);
  }
  html[dir="rtl"] .home-header .mobile-nav { direction: rtl; }
  html[dir="ltr"] .home-header .mobile-nav { direction: ltr; }
  .home-header .mobile-nav.open { display: block; }
  .home-header .mobile-nav .nav-list { flex-direction: column; }
  .home-header .mobile-nav .nav-list a {
    color: var(--text);
    font-weight: 700;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
  }
  .home-header .mobile-nav .nav-list a:hover {
    color: var(--gold);
    background: transparent;
    box-shadow: none;
  }
  .home-header .mobile-nav .nav-list a.active {
    color: #1a1208;
    background: #d9a441;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .home-header-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .home-header-grid .nav-desktop { display: none; }
  .home-logo { width: 52px; }
  .home-tools .icon-btn,
  .home-tools .theme-btn,
  .home-tools .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-gold {
  background: linear-gradient(180deg, #e6c65a, var(--gold) 40%, var(--gold-dark));
  color: #0b0b0b;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--gold);
}

.btn-ghost:hover { background: var(--gold-soft); }
.btn-full { width: 100%; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.35), rgba(11, 11, 11, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.18), transparent 40%);
}

.hero-content { text-align: center; max-width: 860px; padding: 72px 20px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.1rem);
  color: #f8f5ec;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero p.lead {
  color: #efe6cc;
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.page-hero { min-height: 42vh; }

.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }

.gold-line {
  width: 72px;
  height: 2px;
  margin: 14px auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.muted { color: var(--muted); }

.cards-3, .product-grid, .values-grid, .contact-grid, .gallery-grid {
  display: grid;
  gap: 22px;
}

.cards-3, .values-grid, .contact-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid { grid-template-columns: repeat(4, 1fr); }

.category-card, .product-card, .value-card, .contact-card, .info-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-card {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11, 11, 11, 0.88));
}

.category-card .card-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #f8f5ec;
}

.product-card { display: flex; flex-direction: column; }
.product-card img { width: 100%; height: 230px; object-fit: cover; }
.product-card img[src*="-pack.jpg"],
.modal-body img[src*="-pack.jpg"],
.cart-item img[src*="-pack.jpg"] {
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.product-card img[src*="miel-adam-scene"],
.product-card img[src*="miel-eve-scene"],
.product-card img[src*="miel-quadruple-scene"],
.modal-body img[src*="miel-adam-scene"],
.modal-body img[src*="miel-eve-scene"],
.modal-body img[src*="miel-quadruple-scene"],
.cart-item img[src*="miel-adam-scene"],
.cart-item img[src*="miel-eve-scene"],
.cart-item img[src*="miel-quadruple-scene"] {
  object-fit: cover;
  object-position: center 42%;
  background: #2a1c10;
}

.product-card img[src*="amlou-graines-courge"],
.product-card img[src*="amlou-amande-argan"],
.product-card img[src*="amlou-cacahuete"],
.modal-body img[src*="amlou-graines-courge"],
.modal-body img[src*="amlou-amande-argan"],
.modal-body img[src*="amlou-cacahuete"],
.cart-item img[src*="amlou-graines-courge"],
.cart-item img[src*="amlou-amande-argan"],
.cart-item img[src*="amlou-cacahuete"] {
  object-fit: cover;
  object-position: center 42%;
}

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.price { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.product-actions .btn { min-height: 42px; padding: 0 12px; font-size: 0.92rem; }

.value-card, .contact-card, .info-panel { padding: 28px; }
.value-card { padding: 28px; }

.value-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.promo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--border);
}

.promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38);
}

.promo-copy { position: relative; max-width: 640px; color: #f8f5ec; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

body[data-page="about"] .about-story,
body[data-page="about"] .about-authenticity {
  margin: 18px 0 0;
  max-width: 38em;
  font-family: "Tajawal", "Cairo", sans-serif;
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: 0.01em;
  color: var(--text);
  text-align: start;
  unicode-bidi: isolate;
}

@media (max-width: 640px) {
  body[data-page="about"] .about-story,
  body[data-page="about"] .about-authenticity {
    font-size: 1.02rem;
    line-height: 1.95;
    margin-top: 14px;
  }
}

.split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.chip {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.chip.active, .chip:hover {
  background: var(--gold);
  color: #0b0b0b;
  border-color: var(--gold);
}

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 28px; }

.search, .select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input);
}

.search { flex: 1; min-width: 220px; }

.empty-state {
  text-align: center;
  padding: 48px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 6px; font-size: 0.92rem; }

input, select, textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

textarea { min-height: 140px; resize: vertical; }
.field-error { color: var(--error); font-size: 0.82rem; min-height: 1.1em; }

.form-note, .demo-note {
  font-size: 0.9rem;
  color: var(--muted);
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 12px;
}

.form-feedback { display: none; padding: 12px 14px; border-radius: 12px; margin-top: 12px; }
.form-feedback.success { display: block; background: rgba(80, 140, 80, 0.15); color: var(--success); }
.form-feedback.error { display: block; background: rgba(160, 50, 50, 0.12); color: var(--error); }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-brand { display: flex; gap: 12px; }

.footer-brand img {
  width: 56px;
  height: auto;
  object-fit: contain;
}

.footer-links { display: grid; gap: 8px; }

.copyright {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

body.cart-open { overflow: hidden; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 70;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer, .modal {
  position: fixed;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.drawer {
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: min(430px, 100%);
  transform: translateX(110%);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}

html[dir="rtl"] .drawer,
html[dir="ltr"] .drawer {
  right: 0;
  left: auto;
  transform: translateX(110%);
}

.drawer.open,
html[dir="rtl"] .drawer.open,
html[dir="ltr"] .drawer.open {
  transform: translateX(0) !important;
  visibility: visible;
  pointer-events: auto;
}

.drawer-header, .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.drawer-body { padding: 16px; overflow: auto; flex: 1; }

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.cart-item img[src*="huile-rose-flacon"] { object-fit: contain; background: #f4f2ef; }
.cart-item img[src*="huile-eucalyptus-flacon"],
.cart-item img[src*="huile-amande-douce-flacon"],
.cart-item img[src*="huile-thym-flacon"] { object-fit: cover; object-position: center; background: #120e09; }
.cart-item-copy strong { display: block; margin-bottom: 4px; }

.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.format-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.format-chip.active {
  background: linear-gradient(180deg, #f3d58a, #d4af37 55%, #b8860b);
  color: #1a1208;
  border-color: #e8c994;
}

.format-chip.active:hover { color: #1a1208; }

.cart-format-chips {
  margin-top: 8px;
}

.cart-format-chips .format-chip,
.checkout-line .format-chip {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.74rem;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  direction: ltr;
}

.qty button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.qty span { min-width: 1.4em; text-align: center; font-weight: 700; }

.remove-item {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.remove-item:hover { border-color: var(--gold); color: var(--gold); }
.drawer-footer { padding: 16px 18px 22px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.totals { display: flex; justify-content: space-between; margin-bottom: 4px; font-weight: 700; }
.totals strong { color: var(--gold); font-size: 1.15rem; }

.modal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: min(560px, calc(100% - 24px));
  border-radius: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-body { padding: 18px; }
.modal-body img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }

.close-x {
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
}

.search-panel,
.account-panel {
  position: fixed;
  top: 72px;
  inset-inline-start: 20px;
  width: min(360px, calc(100% - 40px));
  background: var(--surface);
  border: 1px solid var(--gold, #d9a441);
  border-radius: 14px;
  padding: 16px;
  z-index: 70;
  box-shadow: var(--shadow);
  display: none;
}

.search-panel.open,
.account-panel.open { display: block; }

.search-panel form { display: flex; gap: 8px; }
.search-panel input { flex: 1; min-height: 42px; border-radius: 10px; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
