:root {
  --navy: #3B2418;
  --navy-2: #54362A;
  --blue: #8A6450;
  --mist: #D9EBFF;
  --beige: #E4D5C1;
  --sand: #EADFCF;
  --white: #F2E8DA;
  --ink: #3B2418;
  --muted: #7A6455;
  --line: rgba(59, 36, 24, 0.14);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar"] {
  --serif: "Amiri", serif;
  --sans: "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }

/* ---------- shared ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); font-weight: 400; margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow--light { color: var(--beige); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; color: var(--navy); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; text-align: start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; transition: all .35s var(--ease); border: 1px solid var(--navy);
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 15px; }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); }
.btn--line { color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }
.link { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
html[lang="ar"] .link { letter-spacing: 0; font-size: 15px; }

/* ---------- announce + header ---------- */
.announce {
  background: var(--navy); color: var(--beige); text-align: center;
  font-size: 12px; letter-spacing: .16em; padding: 10px 16px; text-transform: uppercase;
}
html[lang="ar"] .announce { letter-spacing: 0; font-size: 14px; }
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242, 232, 218, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px; height: 78px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav { display: flex; gap: 26px; }
.nav a { white-space: nowrap; }
.nav a { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; position: relative; padding: 6px 0; }
html[lang="ar"] .nav a { letter-spacing: 0; font-size: 16px; }
.nav a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 0; height: 1px; background: var(--navy); transition: width .35s var(--ease); }
.nav a:hover::after { width: 100%; }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--navy); }
.logo__en { font-family: "Cormorant Garamond", serif; font-size: 26px; letter-spacing: .42em; font-weight: 500; margin-inline-end: -.42em; }
.logo__ar { font-family: "Amiri", serif; font-size: 15px; margin-top: 4px; color: var(--blue); }

.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.lang-btn { font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); transition: border-color .3s; font-family: "Tajawal", "Jost", sans-serif; }
.lang-btn:hover { border-color: var(--navy); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; position: relative; color: var(--navy); }
.menu-btn { display: none; }
.cart-count {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--navy); color: var(--white); font-size: 10px; display: grid; place-items: center; padding: 0 5px;
  transition: transform .3s var(--ease);
}
.cart-count.bump { transform: scale(1.35); }

/* ---------- hero ---------- */
.hero {
  max-width: 1400px; margin: 0 auto; padding: 60px 40px 90px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  min-height: calc(100vh - 118px);
}
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 7.4vw, 112px); line-height: .98; color: var(--navy); letter-spacing: -.01em; }
html[lang="ar"] .hero__title { line-height: 1.3; }
.hero__title em { font-style: italic; color: var(--blue); }
html[lang="ar"] .hero__title em { font-style: normal; }
.hero__sub { max-width: 440px; margin: 28px 0 40px; font-size: 18px; color: var(--muted); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual { position: relative; height: min(640px, 72vh); }
.hero__arch {
  position: absolute; inset: 0 8% 0 8%;
  background: linear-gradient(180deg, var(--mist) 0%, var(--beige) 100%);
  border-radius: 999px 999px 0 0;
}
.hero__jar { position: absolute; bottom: 9%; filter: drop-shadow(0 30px 40px rgba(59, 36, 24, .22)); }
.hero__jar svg { width: 100%; height: auto; }
.hero__jar--front { width: 46%; inset-inline-start: 22%; animation: float 7s ease-in-out infinite; }
.hero__jar--back { width: 34%; inset-inline-start: 56%; bottom: 20%; opacity: .96; animation: float 7s ease-in-out -3s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- 3D hero ---------- */
.hero__canvas, .hero__caption, .hero__dots { display: none; }
.hero__visual.has-3d .hero__jar { display: none; }
.hero__visual.has-3d .hero__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.hero__visual.has-3d .hero__canvas:active { cursor: grabbing; }
.hero__visual.has-3d .hero__caption {
  display: flex; align-items: center; gap: 18px; position: absolute; bottom: 0; inset-inline-start: 50%;
  transform: translateX(-50%); white-space: nowrap; background: rgba(242, 232, 218, .82); backdrop-filter: blur(10px);
  padding: 10px 10px 10px 22px; border: 1px solid var(--line); animation: capIn .6s var(--ease) both;
}
[dir="rtl"] .hero__visual.has-3d .hero__caption { transform: translateX(50%); padding: 10px 22px 10px 10px; }
.hero__cap-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero__cap-type { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
html[lang="ar"] .hero__cap-type { letter-spacing: 0; font-size: 13px; }
.hero__cap-name { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.hero__cap-add { background: var(--navy); color: var(--white); padding: 12px 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: background .3s; }
html[lang="ar"] .hero__cap-add { letter-spacing: 0; font-size: 14px; }
.hero__cap-add:hover { background: var(--navy-2); }
.hero__visual.has-3d .hero__dots { display: flex; flex-direction: column; gap: 12px; position: absolute; top: 50%; inset-inline-end: 0; transform: translateY(-50%); }
.hero__dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--navy); position: relative; transition: transform .3s var(--ease); }
.hero__dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform .3s var(--ease); }
.hero__dot.is-active::after, .hero__dot:hover::after { transform: scale(1); }
.hero__dot.is-active { transform: scale(1.25); }
@keyframes capIn { from { opacity: 0; } to { opacity: 1; } }

/* hero text entrance */
.hero__text > * { animation: heroIn 1s var(--ease) both; }
.hero__text > *:nth-child(2) { animation-delay: .12s; }
.hero__text > *:nth-child(3) { animation-delay: .24s; }
.hero__text > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: perspective(800px) translateY(30px) rotateX(18deg); } to { opacity: 1; transform: none; } }

/* scroll reveal */
.reveal { opacity: 0; transform: perspective(1000px) translateY(46px) rotateX(14deg); transform-origin: 50% 100%;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* 3D tilt glare */
.card__media, .col-card { transition: transform .5s var(--ease); will-change: transform; }
.card__media.is-tilting, .col-card.is-tilting { transition: transform .12s linear; }
.card__media::after, .col-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.45), transparent 55%);
}
.col-card { position: relative; }
.card__media.is-tilting::after, .col-card.is-tilting::after { opacity: 1; }
.col-card--navy::after { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.12), transparent 55%); }

@media (prefers-reduced-motion: reduce) {
  .hero__text > * { animation: none; }
}

/* ---------- collections ---------- */
.collections { max-width: 1400px; margin: 0 auto; padding: 100px 40px; }
.collections__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.col-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; overflow: hidden; transition: transform .5s var(--ease); }
.col-card:hover { transform: translateY(-6px); }
.col-card--navy { background: var(--navy); color: var(--white); }
.col-card--beige { background: var(--sand); color: var(--navy); }
.col-card__art { display: grid; place-items: center; padding: 30px; }
.col-card__art svg { width: 82%; height: auto; filter: drop-shadow(0 20px 26px rgba(0,0,0,.22)); transition: transform .6s var(--ease); }
.col-card:hover .col-card__art svg { transform: scale(1.05) rotate(-2deg); }
.col-card__body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.col-card__num { font-family: var(--serif); font-size: 18px; opacity: .6; }
.col-card h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; }
.col-card p { opacity: .8; }
.col-card .link { align-self: flex-start; margin-top: 10px; }

/* ---------- shop ---------- */
.shop { max-width: 1400px; margin: 0 auto; padding: 40px 40px 120px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 20px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: all .3s; }
html[lang="ar"] .chip { letter-spacing: 0; font-size: 15px; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.card { display: flex; flex-direction: column; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.card__media svg { width: 70%; height: auto; transition: transform .7s var(--ease); filter: drop-shadow(0 18px 22px rgba(59,36,24,.18)); }
.card:hover .card__media svg { transform: scale(1.06); }
.card__badge { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--white); color: var(--navy); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }
html[lang="ar"] .card__badge { letter-spacing: 0; font-size: 13px; }
.card__add {
  position: absolute; inset-inline: 14px; bottom: 14px; padding: 14px; background: var(--navy); color: var(--white);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: all .4s var(--ease);
}
html[lang="ar"] .card__add { letter-spacing: 0; font-size: 15px; }
.card:hover .card__add, .card__add:focus-visible { opacity: 1; transform: none; }
.card__add:hover { background: var(--navy-2); }
.card__info { padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; }
.card__type { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
html[lang="ar"] .card__type { letter-spacing: 0; font-size: 13px; }
.card__name { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--navy); line-height: 1.2; margin: 4px 0; }
.card__notes { font-size: 14px; color: var(--muted); }
.card__price { font-family: var(--serif); font-size: 20px; color: var(--navy); white-space: nowrap; }

/* ---------- ritual ---------- */
.ritual { background: var(--navy); color: var(--white); padding: 130px 40px; position: relative; overflow: hidden; }
.ritual::before {
  content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%;
  border: 1px solid rgba(242, 232, 218, .15); inset-inline-end: -220px; top: -260px;
}
.ritual__inner { max-width: 1200px; margin: 0 auto; position: relative; }
.ritual__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.12; max-width: 820px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 80px; }
.step { border-top: 1px solid rgba(242, 232, 218, .3); padding-top: 28px; }
.step__num { font-family: "Cormorant Garamond", serif; font-size: 22px; color: var(--beige); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 10px 0; }
.step p { color: rgba(242, 232, 218, .72); }

/* ---------- values ---------- */
.values { max-width: 1200px; margin: 0 auto; padding: 110px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.value svg { margin: 0 auto 20px; color: var(--blue); }
.value h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.value p { color: var(--muted); }

/* ---------- newsletter ---------- */
.newsletter { background: var(--sand); padding: 110px 24px; text-align: center; }
.newsletter p { color: var(--muted); margin: 16px auto 36px; max-width: 480px; }
.news-form { display: flex; max-width: 520px; margin: 0 auto; border: 1px solid var(--navy); }
.news-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 16px 20px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.news-form .btn { border: 0; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(242, 232, 218, .75); padding: 90px 40px 30px; }
.footer__grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--beige); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
html[lang="ar"] .footer h4 { letter-spacing: 0; font-size: 15px; }
.footer a:not(.logo) { display: block; margin-bottom: 10px; transition: color .3s; }
.footer a:hover { color: var(--white); }
.logo--footer { align-items: flex-start; color: var(--white); }
.logo--footer .logo__ar { color: var(--beige); }
.footer__tag { margin-top: 18px; max-width: 280px; }
.footer__bottom { max-width: 1400px; margin: 70px auto 0; padding-top: 24px; border-top: 1px solid rgba(242, 232, 218, .12); display: flex; justify-content: space-between; font-size: 13px; gap: 10px; flex-wrap: wrap; }

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(43, 26, 17, .4); opacity: 0; pointer-events: none; transition: opacity .4s; z-index: 60; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--white); z-index: 70;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease);
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none !important; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--navy); }
.drawer__body { flex: 1; overflow-y: auto; padding: 10px 28px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 80px 0; }
.line { display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line__img { background: var(--sand); aspect-ratio: 1; display: grid; place-items: center; }
.line__img svg { width: 74%; height: auto; }
.line__name { font-family: var(--serif); font-size: 19px; color: var(--navy); line-height: 1.2; }
.line__meta { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.qty button { width: 30px; height: 30px; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.line__right { text-align: end; }
.line__price { font-family: var(--serif); font-size: 18px; color: var(--navy); }
.line__remove { font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 8px; }
.drawer__foot { padding: 24px 28px; border-top: 1px solid var(--line); }
.drawer__row { display: flex; justify-content: space-between; font-size: 16px; }
.drawer__row strong { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--navy); }
.drawer__note { font-size: 13px; color: var(--blue); margin: 8px 0 18px; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: var(--white);
  padding: 14px 26px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .4s var(--ease); z-index: 80; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .collections__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .header__inner { padding: 0 16px; height: 68px; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .nav.is-open { max-height: 320px; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .logo__en { font-size: 20px; }
  .header__actions { gap: 6px; }
  .lang-btn { padding: 6px 10px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding: 40px 16px 70px; min-height: 0; gap: 20px; }
  .hero__visual { height: 420px; order: -1; }
  .hero__sub { font-size: 16px; }
  .collections, .shop { padding-inline: 16px; }
  .collections { padding-block: 70px; }
  .col-card { grid-template-columns: 1fr; min-height: 0; }
  .col-card__art { padding: 30px 30px 0; }
  .col-card__art svg { width: 55%; }
  .col-card__body { padding: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
  .card__add { opacity: 1; transform: none; inset-inline: 8px; bottom: 8px; padding: 10px; font-size: 11px; }
  .card__info { flex-direction: column; gap: 4px; }
  .card__name { font-size: 20px; }
  .ritual { padding: 90px 16px; }
  .steps { grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }
  .values { grid-template-columns: 1fr; padding: 80px 16px; }
  .footer { padding: 70px 16px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .logo__en { font-size: 17px; letter-spacing: .3em; margin-inline-end: -.3em; }
  .icon-btn { width: 36px; }
}

/* ---------- production line (scroll-driven 3D) ---------- */
.factory { position: relative; height: 520vh; background: #f4ede2; }
.factory__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.factory__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.factory__head { position: absolute; top: 110px; inset-inline-start: 40px; max-width: 420px; pointer-events: none; }
.factory__head .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.factory__steps {
  position: absolute; top: 50%; inset-inline-end: 40px; transform: translateY(-40%); list-style: none;
  display: flex; flex-direction: column; gap: 6px; width: 290px;
}
.factory__steps li {
  display: flex; gap: 16px; padding: 14px 16px; cursor: pointer; border-inline-start: 1px solid var(--line);
  opacity: .45; transition: opacity .4s, background .4s, border-color .4s;
}
.factory__steps li.is-active { opacity: 1; background: rgba(242, 232, 218, .8); border-color: var(--navy); backdrop-filter: blur(8px); }
.factory__steps li.is-done { opacity: .75; }
.fs__num { font-family: "Cormorant Garamond", serif; font-size: 18px; color: var(--blue); padding-top: 2px; }
.factory__steps strong { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--navy); display: block; line-height: 1.2; }
.factory__steps p { font-size: 14px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.factory__steps li.is-active p { max-height: 60px; margin-top: 4px; }
.factory__bar { position: absolute; bottom: 40px; inset-inline: 40px; height: 2px; background: var(--line); }
.factory__bar span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--navy); }
.factory__hint { position: absolute; bottom: 56px; inset-inline-start: 40px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .4s; }
html[lang="ar"] .factory__hint { letter-spacing: 0; font-size: 14px; }
.factory__done {
  position: absolute; top: 20%; left: 50%; transform: translate(-50%, 20px) scale(.95); display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: var(--white); padding: 14px 26px; font-family: var(--serif); font-size: 24px;
  opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; white-space: nowrap;
}
.factory__done svg { color: var(--beige); }
.factory__done.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
/* fallback when WebGL is not available */
.factory.no-3d { height: auto; }
.factory.no-3d .factory__sticky { position: static; height: auto; padding: 100px 16px; }
.factory.no-3d .factory__canvas, .factory.no-3d .factory__bar, .factory.no-3d .factory__hint, .factory.no-3d .factory__done { display: none; }
.factory.no-3d .factory__head, .factory.no-3d .factory__steps { position: static; transform: none; width: auto; max-width: 600px; margin: 0 auto 30px; }
.factory.no-3d .factory__steps li { opacity: 1; }
.factory.no-3d .factory__steps p { max-height: none; }

@media (max-width: 860px) {
  .factory__head { top: 88px; inset-inline: 16px; max-width: none; text-align: center; }
  .factory__steps { top: auto; bottom: 64px; inset-inline: 16px; width: auto; transform: none; }
  .factory__steps li { display: none; border: 0; }
  .factory__steps li.is-active { display: flex; }
  .factory__bar { inset-inline: 16px; bottom: 40px; }
  .factory__hint { display: none; }
  .factory__done { top: 24%; font-size: 20px; }
}

/* production line: dark navy theme */
.factory { background: #2B1A11; color: var(--white); }
.factory .eyebrow { color: var(--beige); }
.factory .h2 { color: var(--white); }
.factory__steps li { border-color: rgba(242, 232, 218, .2); }
.factory__steps li.is-active { background: rgba(36, 21, 14, .7); border-color: var(--beige); }
.factory .fs__num { color: #8EC5FF; }
.factory__steps strong { color: var(--white); }
.factory__steps p { color: rgba(242, 232, 218, .7); }
.factory__bar { background: rgba(242, 232, 218, .18); }
.factory__bar span { background: var(--beige); }
.factory__hint { color: rgba(242, 232, 218, .7); }
.factory__done { background: var(--beige); color: var(--navy); }
.factory__done svg { color: var(--navy); }

/* =========================================================
   BLACK FRIDAY THEME (body.bf is added by app.js while SALE is active)
   ========================================================= */
.price-was { opacity: .5; font-size: .78em; margin-inline-end: 4px; }
.price-now { color: var(--blue); }
.card__badge--sale { background: #8EC5FF !important; color: #24150E !important; font-weight: 500; }

body.bf {
  --white: #24150E; --ink: #F2E8DA; --navy: #F2E8DA; --navy-2: #ffffff; --blue: #8EC5FF;
  --beige: #8EC5FF; --sand: #2F1D14; --mist: #3A2519; --muted: #B9A796; --line: rgba(242, 232, 218, .16);
  background: #24150E;
}
body.bf .header { background: rgba(36, 21, 14, .85); }
body.bf .hero__visual.has-3d .hero__caption { background: rgba(36, 21, 14, .8); }
body.bf .ritual { background: #2B1A11; color: #F2E8DA; }
body.bf .footer { background: #1C100A; }
body.bf .logo--footer { color: #F2E8DA; }
body.bf .factory__done { color: #24150E; }
body.bf .factory__done svg { color: #24150E; }

/* top banner */
.bf-bar {
  display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #1C100A; color: #F2E8DA; padding: 10px 16px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(142, 197, 255, .4);
}
.bf-bar[hidden], .bf-hero[hidden], .bf-count[hidden], .announce[hidden] { display: none; }
html[lang="ar"] .bf-bar { letter-spacing: 0; font-size: 15px; }
.bf-bar__tag {
  font-weight: 600; letter-spacing: .24em;
  background: linear-gradient(90deg, #8EC5FF, #E3F1FF, #8EC5FF); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bfShine 3s linear infinite;
}
html[lang="ar"] .bf-bar__tag { letter-spacing: 0; }
.bf-bar__ends { color: #8EC5FF; }
.bf-bar__ends b { font-weight: 500; font-variant-numeric: tabular-nums; color: #F2E8DA; }
@keyframes bfShine { to { background-position: -200% 0; } }

/* hero tag + countdown */
.bf-hero { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.bf-hero__tag { background: #8EC5FF; color: #24150E; padding: 7px 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
html[lang="ar"] .bf-hero__tag { letter-spacing: 0; font-size: 14px; }
.bf-hero__off { font-family: var(--serif); font-size: 24px; color: #8EC5FF; }
.bf-count { display: flex; gap: 10px; margin-top: 34px; }
.bf-count > div { min-width: 74px; padding: 12px 8px; border: 1px solid var(--line); text-align: center; background: rgba(142, 197, 255, .06); }
.bf-count b { display: block; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; color: #F2E8DA; font-variant-numeric: tabular-nums; }
.bf-count span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .bf-count span { letter-spacing: 0; font-size: 13px; }
@media (max-width: 860px) {
  .bf-bar { gap: 6px 12px; font-size: 11px; }
  .bf-count > div { min-width: 0; flex: 1; }
  .bf-count b { font-size: 26px; }
}

/* production line keeps its own light text, even in the Black Friday theme */
.factory .h2, .factory__steps strong { color: #F2E8DA; }


/* =========================================================
   REAL PRODUCT PHOTOS
   ========================================================= */
.card__media { background: #f3f2ef; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.card__img--alt { opacity: 0; }
.card:hover .card__img { transform: scale(1.04); }
.card:hover .card__img--alt { opacity: 1; }
.card__badges { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card__badges .card__badge { position: static; }
.card__add { z-index: 2; }
.line__img { overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }

.col-card__art--photo { padding: 0; overflow: hidden; min-height: 420px; }
.col-card__art--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.col-card:hover .col-card__art--photo img { transform: scale(1.05); }

.lookbook { padding: 100px 0 110px; overflow: hidden; }
.lookbook__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 40px 12px;
  scrollbar-width: thin; scrollbar-color: var(--beige) transparent;
}
.lookbook__track figure { flex: 0 0 min(340px, 72vw); aspect-ratio: 2 / 3; overflow: hidden; scroll-snap-align: start; margin: 0; }
.lookbook__track img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lookbook__track figure:hover img { transform: scale(1.05); }
@media (max-width: 860px) {
  .col-card__art--photo { min-height: 300px; }
  .lookbook { padding: 70px 0 80px; }
  .lookbook__track { padding: 0 16px 12px; }
}

/* real Albatool logo (inline SVG, takes the text colour) */
.logo__mark { display: block; height: 50px; width: auto; color: var(--navy); }
.logo--footer .logo__mark { height: 72px; color: #F2E8DA; }
@media (max-width: 860px) { .logo__mark { height: 40px; } }

/* products drawn from label artwork (no photo yet) */
.card__jar { position: absolute; inset: 0; display: grid; place-items: center; }
.card__jar svg { width: 72%; height: auto; }
.line__img svg { width: 80%; height: auto; }

/* ---------- sold out ---------- */
.card--soldout .card__img { filter: grayscale(.55); opacity: .65; }
.card__badge--soldout { background: var(--navy) !important; color: var(--white) !important; }
.card__notify { opacity: 1 !important; transform: none !important; background: var(--white) !important; color: var(--navy) !important; border: 1px solid var(--navy); }
.card--soldout .card__price { opacity: .5; }

/* ---------- birthday box builder ---------- */
.gift { max-width: 1400px; margin: 0 auto; padding: 110px 40px; }
.gift__sub { color: var(--muted); max-width: 560px; margin: 14px auto 0; }
.gift__layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.gift__preview { position: sticky; top: 110px; }
.gbox { position: relative; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
.gbox__lid { position: relative; height: 54px; margin: 0 -14px; background: linear-gradient(180deg, #54362A, #3B2418); border-radius: 6px 6px 2px 2px; }
.gbox__ribbon { position: absolute; left: 50%; top: 0; bottom: 0; width: 34px; transform: translateX(-50%); background: linear-gradient(90deg, #6FB1F5, #CFE6FF, #6FB1F5); }
.gbox__bow { position: absolute; left: 50%; top: -30px; width: 110px; height: 40px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 25% 60%, #CFE6FF 0 38%, transparent 40%), radial-gradient(ellipse at 75% 60%, #CFE6FF 0 38%, transparent 40%), radial-gradient(circle at 50% 70%, #6FB1F5 0 14%, transparent 16%); }
.gbox__body { position: relative; background: linear-gradient(180deg, #f4ede2, #e9dcc7); border-radius: 2px 2px 8px 8px; padding: 26px 22px 70px; min-height: 300px; }
.gbox__body::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 34px; transform: translateX(-50%); background: linear-gradient(90deg, #6FB1F5, #CFE6FF, #6FB1F5); opacity: .9; }
.gbox__slots { position: relative; display: grid; grid-template-columns: repeat(min(var(--slots, 3), 3), 1fr); gap: 12px; }
.gslot { aspect-ratio: 4 / 5; border: 1.5px dashed rgba(59,36,24,.25); border-radius: 6px; background: rgba(242,232,218,.7); overflow: hidden; transition: transform .4s var(--ease); }
.gslot.is-filled { border: 0; background: #f3f2ef; animation: slotIn .45s var(--ease); }
.gslot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.35); }
@keyframes slotIn { from { transform: translateY(-14px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.gbox__tag { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  background: #F2E8DA; color: #3B2418; padding: 8px 16px; border-radius: 3px; font-family: var(--serif); font-size: 18px; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.08); }
.gbox__logo { width: 34px; height: 22px; background: currentColor; -webkit-mask: url(assets/logo-mono.svg) center / contain no-repeat; mask: url(assets/logo-mono.svg) center / contain no-repeat; }
.gift__summary { max-width: 520px; margin: 28px auto 0; }
.gift__summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.gift__summary em { font-style: normal; color: var(--muted); font-size: 13px; }
.gift__total { border-bottom: 0 !important; padding-top: 14px !important; }
.gift__total strong { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--navy); }
.gift__empty { text-align: center; color: var(--muted); }
.gift__steps h3 { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--navy); margin: 0 0 16px; }
.gift__steps h3:not(:first-child) { margin-top: 40px; }
.gift__steps h3 span { font-size: 16px; color: var(--blue); }
.gift__count { margin-inline-start: auto; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--blue); }
.gsizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gsize { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border: 1px solid var(--line); transition: all .3s; }
.gsize:hover { border-color: var(--navy); }
.gsize.is-active { border-color: var(--navy); background: var(--sand); box-shadow: inset 0 0 0 1px var(--navy); }
.gsize__ico svg { width: 30px; height: 30px; color: var(--blue); }
.gsize strong { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--navy); }
.gsize span:last-child { font-size: 13px; color: var(--muted); }
.gpicks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 470px; overflow-y: auto; padding-inline-end: 4px; }
.gpick { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.gpick.is-in { border-color: var(--navy); background: var(--sand); }
.gpick img { width: 56px; height: 64px; object-fit: cover; object-position: 50% 58%; background: #f3f2ef; }
.gpick__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.gpick__txt strong { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--navy); }
.gpick__txt span { font-size: 12px; color: var(--muted); }
.gpick__qty { display: flex; align-items: center; border: 1px solid var(--line); }
.gpick__qty button { width: 28px; height: 28px; }
.gpick__qty button:disabled { opacity: .3; cursor: default; }
.gpick__qty span { min-width: 18px; text-align: center; font-size: 14px; }
.gift__card { display: grid; gap: 10px; margin-bottom: 22px; }
.gift__card input, .gift__card textarea { width: 100%; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 14px 16px; font: inherit; font-size: 15px; resize: vertical; outline: none; }
.gift__card input:focus, .gift__card textarea:focus { border-color: var(--navy); }
#giftAdd.is-disabled { opacity: .45; }
.line__img--box { color: var(--blue); }
.line__img--box svg { width: 60%; }
.line__card { font-style: italic; }
@media (max-width: 960px) {
  .gift { padding: 80px 16px; }
  .gift__layout { grid-template-columns: 1fr; gap: 36px; }
  .gift__preview { position: static; }
  .gpicks { grid-template-columns: 1fr; max-height: 420px; }
}

/* nav has 6 links now: tighter so it never runs into the logo */
.nav { gap: 22px; }
.nav a { font-size: 12px; letter-spacing: .12em; }
html[lang="ar"] .nav a { font-size: 15px; letter-spacing: 0; }
@media (max-width: 1280px) and (min-width: 861px) { .nav a[href="#ritual"], .nav a[href="#contact"] { display: none; } }

/* ---------- bag charms ---------- */
.card__sizes { display: flex; gap: 6px; margin-top: 10px; }
.csize { padding: 6px 12px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: all .3s; }
html[lang="ar"] .csize { letter-spacing: 0; font-size: 14px; }
.csize:hover { border-color: var(--navy); }
.csize.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card__img[src$=".svg"] { object-fit: contain; background: #fff; }

/* ---------- birthday box: what's included + decorations ---------- */
.ginc { border: 1px solid var(--line); padding: 20px 22px; }
.ginc__box { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ginc__box svg { width: 40px; height: 40px; color: var(--blue); flex: none; }
.ginc__box strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--navy); }
.ginc__box span { font-size: 14px; color: var(--muted); }
.ginc ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; }
.ginc li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ginc li svg { width: 34px; height: 34px; color: var(--blue); }
.gbox__extras { position: absolute; inset: -96px 0 auto; height: 120px; pointer-events: none; z-index: 2; }
.gbox__balloon { position: absolute; inset-inline-end: 8%; top: -18px; width: 54px; animation: balloonFloat 4s ease-in-out infinite; }
.gbox__candle { position: absolute; inset-inline-start: 10%; top: 20px; width: 22px; transform: rotate(-8deg); }
@keyframes balloonFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.gift__preview { padding-top: 70px; }
@media (max-width: 960px) { .ginc ul { grid-template-columns: 1fr; } .ginc li { flex-direction: row; text-align: start; } }

/* ---------- palette: Brown #3B2418 · Cream #F2E8DA · Baby Blue #8EC5FF ---------- */
:root { --accent: #8EC5FF; --accent-2: #6FB1F5; }
/* "add to bag" actions in baby blue with brown text, like the reference */
.card__add, .hero__cap-add, #giftAdd, #checkoutBtn { background: var(--accent); color: #3B2418; border-color: var(--accent); }
.card__add:hover, .hero__cap-add:hover, #giftAdd:hover, #checkoutBtn:hover { background: var(--accent-2); }
.card__notify { background: #F2E8DA !important; color: #3B2418 !important; border-color: #3B2418 !important; }
.card__badge--new, .card__badge { box-shadow: 0 0 0 1px rgba(59, 36, 24, .08); }
.chip.is-active, .csize.is-active { background: #3B2418; color: #F2E8DA; border-color: #3B2418; }
.hero__title em { color: #8A6450; }
body.bf .hero__title em { color: var(--accent); }
.announce { background: #3B2418; color: #F2E8DA; }
.gbox__lid { background: linear-gradient(180deg, #54362A, #3B2418); }
body.bf .chip.is-active, body.bf .csize.is-active { background: #F2E8DA; color: #24150E; border-color: #F2E8DA; }
.ginc { grid-column: 1 / -1; }

/* =========================================================
   BLACK FRIDAY INTRO — orbiting jars (intro.js)
   ========================================================= */
html.bfi-open, html.bfi-open body { overflow: hidden; }
.bfi {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 30px 20px 44px; color: #F2E8DA; overflow: hidden;
  background: radial-gradient(ellipse at 50% 44%, #4A2E20 0%, #24150E 52%, #120A06 100%);
  transition: opacity 1s var(--ease);
}
.bfi[hidden] { display: none; }
.bfi.is-leaving { opacity: 0; pointer-events: none; }
.bfi::before { content: ""; position: absolute; left: 50%; top: 44%; width: 80vmin; height: 80vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(142, 197, 255, .22), transparent 62%); pointer-events: none; }
.bfi__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bfi__top, .bfi__bottom { position: relative; z-index: 2; text-align: center; }
.bfi__top { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #CFE6FF; animation: bfiIn 1s .4s both; }
html[lang="ar"] .bfi__top { letter-spacing: 0; font-size: 15px; }
.bfi__logo { width: 50px; height: 32px; background: #F2E8DA; -webkit-mask: url(assets/logo-mono.svg) center / contain no-repeat; mask: url(assets/logo-mono.svg) center / contain no-repeat; }
.bfi__word { position: relative; z-index: 1; margin: auto 0; font-family: "Jost", sans-serif; font-weight: 800; line-height: .9; text-align: center;
  font-size: clamp(56px, 13vw, 220px); letter-spacing: .01em; color: #F2E8DA; }
.bfi.has-3d .bfi__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bfi__bottom { animation: bfiIn 1s 1.1s both; }
.bfi__off { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); }
.bfi__off b { font-family: "Jost", sans-serif; font-weight: 800; font-size: 1.55em; color: #8EC5FF; margin-inline-end: 6px; }
.bfi__count { margin: 6px 0 24px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(242, 232, 218, .72); }
html[lang="ar"] .bfi__count { letter-spacing: 0; font-size: 15px; }
.bfi__count b { font-weight: 500; color: #F2E8DA; font-variant-numeric: tabular-nums; }
.bfi__actions { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.bfi__go { background: #8EC5FF; color: #3B2418; border-color: #8EC5FF; padding: 18px 44px; }
.bfi__go:hover { background: #CFE6FF; border-color: #CFE6FF; }
.bfi__skip { color: rgba(242, 232, 218, .7); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
html[lang="ar"] .bfi__skip { letter-spacing: 0; font-size: 14px; }
.bfi__skip:hover { color: #F2E8DA; }
@keyframes bfiIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .bfi { padding: 22px 16px 34px; } .bfi__go { padding: 16px 30px; } }
/* intro, luxury pass: stage light from above + serif fallback word */
.bfi::after { content: ""; position: absolute; left: 50%; top: -10%; width: 70vmax; height: 90%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 35% 70% at 50% 0%, rgba(255, 244, 228, .14), transparent 70%); mix-blend-mode: screen; }
.bfi__word { font-family: "Cormorant Garamond", serif; font-weight: 700; letter-spacing: .04em; }
.bfi__off { letter-spacing: .02em; }
/* box-opening intro: the offer text waits until the box has opened */
.bfi--box .bfi__bottom { animation-delay: 4.9s; }
/* box intro: a warm studio backdrop instead of a starry night */
.bfi--box { background: linear-gradient(180deg, #1A0F09 0%, #24150E 30%, #33200F 55%, #3D2619 72%, #3D2619 100%); }
.bfi--box::before { background: radial-gradient(circle, rgba(255, 236, 214, .10), transparent 62%); top: 50%; }
.bfi--box { background: linear-gradient(180deg, #160D08 0%, #1F120B 30%, #2A1910 55%, #2E1C12 72%, #2E1C12 100%); }
.bfi--box .bfi__bottom { text-shadow: 0 2px 22px rgba(10, 5, 2, .85), 0 0 2px rgba(10, 5, 2, .6); }
.bfi--box .bfi__bottom::before { content: ""; position: absolute; inset: -40px -18vw -50px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(18, 9, 5, .72), transparent 75%); }

/* box intro, studio version: no glow or stage beam */
.bfi--box::before, .bfi--box::after { display: none; }

/* ---------- production line: plays by itself, one screen tall ---------- */
.factory { height: 100vh; height: 100svh; min-height: 620px; }
.factory__sticky { position: relative; height: 100%; }
.factory__canvas { cursor: pointer; }
@media (max-width: 860px) {
  .factory__hint { display: block; bottom: 14px; inset-inline: 16px; text-align: center; font-size: 11px; }
  html[lang="ar"] .factory__hint { font-size: 13px; }
}

/* ---------- delivery in the cart ---------- */
.drawer__row--sm { font-size: 14px; color: var(--muted); padding: 3px 0; }
.ship { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 6px; font-size: 14px; }
.ship > div { display: flex; }
.ship button { padding: 8px 12px; border: 1px solid var(--line); font-size: 13px; transition: all .3s; }
.ship button + button { border-inline-start: 0; }
.ship button.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
body.bf .ship button.is-active { background: #F2E8DA; color: #24150E; border-color: #F2E8DA; }
.drawer__foot .drawer__row:last-of-type { margin: 8px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.drawer__note { margin: 4px 0 8px; }

/* ---------- notify-me modal ---------- */
.nmodal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(20, 11, 6, .6); }
.nmodal[hidden] { display: none; }
.nmodal__box { position: relative; width: min(420px, 100%); background: #F2E8DA; color: #3B2418; padding: 34px 28px 24px; display: grid; gap: 12px; }
.nmodal__box h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; }
.nmodal__box p { font-size: 15px; color: #7A6455; }
.nmodal__box input[name="contact"] { border: 1px solid rgba(59, 36, 24, .3); background: #fff; color: #3B2418; padding: 14px 16px; font: inherit; font-size: 16px; outline: none; }
.nmodal__box .btn { background: #8EC5FF; color: #3B2418; border-color: #8EC5FF; }
.nmodal__wa { font-size: 13px; text-decoration: underline; color: #7A6455; }
.nmodal__x { position: absolute; top: 8px; inset-inline-end: 12px; font-size: 26px; line-height: 1; color: #7A6455; }

/* ---------- lighter on phones (iPhone Safari struggles with blur over 3D) ---------- */
@media (max-width: 860px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #F2E8DA; }
  body.bf .header { background: #24150E; }
  .hero__visual.has-3d .hero__caption, .factory__steps li.is-active { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card__media, .col-card { will-change: auto; }
  .news-form input, .gift__card input, .gift__card textarea { font-size: 16px; }   /* stops iOS zooming into fields */
}

.drawer__gift { font-size: 14px; color: var(--blue); margin: 2px 0 8px; }
.drawer__gift[hidden] { display: none; }

/* NEW corner ribbon */
.card__ribbon { position: absolute; top: 20px; inset-inline-end: -44px; width: 160px; padding: 7px 0; z-index: 2; text-align: center;
  transform: rotate(45deg); background: #8EC5FF; color: #3B2418; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(59, 36, 24, .18); pointer-events: none; }
[dir="rtl"] .card__ribbon { transform: rotate(-45deg); letter-spacing: 0; font-size: 14px; }

/* ---------- order details ---------- */
.omodal { width: min(480px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; gap: 14px; }
.ofield { display: grid; gap: 6px; font-size: 13px; color: #7A6455; }
.ofield input, .ofield select { border: 1px solid rgba(59, 36, 24, .3); background: #fff; color: #3B2418; padding: 12px 14px; font: inherit; font-size: 16px; outline: none; width: 100%; border-radius: 0; }
.ofield input:focus, .ofield select:focus { border-color: #3B2418; }
.ofield b { color: #3B2418; font-weight: 500; }
.orow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.orow[hidden] { display: none; }
.oseg { display: grid; grid-template-columns: 1fr 1fr; }
.oseg button { padding: 12px 8px; border: 1px solid rgba(59, 36, 24, .3); font-size: 14px; color: #3B2418; transition: all .25s; }
.oseg button + button { border-inline-start: 0; }
.oseg button.is-active { background: #3B2418; color: #F2E8DA; border-color: #3B2418; }
.ohint { font-size: 13px !important; color: #54362A !important; background: #EADFCF; padding: 8px 10px; }
.ototal { border-top: 1px solid rgba(59, 36, 24, .18); padding-top: 10px; display: grid; gap: 4px; font-size: 14px; color: #7A6455; }
.ototal > div { display: flex; justify-content: space-between; }
.ototal__sum { color: #3B2418; font-size: 16px; padding-top: 4px; }
.ototal__sum strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }

/* hero fallback: one jar, centred, same as the 3D jar that replaces it */
.hero__jar--front { inset-inline-start: 27%; }

/* ---------- help ---------- */
.help { max-width: 1200px; margin: 0 auto; padding: 100px 40px; }
.help__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.help__group h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--navy); margin-bottom: 10px; }
.help details { border-bottom: 1px solid var(--line); }
.help summary { cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 16px; color: var(--ink); }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; color: var(--blue); font-size: 20px; line-height: 1; transition: transform .3s; }
.help details[open] summary::after { transform: rotate(45deg); }
.help details p { padding: 0 0 16px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .help { padding: 70px 16px; } .help__list { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- welcome gift popup ---------- */
.wmodal__box { text-align: center; padding-top: 26px; animation: welIn .5s var(--ease); }
.wmodal__art { width: 110px; height: 130px; margin: 0 auto -6px; }
.wmodal__art img { width: 100%; height: 100%; object-fit: contain; }
.wmodal__eyebrow { font-size: 12px !important; letter-spacing: .26em; text-transform: uppercase; color: #6FB1F5 !important; }
html[lang="ar"] .wmodal__eyebrow { letter-spacing: 0; font-size: 14px !important; }
.wmodal__box h3 { font-size: 28px; line-height: 1.15; }
.wmodal__box input[name="contact"] { border: 1px solid rgba(59, 36, 24, .3); background: #fff; color: #3B2418; padding: 14px 16px; font: inherit; font-size: 16px; outline: none; text-align: center; }
@keyframes welIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.ohint.is-reward { background: #8EC5FF !important; color: #3B2418 !important; font-weight: 600; }
#ordCardRow[hidden] { display: none !important; }

/* ---------- loyalty card ---------- */
.loyalty { background: #F2E8DA; padding: 100px 40px; }
.loyalty__box { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.loy-card {
  aspect-ratio: 1.75 / 1; max-width: 460px; width: 100%;
  background:
    radial-gradient(circle at 28% 22%, #ffffff 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 78% 84%, #e6e6e4 0%, rgba(230, 230, 228, 0) 52%),
    radial-gradient(circle at 70% 12%, #f1f1ef 0%, rgba(241, 241, 239, 0) 44%),
    #ffffff;
  border: 1px solid #d9cfc2; border-radius: 14px; box-shadow: 0 16px 34px rgba(59, 36, 24, .12);
  padding: 22px; display: flex; flex-direction: column; justify-content: center;
}
.loy-card__dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.loy-dot {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #2a9cc0; color: #2a9cc0;
  display: grid; place-items: center; font-weight: 800; font-size: clamp(12px, 2.6vw, 18px);
}
.loy-dot.is-on { background: #8EC5FF; border-color: #3B2418; color: #3B2418; }
.loy-dot.is-on:empty::after { content: "\2713"; }
.loy-dot.is-wait { border-style: dashed; opacity: .7; }
.loy-card__foot { text-align: center; color: #2a9cc0; font-size: 13px; letter-spacing: .08em; margin-top: 14px; }

.loy-side { display: flex; flex-direction: column; gap: 14px; }
.loy-how { list-style: none; }
.loy-how li { position: relative; padding-inline-start: 18px; line-height: 1.6; }
.loy-how li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #8EC5FF;
}
.loy-soon {
  display: inline-block; align-self: flex-start; background: #8EC5FF; color: #3B2418;
  padding: 6px 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
html[lang="ar"] .loy-soon { letter-spacing: 0; font-size: 14px; }
.loy-or { text-align: center; font-size: 13px; color: #7A6455; }
.loy-email { display: flex; gap: 8px; flex-wrap: wrap; }
.loy-email input {
  flex: 1 1 200px; min-width: 0; border: 1px solid #3B2418; padding: 12px; background: #ffffff;
  font: inherit; font-size: 16px; color: #3B2418; outline: none;
}
.loy-google { width: 100%; }
.loy-hi { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: #3B2418; }
.loy-cardcount { font-size: 13px; color: #7A6455; }
.loy-points {
  background: #3B2418; color: #F2E8DA; padding: 18px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.loy-points strong { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; }
.loy-points span { font-size: 13px; opacity: .8; }
.loy-rw { list-style: none; }
.loy-rw li { margin-bottom: 12px; }
.loy-rw__top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.loy-bar { height: 6px; background: #e6dccd; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.loy-bar i { display: block; height: 100%; background: #8EC5FF; border-radius: 999px; }
.loy-phone { display: block; font-size: 14px; }
.loy-phone input {
  display: block; width: 100%; border: 1px solid #3B2418; padding: 12px; background: #ffffff;
  font: inherit; font-size: 16px; color: #3B2418; margin-top: 6px; outline: none;
}
.loy-phone button { margin-top: 8px; }
.loy-hist { list-style: none; font-size: 13px; }
.loy-hist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e6dccd; }
.loy-hist li.is-void { opacity: .5; text-decoration: line-through; }
.loy-hist li.is-pending span:last-child { color: #2a7fb0; }
.loy-out {
  align-self: flex-start; font-size: 13px; color: #7A6455; text-decoration: underline; background: none; border: 0; cursor: pointer;
}
.ohint a { color: inherit; font-weight: 700; text-decoration: underline; }

@media (max-width: 800px) {
  .loyalty { padding: 70px 16px; }
  .loyalty__box { grid-template-columns: 1fr; gap: 36px; }
}
/* loyalty section stays light in every theme (incl. Black Friday) */
.loyalty, body.bf .loyalty { background: #F2E8DA; color: #3B2418; }
.loyalty .h2, body.bf .loyalty .h2, .loyalty h3, .loyalty h4, .loyalty li, .loyalty p:not(.loy-card__foot):not(.eyebrow) { color: #3B2418; }
.loyalty .eyebrow { color: #2a7fb0; }
