:root {
  --cream: #f6eee6;
  --sand: #e9dccd;
  --latte: #cbb39a;
  --mocha: #8a6a52;
  --espresso: #4a2a1c;
  --ink: #2e1b12;
  --glow: #f3c98b;
  --line: rgba(74, 42, 28, 0.14);
  --serif: "Cormorant Garamond", "Noto Naskh Arabic", serif;
  --sans: "Noto Kufi Arabic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: "Jost", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* header */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 238, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 26px; height: 32px; color: var(--espresso); }
.logo b { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: .08em; color: var(--espresso); }
nav.links { display: flex; gap: 22px; margin-inline-start: auto; font-size: .92rem; }
nav.links a:hover { color: var(--mocha); }
.icon-btn {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  height: 38px; min-width: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--espresso); font-size: .85rem;
}
.cart-count { background: var(--espresso); color: var(--cream); border-radius: 999px; font-size: .72rem; padding: 0 7px; }
@media (max-width: 720px) { nav.links { display: none; } .logo { margin-inline-end: auto; } }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 56px 0 72px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.15; margin: 0 0 14px; color: var(--espresso); }
html[lang="ar"] .hero h1 { font-family: "Noto Naskh Arabic", serif; }
.eyebrow { letter-spacing: .35em; text-transform: uppercase; font-size: .72rem; color: var(--mocha); }
.hero p { color: #5d4335; max-width: 46ch; }
.hero-img { border-radius: 220px 220px 24px 24px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px -30px rgba(74,42,28,.45); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } .hero-img { max-height: 520px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--espresso); color: var(--cream); border: 0; border-radius: 999px;
  padding: 13px 26px; font-size: .95rem; transition: background .2s;
}
.btn:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--espresso); border: 1px solid var(--espresso); }
.btn.ghost:hover { background: var(--sand); }
.btn[disabled] { opacity: .55; cursor: wait; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* sections */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 6px 0 0; color: var(--espresso); }
html[lang="ar"] .section-head h2 { font-family: "Noto Naskh Arabic", serif; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card { background: #fbf6f1; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(74,42,28,.5); }
.card .ph { aspect-ratio: 4/5; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .ph img { transform: scale(1.04); }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.price { color: var(--mocha); font-weight: 600; }
.card .row { margin-top: auto; padding-top: 8px; }
.card .btn { padding: 9px 18px; font-size: .85rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 26px; border-radius: 20px; background: var(--sand); }
.value h3 { margin: 0 0 6px; font-size: 1rem; color: var(--espresso); }
.value p { margin: 0; font-size: .9rem; color: #5d4335; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }

.palette { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.palette span { width: 34px; height: 34px; border-radius: 50%; }

/* product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 44px 0 70px; }
.product .ph { border-radius: 26px; overflow: hidden; }
.product h1 { font-family: var(--serif); font-weight: 500; font-size: 2.3rem; margin: 6px 0; color: var(--espresso); line-height: 1.2; }
html[lang="ar"] .product h1 { font-family: "Noto Naskh Arabic", serif; }
.product .price { font-size: 1.4rem; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: transparent; border: 0; width: 40px; height: 42px; font-size: 1.1rem; }
.qty span { min-width: 36px; display: grid; place-items: center; }
.note { font-size: .85rem; color: var(--mocha); }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }

/* cart */
.cart { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding: 40px 0 80px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; height: 100px; object-fit: cover; border-radius: 12px; }
.line h4 { margin: 0; font-size: .95rem; }
.remove { background: none; border: 0; color: var(--mocha); font-size: .8rem; text-decoration: underline; padding: 0; }
.panel { background: #fbf6f1; border: 1px solid var(--line); border-radius: 22px; padding: 24px; align-self: start; }
.panel h3 { margin: 0 0 14px; color: var(--espresso); }
label { display: block; font-size: .85rem; margin: 12px 0 4px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: 12px;
  padding: 11px 13px; font: inherit; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--latte); border-color: transparent; }
.pay { display: grid; gap: 10px; margin-top: 8px; }
.pay label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; cursor: pointer; }
.pay label:has(input:checked) { border-color: var(--espresso); background: var(--sand); }
.pay input { width: auto; margin-top: 5px; }
.pay small { display: block; color: var(--mocha); }
.totals { display: flex; justify-content: space-between; margin-top: 16px; font-weight: 600; font-size: 1.05rem; }
.err { color: #9b2c1f; font-size: .85rem; margin-top: 10px; }
.empty { text-align: center; padding: 80px 0; }
@media (max-width: 820px) { .cart { grid-template-columns: 1fr; } }

.status { max-width: 620px; margin: 0 auto; text-align: center; padding: 70px 0 90px; }
.status .mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--sand); font-size: 2rem; }
.bank-box { text-align: start; background: var(--sand); border-radius: 18px; padding: 18px 22px; margin: 22px 0; font-size: .92rem; }
.bank-box div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; flex-wrap: wrap; }
.bank-box code { font-family: ui-monospace, monospace; direction: ltr; }

footer { background: var(--espresso); color: var(--sand); padding: 48px 0 28px; margin-top: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer .logo b, footer .logo svg { color: var(--cream); }
footer small { opacity: .7; }

.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 30;
  background: var(--espresso); color: var(--cream); border-radius: 999px; padding: 12px 18px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); font-size: .9rem;
}
.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: var(--cream); padding: 10px 20px; border-radius: 999px; font-size: .9rem;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.toast.show { opacity: 1; }
