/* ==========================================================================
   AURORA JEWELLERY: global stylesheet
   Paste into Sitejet > Code > CSS, or load as assets/css/aurora.css.
   Fonts: "Medio" is used first for display type. If Medio is already set up
   in Sitejet, nothing else is needed; otherwise Cormorant Garamond is the fallback.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Hanken+Grotesk:wght@300;400;500;600&family=Noto+Naskh+Arabic:wght@400;500&family=Noto+Sans+Arabic:wght@300;400;500&display=swap");

:root {
  --bg: #050607;
  --surface: #0c0e10;
  --surface-2: #14171a;
  --line: rgba(213, 217, 222, .13);
  --line-strong: rgba(213, 217, 222, .3);
  --text: #eceef0;
  --muted: #959ca3;
  --silver-1: #f1f3f5;
  --silver-2: #b9bfc5;
  --silver-3: #7d848b;
  --emerald: #27c997;
  --emerald-soft: rgba(39, 201, 151, .2);
  --gem: #6dbf5d;
  --danger: #ff8a7a;
  --text-2: #c4c9ce;
  --text-3: #cfd3d7;
  --nav: #d6dade;
  --bar-bg: #0a0c0d;
  --header-bg: rgba(5, 6, 7, .92);
  --panel: #090b0c;
  --panel-2: #0b0d0f;
  --tint: rgba(255, 255, 255, .06);
  --ph-grad: linear-gradient(160deg, #15191c, #090b0c);
  --silver-grad: linear-gradient(100deg, #fff 0%, #c9ced3 38%, #8f969d 62%, #e8ebee 100%);
  --btn-bg: linear-gradient(180deg, #f4f6f8, #b4bac0);
  --btn-fg: #07090a;
  --ghost-bg: rgba(5, 6, 7, .25);
  color-scheme: dark;
  --font-display: "Medio", "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --header-h: 68px;
  --bar-h: 38px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---- Theme: follows the device (light or dark); the footer toggle overrides it. Hero, banner, tiles, top bar and footer stay dark in both. ---- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #e9ecee;
  --line: rgba(20, 26, 31, .13);
  --line-strong: rgba(20, 26, 31, .32);
  --text: #1c2126;
  --muted: #5b636a;
  --silver-1: #0c1013;
  --silver-2: #3a4148;
  --silver-3: #66707a;
  --emerald: #0b8f68;
  --emerald-soft: rgba(11, 143, 104, .16);
  --danger: #c0392b;
  --text-2: #3d444a;
  --text-3: #2e353b;
  --nav: #262c31;
  --header-bg: rgba(245, 246, 247, .92);
  --panel: #ffffff;
  --panel-2: #f0f2f3;
  --tint: rgba(12, 16, 19, .06);
  --ph-grad: linear-gradient(160deg, #eef0f2, #dde1e4);
  --silver-grad: linear-gradient(100deg, #0c1013 0%, #3a4148 40%, #6b747c 62%, #1c2126 100%);
  --btn-bg: linear-gradient(180deg, #2b3237, #0c1013);
  --btn-fg: #f5f6f7;
  --ghost-bg: rgba(255, 255, 255, .5);
  color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #e9ecee;
  --line: rgba(20, 26, 31, .13);
  --line-strong: rgba(20, 26, 31, .32);
  --text: #1c2126;
  --muted: #5b636a;
  --silver-1: #0c1013;
  --silver-2: #3a4148;
  --silver-3: #66707a;
  --emerald: #0b8f68;
  --emerald-soft: rgba(11, 143, 104, .16);
  --danger: #c0392b;
  --text-2: #3d444a;
  --text-3: #2e353b;
  --nav: #262c31;
  --header-bg: rgba(245, 246, 247, .92);
  --panel: #ffffff;
  --panel-2: #f0f2f3;
  --tint: rgba(12, 16, 19, .06);
  --ph-grad: linear-gradient(160deg, #eef0f2, #dde1e4);
  --silver-grad: linear-gradient(100deg, #0c1013 0%, #3a4148 40%, #6b747c 62%, #1c2126 100%);
  --btn-bg: linear-gradient(180deg, #2b3237, #0c1013);
  --btn-fg: #f5f6f7;
  --ghost-bg: rgba(255, 255, 255, .5);
  color-scheme: light;
}
.topbar, .hero, .banner, .tile, .site-footer {
  --bg: #050607;
  --surface: #0c0e10;
  --surface-2: #14171a;
  --line: rgba(213, 217, 222, .13);
  --line-strong: rgba(213, 217, 222, .3);
  --text: #eceef0;
  --muted: #959ca3;
  --silver-1: #f1f3f5;
  --silver-2: #b9bfc5;
  --silver-3: #7d848b;
  --emerald: #27c997;
  --emerald-soft: rgba(39, 201, 151, .2);
  --text-2: #c4c9ce;
  --text-3: #cfd3d7;
  --nav: #d6dade;
  --tint: rgba(255, 255, 255, .06);
  --silver-grad: linear-gradient(100deg, #fff 0%, #c9ced3 38%, #8f969d 62%, #e8ebee 100%);
  --btn-bg: linear-gradient(180deg, #f4f6f8, #b4bac0);
  --btn-fg: #07090a;
  --ghost-bg: rgba(5, 6, 7, .25);
  color-scheme: dark;
  --bar-bg: #0a0c0d;
}
html[data-theme="light"] .site-header .logo img, html[data-theme="light"] .ph img, html[data-theme="light"] .pdp .ph img { filter: invert(1) brightness(.25); }
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) .site-header .logo img, html:not([data-theme="dark"]) .ph img { filter: invert(1) brightness(.25); } }
.site-footer .ph img, .tile .ph img, .hero .ph img { filter: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
html.i18n-pending body { opacity: 0; animation: i18nShow .01s 2.2s forwards; }
@keyframes i18nShow { to { opacity: 1; } }
html[lang="ar"] { --font-display: "Noto Naskh Arabic", "Amiri", serif; --font-body: "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; text-transform: none !important; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--silver-1); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: .005em; color: var(--silver-1); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--silver-1); color: var(--bg); padding: 10px 16px; z-index: 200; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: calc(100% - var(--gutter) * 2); max-width: var(--max); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 132px); }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }

/* ---------- Type ---------- */
.display-xl { font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: .98; letter-spacing: -.012em; }
.display-l { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.008em; }
.display-m { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--text-2); max-width: 54ch; }
.muted { color: var(--muted); }
.silver-text {
  background: var(--silver-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 2rem; border: 1px solid transparent; border-radius: 2px;
  font-size: .95rem; font-weight: 500; letter-spacing: .06em; text-align: center;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary {
  background: var(--btn-bg); color: var(--btn-fg);
}
.btn-primary:hover { color: var(--btn-fg); box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 10px 40px -8px rgba(39, 201, 151, .55); }
.btn-ghost { border-color: var(--line-strong); color: var(--silver-1); background: var(--ghost-bg); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--silver-1); background: var(--tint); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 1.3rem; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: progress; }
.link-line { border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .3s; }
.link-line:hover { border-color: var(--silver-1); }

/* ---------- Top bar ---------- */
.topbar { background: var(--bar-bg); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--text-2); }
.topbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--bar-h); }
.topbar p { margin: 0; text-align: center; letter-spacing: .04em; }
.lang-select {
  appearance: none; -webkit-appearance: none; background-color: transparent; color: inherit; border: 0; border-radius: 2px; cursor: pointer;
  font-size: .8rem; padding: 6px 20px 6px 6px; color-scheme: dark;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 9px) 52%, calc(100% - 5px) 52%; background-size: 4px 4px; background-repeat: no-repeat;
}
.lang-select:hover { color: var(--silver-1); }
.lang-select option { background: var(--surface); color: var(--text); }
.topbar .lang-select { justify-self: end; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90; height: var(--header-h); display: flex; align-items: center;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 48px); width: calc(100% - var(--gutter) * 2); max-width: var(--max); margin-inline: auto; }
.logo img { height: 28px; width: auto; }
.nav-main { display: flex; justify-content: center; gap: clamp(16px, 2.2vw, 34px); }
.nav-main a { position: relative; padding: 8px 0; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--nav); white-space: nowrap; }
.nav-main a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: var(--silver-1); transform: scaleX(0); transform-origin: center; transition: transform .4s var(--ease); }
.nav-main a:hover::after, .nav-main a[aria-current="page"]::after { transform: scaleX(1); }
.nav-util { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.icon-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--silver-1); transition: color .25s; }
.icon-link:hover { color: var(--silver-1); }
.cart-count {
  position: absolute; top: 5px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 17px;
  display: grid; place-items: center; background: var(--emerald); color: #02110b; font-size: .66rem; font-weight: 600; letter-spacing: 0; line-height: 1;
}
.cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--silver-1); }
.menu-btn span { display: block; width: 22px; height: 1px; background: var(--silver-1); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 1100px) {
  .nav-main { display: none; }
  .menu-btn { display: flex; }
  .header-row { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  .topbar p { font-size: .74rem; }
  .topbar .lang-select { display: none; }
  .topbar .wrap { grid-template-columns: 1fr; }
  .logo img { height: 24px; }
  :root { --header-h: 60px; --bar-h: 34px; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: var(--bg); padding: calc(var(--header-h) + var(--bar-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a.big { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.3; color: var(--silver-1); padding: 5px 0; }
.mobile-menu .small-links { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; color: var(--muted); font-size: .95rem; justify-items: start; }
.mobile-menu .lang-select { border: 1px solid var(--line-strong); padding: 10px 28px 10px 12px; font-size: .95rem; background-position: calc(100% - 13px) 52%, calc(100% - 9px) 52%; }

/* ---------- Search panel ---------- */
.search-panel {
  position: fixed; inset: 0 0 auto 0; z-index: 140; background: var(--panel); border-bottom: 1px solid var(--line-strong); max-height: 92vh; overflow-y: auto;
  padding: 18px 0 32px; transform: translateY(-104%); transition: transform .45s var(--ease); visibility: hidden;
}
.search-panel.is-open { transform: none; visibility: visible; }
#search-form { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
#search-form svg { flex: none; color: var(--muted); }
#search-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--silver-1); padding: 6px 0; }
#search-input::placeholder { color: var(--silver-3); }
#search-input::-webkit-search-cancel-button { display: none; }
#search-body { padding-top: 26px; min-height: 120px; }
.search-title { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.search-links { display: flex; flex-wrap: wrap; gap: 10px; }
.search-links a { padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 40px; font-size: .95rem; color: var(--nav); transition: border-color .25s, background .25s; }
.search-links a:hover { border-color: var(--silver-1); background: var(--tint); }
.search-empty { color: var(--text-2); margin: 0; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(20px, 4vw, 64px); }
.search-results a { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-results .thumb { position: relative; width: 56px; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.search-results .thumb img.photo { width: 100%; height: 100%; object-fit: cover; }
.search-results .thumb .ph img { width: 40%; }
.search-results strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--silver-1); line-height: 1.2; }
.search-results em { font-style: normal; font-size: .85rem; color: var(--muted); }
.search-results .p { color: var(--silver-1); }
.search-all { display: inline-block; margin-top: 22px; }
@media (max-width: 760px) { .search-results { grid-template-columns: 1fr; } }
.search-note { margin: 0 0 18px; color: var(--text-2); }

/* ---------- Page head (inner pages) ---------- */
.page-head { position: relative; padding: clamp(44px, 6vw, 84px) 0 clamp(32px, 4vw, 56px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 90%;
  background: radial-gradient(closest-side, rgba(39, 201, 151, .16), transparent 70%); filter: blur(30px); pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.page-head .wrap { position: relative; }
.page-head p { max-width: 56ch; color: var(--text-2); margin: 18px 0 0; font-size: 1.05rem; }
@keyframes drift { to { transform: translate3d(-8%, 6%, 0) scale(1.12); } }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--silver-1); }
.crumbs span { margin: 0 .5em; opacity: .5; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(560px, calc(100svh - var(--header-h) - var(--bar-h))); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,6,7,.62) 0%, rgba(5,6,7,0) 26%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5,6,7,.78) 22%, rgba(5,6,7,.12) 62%),
    linear-gradient(90deg, rgba(5,6,7,.72) 0%, rgba(5,6,7,0) 62%);
}
.hero-inner { width: calc(100% - var(--gutter) * 2); max-width: var(--max); margin-inline: auto; padding-bottom: clamp(40px, 8vh, 88px); padding-top: 120px; }
.hero h1 { max-width: none; }
.hero h1 .hl { display: block; }
.hero h1 .hl > span { display: block; padding-bottom: .1em; opacity: 0; transform: translateY(40%); animation: rise 1.5s var(--ease) forwards;
  background: linear-gradient(100deg, #fff 0%, #c9ced3 45%, #8f969d 75%, #e8ebee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .hl:nth-child(2) > span { animation-delay: .16s; }
.hero h1 .hl:nth-child(3) > span { animation-delay: .28s; }
@keyframes rise { to { transform: none; opacity: 1; } }
.hero .lede { margin: 26px 0 36px; opacity: 0; animation: fade 1.2s .8s var(--ease) forwards; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fade 1.2s 1s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }

/* ---------- Assurance row ---------- */
.assure { border-block: 1px solid var(--line); }
.assure ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.assure li { padding: 26px 24px; border-inline-start: 1px solid var(--line); }
.assure li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.assure strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--silver-1); margin-bottom: 2px; }
.assure span { font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) {
  .assure ul { grid-template-columns: 1fr 1fr; }
  .assure li { border-inline-start: 0; padding: 22px 0; border-top: 1px solid var(--line); }
  .assure li:nth-child(-n+2) { border-top: 0; }
  .assure li:nth-child(2n) { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
}

/* ---------- Section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.sec-head p { margin: 14px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- Aura surfaces: light follows the pointer ---------- */
.aura { position: relative; overflow: hidden; isolation: isolate; }
.aura::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(39, 201, 151, .26), rgba(39, 201, 151, .06) 55%, transparent 75%);
  mix-blend-mode: screen;
}
.aura:hover::after, .aura:focus-visible::after { opacity: 1; }

/* ---------- Placeholder (until product photos are added) ---------- */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(70% 55% at 30% 18%, rgba(39, 201, 151, .2), transparent 70%),
    radial-gradient(60% 50% at 80% 90%, rgba(109, 191, 93, .1), transparent 70%),
    var(--ph-grad);
}
.ph img { width: 22%; height: auto; opacity: .55; }

/* ---------- Tiles (gender + category) ---------- */
.tiles-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tiles-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: clamp(18px, 2.4vw, 32px); border: 1px solid var(--line); background: var(--surface); transition: border-color .4s; }
.tile:hover { border-color: var(--line-strong); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5, 6, 7, .72), rgba(5, 6, 7, 0) 58%); pointer-events: none; }
.tile .ph img { width: 11%; opacity: .4; }
.tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile > div { position: relative; z-index: 2; }
.tile h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.1; }
.tile p { margin: 6px 0 0; font-size: .92rem; color: #b4bac0; }
.tile-big { aspect-ratio: 16 / 10; }
.tile-big h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.tile-big .ph img { width: 9%; }
@media (max-width: 760px) { .tiles-2 { grid-template-columns: 1fr; } .tile-big { aspect-ratio: 16 / 9; } .tiles-6 { grid-template-columns: 1fr 1fr; } .tile { aspect-ratio: 1 / 1; padding: 16px; } .tile .ph img { width: 18%; } }

/* ---------- Product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .grid, .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; } }
.card-media { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); transition: border-color .4s; }
.card:hover .card-media { border-color: var(--line-strong); }
.card-media > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 4px 10px; font-size: .74rem; letter-spacing: .08em; color: #04120c; background: var(--emerald); border-radius: 20px; font-weight: 500; }
.card-body { padding-top: 16px; display: grid; gap: 2px; }
.card h3 { font-size: 1.35rem; line-height: 1.2; }
.card .kind { font-size: .88rem; color: var(--muted); }
.badge-sold { background: var(--surface-2); color: var(--silver-1); border: 1px solid var(--line-strong); }
.badge-sale { background: var(--silver-1); color: var(--bg); }
.was { color: var(--silver-3); margin-inline-end: .35em; text-decoration: line-through; font-size: .92em; }
.card .price { margin: 6px 0 0; color: var(--silver-1); font-weight: 400; letter-spacing: .03em; }
.card[hidden] { display: none; }

/* ---------- Two-column feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 22px; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* ---------- Gift banner ---------- */
.banner { position: relative; min-height: clamp(380px, 52vw, 620px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,6,7,.92) 0%, rgba(5,6,7,.6) 45%, rgba(5,6,7,.05) 100%); }
.banner .inner { max-width: 520px; }
.banner p { color: #c4c9ce; margin: 18px 0 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 32px; margin-top: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--bg), #030404); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid li a { color: #cfd3d7; }
.footer-grid li a:hover { color: #fff; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-right { display: inline-flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-base .lang-select { border: 1px solid var(--line-strong); padding: 8px 28px 8px 12px; background-position: calc(100% - 13px) 52%, calc(100% - 9px) 52%; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Shop: toolbar + filters ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: 32px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.toolbar .count { color: var(--muted); font-size: .95rem; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.select, .field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px; padding: 13px 14px; min-height: 50px; color: var(--text);
  appearance: none; -webkit-appearance: none; transition: border-color .25s;
}
.select, .field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 54%, calc(100% - 14px) 54%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.select { width: auto; min-width: 190px; min-height: 44px; padding-block: 9px; }
.field input:focus, .field select:focus, .field textarea:focus, .select:focus { border-color: var(--silver-1); outline: none; box-shadow: 0 0 0 3px rgba(39,201,151,.2); }
.filters { position: sticky; top: calc(var(--header-h) + 24px); }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 0 0 22px; margin-bottom: 22px; min-width: 0; }
.filters legend { font-family: var(--font-display); font-size: 1.25rem; color: var(--silver-1); padding: 0; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; color: var(--text-3); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 2px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input[type="radio"] + .box { border-radius: 50%; }
.check input:checked + .box { background: var(--emerald); border-color: var(--emerald); }
.check input:checked + .box::after { content: ""; width: 5px; height: 9px; border: solid #021008; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input[type="radio"]:checked + .box::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: #021008; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--emerald); outline-offset: 2px; }
.filter-clear { background: none; border: 0; padding: 0; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.filter-clear:hover { color: var(--silver-1); }
.filter-toggle { display: none; }
.filters-head, .filters-foot { display: none; }
.empty { padding: 72px 0; text-align: center; border: 1px dashed var(--line-strong); }
.empty h3 { font-size: 1.8rem; margin-bottom: 10px; }
.empty p { color: var(--muted); margin-bottom: 26px; }
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .filter-toggle { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 120; width: 92vw; max-width: 380px; background: var(--bg); padding: 0; border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform .45s var(--ease); overflow-y: auto; display: flex; flex-direction: column; top: 0;
  }
  .filters.is-open { transform: none; }
  .filters form { padding: 8px 24px 24px; flex: 1; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; font-family: var(--font-display); font-size: 1.6rem; }
  .filters-foot { display: block; padding: 16px 24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg); }
}
.scrim { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.66); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.scrim.is-open { opacity: 1; visibility: visible; }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: var(--silver-1); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); padding-top: 36px; padding-bottom: clamp(48px, 6vw, 96px); }
.pdp-gallery .main { position: relative; aspect-ratio: 1 / 1.05; background: var(--surface); border: 1px solid var(--line); }
.pdp-gallery .main > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pdp-gallery .thumbs button { aspect-ratio: 1; padding: 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.pdp-gallery .thumbs button[aria-current="true"] { border-color: var(--silver-1); }
.pdp-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { align-self: start; position: sticky; top: calc(var(--header-h) + 28px); }
.pdp-info h1 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); line-height: 1.05; margin-bottom: 14px; }
.pdp-price { font-size: 1.4rem; font-weight: 400; color: var(--silver-1); margin-bottom: 20px; letter-spacing: .02em; }
.pdp-short { color: var(--text-2); font-size: 1.05rem; max-width: 46ch; }
.opt { margin-top: 28px; }
.opt-label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .92rem; }
.opt-label b { font-weight: 400; color: var(--silver-1); }
.opt-label span { color: var(--muted); }

.qty { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 2px; }
.qty button { width: 44px; height: 48px; background: none; border: 0; font-size: 1.2rem; }
.qty button:hover { background: var(--tint); }
.qty input { width: 48px; text-align: center; background: none; border: 0; font-size: 1rem; appearance: textfield; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; margin-top: 30px; }
.buy-row .btn { flex: 1; }
.form-msg { min-height: 1.4em; margin-top: 12px; font-size: .92rem; color: var(--danger); }
.form-msg.ok { color: var(--emerald); }
.pdp-assure { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.pdp-assure li { padding-left: 22px; position: relative; }
.pdp-assure li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--emerald); }
.acc { margin-top: 32px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--silver-1); display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 0 22px; color: var(--text-2); }
.acc ul { margin: 0; padding-left: 1.1em; }
.acc li { margin-bottom: 6px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .pdp-info { position: static; } }

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 130; width: 100vw; max-width: 460px; background: var(--panel); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(104%); transition: transform .5s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.7rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.ship-meter { padding: 18px 24px 0; font-size: .9rem; color: var(--text-2); }
.ship-meter .bar { height: 3px; background: var(--line-strong); margin-top: 10px; border-radius: 3px; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald), #b8f5de); transition: width .6s var(--ease); }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line .thumb { position: relative; width: 84px; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.line .thumb img.photo { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: 1.2rem; line-height: 1.2; }
.line .opts { color: var(--muted); font-size: .88rem; margin: 4px 0 10px; }
.line .row { display: flex; justify-content: space-between; align-items: center; }
.line .qty button { width: 34px; height: 36px; }
.line .qty input { width: 36px; font-size: .95rem; }
.line .remove { background: none; border: 0; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line-strong); padding: 0; }
.line .remove:hover { color: var(--silver-1); }
.drawer-empty { text-align: center; padding: 64px 12px; color: var(--muted); }
.drawer-empty h3 { font-size: 1.7rem; margin-bottom: 8px; }
.drawer-empty .btn { margin: 6px 4px 0; min-height: 46px; padding: 0 1.4rem; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--panel-2); }
.subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 4px; color: var(--silver-1); }
.drawer-foot small { display: block; color: var(--muted); margin-bottom: 16px; }
.optin { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.optin input { width: 16px; height: 16px; accent-color: var(--emerald); flex: none; }
.secure { margin-top: 12px; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- Forms / content pages ---------- */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: .92rem; color: var(--text-3); }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.content-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 7vw, 120px); padding-block: clamp(40px, 6vw, 80px); }
.contact-card { padding: 26px 0; border-top: 1px solid var(--line); }
.contact-card:last-child { border-bottom: 1px solid var(--line); }
.contact-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .content-grid { grid-template-columns: 1fr; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 2rem; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.4rem; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; }
.prose th, .prose td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 400; color: var(--silver-1); }
.prose a { border-bottom: 1px solid var(--line-strong); }
.success { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.success img { width: 70px; margin: 0 auto 28px; }
.success p { max-width: 46ch; margin: 18px auto 32px; color: var(--text-2); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero h1 .hl > span, .hero .lede, .hero .cta-row { transform: none; opacity: 1; }
}

/* ---------- Right-to-left (Arabic) ---------- */
html[dir="rtl"] .skip { left: auto; right: 12px; }
html[dir="rtl"] .badge { left: auto; right: 14px; }
html[dir="rtl"] .page-head::before { inset: -40% auto auto -10%; }
html[dir="rtl"] .hero::after { background: linear-gradient(180deg, rgba(5,6,7,.62) 0%, rgba(5,6,7,0) 26%), linear-gradient(0deg, var(--bg) 0%, rgba(5,6,7,.78) 22%, rgba(5,6,7,.12) 62%), linear-gradient(270deg, rgba(5,6,7,.72) 0%, rgba(5,6,7,0) 62%); }
html[dir="rtl"] .banner::after { background: linear-gradient(270deg, rgba(5,6,7,.92) 0%, rgba(5,6,7,.6) 45%, rgba(5,6,7,.05) 100%); }
html[dir="rtl"] .drawer { inset: 0 auto 0 0; border-left: 0; border-right: 1px solid var(--line); transform: translateX(-104%); }
html[dir="rtl"] .drawer.is-open { transform: none; }
html[dir="rtl"] .select, html[dir="rtl"] .field select { background-position: 20px 54%, 14px 54%; padding-right: 14px; padding-left: 40px; }
html[dir="rtl"] .lang-select { padding: 6px 6px 6px 20px; background-position: 9px 52%, 5px 52%; }
html[dir="rtl"] .footer-base .lang-select, html[dir="rtl"] .mobile-menu .lang-select { padding: 8px 12px 8px 28px; background-position: 13px 52%, 9px 52%; }
html[dir="rtl"] .pdp-assure li { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .pdp-assure li::before { left: auto; right: 0; }
html[dir="rtl"] .acc ul, html[dir="rtl"] .prose ul { padding-left: 0; padding-right: 1.2em; }
html[dir="rtl"] .prose th, html[dir="rtl"] .prose td { text-align: right; padding: 14px 0 14px 12px; }
@media (max-width: 960px) {
  html[dir="rtl"] .filters { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid var(--line); transform: translateX(102%); }
  html[dir="rtl"] .filters.is-open { transform: none; }
}

/* Theme toggle (footer and mobile menu) */
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--silver-2); padding: 0; }
.theme-toggle:hover { color: var(--silver-1); border-color: var(--silver-1); }
.theme-toggle .i-moon { display: none; } .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; } :root[data-theme="light"] .theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; } :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; } }
.site-footer .theme-toggle { color: var(--silver-2); }
