/* =========================================================
   Rashfeh | رشفة — Coffee machines & barista equipment
   Brown palette + motion
   ========================================================= */
:root {
  --espresso: #1c120c;
  --roast: #2a1a11;
  --mocha: #4a2e1f;
  --cocoa: #6b4430;
  --caramel: #b07a4f;
  --crema: #c98f55;
  --gold: #deaa6a;
  --latte: #dcc3a5;
  --cream: #f4ead9;
  --foam: #fbf6ee;
  --ink: #2a1a11;
  --muted: #7a6152;

  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(28, 18, 12, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --f-body: "Inter", system-ui, sans-serif;
  --f-display: "Playfair Display", Georgia, serif;
  --f-ar: "Aref Ruqaa", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--foam);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
em { font-style: italic; color: var(--crema); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ar { font-family: var(--f-ar); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--espresso);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pour { position: relative; width: 100px; height: 130px; }
.pour-head { position: absolute; top: 0; left: 50%; width: 60px; height: 14px; margin-left: -30px; border-radius: 4px; background: var(--latte); }
.pour-stream {
  position: absolute; left: 44%; top: 14px; width: 3px; height: 0; border-radius: 3px;
  background: linear-gradient(var(--gold), var(--cocoa));
  animation: stream 1.4s var(--ease) forwards;
}
.pour-stream.two { left: 54%; animation-delay: .1s; }
.pour-cup {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 48px; border: 4px solid var(--latte); border-top: 0;
  border-radius: 0 0 22px 22px; overflow: hidden;
}
.pour-fill {
  position: absolute; bottom: 0; width: 100%; height: 0;
  background: linear-gradient(var(--gold), var(--mocha) 40%);
  animation: fill 1.4s .4s var(--ease) forwards;
}
.preloader-text { color: var(--latte); letter-spacing: .3em; font-size: .8rem; }
.preloader-text .ar { font-size: 1.6rem; letter-spacing: 0; margin-right: 8px; color: var(--gold); }
@keyframes stream { 0% { height: 0 } 60% { height: 66px } 100% { height: 66px; opacity: 0 } }
@keyframes fill { to { height: 80% } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background .4s, padding .4s, box-shadow .4s;
  color: var(--cream);
}
.header.scrolled {
  background: rgba(28, 18, 12, .88);
  backdrop-filter: blur(12px);
  padding-block: 10px;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.6);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 42px; height: 42px; overflow: visible; }
.logo-mark .ring { fill: none; stroke: var(--crema); stroke-width: 1.6; stroke-dasharray: 4 3; transform-origin: center; transform-box: fill-box; transition: transform 1s var(--ease); }
.logo-mark .cup { fill: var(--crema); }
.logo-mark .handle { fill: none; stroke: var(--crema); stroke-width: 2; }
.logo-mark .steam { fill: none; stroke: var(--latte); stroke-width: 1.6; stroke-linecap: round; animation: logoSteam 2.4s ease-in-out infinite; }
@keyframes logoSteam { 0%, 100% { opacity: .2; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-1px); } }
.logo:hover .ring { transform: rotate(180deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-ar { font-family: var(--f-ar); font-weight: 700; font-size: 1.9rem; color: var(--gold); line-height: 1.1; }
.logo-en { font-family: var(--f-body); font-size: .62rem; letter-spacing: .42em; font-weight: 600; color: var(--latte); margin-top: 2px; }

.nav { display: flex; gap: 30px; }
.nav a { position: relative; font-size: .9rem; font-weight: 500; opacity: .85; transition: opacity .3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(244, 234, 217, .1);
  transition: background .3s, transform .3s;
}
.cart-btn:hover { background: rgba(244, 234, 217, .2); transform: translateY(-2px); }
.cart-btn svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--crema); color: var(--espresso);
  font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
.cart-btn.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg) } 60% { transform: scale(.95) rotate(4deg) } }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.burger span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: .95rem;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s, color .35s, border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::before { transform: translateY(0); }
.btn-primary { background: var(--crema); color: var(--espresso); box-shadow: 0 12px 30px -12px rgba(201, 143, 85, .8); }
.btn-primary::before { background: var(--gold); }
.btn-ghost { border: 1.5px solid currentColor; }
.btn-ghost::before { background: var(--crema); }
.btn-ghost:hover { color: var(--espresso); border-color: var(--crema); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding: 130px clamp(16px, 6vw, 90px) 80px;
  background:
    radial-gradient(circle at 75% 45%, rgba(201,143,85,.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(107,68,48,.5), transparent 40%),
    linear-gradient(160deg, var(--roast), var(--espresso) 70%);
  color: var(--cream);
}
.hero-beans { position: absolute; inset: 0; pointer-events: none; }
.bean {
  position: absolute; width: var(--s); height: calc(var(--s) * 1.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--cocoa), var(--mocha) 55%, var(--roast));
  box-shadow: inset -3px -4px 8px rgba(0,0,0,.4);
  opacity: var(--o);
  animation: float var(--d) ease-in-out infinite alternate;
  transition: translate .6s var(--ease);
}
.bean::after {
  content: ""; position: absolute; left: 48%; top: 10%; width: 22%; height: 80%;
  border-left: 2px solid rgba(20,10,5,.7); border-radius: 50%;
}
@keyframes float {
  from { transform: translateY(0) rotate(var(--r)); }
  to { transform: translateY(-40px) rotate(calc(var(--r) + 40deg)); }
}

.hero-content { position: relative; z-index: 2; max-width: 640px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .75rem; font-weight: 600;
  color: var(--crema); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.hero-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.02em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.14em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.loaded .hero-title .line > span { transform: none; }
.loaded .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.loaded .hero-title .line:nth-child(3) > span { transition-delay: .24s; }
.hero-sub { margin: 26px 0 34px; font-size: 1.08rem; color: var(--latte); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 44px; margin-top: 56px; }
.hero-meta strong { font-family: var(--f-display); font-size: 2.3rem; color: var(--gold); display: block; line-height: 1; }
.hero-meta span { font-size: .8rem; color: var(--latte); text-transform: uppercase; letter-spacing: .12em; }

.hero-visual { position: relative; z-index: 2; display: grid; place-items: center; aspect-ratio: 1; transition: translate .6s var(--ease); }
.rotating-badge { position: absolute; width: 100%; max-width: 520px; aspect-ratio: 1; animation: spin 30s linear infinite; }
.rotating-badge text { fill: var(--latte); font-size: 12.5px; letter-spacing: 5px; font-weight: 600; font-family: var(--f-body); opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero espresso machine */
.hero-machine { width: 82%; max-width: 440px; overflow: visible; filter: drop-shadow(0 40px 40px rgba(0,0,0,.55)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.machine-brand { font-family: var(--f-ar); font-size: 30px; font-weight: 700; fill: var(--gold); }
.machine-brand-en { font-family: var(--f-body); font-size: 7px; letter-spacing: 4px; font-weight: 600; fill: var(--latte); }
.top-cup { fill: var(--cream); }
.heat path { fill: none; stroke: var(--latte); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: heat 3s ease-in-out infinite; }
.heat path:nth-child(2) { animation-delay: 1s; }
.heat path:nth-child(3) { animation-delay: 2s; }
@keyframes heat { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .6; } 100% { opacity: 0; transform: translateY(-10px); } }
.gauge-face { fill: var(--cream); stroke: #b9b1a6; stroke-width: 3; }
.gauge-arc { fill: none; stroke: var(--caramel); stroke-width: 2; stroke-dasharray: 2 3; }
.gauge-pin { fill: var(--roast); }
.needle { stroke: #a8322a; stroke-width: 2; stroke-linecap: round; transform-origin: 0 0; }
.needle.n1 { animation: needle1 6s var(--ease) infinite; }
.needle.n2 { animation: needle2 6s ease-in-out infinite; }
@keyframes needle1 { 0% { transform: rotate(-120deg); } 12% { transform: rotate(25deg); } 70% { transform: rotate(20deg); } 85%, 100% { transform: rotate(-120deg); } }
@keyframes needle2 { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(45deg); } }
.led { fill: #e2b36e; animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { fill: #7a4b2a; } }

.stream { transform-box: fill-box; transform-origin: top; animation: pourShot 6s ease-in-out infinite; }
.stream.s2 { animation-delay: .08s; }
.stream.s3 { animation-delay: .4s; }
.stream.s4 { animation-delay: .48s; }
@keyframes pourShot {
  0%, 8% { transform: scaleY(0); opacity: 1; }
  16% { transform: scaleY(1); }
  40% { transform: scaleY(1) scaleX(1.25); }
  66% { transform: scaleY(1) scaleX(.7); opacity: 1; }
  74%, 100% { transform: scaleY(1) translateY(100%); opacity: 0; }
}
.shot-cup { fill: var(--cream); }
.shot-handle { fill: none; stroke: var(--cream); stroke-width: 3; }
.cup-fill { fill: var(--cocoa); transform-box: fill-box; transform-origin: bottom; animation: cupFill 6s ease-in-out infinite; }
.cup-fill.f2 { animation-delay: .4s; }
@keyframes cupFill { 0%, 14% { transform: scaleY(0); } 72% { transform: scaleY(.8); fill: var(--caramel); } 90% { transform: scaleY(.8); opacity: 1; } 100% { transform: scaleY(.8); opacity: 0; } }
.wand { fill: none; stroke: #d8d2c8; stroke-width: 5; stroke-linecap: round; }
.puff { fill: var(--cream); opacity: 0; filter: blur(3px); transform-box: fill-box; transform-origin: center; animation: puff 2.4s ease-out infinite; }
.puff.p2 { animation-delay: .8s; }
.puff.p3 { animation-delay: 1.6s; }
@keyframes puff { 0% { opacity: .8; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(10px, -50px) scale(2.8); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--latte); border-radius: 14px; opacity: .6;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--latte); animation: scrolly 1.8s infinite;
}
@keyframes scrolly { 60% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }

/* ---------- Marquee ---------- */
.marquee { background: var(--crema); color: var(--espresso); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
.marquee i { font-style: normal; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head .eyebrow::after { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.section-head h2, .contact-text h2 {
  font-family: var(--f-display); font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; letter-spacing: -.01em;
}
.section-sub { margin-top: 14px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Categories ---------- */
.categories { background: var(--foam); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat {
  position: relative; overflow: hidden; text-align: left; display: block;
  background: #fff; border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid rgba(107,68,48,.12);
  transition: transform .5s var(--ease), box-shadow .5s, background .5s, color .5s, opacity 1s var(--ease);
}
.cat::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,143,85,.25), transparent 70%);
  transform: scale(0); transition: transform .7s var(--ease);
}
.cat:hover { transform: translateY(-10px); box-shadow: var(--shadow); background: var(--roast); color: var(--cream); }
.cat:hover::after { transform: scale(2.2); }
.cat:hover p { color: var(--latte); }
.cat-icon {
  width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center;
  background: var(--cream); margin-bottom: 20px; transition: transform .6s var(--ease), background .5s;
}
.cat:hover .cat-icon { transform: rotate(-8deg) scale(1.08); background: var(--crema); }
.cat-icon svg { width: 40px; fill: none; stroke: var(--mocha); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.cat-icon .drip { stroke-dasharray: 3 4; animation: drip 1s linear infinite paused; }
.cat-icon .move { transition: transform .6s var(--ease); }
.cat:hover .drip { animation-play-state: running; }
.cat:hover .move { transform: translateY(-3px); }
@keyframes drip { to { stroke-dashoffset: -14; } }
.cat h3 { font-family: var(--f-display); font-size: 1.35rem; margin-bottom: 4px; }
.cat p { color: var(--muted); font-size: .92rem; transition: color .5s; }
.cat-count { display: inline-block; margin-top: 16px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--caramel); }
.cat-cta { background: var(--cream); }

/* ---------- Shop ---------- */
.shop { background: var(--cream); }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter {
  padding: 10px 22px; border-radius: 100px; border: 1.5px solid var(--cocoa);
  color: var(--mocha); font-weight: 600; font-size: .88rem;
  transition: background .3s, color .3s, transform .3s;
}
.filter:hover { transform: translateY(-2px); }
.filter.active { background: var(--mocha); color: var(--cream); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.product {
  background: var(--foam); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 0 rgba(107,68,48,.08);
  transition: transform .5s var(--ease), box-shadow .5s, opacity .6s;
}
.product:not(.in) { opacity: 0; transform: translateY(40px); }
.product:hover { box-shadow: var(--shadow); }
.product.hide { display: none; }
.product.pop { animation: pop .6s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }

.product-media {
  position: relative; height: 250px; display: grid; place-items: center; overflow: hidden;
  background: #fff; border-bottom: 1px solid rgba(107,68,48,.08);
}
.photo {
  width: 78%; height: 78%; object-fit: contain; position: relative; z-index: 1;
  mix-blend-mode: multiply; transition: transform .7s var(--ease);
}
.product:hover .photo { transform: translateY(-6px) scale(1.05); }

.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--gold); color: var(--espresso); font-size: .7rem; font-weight: 700;
  padding: 5px 11px; border-radius: 100px; text-transform: uppercase; letter-spacing: .08em;
}
.product-cat {
  position: absolute; top: 14px; right: 14px; z-index: 2; padding: 5px 11px; border-radius: 100px;
  background: rgba(28,18,12,.5); color: var(--cream); font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(4px);
}
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--caramel); font-weight: 600; }
.product h3 { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs span { font-size: .72rem; padding: 4px 10px; border-radius: 100px; background: var(--cream); color: var(--mocha); }
.variants { display: flex; flex-wrap: wrap; gap: 6px; }
.variant {
  flex: 1 1 auto; padding: 7px 10px; border-radius: 10px; font-size: .76rem; font-weight: 600;
  border: 1.5px solid rgba(107,68,48,.25); color: var(--mocha); transition: all .3s;
}
.variant.active { background: var(--mocha); border-color: var(--mocha); color: var(--cream); }
.variant.out { border-style: dashed; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.variant.out.active { background: var(--muted); border-color: var(--muted); color: var(--cream); }
.btn.busy { opacity: .6; pointer-events: none; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.product-price { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; color: var(--roast); }
.add-btn {
  width: 46px; height: 46px; border-radius: 50%; background: var(--crema); color: var(--espresso);
  font-size: 1.5rem; display: grid; place-items: center;
  transition: transform .45s var(--ease), background .3s;
}
.add-btn:hover { transform: rotate(90deg) scale(1.1); background: var(--gold); }
.add-btn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.add-btn[aria-disabled="true"]:hover { transform: none; background: var(--crema); }
.product-price.soon { font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--muted); }

.shop-search { max-width: 520px; margin: 0 auto 22px; }
.shop-search input {
  width: 100%; padding: 14px 22px; border-radius: 100px; font: inherit; font-size: .95rem;
  border: 1.5px solid rgba(107,68,48,.25); background: #fff; color: var(--espresso); outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.shop-search input:focus { border-color: var(--mocha); box-shadow: 0 0 0 4px rgba(201,143,85,.2); }
.no-results { text-align: center; color: var(--muted); padding: 30px 0; }

.fly-bean {
  position: fixed; z-index: 200; width: 18px; height: 24px; border-radius: 50%;
  background: var(--mocha); pointer-events: none; box-shadow: inset -3px -3px 6px rgba(0,0,0,.4);
  transition: transform .8s cubic-bezier(.5,-.4,.7,1), opacity .8s;
}

/* ---------- Service timeline ---------- */
.process { background: var(--espresso); color: var(--cream); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 50px; }
.timeline-line { position: absolute; top: 20px; left: 0; right: 0; height: 2px; background: rgba(220,195,165,.15); }
.timeline-progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--caramel), var(--gold)); transition: width .2s linear; }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -38px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--espresso); border: 3px solid var(--crema); }
.step-num { font-family: var(--f-display); font-size: 3rem; color: transparent; -webkit-text-stroke: 1px var(--crema); line-height: 1; }
.step h3 { font-family: var(--f-display); font-size: 1.4rem; margin: 8px 0; }
.step p { color: var(--latte); font-size: .93rem; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(circle at 80% 20%, rgba(201,143,85,.22), transparent 50%), var(--roast); color: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-text > p { color: var(--latte); margin: 20px 0 30px; }
.contact-details { list-style: none; display: grid; gap: 12px; color: var(--latte); }
.contact-details a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(222,170,106,.4); }
.contact-details a:hover { border-bottom-color: var(--gold); }
.contact-form { background: var(--foam); color: var(--ink); padding: clamp(24px, 4vw, 44px); border-radius: 26px; display: grid; gap: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 16px 8px; border-radius: 12px; border: 1.5px solid var(--latte);
  background: #fff; font: inherit; color: var(--ink); resize: vertical; transition: border-color .3s, box-shadow .3s;
}
.field select { padding: 15px 16px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--crema); box-shadow: 0 0 0 4px rgba(201,143,85,.18); }
.field label { position: absolute; inset-inline-start: 17px; top: 15px; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 5px; font-size: .7rem; color: var(--crema); font-weight: 600; }
.form-note { text-align: center; color: var(--cocoa); font-weight: 600; min-height: 1.4em; }
.form-note a { color: var(--mocha); }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: var(--latte); padding: 70px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .logo-ar.big { font-size: 3rem; display: block; }
.footer-brand p { margin-top: 12px; font-size: .9rem; }
.footer h4 { color: var(--cream); font-family: var(--f-display); margin-bottom: 14px; font-size: 1.1rem; }
.footer a { display: block; margin-bottom: 8px; font-size: .92rem; transition: color .3s, transform .3s; }
.footer a:hover { color: var(--gold); transform: translateX(4px); }
.footer p { font-size: .9rem; }
.newsletter { display: flex; margin-top: 14px; border-bottom: 1.5px solid var(--cocoa); }
.newsletter input { flex: 1; background: none; border: 0; padding: 10px 0; color: var(--cream); font: inherit; min-width: 0; }
.newsletter input:focus { outline: none; }
.newsletter button { color: var(--gold); font-size: 1.3rem; transition: transform .3s; }
.newsletter button:hover { transform: translateX(5px); }
.copyright { text-align: center; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(220,195,165,.1); font-size: .8rem; opacity: .7; }

/* ---------- Cart ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(28,18,12,.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.overlay.show { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%);
  background: var(--foam); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .6s var(--ease);
}
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--latte); }
.cart-head h3 { font-family: var(--f-display); font-size: 1.5rem; }
.cart-close { font-size: 2rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; transition: background .3s, transform .4s var(--ease); }
.cart-close:hover { background: var(--cream); transform: rotate(90deg); }
.cart-scroll { flex: 1; overflow-y: auto; }
.cart-items { padding: 16px 24px; display: grid; align-content: start; gap: 14px; }
.cart-details { margin: 0 24px 20px; padding: 16px; border-radius: 14px; background: #fff; display: grid; gap: 12px; }
.cart-details h4 { font-family: var(--f-display); font-size: 1.05rem; }
.cf { display: grid; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--mocha); }
.cf input, .cf select, .cf textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--latte);
  background: #fff; font: inherit; font-weight: 400; font-size: .92rem; color: var(--ink); resize: vertical;
}
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--crema); box-shadow: 0 0 0 3px rgba(201,143,85,.18); }
.cf.bad input, .cf.bad select { border-color: #a8322a; }
.cf-err { color: #a8322a; font-weight: 500; font-size: .76rem; min-height: 0; }
.cf-err:empty { display: none; }
.cart-done { text-align: center; padding: 40px 12px; display: grid; gap: 10px; }
.cart-done .big { font-family: var(--f-display); font-size: 1.4rem; color: var(--roast); }
.cart-done p { color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart-empty .ar { font-size: 3rem; color: var(--latte); display: block; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: #fff; animation: slideIn .5s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } }
.cart-item .thumb { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid rgba(107,68,48,.12); overflow: hidden; }
.cart-item .thumb img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.cart-item h4 { font-size: .92rem; font-family: var(--f-display); line-height: 1.25; }
.cart-item small { color: var(--muted); font-size: .76rem; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 24px; height: 24px; border-radius: 50%; background: var(--cream); font-weight: 700; }
.cart-item .line-price { font-weight: 700; text-align: right; white-space: nowrap; }
.cart-item .remove { display: block; font-size: .72rem; color: var(--caramel); margin-top: 6px; margin-inline-start: auto; }
.cart-foot { padding: 20px 24px 26px; border-top: 1px solid var(--latte); display: grid; gap: 10px; }
.cart-row { display: flex; justify-content: space-between; }
.cart-row.small { font-size: .88rem; color: var(--muted); }
.free-ship { height: 6px; background: var(--cream); border-radius: 3px; overflow: hidden; }
.free-ship-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--caramel), var(--gold)); transition: width .8s var(--ease); }
.free-ship-text { font-size: .8rem; color: var(--mocha); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, calc(100% + 60px)); visibility: hidden;
  background: var(--roast); color: var(--cream); padding: 14px 24px; border-radius: 100px;
  box-shadow: var(--shadow); font-weight: 500; font-size: .92rem; transition: transform .6s var(--ease), visibility .6s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0; background: var(--espresso); flex-direction: column;
    justify-content: center; align-items: center; gap: 26px; z-index: -1;
    clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease);
  }
  .nav.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav a { font-family: var(--f-display); font-size: 2rem; }
  .burger { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-visual { max-width: 400px; width: 100%; margin: 0 auto; order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline-line, .step::before { display: none; }
}
@media (max-width: 560px) {
  .cat-grid, .footer-inner, .timeline { grid-template-columns: 1fr; }
  .hero-meta strong { font-size: 1.8rem; }
  .logo-ar { font-size: 1.6rem; }
  .logo-mark { width: 36px; height: 36px; }
  .marquee span { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Language switch ---------- */
.lang-btn {
  position: relative; display: flex; align-items: center; height: 40px; padding: 4px; border-radius: 100px;
  background: rgba(244, 234, 217, .1); border: 1px solid rgba(244, 234, 217, .18); font-size: .8rem; font-weight: 600;
  transition: background .3s, transform .3s;
}
.lang-btn:hover { background: rgba(244, 234, 217, .2); transform: translateY(-2px); }
.lang-btn span { position: relative; z-index: 1; padding: 0 12px; line-height: 32px; transition: color .4s; }
.lang-btn .lang-ar { font-family: "Tajawal", sans-serif; font-size: .9rem; }
.lang-btn::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 100px;
  background: var(--crema); transition: transform .5s var(--ease), width .5s var(--ease);
}
html:not([dir="rtl"]) .lang-btn .lang-en, [dir="rtl"] .lang-btn .lang-ar { color: var(--espresso); }
[dir="rtl"] .lang-btn::before { transform: translateX(100%); }
.secure-note { text-align: center; font-size: .78rem; color: var(--muted); }

/* ---------- Arabic / right-to-left ---------- */
[dir="rtl"] {
  --f-body: "Tajawal", system-ui, sans-serif;
  --f-display: "Amiri", Georgia, serif;
}
[dir="rtl"] body :not(.logo-en):not(.machine-brand-en):not(.rotating-badge text) { letter-spacing: 0 !important; }
[dir="rtl"] em { font-style: normal; }
[dir="rtl"] .lang-btn { direction: ltr; }
[dir="rtl"] .hero-title { line-height: 1.3; font-weight: 700; }
[dir="rtl"] .hero-title .line { padding: .08em 0 .22em; margin-bottom: -.2em; }
[dir="rtl"] .section-head h2, [dir="rtl"] .contact-text h2 { line-height: 1.45; font-weight: 700; }
[dir="rtl"] .hero-sub, [dir="rtl"] .section-sub { font-size: 1.12rem; line-height: 1.8; }
[dir="rtl"] .eyebrow { font-size: .9rem; }
[dir="rtl"] .product-sub, [dir="rtl"] .cat-count, [dir="rtl"] .product-badge, [dir="rtl"] .product-cat { font-size: .8rem; }
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .marquee span { font-family: "Amiri", serif; font-weight: 700; }
[dir="rtl"] .footer a:hover { transform: translateX(-4px); }
[dir="rtl"] .newsletter button:hover { transform: translateX(-5px); }
[dir="rtl"] .cart { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .cart.open { transform: none; }
[dir="rtl"] .field input[type="email"] { text-align: right; }
@media (max-width: 900px) {
  [dir="rtl"] .nav { clip-path: circle(0 at 40px 40px); }
  [dir="rtl"] .nav.open { clip-path: circle(150% at 40px 40px); }
}
@media (max-width: 560px) {
  .lang-btn span { padding: 0 9px; }
  .header-actions { gap: 6px; }
}
.switching .cart, .switching .lang-btn::before { transition: none !important; }
[dir="rtl"] .rotating-badge, [dir="rtl"] .hero-machine { direction: ltr; }
