:root {
  --bg: #141517;
  --bg-2: #1a1b1e;
  --card: #1f2023;
  --line: #2c2d31;
  --text: #f2f2ef;
  --muted: #9ea3a8;
  --orange: #ff9f1c;
  --orange-2: #ffb547;
  --orange-d: #e58a0c;
  --radius: 18px;
  --font: "Space Grotesk", system-ui, sans-serif;
}
html[dir="rtl"] { --font: "Cairo", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  background: var(--orange); color: #141414; font-weight: 700;
  border: 2px solid var(--orange); transition: .2s; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--orange-2); border-color: var(--orange-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }

.eyebrow { color: var(--orange); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
h1, h2, h3 { line-height: 1.12; font-weight: 700; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 800; line-height: 1.35; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 28px; }
.lead { color: var(--muted); font-size: 1.12rem; }
.narrow { max-width: 620px; margin-bottom: 36px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,18,18,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 500; transition: .2s; }
.nav__links a:hover { color: var(--orange); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang {
  background: none; border: 1px solid var(--line); color: var(--text);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem;
}
.lang:hover { border-color: var(--orange); color: var(--orange); }
.burger { display: none; background: none; border: 0; width: 34px; height: 34px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero: the 3D print is the backdrop; a scrim keeps the copy readable over it. */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; align-items: center; overflow: hidden; padding: 60px 0; }
.hero__stage { position: absolute; inset: 0; }
/* A soft studio glow behind the printer, so the scene doesn't sit on pure black. */
.hero__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(52% 62% at 50% 56%, rgba(255,170,90,.13), rgba(150,160,180,.07) 45%, transparent 75%);
}
.hero__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,21,23,.84) 0%, rgba(20,21,23,.6) 32%, rgba(20,21,23,.12) 60%, rgba(20,21,23,0) 100%),
    linear-gradient(to bottom, rgba(20,21,23,0) 72%, var(--bg) 100%);
}
html[dir="rtl"] .hero__stage::after {
  background:
    linear-gradient(270deg, rgba(20,21,23,.84) 0%, rgba(20,21,23,.6) 32%, rgba(20,21,23,.12) 60%, rgba(20,21,23,0) 100%),
    linear-gradient(to bottom, rgba(20,21,23,0) 72%, var(--bg) 100%);
}
.hero__canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.has-3d .hero__canvas { opacity: 1; }
.has-3d .hero__art { display: none; }
.hero__grid { position: relative; z-index: 1; pointer-events: none; }
.hero__copy { max-width: 600px; pointer-events: auto; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); margin-bottom: 24px; line-height: 1.04; }
html[dir="rtl"] .hero h1 { line-height: 1.3; }
.hero .lead { max-width: 500px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* CSS fallback when WebGL is unavailable */
.hero__art { position: absolute; top: 50%; inset-inline-end: 8%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; }
.nozzle { width: 150px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(255,159,28,.35)); }
.layers { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; margin-top: 8px; }
.layers i {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--orange-d), var(--orange-2), var(--orange-d));
  opacity: 0; animation: lay .5s forwards;
}
.layers i:nth-child(1){width:250px;animation-delay:.2s}
.layers i:nth-child(2){width:240px;animation-delay:.4s}
.layers i:nth-child(3){width:226px;animation-delay:.6s}
.layers i:nth-child(4){width:206px;animation-delay:.8s}
.layers i:nth-child(5){width:180px;animation-delay:1s}
.layers i:nth-child(6){width:148px;animation-delay:1.2s}
.layers i:nth-child(7){width:110px;animation-delay:1.4s}
.layers i:nth-child(8){width:66px;animation-delay:1.6s}
@keyframes lay { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: scaleX(1); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Live print readout, driven by the 3D scene */
.hud {
  position: absolute; z-index: 2; bottom: 40px; inset-inline-end: max(24px, calc((100vw - 1140px) / 2));
  width: 230px; padding: 14px 16px 16px; border-radius: 14px;
  background: rgba(20, 21, 23, .62); border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .85rem; color: var(--muted);
}
.hud__status { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; margin-bottom: 10px; min-height: 1.5em; }
.hud__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.hud[data-phase="printing"] .hud__dot, .hud[data-phase="heating"] .hud__dot { background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: pulse 1.1s ease-in-out infinite; }
.hud[data-phase="done"] .hud__dot { background: #4ade80; }
.hud__grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-bottom: 12px; }
.hud__grid dd { text-align: end; color: var(--text); font-family: "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.hud__bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.hud__bar i { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
html[dir="rtl"] .hud__bar i { transform-origin: right; }
@keyframes pulse { 50% { opacity: .35; } }

.swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%), var(--c);
  border: 2px solid rgba(255,255,255,.14); transition: transform .15s;
}
.swatch:hover { transform: scale(1.12); }

/* Headlines appear bottom-up in layers, with a hot nozzle line at the edge. */
.print-type { position: relative; animation: print-up 1.6s steps(18, end) .15s both; }
.print-type::after {
  content: ""; position: absolute; inset-inline: -4px; height: 2px; bottom: -3px; border-radius: 2px;
  background: var(--orange-2); box-shadow: 0 0 12px 2px rgba(255,159,28,.8); opacity: 0;
  animation: nozzle-up 1.6s steps(18, end) .15s both; pointer-events: none;
}
.print-type--wait, .print-type--wait::after { animation: none; }
.print-type--wait { clip-path: inset(100% 0 0 0); }
@keyframes print-up { from { clip-path: inset(100% -6% -6% -6%); } to { clip-path: inset(-12% -6% -6% -6%); } }
@keyframes nozzle-up { from { bottom: -3px; opacity: 1; } 96% { bottom: calc(100% - 3px); opacity: 1; } to { bottom: calc(100% - 3px); opacity: 0; } }
/* Fine horizontal layer lines inside the letters, like a real print's surface */
.print-type, .print-type span {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: repeating-linear-gradient(to bottom, var(--ink, var(--text)) 0 4px, var(--ink-2, rgba(242,242,239,.62)) 4px 5px);
}
.print-type span { --ink: var(--orange); --ink-2: #c97a10; }

/* Ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
html[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__run { display: flex; gap: 48px; padding-inline-end: 48px; }
.ticker__run span { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 1.25rem; font-weight: 700; color: var(--muted); }
.ticker__run i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 4px rgba(0,0,0,.3); }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* Sections */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .4s;
}
.card:hover { border-color: var(--orange); }
.card.tilting { transition: transform .08s linear, border-color .25s, box-shadow .4s; box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.13), transparent 50%);
}
.card.tilting::after { opacity: 1; }
.card__img { position: relative; aspect-ratio: 4/3; background: #18191b; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card.tilting .card__img img { transform: scale(1.05); }
.fly-ghost { position: fixed; z-index: 200; object-fit: cover; pointer-events: none; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cart-btn.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); border-color: var(--orange); color: var(--orange); }
@keyframes bump { 40% { transform: scale(1.25); } }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--orange); color: #141414; font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: 1.35rem; }
.card__body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--orange); }

/* Steps */
.steps { --p: 0; position: relative; list-style: none; display: grid; gap: 12px; padding-inline-start: 26px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; inset-inline-start: 6px; width: 3px; border-radius: 2px; }
.steps::before { height: 100%; background: var(--line); }
.steps::after { height: calc(var(--p) * 100%); background: var(--orange); box-shadow: 0 0 14px rgba(255,159,28,.7); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: border-color .4s; }
.steps li.on { border-color: rgba(255,159,28,.55); }
.steps b { font-family: "Space Grotesk", sans-serif; color: var(--muted); font-size: 1.3rem; display: block; margin-bottom: 4px; transition: color .4s, text-shadow .4s; }
.steps li.on b { color: var(--orange); text-shadow: 0 0 18px rgba(255,159,28,.55); }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.about h2 { margin-bottom: 0; }

/* Contact */
.socials { display: flex; flex-direction: column; gap: 12px; }
.social {
  padding: 14px 28px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; transition: .2s; background: var(--card);
}
.social:hover { border-color: var(--orange); color: var(--orange); }
.social--wa { background: var(--orange); color: #141414; border-color: var(--orange); }
.social--wa:hover { background: var(--orange-2); color: #141414; }

/* Footer */
.footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { font-size: 1.1rem; color: var(--text); }

/* Shared bits */
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.link { background: none; border: 0; color: var(--orange); font: inherit; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }
.price .was { color: var(--muted); font-weight: 400; margin-inline-start: 6px; font-size: .9em; }
.notice { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--muted); }
body.locked { overflow: hidden; }

/* Cart button */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--text); cursor: pointer; transition: .2s;
}
.cart-btn:hover { border-color: var(--orange); color: var(--orange); }
.cart-btn__count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--orange); color: #141414; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center; font-family: "Space Grotesk", sans-serif;
}
.cart-btn__count[hidden] { display: none; }

/* Forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form h3 { font-size: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.field > span { color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font: inherit; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__error { color: #ff6b6b; font-weight: 600; }
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px; cursor: pointer; transition: .2s;
}
.drop:hover, .drop:focus-within { border-color: var(--orange); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { color: var(--orange); }
.drop small { color: var(--muted); }
.files { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.files li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#requestForm, #reqDone { max-width: 760px; }

.success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #141414; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.success b { color: var(--orange); font-family: "Space Grotesk", sans-serif; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 100; width: min(440px, 100%);
  background: var(--bg-2); border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden;
  transition: transform .32s cubic-bezier(.3,.7,.2,1), visibility 0s .32s;
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open, html[dir="rtl"] .drawer.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.3,.7,.2,1), visibility 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 22px; }
.drawer__body[hidden] { display: none; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.drawer__foot[hidden], .drawer__foot [hidden] { display: none; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--text); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.back { margin-bottom: 4px; align-self: flex-start; }

.cart-lines { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cart-line { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; background: #181818; flex: none; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; font-size: 1rem; }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

.totals { display: flex; flex-direction: column; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .totals__total { color: var(--text); font-weight: 700; font-size: 1.1rem; }
.summary { list-style: none; width: 100%; text-align: start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary .summary__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }

.toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 120;
  background: var(--text); color: #141414; font-weight: 700; padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.toast[hidden] { display: none; }


/* ---- shop: filters, cards, quick view ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shopbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: -8px 0 28px; }
.shopbar[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--line); color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem; transition: .15s; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #141414; font-weight: 700; }
.sort select { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .92rem; cursor: pointer; }
.card__img { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.card__title { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: start; }
.card__title:hover { color: var(--orange); }
.dots { display: flex; align-items: center; gap: 5px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1.5px solid rgba(255,255,255,.18); }
.dots span { color: var(--muted); font-size: .8rem; }
.cdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255,255,255,.25); vertical-align: -1px; margin-inline: 3px 4px; }

.pmodal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg-2); color: var(--text); overflow: hidden; display: none;
  margin: auto; /* the reset above zeroes margins, which pinned the dialog to the top corner */
}
.pmodal[open] { display: grid; grid-template-columns: 1.05fr 1fr; animation: pop .28s cubic-bezier(.2,.8,.2,1); }
.pmodal::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pmodal__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: rgba(20,21,23,.7); }
.pmodal__gallery { background: #18191b; display: flex; flex-direction: column; min-height: 0; }
.pmodal__main { aspect-ratio: 1; overflow: hidden; }
.pmodal__main img { width: 100%; height: 100%; object-fit: cover; }
.pmodal__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pmodal__thumbs button { width: 64px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.pmodal__thumbs button[aria-pressed="true"] { border-color: var(--orange); }
.pmodal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pmodal__info { padding: 32px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.pmodal__info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.pmodal__price { font-size: 1.3rem; }
.badge--inline { position: static; align-self: flex-start; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.specs div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.specs dt { color: var(--muted); font-size: .8rem; }
.specs dd { font-weight: 700; }
.pmodal__colors { display: flex; flex-direction: column; gap: 10px; }
.pmodal__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pmodal__swatches .swatch { width: 34px; height: 34px; }
.pmodal__swatches .swatch[aria-checked="true"] { outline: 2px solid var(--orange); outline-offset: 3px; }
.pmodal__buy { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 8px; }
.pmodal__buy .btn { flex: 1; }
.pmodal__more { align-self: flex-start; font-weight: 600; }
.qty--lg button { width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem; }
.qty--lg span { min-width: 36px; font-size: 1.1rem; }

/* ---- cart: free delivery bar, coupon ---- */
.freebar { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--muted); }
.freebar.done { color: #4ade80; }
.freebar__track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.freebar__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-d), var(--orange-2)); transform-origin: left; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
html[dir="rtl"] .freebar__track i { transform-origin: right; }
.freebar.done .freebar__track i { background: #4ade80; }
.totals .totals__discount { color: #4ade80; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon__msg.ok { color: #4ade80; }
.coupon__msg.bad { color: #ff6b6b; }

/* ---- order tracking ---- */
.track__result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.track__result[hidden] { display: none; }
.track__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.track__head b { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; color: var(--orange); }
.tsteps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; }
.tsteps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .85rem; color: var(--muted); position: relative; }
.tsteps li::before { content: ""; position: absolute; top: 9px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tsteps li:first-child::before { display: none; }
.tsteps li.done::before, .tsteps li.now::before { background: var(--orange); }
.tsteps i { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); z-index: 1; }
.tsteps li.done i { background: var(--orange); border-color: var(--orange); }
.tsteps li.now i { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(255,159,28,.2); }
.tsteps li.now, .tsteps li.done { color: var(--text); font-weight: 600; }
.tsteps small { color: var(--muted); font-weight: 400; font-size: .72rem; }

/* ---- FAQ ---- */
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__list details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color .2s; }
.faq__list details[open] { border-color: rgba(255,159,28,.45); }
.faq__list summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--muted); padding-bottom: 18px; }

.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a:hover { color: var(--orange); }

@media (max-width: 860px) {
  .pmodal[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .pmodal__info { padding: 22px; overflow: visible; }
  .pmodal__main { aspect-ratio: 4 / 3; }
  .tsteps { grid-template-columns: 1fr; gap: 0; }
  .tsteps li { flex-direction: row; text-align: start; padding: 8px 0; gap: 12px; }
  .tsteps li::before { top: -50%; inset-inline-start: 8.5px; width: 3px; height: 100%; }
  .tsteps small { margin-inline-start: auto; }
}

/* ---- help tiles: entry points to the side panels ---- */
.section--tight { padding: 80px 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: rgba(255,159,28,.55); transform: translateY(-3px); }
.tile__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,159,28,.12); color: var(--orange); flex: none; }
.tile__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile__text b { font-size: 1.1rem; }
.tile__text small { color: var(--muted); font-size: .9rem; }
.tile__go { position: absolute; top: 24px; inset-inline-end: 20px; color: var(--muted); transition: color .2s; }
.tile:hover .tile__go { color: var(--orange); }
html[dir="rtl"] .tile__go svg, html[dir="rtl"] .menu__go svg { transform: scaleX(-1); }

/* ---- side panels (slide in from the right; full screen on phones) ---- */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 105; background: rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transition: opacity .32s, visibility 0s .32s;
}
.sheet-scrim.on { opacity: 1; visibility: visible; transition: opacity .32s, visibility 0s; }
.sheet {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 110; width: min(680px, 100%);
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden;
  transition: transform .34s cubic-bezier(.3,.7,.2,1), visibility 0s .34s;
}
.sheet.open { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.3,.7,.2,1), visibility 0s; }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) 24px 16px; border-bottom: 1px solid var(--line);
}
.sheet__head h2 { font-size: 1.5rem; margin: 0; }
.sheet__head .icon-btn { width: 42px; height: 42px; flex: none; }
.sheet__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 22px; padding: 26px 24px calc(40px + env(safe-area-inset-bottom));
}
.sheet__body > .lead { font-size: 1.02rem; }
.sheet .social { text-align: center; padding: 14px 20px; }
.menu { display: flex; flex-direction: column; }
.menu a {
  display: flex; align-items: center; gap: 14px; padding: 18px 4px;
  font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid var(--line);
}
.menu a > svg { color: var(--orange); flex: none; }
.menu a > span:first-of-type { flex: 1; }
.menu__go { color: var(--muted); display: flex; }

/* ---- product page (/p/<slug>): the quick view laid out inline ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 28px; color: var(--muted); font-size: .92rem; }
.crumbs a:hover { color: var(--orange); }
.crumbs [aria-current] { color: var(--text); }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding-block: 24px 90px; }
.pdp .pmodal__gallery { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 94px; }
.pdp .pmodal__info { padding: 0; overflow: visible; gap: 16px; }
.pdp h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0; text-wrap: balance; }
.pdp .pmodal__price { font-size: 1.5rem; }
.pdp .pmodal__buy { margin-top: 6px; }
.pdp__notes { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.pdp__notes li { display: flex; align-items: flex-start; gap: 12px; }
.pdp__notes svg { color: var(--orange); flex: none; margin-top: 2px; }
.pdp + .section { padding-top: 40px; }
.pdp-missing { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 40px 70px; }
.pdp-missing h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* ---- floating cart (phones only) ---- */
.cart-fab { display: none; }
.cart-fab.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }

/* Mobile */
@media (max-width: 860px) {
  .burger { display: flex; }
  .form__row { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .nav__links, .nav .cart-btn { display: none; }
  .cart-fab {
    display: grid; place-items: center; position: fixed; z-index: 60;
    left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--orange); color: #141414;
    box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 0 4px rgba(255,159,28,.16);
    transition: opacity .2s, transform .2s;
  }
  .cart-fab:active { transform: scale(.94); }
  .cart-fab .cart-btn__count { top: -3px; right: -3px; left: auto; inset-inline-end: auto; background: var(--text); color: #141414; }
  body.locked .cart-fab, body.buy-in-view:not(.just-added) .cart-fab { opacity: 0; pointer-events: none; transform: scale(.85); }
  .footer { padding-bottom: 96px; }
  .drawer, html[dir="rtl"] .drawer {
    left: 0; right: auto; width: min(420px, 88vw);
    border-inline-start: 0; border-right: 1px solid var(--line); transform: translateX(-100%);
  }
  .drawer.open, html[dir="rtl"] .drawer.open { transform: none; }
  .sheet { width: 100%; border-left: 0; }
  .sheet__head { padding-inline: 16px; }
  .sheet__body { padding-inline: 16px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
  .tile__icon { width: 46px; height: 46px; }
  .tile__text { flex: 1; }
  .tile__go { position: static; }
  .section--tight { padding: 60px 0; }
  .pdp { grid-template-columns: 1fr; gap: 22px; padding-block: 14px 60px; }
  .pdp .pmodal__gallery { position: static; }
  .crumbs { padding-top: 18px; }
  .hero { align-items: flex-end; min-height: calc(100svh - 70px); padding: 0 0 96px; }
  .hero__stage::after, html[dir="rtl"] .hero__stage::after {
    background: linear-gradient(to bottom, rgba(20,21,23,0) 0%, rgba(20,21,23,.12) 34%, rgba(20,21,23,.82) 62%, var(--bg) 100%);
  }
  .hero__art { inset-inline-end: 50%; top: 32%; transform: translate(50%, -50%) scale(.8); }
  /* The printer shows through behind the copy on phones; a soft shadow keeps the words crisp. */
  .hero__copy .eyebrow, .hero__copy .lead { text-shadow: 0 2px 14px rgba(20,21,23,.95), 0 0 4px rgba(20,21,23,.7); }
  .hero__copy h1 { filter: drop-shadow(0 2px 12px rgba(20,21,23,.9)); } /* its letters are clipped backgrounds, so no text-shadow */
  html[dir="rtl"] .hero__art { transform: translate(-50%, -50%) scale(.8); }
  .hud { display: none; }
  .about { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layers i { opacity: 1; }
}

/* ---- ratings: five stars filled to the average ---- */
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); line-height: 1; }
.stars i {
  font-style: normal; font-size: 1rem; letter-spacing: 1px; color: transparent;
  background-image: linear-gradient(90deg, var(--orange) calc(var(--r) * 20%), rgba(255,255,255,.18) 0);
  -webkit-background-clip: text; background-clip: text;
}
html[dir="rtl"] .stars i { background-image: linear-gradient(270deg, var(--orange) calc(var(--r) * 20%), rgba(255,255,255,.18) 0); }
.stars i::before { content: "★★★★★"; }
.stars b { color: var(--text); font-family: "Space Grotesk", sans-serif; }
.pmodal__rating { align-self: flex-start; }
.pmodal__rating:hover .stars b { color: var(--orange); }
.pmodal__rating[hidden] { display: none; }

/* ---- personalized text (a name on a keychain) ---- */
.pmodal__text input { font-size: 1.05rem; }
.pmodal__text > span small { color: var(--muted); }
.pmodal__text[hidden] { display: none; }
.line-text { color: var(--text); }

/* ---- checkout: delivery or pickup ---- */
.method { border: 0; min-width: 0; gap: 8px; }
.method legend { color: var(--muted); padding: 0; margin-bottom: 6px; }
.method[hidden], #deliveryFields[hidden] { display: none; }
.method__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .2s; }
.method__opt:has(input:checked) { border-color: var(--orange); }
.method .method__opt input { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--orange); }
.method__opt span { display: flex; flex-direction: column; }
.method__opt small { color: var(--muted); font-size: .85rem; }
.co-agree .link { font-size: inherit; }

/* ---- reviews on the product page ---- */
.reviews { display: flex; flex-direction: column; gap: 18px; padding-bottom: 40px; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; }
.reviews__head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.reviews__sum { display: flex; align-items: center; gap: 10px; }
.reviews__sum .stars { font-size: 1rem; }
.reviews__sum .stars small { display: none; } /* the count is spelled out next to it */
.reviews__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.review__head time { margin-inline-start: auto; }
.review p { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.reviews + .section { padding-top: 40px; }

/* ---- rating what you got, from the tracking result ---- */
.rate { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.rate h3 { font-size: 1.2rem; }
.rate__item { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.rate__head { display: flex; align-items: center; gap: 12px; }
.rate__head img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #181818; flex: none; }
.rate__stars { display: flex; gap: 2px; }
.rate__stars button { background: none; border: 0; padding: 2px 4px; font-size: 2rem; line-height: 1; color: rgba(255,255,255,.2); cursor: pointer; transition: color .15s, transform .15s; }
.rate__stars button:hover { transform: scale(1.12); }
.rate__stars button.on { color: var(--orange); }
.rate__done { color: #4ade80; font-weight: 600; }

/* ---- "from the workshop" photos ---- */
.work { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.work__item { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work__item[hidden] { display: none; }
.work__item button { display: block; width: 100%; padding: 0; border: 0; background: #18191b; cursor: zoom-in; overflow: hidden; }
.work__item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.work__item button:hover img { transform: scale(1.04); }
.work__item figcaption { padding: 12px 16px; color: var(--muted); font-size: .92rem; }
#work[hidden], #workMore[hidden] { display: none; }
#workMore { margin-top: 8px; }

.lightbox { width: min(1040px, calc(100% - 24px)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; margin: auto; }
.lightbox::backdrop { background: rgba(10,10,11,.9); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; border-radius: 14px; object-fit: contain; }
.lightbox figcaption { color: var(--muted); text-align: center; max-width: 60ch; }
.lightbox .icon-btn { position: fixed; background: rgba(20,21,23,.75); }
.lightbox__close { top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; }
.lightbox__nav { top: 50%; width: 48px; height: 48px; font-size: 1.7rem; line-height: 1; transform: translateY(-50%); }
html[dir="rtl"] .lightbox__nav { transform: translateY(-50%) scaleX(-1); }
.lightbox__prev { inset-inline-start: 16px; }
.lightbox__next { inset-inline-end: 16px; }
.lightbox__nav[hidden] { display: none; }

/* ---- policy pages ---- */
.policy { display: flex; flex-direction: column; gap: 16px; padding-block: 20px 70px; }
.policy > * { max-width: 780px; }
.policy h1 { font-size: clamp(2rem, 4.4vw, 3rem); text-wrap: balance; }
.policy__body { display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 1.02rem; }
.policy__body h2, .policy__fees h2 { font-size: 1.3rem; color: var(--text); margin: 16px 0 0; }
.policy__body ul { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.policy__body li::marker { color: var(--orange); }
.policy__fees { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.policy__fees table { width: 100%; border-collapse: collapse; }
.policy__fees td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.policy__fees td.num { text-align: end; color: var(--text); font-weight: 600; font-family: "Space Grotesk", sans-serif; }
.policy__contact { margin-top: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer__legal { font-size: .85rem; }

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work__item { border-radius: 14px; }
  .work__item figcaption { padding: 8px 10px; font-size: .85rem; }
  .lightbox__nav { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; }
  html[dir="rtl"] .lightbox__nav { transform: scaleX(-1); }
  .reviews__list { grid-template-columns: 1fr; }
}
