/* ═══════════════════════════════════════════════════════════════
   ANAKA — SHARED DESIGN TOKENS + SITE FOOTER
   Ivory/gold cosmetics palette. Loaded on every public page before
   that page's own index.css.
═══════════════════════════════════════════════════════════════ */
:root {
  --bg:            #FFFDF9;
  --surface:       #F6EEE5;
  --surface-alt:   #E8D5B9;
  --border:        #D4B391;
  --text-primary:  #3A2A16;
  --text-muted:    #7A6650;
  --text-subtle:   #B8A489;

  --accent:        #B48D5D;
  --accent-hover:  #9E6B2E;
  --accent-light:  #CF9D61;
  --accent-deep:   #A47847;
  --accent-deepest:#B9823C;

  --success: #2D7A4F;
  --warning: #B45309;
  --error:   #C0392B;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --font-arabic:  'El Messiri', sans-serif;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 2px 10px rgba(58, 42, 22, 0.06);
  --shadow-md: 0 10px 30px rgba(58, 42, 22, 0.10);
  --shadow-lg: 0 20px 48px rgba(58, 42, 22, 0.14);
  --shadow-gold: 0 6px 24px rgba(180, 141, 93, 0.28);
}

html[data-theme="dark"] {
  --bg:            #241708;
  --surface:       #33230F;
  --surface-alt:   #3D2A13;
  --border:        #4A3620;
  --text-primary:  #F6EEE5;
  --text-muted:    #C9B79C;
  --text-subtle:   #7A6650;

  --accent:        #CF9D61;
  --accent-hover:  #DFB37E;
  --accent-light:  #4A3620;
  --accent-deep:   #B9823C;
  --accent-deepest:#E0A968;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 6px 24px rgba(207, 157, 97, 0.28);
}

/* ── Theme toggle button ─────────────────────────────────────── */
.theme-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.theme-btn:hover { background: var(--surface); color: var(--text-primary); }
.theme-btn .icon-sun { display: none; }
.theme-btn .icon-moon { display: block; }
html[data-theme="dark"] .theme-btn .icon-sun { display: block; }
html[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* ── Announcement / marquee bar ──────────────────────────────── */
.announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  height: 38px;
  background: var(--accent-deep);
  color: var(--bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.announcement-track {
  display: flex;
  width: max-content;
  animation: announceScroll 22s linear infinite;
}
[dir="rtl"] .announcement-track { animation-direction: reverse; }
.announcement-bar:hover .announcement-track { animation-play-state: paused; }
@keyframes announceScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.announcement-text {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding-inline-end: 72px;
}
.announcement-link {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  margin-inline-start: 6px;
}
.announcement-close {
  flex-shrink: 0;
  width: 34px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 253, 249, 0.8);
  font-size: 16px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.announcement-close:hover { background: rgba(255, 253, 249, 0.15); color: var(--bg); }

@media (max-width: 600px) {
  .announcement-bar { height: 34px; }
  .announcement-text { font-size: 11.5px; padding-inline-end: 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — the "brand moment" band. Deep gold background, curved
   top edge, oversized italic mark, pill nav row, circular socials.
   Intentionally exempt from the light ivory chrome used elsewhere.
═══════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  background: var(--accent-deep);
  color: var(--bg);
  padding: 76px 0 32px;
  margin-top: var(--space-3xl);
  overflow: hidden;
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 12px 32px rgba(36, 23, 8, 0.22);
}
.footer-mark img {
  height: clamp(64px, 9vw, 96px);
  width: auto;
  display: block;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 13.5px;
  letter-spacing: 0.5px;
  color: rgba(255, 253, 249, 0.78);
  max-width: 420px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}
.social-link {
  width: 42px; height: 42px;
  border-radius: var(--radius-circle);
  border: 1px solid rgba(255, 253, 249, 0.35);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  transition: all var(--transition);
}
.social-link:hover { background: var(--bg); border-color: var(--bg); color: var(--accent-deep); transform: translateY(-2px); }

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-md);
}
.footer-nav a,
.footer-nav button {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--bg);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 253, 249, 0.3);
  background: rgba(255, 253, 249, 0.06);
  transition: all var(--transition);
  cursor: pointer;
}
.footer-nav a:hover,
.footer-nav button:hover {
  background: var(--bg);
  color: var(--accent-deep);
  border-color: var(--bg);
}

/* ── Contact form — rounded panel inside the band ────────────── */
.footer-contact-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.22);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-md);
}
.footer-contact-card h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: var(--space-md);
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.site-footer .form-input {
  height: 48px;
  padding: 0 20px;
  background: rgba(255, 253, 249, 0.1);
  border: 1px solid rgba(255, 253, 249, 0.3);
  border-radius: var(--radius-pill);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-input::placeholder { color: rgba(255, 253, 249, 0.55); }
.site-footer .form-input:focus {
  border-color: var(--bg);
  background: rgba(255, 253, 249, 0.16);
}
.site-footer .form-textarea {
  padding: 14px 20px;
  height: 96px;
  border-radius: var(--radius-md);
  resize: vertical;
}
.btn-send {
  height: 50px;
  background: var(--bg);
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}
.btn-send:hover { background: var(--surface); transform: translateY(-1px); }
.btn-send:disabled { opacity: 0.6; pointer-events: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding-top: var(--space-xl);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 253, 249, 0.18);
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 253, 249, 0.6);
  letter-spacing: 0.2px;
  width: 100%;
}
.footer-credit a {
  color: rgba(255, 253, 249, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-credit a:hover { color: var(--bg); }

/* ─── ABOUT / SHIPPING / RETURNS MODALS ──────────────────────── */
.about-overlay {
  position: fixed; inset: 0;
  background: rgba(58, 42, 22, 0.55);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.about-overlay.open { opacity: 1; visibility: visible; }
.about-modal {
  background: var(--bg);
  width: 100%; max-width: 540px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
}
.about-overlay.open .about-modal { transform: translateY(0); }
.about-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.18);
  border: none; cursor: pointer;
  font-size: 15px; color: var(--bg);
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background var(--transition);
}
.about-close:hover { background: rgba(255, 255, 255, 0.3); }
[dir="rtl"] .about-close { right: auto; left: 16px; }
.about-header {
  background: var(--accent-deep);
  padding: 40px 30px;
  text-align: center;
  color: var(--bg);
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.about-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem;
  letter-spacing: 0.3px;
}
.about-brand span { color: var(--surface); font-style: normal; }
.about-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: rgba(255, 253, 249, 0.55);
  margin-top: 8px;
  text-transform: uppercase;
}
.about-body { padding: 28px; }
.about-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: border-color 0.2s;
  border-radius: var(--radius-md);
}
.about-card:hover { border-color: var(--accent); }
.about-card-icon {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: var(--radius-circle);
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.about-card-text h4 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}
.about-card-text p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; }
.about-cta-wrap { padding: 0 28px 28px; }
.about-cta {
  display: flex; align-items: center; justify-content: center;
  height: 50px; width: 100%;
  background: var(--accent);
  color: var(--bg);
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  transition: background var(--transition);
  border-radius: var(--radius-pill);
}
.about-cta:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
  .nav-right .theme-btn { display: none; }
}

/* ── Dark mode overrides ──────────────────────────────────────── */
html[data-theme="dark"] .site-footer { background: var(--accent-deep); }
html[data-theme="dark"] #dataSpinner { background: rgba(36, 23, 8, 0.95); }
html[data-theme="dark"] .about-modal { background: var(--surface); }
html[data-theme="dark"] .about-card { background: var(--surface-alt); border-color: var(--border); }
html[data-theme="dark"] .about-card-text h4 { color: var(--text-primary); }
html[data-theme="dark"] .about-card-text p { color: var(--text-muted); }
html[data-theme="dark"] .about-close { background: rgba(255,255,255,0.1); color: var(--text-primary); }
html[data-theme="dark"] .about-close:hover { background: rgba(255,255,255,0.18); }

html[data-theme="dark"] .atc-modal { background: var(--surface); }
html[data-theme="dark"] .atc-modal-name { color: var(--text-primary); }
html[data-theme="dark"] .atc-qty-btn { background: var(--surface-alt); border-color: var(--border); color: var(--text-primary); }
html[data-theme="dark"] .atc-qty-btn:hover { border-color: var(--accent-light); }
html[data-theme="dark"] .atc-option { background: var(--surface-alt); border-color: var(--border); color: var(--text-muted); }
html[data-theme="dark"] .atc-option.active { background: var(--accent-light); border-color: var(--accent); color: var(--text-primary); }
html[data-theme="dark"] .atc-close { background: var(--surface-alt); color: var(--text-primary); }

html[data-theme="dark"] .toast { background: var(--surface-alt); color: var(--text-primary); }

html[data-theme="dark"] .cart-drawer { background: var(--surface); box-shadow: -8px 0 40px rgba(0,0,0,0.5); }
html[data-theme="dark"] .cart-drawer-hd { border-bottom-color: var(--border); }
html[data-theme="dark"] .cart-drawer-x { background: var(--surface-alt); color: var(--text-primary); }
html[data-theme="dark"] .cart-drawer-x:hover { background: var(--border); }
html[data-theme="dark"] .cart-row { border-bottom-color: var(--border); }
html[data-theme="dark"] .ciq-btn { background: var(--surface-alt); border-color: var(--border); color: var(--text-primary); }
html[data-theme="dark"] .ciq-btn:hover { border-color: var(--accent-light); }
html[data-theme="dark"] .cart-drawer-ft { border-top-color: var(--border); }
