/* Wëëzy shop — midnight apothecary design system */

:root {
  --ink: #07080c;
  --surface: #0d0f16;
  --surface-2: #12141d;
  --text: #ece9e2;
  --muted: #9a978f;
  --cobalt: #2e59ff;
  --cobalt-glow: #5d84ff;
  --bronze: #a9825a;
  --line: rgba(236, 233, 226, 0.12);
  --danger: #e05252;
  --ok: #4cae6e;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[lang="ar"] { font-family: var(--font-ar); }
::selection { background: var(--cobalt); color: #fff; }

.container { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }

/* ── Nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  border: 1px solid rgba(236, 233, 226, 0.2);
  font-family: var(--font-display);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__links a { color: var(--muted); padding-block: 0.3rem; transition: color 0.3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }

.nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  transition: border-color 0.3s, background 0.3s;
}

.nav__cart:hover { border-color: var(--cobalt-glow); background: rgba(46, 89, 255, 0.12); }

.nav__cart-count {
  display: grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  font-size: 0.72rem;
}

.nav__actions { display: flex; align-items: center; gap: 0.7rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease-lux), opacity 0.3s;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

/* ── Mobile menu overlay ── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.6rem;
  background: rgba(7, 8, 12, 0.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-lux), visibility 0.45s;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-lux), transform 0.5s var(--ease-lux);
}

.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(6) { transition-delay: 0.36s; }

.mobile-menu__links a span { display: block; font-family: var(--font-body); font-size: 0.5em; color: var(--muted); letter-spacing: 0.1em; margin-top: 0.2rem; }

.mobile-menu__whatsapp {
  letter-spacing: 0.2em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  font-size: 0.85rem;
}

/* ── Footer ── */

.footer {
  margin-top: clamp(4rem, 9vh, 7rem);
  padding: 3rem 1.5rem 2.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__mark { font-family: var(--font-display); font-size: 2rem; color: var(--text); margin-bottom: 0.8rem; }
.footer__disclaimer { max-width: 72ch; margin: 1.2rem auto 0.4rem; font-size: 0.8rem; opacity: 0.8; }
.footer__disclaimer[lang="ar"] { font-size: 0.95rem; }
.footer a { color: var(--bronze); }

/* ── Shared bits ── */

.kicker {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--bronze);
}

.title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-lux);
}

.btn:hover { border-color: var(--cobalt-glow); background: rgba(46, 89, 255, 0.12); transform: translateY(-2px); }

.btn--primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--primary:hover { background: #2549d8; }

.flash {
  margin: 1.2rem auto;
  max-width: 1240px;
  padding: 0.9rem 1.4rem;
  border: 1px solid rgba(76, 174, 110, 0.4);
  border-radius: 0.6rem;
  background: rgba(76, 174, 110, 0.12);
  color: #9fd8b4;
  font-size: 0.95rem;
}

/* ── Home hero ── */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78vh;
  overflow: hidden;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 70% at center, transparent 20%, var(--ink) 90%); }

.hero__inner { position: relative; max-width: 780px; }
.hero__inner .title { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.hero__sub { color: var(--muted); max-width: 56ch; margin: 0 auto 2.2rem; }
.hero__tagline-ar { display: block; margin-top: 0.8rem; font-size: 1.35rem; color: var(--text); }

/* ── Product grid ── */

.section { padding-block: clamp(3.5rem, 8vh, 6rem); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(1.3rem, 2.5vw, 2rem);
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
  transition: transform 0.5s var(--ease-lux), border-color 0.4s, box-shadow 0.5s;
}

.pcard:hover {
  transform: translateY(-6px);
  border-color: rgba(93, 132, 255, 0.5);
  box-shadow: 0 24px 60px -24px rgba(46, 89, 255, 0.4);
}

.pcard__img { aspect-ratio: 4 / 5; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-lux); }
.pcard:hover .pcard__img img { transform: scale(1.05); }

.pcard__body { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.pcard__name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.pcard__name [lang="ar"] { color: var(--muted); font-size: 0.85em; margin-inline-start: 0.35rem; }
.pcard__inspired { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.pcard__price { margin-top: auto; padding-top: 0.6rem; color: var(--bronze); letter-spacing: 0.08em; }

/* ── Shop filters ── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 2.2rem;
}

.filters__group { display: inline-flex; gap: 0.5rem; }

.chip {
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.3s;
}

.chip:hover { color: var(--text); border-color: var(--cobalt-glow); }
.chip.is-active { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

.filters__search {
  margin-inline-start: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  width: min(100%, 620px);
  flex: 1;
}

.filters__search-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--surface-2);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.filters__search-wrap:focus-within {
  border-color: var(--cobalt-glow);
  box-shadow: 0 0 0 3px rgba(93, 132, 255, 0.18);
}

.filters__search-icon {
  color: var(--muted);
  font-size: 1.05rem;
}

.filters__search-wrap input[type="search"] {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0.75rem 0.2rem;
}

.filters__search-wrap input[type="search"]:focus {
  border: none;
}

.filters__search-btn {
  white-space: nowrap;
  padding-inline: 1.4rem;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus { border-color: var(--cobalt-glow); }

/* ── Product page ── */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-top: clamp(2rem, 5vh, 4rem);
}

.product__media {
  position: sticky;
  top: 92px;
}

.product__hero {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.product__hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.32s var(--ease-lux);
  will-change: transform;
}

.product__hero.is-hover-zoom {
  cursor: zoom-in;
}

.product__hero.is-hover-zoom img {
  transform: scale(2);
}

.product__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.product__thumb {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  overflow: hidden;
  padding: 0;
  background: var(--surface-2);
  cursor: pointer;
}

.product__thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product__thumb.is-active {
  border-color: var(--cobalt-glow);
  box-shadow: 0 0 0 2px rgba(93, 132, 255, 0.2);
}

.product__name { margin: 0 0 0.2rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; }
.product__name [lang="ar"] { color: var(--muted); font-size: 0.6em; margin-inline-start: 0.5rem; }

.product__inspired { color: var(--muted); font-style: italic; margin: 0 0 0.3rem; }
.product__inspired strong { color: var(--bronze); font-weight: 500; }

.product__gender { font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

.product__desc { color: var(--muted); margin: 1.4rem 0; max-width: 58ch; }
.product__desc-ar { font-size: 1.15rem; color: var(--text); }

/* accord bars — the Fragrantica-style strength chart */

.accords { margin: 2rem 0; }
.accords__title, .pyramid__title, .profile__title {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bronze);
}

.accords__list { display: flex; flex-direction: column; gap: 0.55rem; }

.accord {
  --w: 50%;
  position: relative;
  height: 2.4rem;
  border-radius: 0.45rem;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.accord__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 0.45rem;
  display: flex;
  align-items: center;
  padding-inline: 0.9rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transform-origin: left;
  animation: accordGrow 0.9s var(--ease-lux) backwards;
}

@keyframes accordGrow {
  from { width: 0; opacity: 0; }
}

/* notes pyramid */

.pyramid { margin: 2.4rem 0; }

.pyramid__panel {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(93, 132, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--surface-2);
  overflow: hidden;
}

.pyramid__layer {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.1rem 1.2rem;
  align-items: start;
}

.pyramid__layer + .pyramid__layer { border-top: 1px solid var(--line); }

.pyramid__meta {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding-top: 0.2rem;
}

.pyramid__label {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
}

.pyramid__subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pyramid__notes { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.note-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(236, 233, 226, 0.14);
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.note-chip i {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.note-chip small {
  color: var(--muted);
  font-size: 0.82rem;
}

/* fragrance profile meters */

.profile { margin: 2.4rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.profile > .profile__title { grid-column: 1 / -1; margin-bottom: 0; }

.profile__full { grid-column: 1 / -1; }

.profile__block {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)), var(--surface-2);
}

.profile__eyebrow {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.meter { font-size: 0.92rem; }
.meter--card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)), var(--surface-2);
}
.meter__label { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 0.4rem; }
.meter__label strong { color: var(--text); font-weight: 400; }

.daynight {
  display: flex;
  height: 3rem;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.02);
}
.daynight span { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.daynight__day {
  background: linear-gradient(90deg, rgba(93, 132, 255, 0.92), rgba(93, 132, 255, 0.72));
  color: #f6f8ff;
}
.daynight__night {
  background: linear-gradient(90deg, rgba(38, 46, 86, 0.88), rgba(17, 20, 29, 0.92));
  color: #f2e9e2;
  flex: 1;
}

.season-bars { display: grid; gap: 0.66rem; }

.season-row {
  --fill: 0%;
  --season: var(--cobalt);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.season-row__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  background: linear-gradient(90deg, color-mix(in srgb, var(--season), #ffffff 10%), var(--season));
  opacity: 0.9;
}

.season-row__label,
.season-row__value {
  position: relative;
  z-index: 1;
  padding-inline: 0.85rem;
  font-size: 0.9rem;
}

.season-row__value {
  color: #f6f1e9;
  font-weight: 500;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 10, 0.84);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-lux), visibility 0.3s;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal__dialog {
  width: min(94vw, 1100px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 1rem;
}

.gallery-modal__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.gallery-modal__toolbar button,
.gallery-modal__nav {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.gallery-modal__zoom-tools {
  display: inline-flex;
  gap: 0.45rem;
}

.gallery-modal__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.gallery-modal__image-wrap {
  min-height: min(76vh, 720px);
  display: grid;
  place-items: center;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #05060a;
}

.gallery-modal__image-wrap img {
  max-width: 100%;
  max-height: min(76vh, 720px);
  transition: transform 0.2s ease;
  transform-origin: center center;
}

/* buy box */

.buy {
  margin-top: 2.2rem;
  padding: 1.6rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.buy select { min-width: 200px; flex: 1; }
.buy__qty { width: 5.2rem; text-align: center; }

.disclaimer-inline {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
  max-width: 60ch;
}

/* ── Cart & checkout ── */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 1rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; border-radius: 0.5rem; }

.cart-item { display: flex; align-items: center; gap: 1rem; }
.cart-item__name { font-family: var(--font-display); font-size: 1.1rem; }
.cart-item__size { color: var(--muted); font-size: 0.85rem; }

.linklike { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; padding: 0; }
.linklike:hover { text-decoration: underline; }

.totals { margin-top: 1.6rem; margin-left: auto; max-width: 380px; display: flex; flex-direction: column; gap: 0.5rem; }
.totals__row { display: flex; justify-content: space-between; color: var(--muted); }
.totals__row--grand { color: var(--text); font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.4rem; }

.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.checkout .field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.checkout label { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.checkout input, .checkout textarea { width: 100%; }
.checkout__summary { position: sticky; top: 92px; padding: 1.6rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 0.8rem; }
.checkout__cod { margin-top: 1rem; padding: 0.9rem 1.1rem; border: 1px dashed var(--bronze); border-radius: 0.6rem; color: var(--bronze); font-size: 0.9rem; }

.error { color: var(--danger); font-size: 0.85rem; }

/* confirmation */

.confirm { text-align: center; max-width: 620px; margin-inline: auto; padding-top: clamp(3rem, 8vh, 6rem); }
.confirm__number { font-family: var(--font-display); font-size: 1.6rem; color: var(--cobalt-glow); letter-spacing: 0.06em; }

/* ── Cart / checkout — boxes ── */

.cart-box, .checkout-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--bronze);
  border-radius: 0.7rem;
  flex-wrap: wrap;
}

.cart-box__thumbs { display: flex; }
.cart-box__thumbs img {
  width: 46px; height: 58px; object-fit: cover; border-radius: 0.4rem;
  border: 2px solid var(--surface-2);
  margin-inline-start: -14px;
}
.cart-box__thumbs img:first-child { margin-inline-start: 0; }

.cart-box__body { flex: 1; min-width: 200px; }
.cart-box__label { font-family: var(--font-display); font-size: 1.15rem; color: var(--bronze); }
.cart-box__items { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.cart-box__price { font-family: var(--font-display); font-size: 1.2rem; }

/* ── Build a box ── */

.box-tiers { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }

.box-tier {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.4rem 1rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s var(--ease-lux), box-shadow 0.4s;
}

.box-tier:hover { transform: translateY(-4px); border-color: var(--cobalt-glow); }
.box-tier.is-active { border-color: var(--cobalt); background: rgba(46, 89, 255, 0.14); box-shadow: 0 16px 40px -20px rgba(46, 89, 255, 0.5); }

.box-tier__qty { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.box-tier__label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.box-tier__price { font-size: 1.15rem; margin-top: 0.3rem; }
.box-tier__save { font-size: 0.76rem; color: var(--bronze); margin-top: 0.2rem; }

.box-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.6rem, 3vw, 2.6rem); align-items: start; }

.box-shelf__hint { color: var(--bronze); font-size: 0.9rem; margin: 0 0 1.2rem; }
.box-shelf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }

.box-shelf__card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  overflow: hidden;
  transition: border-color 0.3s;
}

.box-shelf__card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.box-shelf__card h3 { margin: 0.7rem 0.8rem 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.box-shelf__card h3 [lang="ar"] { color: var(--muted); font-size: 0.8em; margin-inline-start: 0.3rem; }
.box-shelf__row { display: flex; gap: 0.5rem; padding: 0.7rem 0.8rem 0.9rem; }
.box-shelf__size { flex: 1; padding: 0.5rem 0.6rem; font-size: 0.85rem; }
.box-shelf__add { padding: 0.5rem 0.9rem; font-size: 0.8rem; white-space: nowrap; }
.box-shelf__add:disabled { opacity: 0.4; cursor: not-allowed; }

.box-tray {
  position: sticky;
  top: 92px;
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.box-tray__title { margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.box-tray__progress { color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem; }
.box-tray__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; max-height: 320px; overflow-y: auto; }

.box-tray__item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.88rem; }
.box-tray__item img { width: 36px; height: 44px; object-fit: cover; border-radius: 0.35rem; }
.box-tray__item span { flex: 1; }
.box-tray__item small { color: var(--muted); }
.box-tray__remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.9rem; }

/* pagination (Tailwind-free) */

.pagination { display: flex; gap: 0.4rem; margin-top: 2.4rem; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding-inline: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.pagination a:hover { border-color: var(--cobalt-glow); color: var(--text); }
.pagination .is-current { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__media { position: static; max-width: 420px; }
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .profile { grid-template-columns: 1fr; }
  .box-layout { grid-template-columns: 1fr; }
  .box-tray { position: static; }
  .pyramid__layer { grid-template-columns: 1fr; gap: 0.9rem; }
  .filters__search { width: 100%; min-width: 0; }
  .gallery-modal__dialog { width: 96vw; }
  .gallery-modal__stage { grid-template-columns: 1fr; }
  .gallery-modal__nav { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
