:root {
  --cream: #FBF7F1;
  --sand: #F4EBDD;
  --latte: #E7D6BF;
  --caramel: #B08457;
  --gold: #C9A27A;
  --mocha: #6F4E37;
  --espresso: #3B2A20;
  --ink: #2A1F18;
  --muted: #7A6656;
  --line: #E6D9C7;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(59,42,32,.06), 0 12px 32px -12px rgba(59,42,32,.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --arabic: "Amiri", "Geeza Pro", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--espresso); }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--caramel); }
.ar { font-family: var(--arabic); }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.narrow { max-width: 440px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600; color: var(--caramel); margin-bottom: .9em; }
.eyebrow .ar { letter-spacing: 0; font-size: 1rem; text-transform: none; }
.eyebrow.light { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; font: 600 .95rem var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: var(--mocha); }
.btn-ghost { border-color: var(--espresso); color: var(--espresso); background: transparent; }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--espresso); }
.btn.full { width: 100%; }

/* Announce + header */
.announce { background: var(--espresso); color: var(--latte); font-size: .8rem; text-align: center; padding: .55em 1em; display: flex; justify-content: center; gap: .8em; flex-wrap: wrap; }
.announce .dot { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251,247,241,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: .04em; color: var(--espresso); }
.brand-sub { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--caramel); margin-top: 4px; }
.brand.light .brand-name { color: var(--cream); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--espresso); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--caramel); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 999px; width: 46px; height: 46px; display: grid; place-items: center; color: var(--espresso); cursor: pointer; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--caramel); color: var(--white); font-size: .7rem; font-weight: 600; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.cart-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn span { width: 18px; height: 1.5px; background: var(--espresso); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, var(--sand), transparent 60%), var(--cream); padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--espresso); }
.hero-stats span { font-size: .8rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 540px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(59,42,32,.18)); }
.hero-badge { position: absolute; left: 4%; bottom: 12%; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow); text-align: center; }
.hero-badge .ar { display: block; font-size: 1.5rem; color: var(--espresso); line-height: 1.3; }
.hero-badge small { color: var(--muted); font-size: .75rem; }
.steam { animation: rise 4s ease-in-out infinite; }
.steam.s2 { animation-delay: 1.4s; }
@keyframes rise { 0%,100% { opacity: .2; transform: translateY(6px); } 50% { opacity: .85; transform: translateY(-6px); } }

/* Trust */
.trust { background: var(--white); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { display: flex; gap: 14px; align-items: flex-start; padding: 22px 18px; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border-right: 0; }
.trust p { margin: 0; font-size: .86rem; color: var(--muted); }
.trust strong { color: var(--espresso); font-size: .95rem; }
.ico { color: var(--caramel); font-size: 1.2rem; line-height: 1.4; }

/* Sections */
.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--white); color: var(--espresso); padding: .55em 1.1em; border-radius: 999px; font: 500 .86rem var(--sans); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--caramel); }
.chip.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; animation: fadeUp .4s both; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.card-art { aspect-ratio: 1 / .88; background: var(--sand); display: grid; place-items: center; position: relative; }
.card-art svg { width: 64%; height: auto; }
.tag { position: absolute; top: 14px; left: 14px; background: var(--espresso); color: var(--cream); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.tag.alt { background: var(--caramel); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel); font-weight: 600; }
.card h3 { margin: .3em 0 .2em; font-size: 1.35rem; }
.card .ar-name { font-family: var(--arabic); color: var(--muted); font-size: .95rem; margin-bottom: .4em; }
.notes { font-size: .86rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.card select { width: 100%; padding: .6em .8em; border: 1px solid var(--line); border-radius: 10px; font: .86rem var(--sans); background: var(--cream); color: var(--ink); margin-bottom: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--espresso); }
.price small { font-family: var(--sans); font-size: .72rem; color: var(--muted); font-weight: 500; }
.add { background: var(--espresso); color: var(--cream); border: 0; border-radius: 999px; padding: .65em 1.15em; font: 600 .85rem var(--sans); cursor: pointer; transition: background .2s; }
.add:hover { background: var(--mocha); }

/* Banner */
.banner { background: var(--espresso); color: var(--latte); padding: 70px 0; position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(201,162,122,.05) 22px 23px); }
.banner-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.banner h2 { color: var(--cream); }
.banner p { max-width: 480px; }
.banner img { border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }

/* Grinders */
.grinder-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.grind-tool { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.grind-label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 10px; }
.grind-tool input[type=range] { width: 100%; accent-color: var(--mocha); }
.grind-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.grind-result { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.grind-dots { width: 72px; height: 72px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; }
.grind-result h4 { margin: 0 0 .2em; }
.grind-result p { margin: 0; font-size: .86rem; color: var(--muted); }
.grinder-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.gcard.wide { grid-column: 1 / -1; background: var(--sand); border-color: var(--latte); }
.gcard-art { background: var(--sand); border-radius: 14px; aspect-ratio: 1.2; display: grid; place-items: center; margin-bottom: 16px; }
.gcard-art svg { width: 52%; }
.gcard p { font-size: .9rem; color: var(--muted); }
.gcard a { font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--mocha); }

/* Qahwa */
.qahwa { background: linear-gradient(180deg, var(--sand), var(--cream)); position: relative; }
.qahwa-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.qahwa-copy > p { color: #5c4a3d; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.regions div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.regions p { font-size: .84rem; color: var(--muted); margin: 0; }
.recipe { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.recipe h3 { display: flex; justify-content: space-between; align-items: baseline; }
.recipe h3 .ar { font-size: 1.1rem; color: var(--caramel); }
.recipe ol { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 14px; }
.recipe li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: .92rem; }
.recipe li span { width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--mocha); display: grid; place-items: center; font-weight: 600; font-size: .82rem; }

/* Origins */
.origins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.origin { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 6px; }
.origin-top { height: 120px; background: radial-gradient(circle at 30% 120%, rgba(255,255,255,.18) 0 40%, transparent 41%), var(--c); display: flex; align-items: flex-end; padding: 16px 20px; }
.origin-top span { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: rgba(251,247,241,.9); letter-spacing: .06em; line-height: 1; }
.origin h3, .origin p { padding: 0 20px; }
.origin h3 { margin-top: 18px; }
.origin .meta { font-size: .76rem; letter-spacing: .04em; color: var(--caramel); font-weight: 600; }
.origin p:last-child { font-size: .88rem; color: var(--muted); }

/* Subscribe */
.subscribe { background: var(--white); border-block: 1px solid var(--line); }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--sand); color: var(--mocha); font-size: .7rem; display: grid; place-items: center; top: 3px; }
.sub-card { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.sub-card fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.sub-card legend { font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .75em .5em; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; font-size: .9rem; font-weight: 500; transition: all .2s; }
.seg input:checked + span { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.seg input:focus-visible + span { outline: 2px solid var(--caramel); outline-offset: 2px; }
.sub-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 20px; flex-wrap: wrap; }
.sub-price strong { font-family: var(--serif); font-size: 2.2rem; color: var(--espresso); }
.sub-price .was { text-decoration: line-through; color: var(--muted); }
.sub-price small { color: var(--muted); }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.visit-card { background: var(--espresso); color: var(--latte); border-radius: 22px; padding: 40px; }
.visit-card h2 { color: var(--cream); }
.hours { margin: 26px 0; display: grid; gap: 10px; }
.hours div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(231,214,191,.18); padding-bottom: 10px; }
.hours dt { color: var(--gold); }
.hours dd { margin: 0; color: var(--cream); }
.addr { font-size: .9rem; opacity: .85; margin: 0; }
.visit-cards { display: grid; gap: 18px; }
.visit-cards article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.visit-cards p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Newsletter */
.news { padding: 0 0 96px; }
.news-inner { background: var(--sand); border: 1px solid var(--latte); border-radius: 26px; padding: 40px 44px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.news h2 { font-size: 2rem; margin-bottom: .2em; }
.news p { margin: 0; color: var(--muted); }
.news-form { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.news-form input { flex: 1; padding: .9em 1.2em; border-radius: 999px; border: 1px solid var(--latte); background: var(--white); font: .95rem var(--sans); min-width: 0; }
.news-form input:focus, .card select:focus { outline: 2px solid var(--caramel); outline-offset: 1px; }

/* Footer */
.footer { background: var(--ink); color: #b9a693; padding: 64px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h4 { color: var(--cream); font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer .brand { margin-bottom: 16px; }
.footer-base { display: flex; justify-content: space-between; padding-top: 22px; font-size: .8rem; flex-wrap: wrap; gap: 10px; }
.footer-base .ar { font-size: 1rem; color: var(--gold); }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(42,31,24,.45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--cream); z-index: 50; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.15); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.icon-btn { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--espresso); width: 36px; height: 36px; border-radius: 50%; }
.icon-btn:hover { background: var(--sand); }
.ship-meter { padding: 14px 24px; background: var(--sand); font-size: .84rem; }
.ship-meter p { margin: 0 0 8px; }
.bar { height: 6px; border-radius: 3px; background: var(--latte); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--mocha); transition: width .3s; }
.cart-items { list-style: none; margin: 0; padding: 8px 24px; overflow-y: auto; flex: 1; }
.cart-items .empty { text-align: center; color: var(--muted); padding: 60px 0; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.citem-art { width: 64px; height: 64px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; }
.citem-art svg { width: 70%; }
.citem h4 { font-size: 1.05rem; margin: 0; }
.citem small { color: var(--muted); display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; background: var(--white); }
.qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; color: var(--espresso); font-size: 1rem; }
.qty span { min-width: 22px; text-align: center; font-size: .85rem; }
.citem-price { font-weight: 600; font-size: .92rem; text-align: right; }
.remove { display: block; background: none; border: 0; color: var(--muted); font-size: .75rem; cursor: pointer; margin-top: 6px; text-decoration: underline; padding: 0; margin-left: auto; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.drawer-foot .btn { margin-top: 12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--espresso); color: var(--cream); padding: .9em 1.4em; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .3s; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1020px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: flex; }
  .hero-grid, .banner-inner, .grinder-grid, .qahwa-grid, .sub-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-art img { margin: 0 auto; max-width: 440px; }
  .origins { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .recipe { position: static; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .announce span:not(:first-child) { display: none; }
  .brand-sub { display: none; }
  .hero-stats { gap: 22px; }
  .origins, .regions, .grinder-cards { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .news-inner { padding: 28px 22px; }
  .news-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
