/* دوبا — Dopa | Beelight-inspired design system, RTL Arabic */
:root {
  --ivory: hsl(44, 46%, 96%);
  --cream: hsl(40, 38%, 90%);
  --sand: hsl(38, 36%, 82%);
  --linen: hsl(36, 26%, 72%);
  --umber: hsl(30, 26%, 15%);
  --smoke: hsl(34, 10%, 44%);
  --bronze: hsl(36, 46%, 42%);
  --golddeep: hsl(33, 52%, 34%);
  --radius: 4px;
  --font-display: "Amiri", "Cormorant Garamond", Georgia, serif;
  --font-body: "IBM Plex Sans Arabic", "Archivo", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--umber);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
em { font-style: italic; }

.wrap { max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2.5rem; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: all .5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.open {
  border-bottom: 1px solid hsla(30,26%,15%,.1);
  background: hsla(44,46%,96%,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 90rem; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
@media (min-width: 768px) { .header-inner { padding-inline: 2.5rem; } }
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 400;
  letter-spacing: .35em; text-transform: uppercase;
}
.brand span { letter-spacing: .12em; font-size: .8rem; color: var(--smoke); margin-inline-start: .35rem; }
.main-nav { display: none; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a {
  font-size: 11px; letter-spacing: .3em; font-weight: 400;
  color: hsla(30,26%,15%,.6); transition: color .3s;
}
.main-nav a:hover { color: var(--umber); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.bag-btn {
  border: 1px solid hsla(30,26%,15%,.3);
  padding: .6rem 1.25rem;
  font-size: 11px; letter-spacing: .3em; font-weight: 400;
  transition: all .3s;
}
.bag-btn:hover { background: var(--umber); color: var(--ivory); }
.menu-btn { display: flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; }
@media (min-width: 768px) { .menu-btn { display: none; } }
.mobile-nav { border-top: 1px solid hsla(30,26%,15%,.1); background: var(--ivory); padding: 1.5rem; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-nav a { font-size: 12px; letter-spacing: .3em; color: hsla(30,26%,15%,.7); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; overflow: hidden;
}
.blob { position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none; }
.blob-a { inset-inline-start: -10rem; top: 25%; width: 34rem; height: 34rem; background: hsla(38,36%,82%,.7); }
.blob-b { inset-inline-end: -8rem; bottom: 0; width: 28rem; height: 28rem; background: hsla(40,38%,90%,.8); }
.hero-grid {
  display: grid; grid-template-columns: 1fr; align-items: center;
  gap: 4rem; width: 100%;
  padding-top: 9rem; padding-bottom: 7rem;
}
@media (min-width: 768px) { .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; } }
.hero-text { position: relative; z-index: 1; }
@media (min-width: 768px) { .hero-text { grid-column: span 7; } }
.kicker {
  display: flex; align-items: center; gap: 1rem;
  font-size: 11px; letter-spacing: .35em; font-weight: 400;
  color: var(--bronze); margin-bottom: 2rem;
}
.kicker::before { content: ""; display: block; height: 1px; width: 2.5rem; background: var(--bronze); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(112%); animation: rise .9s cubic-bezier(.76,0,.24,1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .13s; }
@keyframes rise { to { transform: translateY(0); } }
.hero h1 em { color: var(--bronze); }
.hero-sub {
  margin-top: 2.5rem; max-width: 28rem;
  font-size: .9rem; font-weight: 300; letter-spacing: .02em;
  color: var(--smoke);
  animation: fadeUp .8s ease-out 1.15s backwards;
}
.hero-ctas { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; animation: fadeUp .8s ease-out 1.35s backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.cta-circle {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: 11px; letter-spacing: .32em; font-weight: 400;
}
.cta-circle .circle {
  display: flex; width: 3rem; height: 3rem; align-items: center; justify-content: center;
  border: 1px solid hsla(30,26%,15%,.3); border-radius: 9999px;
  transition: all .5s;
}
.cta-circle:hover .circle { background: var(--umber); color: var(--ivory); }
.cta-underline {
  font-size: 11px; letter-spacing: .32em; font-weight: 400;
  color: hsla(30,26%,15%,.7);
  border-bottom: 1px solid hsla(30,26%,15%,.25);
  padding-bottom: .25rem; transition: all .3s;
}
.cta-underline:hover { border-color: var(--bronze); color: var(--bronze); }
.hero-media { position: relative; }
@media (min-width: 768px) { .hero-media { grid-column: span 5; } }
.arch {
  position: relative; overflow: hidden;
  border-radius: 10rem 10rem 0 0;
  clip-path: inset(100% 0 0 0);
  animation: reveal 1.15s cubic-bezier(.76,0,.24,1) .35s forwards;
}
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
.arch img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.side-note {
  display: none;
  position: absolute; inset-inline-end: 1rem; top: 50%;
  writing-mode: vertical-rl;
  font-size: 10px; letter-spacing: .5em; font-weight: 400;
  color: var(--linen);
  transform: translateY(-50%);
  animation: fadeUp 1s ease-out 1.6s backwards;
}
@media (min-width: 1024px) { .side-note { display: block; } }

/* ---------- philosophy ---------- */
.philosophy { padding-block: 8rem; }
@media (min-width: 768px) { .philosophy { padding-block: 11rem; } }
.philosophy-inner { max-width: 56rem; margin-inline: auto; text-align: center; }
.philosophy .kicker { justify-content: center; }
.philosophy .kicker::after { content: ""; display: block; height: 1px; width: 2.5rem; background: var(--bronze); }
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 400; line-height: 1.5;
}
.statement .faded { color: var(--linen); }
.attribution { margin-top: 2.5rem; font-family: var(--font-display); font-style: italic; color: var(--smoke); font-size: 1.05rem; }

/* ---------- craft ---------- */
.craft { padding-block: 7rem; }
@media (min-width: 768px) { .craft { padding-block: 9rem; } }
.craft-head { margin-bottom: 5rem; }
.craft-act {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  align-items: center; padding-block: 4rem;
  border-top: 1px solid hsla(30,26%,15%,.08);
}
@media (min-width: 768px) {
  .craft-act { grid-template-columns: repeat(12, 1fr); }
  .craft-act .act-text { grid-column: span 5; }
  .craft-act .act-media { grid-column: span 7; }
  .craft-act.flip .act-text { order: 2; }
  .craft-act.flip .act-media { order: 1; }
}
.act-num { font-family: var(--font-display); font-style: italic; color: var(--bronze); font-size: 1.1rem; }
.act-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.15; margin-top: .75rem; }
.act-origin { margin-top: 1rem; font-size: 11px; letter-spacing: .3em; font-weight: 400; color: var(--smoke); }
.act-body { margin-top: 1.5rem; max-width: 26rem; font-size: .9rem; color: var(--smoke); }
.act-note { margin-top: 1.75rem; font-size: 11px; letter-spacing: .3em; font-weight: 400; color: var(--bronze); display: flex; align-items: center; gap: 1rem; }
.act-note::before { content: ""; display: block; height: 1px; width: 2.5rem; background: var(--bronze); }
.act-media .frame { position: relative; overflow: hidden; }
.act-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.corner-frame { position: absolute; inset: -0.75rem; border: 1px solid var(--bronze); pointer-events: none; opacity: .6; }
.corner-frame::before, .corner-frame::after { content: ""; position: absolute; background: var(--ivory); }
.corner-frame::before { inset-inline: 12%; top: -1px; bottom: -1px; }
.corner-frame::after { top: 12%; bottom: 12%; inset-inline: -1px; }

/* ---------- collection ---------- */
.collection { padding-block: 8rem; }
@media (min-width: 768px) { .collection { padding-block: 11rem; } }
.collection-head {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .collection-head { flex-direction: row; align-items: flex-end; margin-bottom: 6rem; } }
.collection h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.15; margin-top: 1.5rem; }
.collection h2 em { color: var(--bronze); }
.link-arrow { display: inline-flex; align-items: center; gap: .75rem; font-size: 11px; letter-spacing: .3em; font-weight: 400; transition: color .3s; }
.link-arrow:hover { color: var(--bronze); }
.link-arrow svg { transition: transform .3s; }
.link-arrow:hover svg { transform: translate(-3px, -3px); }
.grid-products {
  display: grid; grid-template-columns: 1fr;
  column-gap: 2.5rem; row-gap: 5rem;
}
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(12, 1fr); } .grid-products > article { grid-column: span 4; } }
.product-img {
  position: relative; overflow: hidden; background: var(--cream);
}
.product-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .7s ease-out; }
article:hover .product-img img { transform: scale(1.04); }
.product-meta { margin-top: 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.fig { font-size: 10px; letter-spacing: .35em; font-weight: 400; color: var(--smoke); }
.product-name { margin-top: .5rem; font-family: var(--font-display); font-weight: 400; font-size: 1.65rem; line-height: 1.3; }
.product-sub { margin-top: .5rem; max-width: 22rem; font-size: .85rem; color: var(--smoke); }
.price { white-space: nowrap; padding-bottom: .25rem; font-size: .9rem; letter-spacing: .03em; font-weight: 400; }
.add-btn {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid hsla(30,26%,15%,.25); padding-bottom: .25rem;
  font-size: 11px; letter-spacing: .28em; font-weight: 400;
  transition: all .3s;
}
.add-btn:hover { border-color: var(--bronze); color: var(--bronze); }
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s ease-out; }
.fade-up.visible { opacity: 1; transform: none; }

/* ---------- ritual ---------- */
.ritual { padding-block: 8rem; background: var(--cream); }
@media (min-width: 768px) { .ritual { padding-block: 10rem; } }
.ritual-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 5rem; }
.ritual h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.15; margin-top: 1.5rem; }
.ritual h2 em { color: var(--bronze); }
.ritual-head p { max-width: 24rem; font-size: .9rem; color: var(--smoke); }
.ritual-cards { display: grid; gap: 0; border-top: 1px solid hsla(30,26%,15%,.12); }
@media (min-width: 768px) { .ritual-cards { grid-template-columns: repeat(3, 1fr); } }
.ritual-card { padding: 3rem 2rem; border-bottom: 1px solid hsla(30,26%,15%,.12); }
@media (min-width: 768px) { .ritual-card { border-bottom: none; border-inline-start: 1px solid hsla(30,26%,15%,.12); } .ritual-card:first-child { border-inline-start: none; } }
.ritual-numeral { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--bronze); }
.ritual-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; margin-top: 1rem; }
.ritual-card p { margin-top: 1rem; font-size: .9rem; color: var(--smoke); }

/* ---------- maison (dark) ---------- */
.maison { padding-block: 8rem; background: var(--umber); color: var(--ivory); }
@media (min-width: 768px) { .maison { padding-block: 11rem; } }
.maison-grid { display: grid; gap: 4rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .maison-grid { grid-template-columns: repeat(12, 1fr); } .maison-text { grid-column: span 7; } .maison-facts { grid-column: span 5; } }
.maison .kicker { color: var(--bronze); }
.maison h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.25; margin-top: 1.5rem; }
.maison h2 em { color: var(--sand); }
.maison-text p { margin-top: 1.5rem; max-width: 30rem; font-size: .95rem; color: hsla(44,46%,96%,.65); }
.fact { border-top: 1px solid hsla(44,46%,96%,.15); padding-block: 1.5rem; }
.fact dt { font-size: 11px; letter-spacing: .3em; font-weight: 400; color: var(--linen); }
.fact dd { margin-top: .5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--ivory); }
.marquee { overflow: hidden; border-block: 1px solid hsla(30,26%,15%,.1); padding-block: 1.25rem; background: var(--ivory); }
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-track span { margin-inline: 2.5rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--smoke); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- footer ---------- */
.site-footer { background: var(--umber); color: hsla(44,46%,96%,.7); border-top: 1px solid hsla(44,46%,96%,.08); }
.footer-grid { display: grid; gap: 3.5rem; grid-template-columns: 1fr; padding-block: 5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } .f-brand { grid-column: span 5; } .f-links { grid-column: span 3; } .f-contact { grid-column: span 4; } }
.f-brand .logo-f { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; letter-spacing: .3em; color: var(--ivory); }
.f-brand p { margin-top: 1.5rem; max-width: 20rem; font-size: .9rem; color: hsla(44,46%,96%,.55); }
.f-head { font-size: 11px; letter-spacing: .35em; font-weight: 400; color: var(--bronze); }
.f-links ul { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.f-links a { font-size: .9rem; color: hsla(44,46%,96%,.7); transition: color .3s; }
.f-links a:hover { color: var(--ivory); }
.f-contact p { margin-top: 1.5rem; font-size: .9rem; line-height: 2; direction: ltr; text-align: end; }
.f-contact .ar { direction: rtl; }
.footer-bottom { border-top: 1px solid hsla(44,46%,96%,.1); padding-block: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: hsla(44,46%,96%,.45); }

/* ---------- bag drawer ---------- */
.overlay { position: fixed; inset: 0; background: hsla(30,26%,15%,.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .4s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 70;
  width: min(26rem, 100%);
  background: var(--ivory);
  transform: translateX(-105%);
  transition: transform .5s cubic-bezier(.76,0,.24,1);
  display: flex; flex-direction: column;
}
[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.75rem 2rem; border-bottom: 1px solid hsla(30,26%,15%,.1); }
.drawer-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 2rem; }
.empty-bag { text-align: center; padding-block: 4rem; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--smoke); }
.cart-item { display: flex; gap: 1.25rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid hsla(30,26%,15%,.08); }
.cart-item img { width: 4.5rem; height: 5.5rem; object-fit: cover; background: var(--cream); }
.cart-item h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.qty-row { display: flex; align-items: center; gap: .85rem; margin-top: .6rem; }
.qty-btn { width: 1.6rem; height: 1.6rem; border: 1px solid hsla(30,26%,15%,.25); display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: all .3s; }
.qty-btn:hover { background: var(--umber); color: var(--ivory); }
.item-price { margin-inline-start: auto; font-size: .9rem; font-weight: 400; }
.remove-btn { font-size: 10px; letter-spacing: .2em; color: var(--smoke); border-bottom: 1px solid transparent; margin-top: .5rem; }
.remove-btn:hover { color: var(--bronze); border-color: var(--bronze); }
.drawer-foot { border-top: 1px solid hsla(30,26%,15%,.1); padding: 1.75rem 2rem; }
.totals-row { display: flex; justify-content: space-between; font-size: .9rem; padding-block: .25rem; }
.totals-row.grand { font-size: 1.05rem; font-weight: 400; border-top: 1px solid hsla(30,26%,15%,.1); margin-top: .5rem; padding-top: .85rem; }
.cod-note { margin-top: .75rem; font-size: .8rem; color: var(--smoke); }
.checkout-btn {
  width: 100%; margin-top: 1.25rem; padding: 1rem;
  background: var(--umber); color: var(--ivory);
  font-size: 12px; letter-spacing: .3em; font-weight: 400;
  transition: background .3s;
}
.checkout-btn:hover { background: var(--bronze); }

/* ---------- checkout modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--ivory); width: min(34rem, 100%);
  max-height: 90dvh; overflow-y: auto; padding: 2.5rem;
  transform: translateY(24px); transition: transform .4s;
}
.modal.show .modal-card { transform: none; }
.modal-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; }
.modal-card .sub { margin-top: .5rem; font-size: .85rem; color: var(--smoke); }
.form-grid { margin-top: 2rem; display: grid; gap: 1.25rem; }
label { display: block; font-size: 11px; letter-spacing: .25em; font-weight: 400; color: var(--smoke); margin-bottom: .5rem; }
input, select, textarea {
  width: 100%; border: 1px solid hsla(30,26%,15%,.2); background: transparent;
  padding: .8rem 1rem; font-family: inherit; font-size: .95rem; color: var(--umber);
  border-radius: 0; outline: none; transition: border-color .3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--bronze); }
.form-error { color: hsl(8,55%,45%); font-size: .8rem; margin-top: .25rem; display: none; }
.success-box { text-align: center; padding-block: 2rem; }
.success-box .big { font-family: var(--font-display); font-size: 2rem; font-weight: 400; }
.success-box p { margin-top: 1rem; font-size: .9rem; color: var(--smoke); }
.wa-link { display: inline-flex; margin-top: 1.75rem; gap: .75rem; align-items: center; background: var(--umber); color: var(--ivory); padding: 1rem 2rem; font-size: 12px; letter-spacing: .25em; }
.wa-link:hover { background: var(--bronze); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 1.5rem; inset-inline-start: 1.5rem; z-index: 90;
  background: var(--umber); color: var(--ivory);
  padding: 1rem 1.5rem; font-size: .85rem;
  transform: translateY(150%); transition: transform .5s cubic-bezier(.76,0,.24,1);
}
.toast.show { transform: none; }

/* language toggle */
.lang-btn { font-size: .78rem; letter-spacing: .08em; padding: .45rem .7rem; border: 1px solid rgba(0,0,0,.25); font-family: var(--font-body); line-height: 1; margin-inline-end: .5rem; }
.lang-btn:hover { background: var(--umber); color: var(--ivory); }
html[lang="en"] body { font-family: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif; }
html[lang="en"] .f-contact p { text-align: start; }
html[lang="en"] .brand span { display: none; }
