:root {
  --paper: #ffffff;
  --studio: #f2f2f0;
  --ink: #111111;
  --muted: #8a8a86;
  --line: #e6e6e3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "IBM Plex Sans Arabic", "Jost", sans-serif; background: var(--paper); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.caps { font-family: "Jost", "IBM Plex Sans Arabic", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.serif { font-family: "Amiri", serif; }
.gutter { padding-inline: clamp(16px, 3.2vw, 64px); }

/* Promo */
.promo { border-bottom: 1px solid var(--line); text-align: center; padding: 9px 16px; font-size: 12px; color: var(--muted); }

/* Header: links | giant wordmark | links */
header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 22px; }
header .side { display: flex; flex-direction: column; gap: 3px; line-height: 1.5; }
header .side:last-child { align-items: flex-end; }
header .side a, header .side button { color: var(--muted); transition: color .3s; letter-spacing: inherit; text-transform: inherit; font-size: inherit; }
header .side a:hover, header .side button:hover { color: var(--ink); }
.wordmark { font-family: "Bodoni Moda", serif; font-weight: 500; font-size: clamp(44px, 10vw, 150px); line-height: .9; letter-spacing: .02em; display: flex; overflow: hidden; padding-bottom: .06em; }
.wordmark.small { font-size: clamp(36px, 5vw, 64px); }
.wordmark span { display: inline-block; transform: translateY(105%); animation: rise 1.1s cubic-bezier(.2,.7,.1,1) forwards; }
@keyframes rise { to { transform: none; } }

/* Product card */
.card { position: relative; display: block; }
.card .media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--studio); }
.card .media img { height: 100%; object-fit: cover; }
.card .tag { position: absolute; top: 16px; inset-inline-start: 18px; z-index: 2; color: #9b9b97; font-size: 10.5px; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 2px 26px; }
.card .name { font-size: 13.5px; }
.card .price { font-family: "Jost", sans-serif; font-size: 13px; white-space: nowrap; }

/* Slide zoom is animated in products.js */
[data-zoom] { contain: paint; }

/* Smooth cross-fade between pages (Chrome/Edge/Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* Buttons */
.btn-solid { display: block; width: 100%; text-align: center; background: var(--ink); color: #fff; padding: 17px 20px; transition: background .3s; }
.btn-solid:hover { background: #333; }
.btn-solid[aria-disabled] { background: #c9c9c5; pointer-events: none; }
.link { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Basket drawer */
.cart-scrim { position: fixed; inset: 0; background: rgba(17,17,17,.35); opacity: 0; pointer-events: none; transition: opacity .4s; z-index: 50; }
.cart { position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 100%); background: var(--paper); z-index: 51; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .55s cubic-bezier(.7,0,.2,1); }
.cart-open .cart { transform: none; }
.cart-open .cart-scrim { opacity: 1; pointer-events: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-shipbox { padding: 14px 24px; font-size: 12.5px; color: #555; }
.cart-track { height: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.cart-track i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .6s; }
#cart-items { flex: 1; overflow-y: auto; padding: 0 24px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cart-thumb { background: var(--studio); aspect-ratio: 3 / 4; overflow: hidden; }
.cart-thumb img { height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 6px; }
.cart-info .caps { font-size: 10.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); width: fit-content; }
.qty button { width: 28px; height: 28px; }
.qty span { min-width: 22px; text-align: center; font-family: "Jost"; }
.cart-price { font-family: "Jost"; white-space: nowrap; }
.cart-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-sum { display: flex; justify-content: space-between; font-size: 15px; }
.cart-sum span:last-child { font-family: "Jost"; }
.cart-note { text-align: center; font-size: 12px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 40px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; color: var(--muted); }
footer .mark { font-family: "Bodoni Moda", serif; font-weight: 500; font-size: 28px; color: var(--ink); letter-spacing: .04em; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .links:last-child { justify-content: flex-end; }
footer a:hover { color: var(--ink); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.1,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  header { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  header .side { flex-direction: row; gap: 18px; }
  header .side:first-child { display: none; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  footer .links, footer .links:last-child { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wordmark span, .reveal { transform: none; opacity: 1; }
}
