/* Local palette: oasis green for actions, Sadu-weave red and black for the woven bands, sand for the ground.
   Shapes: arches (as in Qasr Al Hosn) and squared corners instead of round pills. */
:root {
  --brand: #1f5a44;
  --brand-dark: #153f30;
  --brand-tint: #e6efe8;
  --sadu: #9a2c24;
  --sadu-dark: #7c211b;
  --sand: #efe5d4;
  --ink: #1f1a16;
  --muted: #5f564d;
  --line: #e0d5c3;
  --surface: #fbf8f2;
  --wash: #f3ece0;
  --teal: #16332a;
  --ok: #24693f;
  --ok-tint: #e6f2ea;
  --warn: #8a5a00;
  --warn-tint: #fbf1dc;
  --danger: #a82a2a;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Noto Kufi Arabic", "Geeza Pro", "Baghdad", "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-small: 12px;
  --arch: var(--radius);
  /* A Sadu weave band: black edges, a red field and a sand zigzag. */
  --sadu-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Crect width='24' height='14' fill='%239a2c24'/%3E%3Crect width='24' height='2' fill='%231f1a16'/%3E%3Crect y='12' width='24' height='2' fill='%231f1a16'/%3E%3Cpath d='M0 11 6 4l6 7 6-7 6 7v1H0z' fill='%23efe5d4'/%3E%3Cpath d='M3 11 6 7.5 9 11zM15 11l3-3.5 3 3.5z' fill='%231f1a16'/%3E%3Ccircle cx='12' cy='5' r='1' fill='%23efe5d4'/%3E%3Ccircle cx='0' cy='5' r='1' fill='%23efe5d4'/%3E%3Ccircle cx='24' cy='5' r='1' fill='%23efe5d4'/%3E%3C/svg%3E");
  --page: 1280px;
  --gap: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.5 var(--font-body); touch-action: manipulation; -webkit-tap-highlight-color: rgba(31, 90, 68, .15); }
h1, h2 { text-wrap: balance; }
.price, .buy-price, .sum-row, .stat b, td, .count, .stepper span { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.form-alert { background: #fbeeee; color: var(--danger); border-radius: var(--radius-small); padding: 11px 14px; font-weight: 600; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-small); z-index: 50; }
.skip-link:focus { left: 8px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.bold { font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-large { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page { max-width: var(--page); margin: 0 auto; padding: 24px 20px 64px; }
.page-narrow { max-width: 760px; }
.page-title { margin-bottom: 20px; }

/* Sample notice */
.sample-bar { background: var(--teal); color: #fff; font-size: .85rem; padding: 7px 20px; }
.sample-bar-inner { max-width: var(--page); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.sample-bar button { background: none; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: var(--radius-small); padding: 2px 12px; cursor: pointer; font-size: .8rem; }
.sample-bar button:hover { background: rgba(255,255,255,.14); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-main { max-width: var(--page); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-mark { width: 26px; height: 32px; background: var(--brand); border-radius: 999px 999px 0 0; flex: none; position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 0; height: 15px; background: var(--surface); border-radius: 999px 999px 0 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-en { font: 700 1.3rem/1 var(--font-display); letter-spacing: -.01em; }
.logo-ar { font: 600 .92rem/1.2 var(--font-arabic); color: var(--brand); margin-top: 3px; }
.sadu { display: none; }
.search { flex: 1; display: flex; min-width: 0; border: 1.5px solid var(--line); border-radius: 99px; padding: 4px; overflow: hidden; background: #fff; }
.search:focus-within { outline: 3px solid var(--teal); outline-offset: 1px; }
.search input { flex: 1; min-width: 0; border: 0; padding: 9px 18px; background: transparent; outline: none; }
.search button { border: 0; border-radius: 99px; background: var(--brand); color: #fff; padding: 0 20px; cursor: pointer; font-weight: 600; transition: background .15s var(--ease); }
.search button:hover { background: var(--brand-dark); }
.header-links { display: flex; align-items: center; gap: 4px; }
.header-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; text-decoration: none; white-space: nowrap; background: none; border: 0; cursor: pointer; font-size: .95rem; }
.header-link:hover { background: var(--wash); }
.count { background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 99px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.header-nav { max-width: var(--page); margin: 0 auto; padding: 0 20px 9px; display: flex; gap: 20px; overflow-x: auto; font-size: .92rem; scrollbar-width: none; }
.header-nav a { text-decoration: none; white-space: nowrap; padding: 2px 0; border-bottom: 2px solid transparent; }
.header-nav a:hover { border-bottom-color: var(--brand); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.14); min-width: 220px; padding: 6px; z-index: 30; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; text-decoration: none; border-radius: var(--radius-small); cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--wash); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 24px; border-radius: 99px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.btn:hover { background: var(--wash); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #fbeeee; }
.btn-sim { border-style: dashed; border-color: var(--muted); color: var(--muted); font-weight: 500; }
.btn-small { padding: 6px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--wash); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand-dark); text-decoration: underline; cursor: pointer; }
.link-danger { color: var(--danger); }

/* Hero: a gallery wall of real listings */
.hero { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: 32px; align-items: center; padding: 32px 0 40px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.01em; }
.hero p { margin: 14px 0 22px; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.wall { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 64px; gap: 12px; }
.wall a { position: relative; border-radius: var(--radius); overflow: hidden; display: block; box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 20px rgba(0,0,0,.1); }
main.page-enter .wall a { animation: hang .8s var(--ease) backwards; }
.wall a:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 5; }
.wall a:nth-child(2) { grid-column: 4 / 6; grid-row: 1 / 3; animation-delay: .08s; }
.wall a:nth-child(3) { grid-column: 6 / 7; grid-row: 1 / 3; animation-delay: .16s; }
.wall a:nth-child(4) { grid-column: 4 / 7; grid-row: 3 / 6; animation-delay: .24s; }
.wall a:nth-child(5) { grid-column: 1 / 4; grid-row: 5 / 6; animation-delay: .32s; }
.wall .art { height: 100%; aspect-ratio: auto; border-radius: 0; }
.wall-label { position: absolute; left: 8px; bottom: 8px; background: #fff; padding: 4px 11px; border-radius: 99px; font-size: .78rem; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
@keyframes hang { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Sections */
.section { padding: 26px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head a { font-size: .92rem; }
.circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px; }
.circle { text-decoration: none; text-align: center; display: block; font-size: .92rem; font-weight: 500; }
.circle .art { border-radius: 24px; aspect-ratio: 1; margin-bottom: 8px; transition: box-shadow .15s var(--ease); }
.circle:hover .art { box-shadow: 0 0 0 3px var(--brand); }
.custom-banner { background: var(--brand-tint); border-radius: var(--radius); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.custom-banner p { color: var(--muted); max-width: 44em; margin-top: 6px; }

/* Home: new artists */
.new-artists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.new-artist { display: block; text-decoration: none; color: inherit; }
.new-artist-works { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 3 / 2; margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; }
.new-artist-works .art { aspect-ratio: auto; height: 100%; border-radius: 0; }
.new-artist-works .art:first-child { grid-row: 1 / 3; }
.new-artist-works .art:only-child { grid-column: 1 / 3; }
.new-artist-works .art:nth-child(2):last-child { grid-row: 1 / 3; }
.new-artist-works .art img, .new-artist-works .art svg { transition: transform .3s var(--ease); }
.new-artist h3 { font-size: 1.1rem; }
.new-artist p { margin-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .new-artist:hover .art img, .new-artist:hover .art svg { transform: scale(1.03); }
  .new-artist:hover h3 { text-decoration: underline; }
}

/* Home: what the site offers */
.about { margin-top: 48px; background: var(--brand); color: #fff; border-radius: 28px; padding: 52px 48px; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.about h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); letter-spacing: -.01em; color: #fff; }
.about-intro p { margin: 14px 0 24px; font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 30em; }
.about-points { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.about-points dt { font-weight: 700; font-size: 1.05rem; }
.about-points dd { margin: 6px 0 0; color: rgba(255,255,255,.9); }
.btn-light { background: var(--surface); border-color: var(--surface); color: var(--brand-dark); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Press feedback and scroll-in, only where the browser supports it and motion is welcome */
.btn, .circle, .artist-chip, .new-artist, .card > a { transition-property: background, color, border-color, transform; transition-duration: .15s; transition-timing-function: var(--ease); }
.btn:active, .circle:active, .artist-chip:active, .new-artist:active { transform: scale(.97); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home-reveal .grid > *, .home-reveal .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Art and cards */
.art { position: relative; aspect-ratio: 1; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--wash); }
.art svg, .art img { width: 100%; height: 100%; object-fit: cover; }
.art-fit img { object-fit: contain; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px var(--gap); }
.card { position: relative; display: flex; flex-direction: column; gap: 3px; }
.card > a { text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
.card > a .art { margin-bottom: 7px; }
.card .art img, .card .art svg { transition: transform .25s var(--ease); }
.card:hover .art img, .card:hover .art svg { transform: scale(1.02); }
.card-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-weight: 700; }
.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--wash); color: var(--ink); white-space: nowrap; }
.badge-brand { background: var(--brand-tint); color: var(--brand-dark); }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-danger { background: #fbeeee; color: var(--danger); }
.art-badge { position: absolute; left: 9px; top: 9px; background: #fff; z-index: 1; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.heart { position: absolute; right: 9px; top: 9px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: 2; }
.heart:hover { background: var(--wash); }
.heart svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
.heart[aria-pressed="true"] svg { fill: var(--brand); stroke: var(--brand); }
.sample-tag { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,.88); color: var(--ink); font-size: .66rem; padding: 1px 6px; border-radius: 3px; }

/* Browse */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.filters label { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); gap: 3px; }
.filters select { padding: 9px 32px 9px 14px; border-radius: 99px; border: 1px solid var(--line); background-color: #fff; color: var(--ink); font-size: .92rem; max-width: 190px; }
.results-bar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: 16px; }

/* Artwork page */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); grid-template-areas: 'gallery buy' 'info buy'; gap: 36px; align-items: start; }
.product-gallery { grid-area: gallery; }
.product-info { grid-area: info; }
.product-buy { grid-area: buy; }
.gallery { display: grid; grid-template-columns: 68px 1fr; gap: 12px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: var(--radius-small); overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs .art { border-radius: 4px; }
.buy-panel { display: flex; flex-direction: column; gap: 15px; position: sticky; top: 124px; }
.buy-price { font: 700 1.7rem/1.1 var(--font-display); }
.artist-chip { display: block; padding: 14px; border-radius: var(--radius); background: var(--wash); text-decoration: none; }
.artist-chip:hover { background: #eceeee; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.area-map { position: relative; height: 200px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--wash); }
.area-map iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.area-map::after { content: ""; position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px; border-radius: 50%; background: rgba(179,77,51,.22); border: 2px solid var(--brand); pointer-events: none; }

/* Forms and choices */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .field-label { font-weight: 600; font-size: .92rem; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  padding: 10px 12px; border: 1px solid #8b9194; border-radius: var(--radius-small); background: #fff; width: 100%;
}
.field textarea { min-height: 92px; resize: vertical; }
.hint { font-size: .82rem; color: var(--muted); }
.form-section { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.segmented { display: inline-flex; background: var(--wash); border-radius: 99px; padding: 3px; }
.segmented button { border: 0; background: none; padding: 7px 20px; border-radius: 99px; cursor: pointer; font-weight: 500; }
.segmented button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 7px 15px; border-radius: 99px; cursor: pointer; font-size: .9rem; white-space: nowrap; }
.chip:hover:not([disabled]) { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[disabled] { opacity: .45; cursor: not-allowed; }
.check { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: flex-start; }
.check > .error-text { flex-basis: 100%; margin: 0 0 0 27px; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #8b9194; border-radius: 99px; }
.stepper button { width: 36px; height: 36px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; border-radius: 50%; }
.stepper button:hover:not([disabled]) { background: var(--wash); }
.stepper button[disabled] { color: var(--line); cursor: not-allowed; }
.stepper span { min-width: 28px; text-align: center; font-weight: 600; }
.photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-row img { width: 86px; height: 86px; object-fit: cover; border-radius: var(--radius-small); }
.error-text { color: var(--danger); font-size: .9rem; }
.note { background: var(--wash); border-radius: var(--radius-small); padding: 11px 14px; font-size: .9rem; }
.note-warn { background: var(--warn-tint); }

/* Cart and lists */
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 124px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; }
.line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 20px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a, .tabs button { padding: 9px 14px; white-space: nowrap; text-decoration: none; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; margin-bottom: -1px; color: var(--muted); }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
.list-link { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; align-items: start; }
.list-link:hover { border-color: var(--ink); }
.list-link > * { min-width: 0; }
.quote-count { background: var(--brand-tint); color: var(--brand-dark); border-radius: var(--radius-small); text-align: center; padding: 7px 10px; font-size: .76rem; line-height: 1.2; }
.quote-count b { display: block; font-size: 1.15rem; }
.icon-tile { width: 84px; height: 84px; border-radius: var(--radius-small); background: var(--wash); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.progress div { font-size: .72rem; color: var(--muted); }
.progress div::before { content: ""; display: block; height: 5px; background: var(--line); border-radius: 3px; margin-bottom: 5px; }
.progress .done::before { background: var(--brand); }
.progress .current { color: var(--ink); font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.step-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; }
.steps .done .step-dot { background: var(--brand); border-color: var(--brand); }
.stars { color: var(--brand); letter-spacing: 1px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.star-picker { display: flex; gap: 4px; }
.star-picker button { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.star-picker button.on { color: var(--brand); }

/* Messages */
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.bubble { max-width: 78%; padding: 8px 13px; border-radius: 14px; background: var(--wash); align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { background: var(--brand); color: #fff; align-self: flex-end; }

/* Seller dashboard */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 70vh; max-width: var(--page); margin: 0 auto; }
.dash-nav { border-right: 1px solid var(--line); padding: 24px 12px; display: flex; flex-direction: column; gap: 2px; }
.dash-shop { font: 600 1rem/1.2 var(--font-display); padding: 0 12px 10px; }
.dash-nav a { padding: 9px 12px; border-radius: var(--radius-small); text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.dash-nav a:hover { background: var(--wash); }
.dash-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.dash-main { padding: 24px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; display: block; }
a.stat:hover { border-color: var(--ink); }
.stat b { display: block; font: 700 1.6rem/1.2 var(--font-display); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: .84rem; background: var(--wash); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .art { width: 52px; border-radius: 5px; }

/* Dialog and toast */
dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: min(460px, calc(100vw - 32px)); box-shadow: 0 16px 48px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog h2 { margin-bottom: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 99px; z-index: 100; max-width: calc(100vw - 32px); font-size: .94rem; }
.toast.is-error { background: var(--danger); }

/* Footer */
.site-footer { background: var(--wash); margin-top: 40px; padding: 32px 20px; font-size: .9rem; }
.site-footer .muted { color: var(--muted); }
.footer-ar { font: 600 1rem var(--font-arabic); margin-left: 8px; }
.footer-inner { max-width: var(--page); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Sell page */
.sell-hero { background: var(--brand-tint); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); margin-bottom: 28px; }
.sell-hero p { margin: 12px 0 20px; max-width: 40em; color: var(--muted); font-size: 1.08rem; }
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .product, .two-col { grid-template-columns: 1fr; }
  .product { grid-template-areas: 'gallery' 'buy' 'info'; gap: 24px; }
  .buy-panel, .summary { position: static; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; scrollbar-width: none; }
  .dash-shop { display: none; }
  .dash-nav a { white-space: nowrap; gap: 6px; }
  .dash-main { padding: 18px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: static; }
  .header-main { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; }
  .logo { flex: 1; font-size: 1.25rem; }
  .search { order: 3; flex-basis: 100%; }
  .header-nav { padding: 0 14px 8px; gap: 16px; }
  .hide-mobile { display: none; }
  .page { padding: 16px 14px 48px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; }
  .thumbs button { width: 58px; }
  .form-two { grid-template-columns: 1fr; }
  .form-section { padding: 16px; }
  .filters label { flex: 1 1 44%; }
  .filters select { max-width: none; width: 100%; }
  .line { grid-template-columns: 72px 1fr; gap: 12px; }
  .list-link { grid-template-columns: 64px 1fr; }
  .list-link .quote-count { grid-column: 2; justify-self: start; display: flex; gap: 5px; align-items: baseline; }
  .icon-tile { width: 64px; height: 64px; }
  .progress div { font-size: .62rem; }
  .bubble { max-width: 90%; }
  .custom-banner { padding: 20px; }
  .wall a:not(:first-child) .wall-label { display: none; }
  .new-artists { grid-template-columns: 1fr; }
  .about { padding: 32px 22px; border-radius: 22px; grid-template-columns: 1fr; gap: 28px; }
  .about-points { grid-template-columns: 1fr; gap: 20px; }
  .wall { grid-auto-rows: 46px; gap: 8px; }
  .sample-bar { padding: 6px 14px; font-size: .78rem; }
  th, td { padding: 9px 10px; }
}

/* Motion: smooth, springy controls and gentle movement. Transform and opacity only. */
.btn { transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--spring), box-shadow .35s var(--ease); }
.btn-primary { box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.search button, .header-link, .chip, .heart, .segmented button { transition: background .25s var(--ease), color .25s var(--ease), transform .35s var(--spring); }
.search button:active, .header-link:active, .chip:active, .segmented button:active { transform: scale(.95); }
.heart:active { transform: scale(.85); }
.heart.pop svg { animation: heart-pop .45s var(--spring); }
@keyframes heart-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.card > a, .circle, .new-artist, .artist-chip, .wall a { transition: transform .4s var(--spring), box-shadow .4s var(--ease); }
.card .art, .circle .art, .new-artist-works { transition: box-shadow .4s var(--ease), transform .4s var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 8px 20px rgba(31, 90, 68, .25); }
  .card:hover .art, .new-artist:hover .new-artist-works { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31, 26, 22, .14); }
  .circle:hover .art { transform: translateY(-4px) scale(1.03); box-shadow: 0 12px 26px rgba(31, 26, 22, .16); }
  .wall a:hover { transform: translateY(-4px) rotate(-.4deg); }
  .artist-chip:hover { transform: translateY(-3px); }
}
.btn:active, .circle:active, .artist-chip:active, .new-artist:active, .card > a:active { transform: scale(.96); transition-duration: .12s; }
/* Each page eases in; the hero text rises in after it. */
main.page-enter { animation: page-in .45s var(--ease) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main.page-enter .hero > div:first-child > * { animation: rise-in .7s var(--ease) backwards; }
main.page-enter .hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
main.page-enter .hero > div:first-child > :nth-child(3) { animation-delay: .16s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* The hero pictures drift slowly, like paper on a wall in a breeze. */
.wall a .art { animation: drift 9s ease-in-out var(--drift-offset, 0s) infinite alternate; }
.wall a:nth-child(2n) .art { animation-duration: 11s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.06) translateY(-6px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home-reveal .section-head, .home-reveal .circles > *, .home-reveal .new-artists > *, .home-reveal .custom-banner { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* Cart button: a bag icon that jumps when something is added */
.cart-link { position: relative; }
.cart-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; transition: transform .35s var(--spring); }
@media (hover: hover) and (pointer: fine) { .cart-link:hover .cart-icon { transform: translateY(-2px) rotate(-6deg); } }
.cart-link .count { transition: transform .35s var(--spring); }
.cart-link.bump .cart-icon { animation: bag-jump .6s var(--spring); }
.cart-link.bump .count { animation: count-pop .5s var(--spring) .1s backwards; }
@keyframes bag-jump { 0% { transform: none; } 30% { transform: translateY(-6px) rotate(-10deg); } 60% { transform: translateY(0) rotate(6deg); } 100% { transform: none; } }
@keyframes count-pop { from { transform: scale(0); } 70% { transform: scale(1.35); } to { transform: scale(1); } }

/* "Added" state on the buy button */
.btn-added { background: var(--ok); border-color: var(--ok); animation: added-in .45s var(--spring); }
.btn-added:hover { background: var(--ok); }
.tick { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick-draw .4s var(--ease) .15s forwards; }
@keyframes added-in { from { transform: scale(.94); } to { transform: none; } }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }

/* Arrow that slides along on the main buttons */
.btn-arrow::after { content: "→"; display: inline-block; transition: transform .35s var(--spring); }
@media (hover: hover) and (pointer: fine) { .btn-arrow:hover::after { transform: translateX(4px); } }

/* "From the studios": a slow, endless strip of art that pauses when you point at it */
.strip { overflow: hidden; margin: 0 -20px; padding: 6px 0 14px; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.strip-track { display: flex; width: max-content; animation: strip-move 70s linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
.strip-set { display: flex; gap: 16px; padding-right: 16px; }
.strip-item { width: 200px; text-decoration: none; flex: none; }
.strip-item .art { aspect-ratio: 4 / 5; transition: transform .4s var(--spring), box-shadow .4s var(--ease); }
.strip-caption { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .88rem; }
.strip-caption b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-caption span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .strip-item:hover .art { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(31, 26, 22, .16); } }
@keyframes strip-move { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; mask-image: none; }
  .strip-set[aria-hidden] { display: none; }
}
@media (max-width: 640px) { .strip { margin: 0 -14px; } .strip-item { width: 150px; } .strip-track { animation-duration: 55s; } }

/* Seller application */
.apply { display: grid; grid-template-columns: 250px minmax(0, 680px); gap: 48px; align-items: start; justify-content: center; }
.apply-steps { position: sticky; top: 150px; }
.apply-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.apply-steps li > a, .apply-steps li > span { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; text-decoration: none; color: var(--muted); font-weight: 500; transition: background .25s var(--ease), color .25s var(--ease); }
.apply-steps li > a:hover { background: var(--wash); color: var(--ink); }
.apply-steps li.current > span { background: var(--brand-tint); color: var(--ink); font-weight: 700; }
.apply-steps li.done > a { color: var(--ink); }
.apply-dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--wash); font-size: .85rem; font-weight: 700; flex: none; transition: background .3s var(--ease), transform .4s var(--spring); }
.apply-steps li.current .apply-dot { background: var(--brand); color: #fff; transform: scale(1.08); }
.apply-steps li.done .apply-dot { background: var(--ok-tint); color: var(--ok); }
.apply-bar { display: none; height: 6px; background: var(--wash); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.apply-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transform-origin: left; transform: scaleX(var(--progress)); transition: transform .6s var(--ease); }
.apply-body { animation: step-in .45s var(--ease) backwards; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.apply-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; }
.apply-start .lead { font-size: 1.1rem; color: var(--muted); margin: 10px 0 26px; }
.apply-start h2 { margin-bottom: 12px; }
.apply-start .row { margin: 26px 0 14px; }
.need-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.need-list li { background: var(--wash); border-radius: var(--radius); padding: 14px 18px; }
.need-list b { display: block; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.verify { background: var(--wash); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
/* A grid, so the button stays level with the box even when an error shows under it. */
.verify-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 5px; align-items: center; }
.verify-row .field { display: contents; }
.verify-row .field > * { grid-column: 1; }
.verify-row > .btn { grid-column: 2; grid-row: 2; }
.verify.verified { flex-direction: row; align-items: center; gap: 14px; background: var(--ok-tint); }
.verify.verified > div { flex: 1; }
.verify-tick { width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; animation: count-pop .5s var(--spring); }
.code-box { display: flex; flex-direction: column; gap: 10px; animation: rise-in .4s var(--ease); }
.sample-code { background: var(--warn-tint); color: var(--warn); border-radius: var(--radius-small); padding: 8px 12px; font-size: .9rem; }
.choice-list { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.choice-list legend { margin-bottom: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), transform .35s var(--spring); }
.choice:hover { border-color: var(--muted); }
.choice:active { transform: scale(.99); }
.choice.chosen { border-color: var(--brand); background: var(--brand-tint); }
.choice input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.choice > span { display: flex; flex-direction: column; gap: 2px; }
.help { background: var(--wash); border-radius: var(--radius); padding: 12px 16px; }
.help summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); }
.help ol { margin: 10px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.help[open] summary { margin-bottom: 4px; }
.doc-drop { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px dashed #b9ab96; border-radius: var(--radius); background: #fff; cursor: pointer; position: relative; transition: border-color .2s var(--ease), background .2s var(--ease), transform .35s var(--spring); }
.doc-drop:hover { border-color: var(--brand); background: var(--brand-tint); }
.doc-drop:active { transform: scale(.98); }
.doc-drop:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.doc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.doc-drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-tint); }
.doc-drop img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.doc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--wash); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; color: var(--brand); flex: none; }
.has-file .doc-icon { background: var(--ok); color: #fff; animation: count-pop .5s var(--spring); }
.doc-text { display: flex; flex-direction: column; min-width: 0; }
.doc-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.review-block h2 { font-size: 1.1rem; }
.review-block dl { margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.review-block dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.review-block dt { color: var(--muted); font-size: .9rem; }
.review-block dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.timeline li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; border-radius: var(--radius); background: var(--wash); border-top: 5px solid var(--line); }
.timeline li.done { border-top-color: var(--ok); }
.timeline li.current { border-top-color: var(--brand); background: var(--brand-tint); }
.timeline li.attention { border-top-color: var(--warn); background: var(--warn-tint); }
.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 12px; }
.check-list li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.check-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--wash); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); flex: none; }
.check-list li.ok .check-mark { background: var(--ok-tint); color: var(--ok); }
.check-list li.fix .check-mark { background: var(--warn-tint); color: var(--warn); }
.fix-box { background: var(--warn-tint); border-radius: var(--radius); padding: 20px; }
@media (max-width: 900px) {
  .apply { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .apply-steps { position: static; }
  .apply-bar { display: block; }
  .apply-steps ol { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .apply-steps li > a, .apply-steps li > span { padding: 6px 10px; white-space: nowrap; font-size: .88rem; }
  .apply-steps li:not(.current) > a > span:last-child, .apply-steps li:not(.current) > span > span:last-child { display: none; }
}
@media (max-width: 640px) {
  .pair { grid-template-columns: 1fr; }
  .verify-row { grid-template-columns: 1fr; }
  .verify-row > .btn { grid-column: 1; grid-row: auto; }
  .timeline { grid-template-columns: 1fr; }
  .review-block dl > div { grid-template-columns: 1fr; gap: 0; }
}

/* ───────── Simpler header: one row, three places to go ───────── */
:root { --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --ease-out: cubic-bezier(.23, 1, .32, 1); }
h1, h2, h3 { letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; }
h2 { font-size: 1.5rem; }
.logo-en { font-weight: 800; letter-spacing: -.03em; }
.site-header { border-bottom: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); }
.header-main { gap: 14px; padding: 14px 20px; }
.header-nav { max-width: none; margin: 0; padding: 0; gap: 2px; overflow: visible; font-size: .98rem; flex: none; }
.header-nav a { padding: 8px 14px; border: 0; border-radius: 99px; font-weight: 500; transition: background .25s var(--ease), color .25s var(--ease), transform .35s var(--spring); }
.header-nav a:hover { background: var(--wash); }
.header-nav a:active { transform: scale(.95); }
.header-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.search { border: 0; background: var(--wash); max-width: 440px; margin-left: auto; transition: background .25s var(--ease); }
.search:focus-within { background: #fff; }
.search button { width: 40px; height: 40px; padding: 0; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search .icon { width: 19px; height: 19px; stroke-width: 2.2; }
.icon-link { width: 42px; height: 42px; padding: 0; justify-content: center; position: relative; }
.cart-link .count { position: absolute; top: 2px; right: 0; }
.logo-mark { transition: transform .4s var(--spring); }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo-mark { transform: translateY(-2px) rotate(-5deg); } }
.menu-panel { transform-origin: top right; box-shadow: 0 12px 34px rgba(31, 26, 22, .16); border: 0; padding: 8px; }
.account-menu[open] .menu-panel { animation: menu-in .2s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: scale(.95) translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-name { font-weight: 700; padding: 8px 12px 6px; font-family: var(--font-display); }
.menu-panel a, .menu-panel button { transition: background .2s var(--ease); }

/* Tabs: a short row of soft pills */
.tabs { border-bottom: 0; gap: 2px; background: var(--wash); padding: 4px; border-radius: 99px; width: max-content; max-width: 100%; }
.tabs a, .tabs button { border: 0; margin: 0; padding: 8px 18px; border-radius: 99px; font-weight: 500; transition: background .25s var(--ease), color .25s var(--ease), transform .35s var(--spring); }
.tabs a:active, .tabs button:active { transform: scale(.95); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(31, 26, 22, .14); }
.sub-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; margin: -6px 0 22px; color: var(--brand-dark); }
.dash-nav a { transition: background .2s var(--ease), color .2s var(--ease); border-radius: 99px; padding: 9px 16px; }
.dash-nav { border-right: 0; }

/* ───────── Artwork peeking in from the edges, behind the page ───────── */
.edge-art { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.edge-piece { --w: clamp(150px, 17vw, 280px); position: absolute; width: var(--w); aspect-ratio: 10 / 13; opacity: .92; transition: opacity .6s var(--ease); }
.edge-canvas { width: 100%; height: 100%; overflow: hidden; border-radius: 26px; transform: rotate(var(--tilt, 0deg)); animation: edge-float 13s ease-in-out infinite alternate; }
.edge-canvas svg { width: 100%; height: 100%; }
.edge-1, .edge-3, .edge-5 { left: calc(var(--w) * -.42); -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 96%); mask-image: linear-gradient(90deg, #000 50%, transparent 96%); }
.edge-2, .edge-4, .edge-6 { right: calc(var(--w) * -.42); -webkit-mask-image: linear-gradient(270deg, #000 50%, transparent 96%); mask-image: linear-gradient(270deg, #000 50%, transparent 96%); }
.edge-1 { top: 24vh; --tilt: -7deg; --travel: -34vh; }
.edge-1 .edge-canvas { border-radius: 999px 999px 22px 22px; }
.edge-2 { top: 13vh; --tilt: 6deg; --travel: -52vh; }
.edge-3 { top: 70vh; --tilt: 5deg; --travel: -70vh; aspect-ratio: 1; }
.edge-3 .edge-canvas { border-radius: 50%; animation-duration: 17s; }
.edge-4 { top: 58vh; --tilt: -5deg; --travel: -40vh; }
.edge-4 .edge-canvas { border-radius: 999px 999px 22px 22px; animation-duration: 16s; animation-direction: alternate-reverse; }
.edge-5 { top: 128vh; --tilt: -4deg; --travel: -96vh; }
.edge-5 .edge-canvas { animation-duration: 19s; }
.edge-6 { top: 112vh; --tilt: 8deg; --travel: -84vh; aspect-ratio: 1; }
.edge-6 .edge-canvas { border-radius: 50%; animation-direction: alternate-reverse; }
.edge-art.is-quiet .edge-piece { opacity: .32; }
@keyframes edge-float { from { transform: rotate(var(--tilt, 0deg)) translateY(0); } to { transform: rotate(calc(var(--tilt, 0deg) + 2.5deg)) translateY(-14px); } }
@keyframes edge-rise { to { transform: translateY(var(--travel, -40vh)); } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .edge-piece { animation: edge-rise linear both; animation-timeline: scroll(root); }
  }
}
@media (max-width: 1100px) { .edge-piece { opacity: .5; } }
@media (max-width: 640px) {
  .edge-piece { --w: 132px; opacity: .34; }
  .edge-1, .edge-4 { display: none; }
}

/* ───────── Home ───────── */
.hero { padding: 44px 0 52px; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); line-height: .96; letter-spacing: -.035em; font-weight: 800; }
.hero p { font-size: 1.15rem; margin: 20px 0 26px; color: var(--ink); max-width: 30em; }
.wall a:nth-child(2) { rotate: 1.3deg; }
.wall a:nth-child(3) { rotate: -1.6deg; }
.wall a:nth-child(5) { rotate: -1deg; }
.section { padding: 34px 0; }
.custom-banner { background: var(--sand); border-radius: 28px; padding: 36px; }
.custom-banner p { color: var(--ink); }
.site-footer { background: var(--sand); }

/* ───────── Checkout ───────── */
.summary { border: 0; background: var(--wash); border-radius: 24px; padding: 22px; gap: 12px; }
.summary h2 { font-size: 1.2rem; }
.sum-total { border-top: 0; padding-top: 6px; font-size: 1.3rem; font-family: var(--font-display); }
.sum-discount { color: var(--ok); font-weight: 600; }
.sum-total.bump span:last-child { animation: count-pop .5s var(--spring); display: inline-block; }
.mini-lines { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mini-art { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; display: block; }
.mini-art .art { border-radius: 0; }
.mini-art.icon-tile { font-size: 1.1rem; background: #fff; }
.mini-text { display: flex; flex-direction: column; min-width: 0; }
.mini-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-toggle { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--brand-dark); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.promo { animation: rise-in .35s var(--ease); }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; border-radius: 99px !important; padding-left: 16px !important; }
.promo-row input::placeholder { text-transform: none; }
.promo-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--ok-tint); border-radius: 14px; padding: 10px 14px; }
.pay-express { display: flex; flex-direction: column; gap: 8px; }
.apple-pay { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 54px; border: 0; border-radius: 99px; background: #000; color: #fff; font: 600 1.35rem/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; cursor: pointer; transition: transform .35s var(--spring), background .25s var(--ease); }
.apple-pay svg { width: 19px; height: 22px; fill: currentColor; margin-top: -3px; }
.apple-pay:active { transform: scale(.97); transition-duration: .12s; }
@media (hover: hover) and (pointer: fine) { .apple-pay:hover { transform: translateY(-2px); background: #1c1c1c; } }
.or-line { text-align: center; color: var(--muted); font-size: .9rem; margin: -8px 0; }
.btn-pay { height: 54px; font-size: 1.05rem; }
.pair-wide { grid-template-columns: 2fr 1fr; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea { border-color: #b9ab96; padding: 12px 14px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.checkout .two-col { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 48px; }
main.page-enter.checkout form > * { animation: rise-in .5s var(--ease) backwards; }
main.page-enter.checkout form > :nth-child(3) { animation-delay: .05s; }
main.page-enter.checkout form > :nth-child(4) { animation-delay: .1s; }
main.page-enter.checkout form > :nth-child(5) { animation-delay: .15s; }
main.page-enter .summary { animation: rise-in .55s var(--ease) .08s backwards; }
main.page-enter .line { animation: rise-in .5s var(--ease) backwards; }
main.page-enter .line:nth-child(2) { animation-delay: .06s; }
main.page-enter .line:nth-child(3) { animation-delay: .12s; }

/* Order placed: a tick that draws itself */
.placed { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.placed h1 { color: var(--ink); }
.placed .btn { margin-top: 8px; }
.placed-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.placed-mark svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
main.page-enter .placed-mark { animation: count-pop .6s var(--spring) backwards; }
main.page-enter .placed-mark svg { animation: tick-in .45s var(--ease) .35s backwards; }
main.page-enter .placed > :not(.placed-mark) { animation: rise-in .5s var(--ease) .3s backwards; }
@keyframes tick-in { from { stroke-dashoffset: 24; } }

/* ───────── Selling ───────── */
.sell-hero { background: var(--brand); color: #fff; border-radius: 28px; }
.sell-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 14em; }
.sell-hero p { color: rgba(255, 255, 255, .9); }
.sell-hero .btn-primary { background: var(--surface); border-color: var(--surface); color: var(--brand-dark); }
.sell-hero .btn-primary:hover { background: var(--sand); border-color: var(--sand); }
.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how li { counter-increment: how; background: var(--wash); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.how li::before { content: counter(how); font: 800 2.6rem/1 var(--font-display); color: var(--brand); margin-bottom: 8px; }
.how b { font: 700 1.15rem/1.2 var(--font-display); }
main.page-enter .how li { animation: rise-in .55s var(--ease) backwards; }
main.page-enter .how li:nth-child(2) { animation-delay: .08s; }
main.page-enter .how li:nth-child(3) { animation-delay: .16s; }
.apply-count { font-weight: 700; color: var(--brand-dark); margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; }
.apply-count .muted { font-weight: 400; font-size: .9rem; }
.need-list li { animation: rise-in .5s var(--ease) backwards; }
.need-list li:nth-child(2) { animation-delay: .05s; }
.need-list li:nth-child(3) { animation-delay: .1s; }
.need-list li:nth-child(4) { animation-delay: .15s; }
.need-list li:nth-child(5) { animation-delay: .2s; }
.help[open] > :not(summary) { animation: rise-in .3s var(--ease); }
.form-section { border: 0; background: var(--wash); border-radius: 24px; }
.form-section .choice { background: #fff; }
.review-block { border: 0; background: var(--wash); border-radius: 24px; }

/* ───────── Small movements everywhere else ───────── */
dialog[open] { animation: dialog-in .25s var(--ease-out); }
dialog[open]::backdrop { animation: fade-in .25s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.toast:not([hidden]) { animation: toast-in .35s var(--spring); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
main.page-enter:not(.home-reveal) .grid > * { animation: rise-in .5s var(--ease) backwards; }
main.page-enter:not(.home-reveal) .grid > :nth-child(2) { animation-delay: .04s; }
main.page-enter:not(.home-reveal) .grid > :nth-child(3) { animation-delay: .08s; }
main.page-enter:not(.home-reveal) .grid > :nth-child(4) { animation-delay: .12s; }
main.page-enter:not(.home-reveal) .grid > :nth-child(n+5) { animation-delay: .16s; }
.list-link, .stat, .choice, .chip { transition: border-color .2s var(--ease), background .2s var(--ease), transform .35s var(--spring), box-shadow .35s var(--ease); }
@media (hover: hover) and (pointer: fine) { .list-link:hover, a.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 26, 22, .08); } }
.list-link:active { transform: scale(.99); }
.stepper button { transition: background .2s var(--ease), transform .3s var(--spring); }
.stepper button:active:not([disabled]) { transform: scale(.85); }
.segmented button[aria-pressed="true"] { animation: seg-in .3s var(--spring); }
@keyframes seg-in { from { transform: scale(.94); } to { transform: none; } }

@media (max-width: 900px) {
  .header-main { flex-wrap: wrap; }
  .header-nav { order: 4; flex-basis: 100%; justify-content: center; }
  .search { max-width: none; }
  .checkout .two-col { grid-template-columns: 1fr; gap: 28px; }
  .checkout .summary { order: -1; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-nav { padding: 0; gap: 0; justify-content: space-between; }
  .header-nav a { padding: 7px 12px; }
  .pair-wide { grid-template-columns: 1fr; }
  .tabs { width: auto; }
  .tabs a, .tabs button { padding: 8px 13px; }
  .hero { padding: 20px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

main:focus { outline: none; }
.list-link, .panel, .stat, .table-wrap { background: var(--surface); }

/* Messages: an inbox, and a conversation with the reply box always in reach */
.inbox { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.inbox-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--wash); text-decoration: none; transition: background .2s var(--ease), transform .35s var(--spring); }
.inbox-row.is-waiting { background: var(--brand-tint); }
.inbox-row:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .inbox-row:hover { transform: translateY(-2px); } }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 1.1rem/1 var(--font-display); }
.inbox-text { display: flex; flex-direction: column; min-width: 0; }
.inbox-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.chat-box { display: flex; flex-direction: column; gap: 12px; max-width: 760px; background: var(--wash); border-radius: 24px; padding: 18px; }
.chat-box .chat { min-height: 200px; max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
.chat-box .bubble { background: #fff; }
.chat-box .bubble.mine { background: var(--brand); }
.bubble-time { display: block; font-size: .7rem; opacity: .65; margin-top: 2px; }
main.page-enter .bubble, .bubble.is-new { animation: rise-in .4s var(--ease) backwards; }
.reply { display: flex; gap: 10px; align-items: flex-end; background: #fff; border-radius: 20px; padding: 8px 8px 8px 16px; }
.reply:focus-within { outline: 3px solid var(--teal); outline-offset: 1px; }
.reply textarea { flex: 1; min-width: 0; border: 0; outline: none; resize: none; background: transparent; padding: 8px 0; field-sizing: content; max-height: 160px; }
.reply .btn { flex: none; padding: 10px 20px; }

/* Menus that open under the header tabs when the mouse rests on them */
.nav-item { position: relative; }
.nav-panel { position: absolute; left: 0; top: 100%; z-index: 30; min-width: 250px; margin-top: 10px; padding: 16px; background: #fff; border-radius: 22px; box-shadow: 0 16px 40px rgba(31, 26, 22, .16); display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top left; transition: opacity .18s var(--ease-out), transform .22s var(--ease-out), visibility 0s .22s; }
/* An unseen bridge, so the menu stays open while the mouse travels down to it. */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-panel-wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 380px; gap: 12px 20px; }
.nav-panel-wide .nav-all { grid-column: 1 / -1; }
.nav-col { display: flex; flex-direction: column; gap: 2px; }
.nav-heading { font: 700 .82rem/1 var(--font-display); color: var(--muted); padding: 4px 12px 8px; }
.header-nav .nav-panel a { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; font-weight: 500; white-space: nowrap; }
.header-nav .nav-panel a:hover { background: var(--wash); }
.header-nav .nav-panel .nav-all { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; text-align: center; align-items: center; border-radius: 99px; }
.header-nav .nav-panel .nav-all:hover { background: #d7e6db; }
@media (hover: hover) and (pointer: fine) {
  .header-nav:not(.nav-closed) .nav-item:hover .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }
  .nav-item:hover .nav-top { background: var(--wash); }
}
.header-nav:not(.nav-closed) .nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (max-width: 900px) { .nav-panel { display: none; } }

/* Shop art menu, laid out like Etsy's: a full-width sheet, types on the left, choices on the right */
.nav-item-mega { position: static; }
.nav-panel.mega { left: 0; right: 0; top: 100%; margin-top: 0; padding: 0; min-width: 0; border-radius: 0 0 28px 28px; transform-origin: top center; transform: translateY(-8px); box-shadow: 0 24px 40px rgba(31, 26, 22, .14); display: block; }
.nav-panel.mega::before { top: -22px; height: 22px; }
.mega-inner { max-width: var(--page); margin: 0 auto; padding: 14px 20px 26px; position: relative; min-height: 330px; }
.mega-cats { list-style: none; margin: 0; padding: 0; width: 250px; display: flex; flex-direction: column; gap: 2px; }
.header-nav .nav-panel .mega-cat-link { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 16px; border-radius: 99px; font-size: 1rem; }
.mega-cat-link span { color: var(--muted); font-size: 1.2rem; line-height: 1; transition: transform .25s var(--spring); }
.mega-sub { position: absolute; left: 310px; right: 20px; top: 14px; bottom: 26px; display: flex; flex-direction: column; gap: 14px; opacity: 0; visibility: hidden; transition: opacity .15s var(--ease-out), visibility 0s .15s; }
.mega-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 28px; }
.header-nav .nav-panel .mega-title { font: 700 1.5rem/1.1 var(--font-display); letter-spacing: -.02em; padding: 6px 12px; align-self: flex-start; }
.header-nav .nav-panel .mega-title::after { content: none; }
/* The first type is open until another one is pointed at. */
.mega-cats:not(:hover) .mega-cat:first-child .mega-sub, .mega-cat:hover .mega-sub, .mega-cat:focus-within .mega-sub { opacity: 1; visibility: visible; transition-delay: 0s; }
.mega-cats:not(:hover) .mega-cat:first-child .mega-cat-link, .mega-cat:hover .mega-cat-link { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.mega-cat:hover .mega-cat-link span { transform: translateX(3px); color: var(--brand-dark); }
.header-nav .nav-panel .mega-all { text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }

/* Hero: three plain facts under the buttons */
.hero-facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; font-weight: 500; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 9px; height: 11px; background: var(--brand); border-radius: 99px 99px 0 0; flex: none; }
main.page-enter .hero-facts { animation: rise-in .7s var(--ease) .24s backwards; }

/* Reviews wall: uneven columns, one in green */
.review-wall { columns: 3 260px; column-gap: 18px; }
.quote { break-inside: avoid; margin: 0 0 18px; padding: 24px; border-radius: 24px; background: var(--wash); display: flex; flex-direction: column; gap: 12px; }
.quote blockquote { margin: 0; font: 600 1.25rem/1.3 var(--font-display); letter-spacing: -.01em; }
.quote figcaption { display: flex; flex-direction: column; font-size: .9rem; }
.quote figcaption a { color: var(--muted); }
.quote:nth-child(1) { background: var(--brand); color: #fff; }
.quote:nth-child(1) .stars, .quote:nth-child(1) figcaption a { color: rgba(255, 255, 255, .85); }
.quote:nth-child(1) blockquote { font-size: 1.6rem; }
.quote:nth-child(4) { background: var(--sand); }

/* Delivery and pickup: two ways side by side, then questions */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { background: var(--wash); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.plan-featured { background: var(--brand); color: #fff; }
.plan h2 { font-size: 1.2rem; }
.plan-price { font: 800 3.2rem/1 var(--font-display); letter-spacing: -.03em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.plan-note { opacity: .85; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.tick-small { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
main.page-enter .plan { animation: rise-in .55s var(--ease) backwards; }
main.page-enter .plan:nth-child(2) { animation-delay: .08s; }
.faq { background: var(--wash); border-radius: 20px; padding: 16px 20px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font: 700 1.05rem/1.3 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--brand); transition: transform .3s var(--spring); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; animation: rise-in .3s var(--ease); max-width: 60ch; }

/* Footer: the name closes the page */
.site-footer { padding: 40px 20px 0; overflow: hidden; }
.footer-inner { align-items: flex-start; }
.footer-about { display: flex; flex-direction: column; gap: 4px; }
.footer-links a { text-underline-offset: 3px; }
.footer-mark { flex-basis: 100%; margin: 28px 0 -0.14em; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font: 800 clamp(3rem, 11.5vw, 10rem)/.9 var(--font-display); letter-spacing: -.045em; color: var(--brand); white-space: nowrap; }
.footer-mark span[lang="ar"] { font: 600 clamp(1.4rem, 4.6vw, 4rem)/1 var(--font-arabic); letter-spacing: 0; }

/* Sample inbox */
.mailbox { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.mail-row { border: 0; text-align: left; cursor: pointer; grid-template-columns: minmax(0, 1fr) auto; width: 100%; font: inherit; color: inherit; }
.mail-frame { width: 100%; height: 640px; border: 0; border-radius: 24px; background: var(--sand); }
@media (max-width: 900px) { .mailbox { grid-template-columns: 1fr; } .plans { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer-mark span[lang="ar"] { display: none; } .plan { padding: 24px; } }

/* A closed menu can't be touched, so it only opens from its own tab. */
.nav-panel, .nav-panel * { pointer-events: none; }
.nav-panel .mega-sub { visibility: hidden !important; }
@media (hover: hover) and (pointer: fine) {
  .header-nav:not(.nav-closed) .nav-item:hover .nav-panel, .header-nav:not(.nav-closed) .nav-item:hover .nav-panel * { pointer-events: auto; }
}
.header-nav:not(.nav-closed) .nav-item:focus-within .nav-panel, .header-nav:not(.nav-closed) .nav-item:focus-within .nav-panel * { pointer-events: auto; }
.header-nav:not(.nav-closed) .nav-item:is(:hover, :focus-within) .mega-cats:not(:hover) .mega-cat:first-child .mega-sub,
.header-nav:not(.nav-closed) .nav-item:is(:hover, :focus-within) .mega-cat:is(:hover, :focus-within) .mega-sub { visibility: visible !important; }

/* ───────── Shopping pages: a quiet gallery look ─────────
   A plain pale ground, serif names, small typewriter tags with square bullets, square pictures,
   and fine corner marks between the pieces. Used on the browse page and each artwork page. */
:root { --font-serif: "Old Standard TT", "Iowan Old Style", Georgia, serif; --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; --shop-ground: #f3f2ef; --shop-line: #1f1a16; }
body.theme-shop { background: var(--shop-ground); }
body.theme-shop .edge-art { display: none; }
body.theme-shop .site-header { background: var(--shop-ground); }
.theme-shop main h1 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; font-size: clamp(2rem, 3.6vw, 3rem); }
.theme-shop main .art, .theme-shop .thumbs button, .theme-shop .thumbs .art { border-radius: 0; }

/* Filters and the grid / list switch, as small typewriter controls */
.shop .filters { gap: 8px 14px; margin-bottom: 26px; }
.shop .filters label { font: 400 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); gap: 6px; }
.shop .filters select { border-radius: 0; border: 1px solid var(--shop-line); background-color: transparent; font: 400 .8rem/1.2 var(--font-mono); padding: 7px 28px 7px 9px; }
.shop .results-bar { justify-content: flex-start; gap: 16px; margin-bottom: 14px; font: 400 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.view-switch { display: inline-flex; gap: 6px; }
.view-switch a { padding: 5px 8px; border: 1px solid var(--shop-line); text-decoration: none; color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease), transform .3s var(--spring); }
.view-switch a[aria-current="true"] { background: var(--shop-line); color: #fff; }
.view-switch a:active { transform: scale(.94); }
.shop-clear { margin-left: auto; }

/* The pieces */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.shop-card { position: relative; padding: 14px 22px 44px 14px; }
/* Corner marks: a fine bracket at each top corner, so neighbouring pieces meet in a cross. */
.shop-card::before, .shop-card::after { content: ""; position: absolute; top: 0; width: 20px; height: 20px; border-top: 1px solid var(--shop-line); pointer-events: none; opacity: .55; }
.shop-card::before { left: 0; border-left: 1px solid var(--shop-line); }
.shop-card::after { right: 8px; border-right: 1px solid var(--shop-line); }
.shop-card-link { display: flex; flex-direction: column; text-decoration: none; }
.shop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-right: 40px; }
.shop-title { font: 700 1.15rem/1.25 var(--font-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-price { font: 500 .78rem/1 var(--font-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.shop-tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 14px; font: 400 .66rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.shop-tags span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--ink); margin-right: 5px; vertical-align: 1px; }
.shop-picture { display: block; overflow: hidden; }
.shop-picture .art { aspect-ratio: 4 / 3; border-radius: 0; transition: transform .7s var(--ease); }
.shop-picture .sample-tag { border-radius: 0; font-family: var(--font-mono); }
.shop-artist { margin-top: 10px; font: 400 .72rem/1.3 var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card .heart { top: 8px; right: 22px; width: 30px; height: 30px; border-radius: 0; box-shadow: none; background: transparent; }
.shop-card .heart svg { width: 16px; height: 16px; stroke-width: 1.6; }
.shop-card .heart[aria-pressed="true"] svg { fill: var(--ink); stroke: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .shop-card-link:hover .art { transform: scale(1.035); }
  .shop-card-link:hover .shop-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
}
.shop-card-link:active .shop-picture { transform: scale(.985); }
.shop-picture { transition: transform .3s var(--spring); }
main.page-enter .shop-card { animation: rise-in .6s var(--ease) backwards; }
main.page-enter .shop-card:nth-child(2) { animation-delay: .05s; }
main.page-enter .shop-card:nth-child(3) { animation-delay: .1s; }
main.page-enter .shop-card:nth-child(4) { animation-delay: .15s; }
main.page-enter .shop-card:nth-child(5) { animation-delay: .2s; }
main.page-enter .shop-card:nth-child(n+6) { animation-delay: .25s; }

/* List view: one piece per line */
.shop-grid.is-list { grid-template-columns: 1fr; }
.is-list .shop-card { padding: 14px 60px 14px 14px; }
.is-list .shop-card::after { right: 0; }
.is-list .shop-card-link { display: grid; grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr) auto; gap: 20px; align-items: center; }
.is-list .shop-head { display: contents; }
.is-list .shop-picture { grid-column: 1; grid-row: 1; }
.is-list .shop-title { grid-column: 2; grid-row: 1; }
.is-list .shop-tags { grid-column: 3; grid-row: 1; margin: 0; }
.is-list .shop-artist { grid-column: 4; grid-row: 1; margin: 0; }
.is-list .shop-price { grid-column: 5; grid-row: 1; }
.is-list .shop-card .heart { top: 50%; right: 14px; margin-top: -15px; }

/* The artwork page, in the same voice */
.theme-shop .crumbs, .theme-shop .details dt, .theme-shop .badge { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.theme-shop .badge { border-radius: 0; }
.theme-shop .buy-price { font: 500 1.5rem/1.1 var(--font-mono); }
.theme-shop .artist-chip { border-radius: 0; background: transparent; border: 1px solid var(--shop-line); }
.theme-shop .product .btn { border-radius: 0; }
.theme-shop .product .segmented, .theme-shop .product .segmented button, .theme-shop .product .chip, .theme-shop .product .stepper { border-radius: 0; }
.theme-shop .area-map { border-radius: 0; }

@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card { padding: 14px 14px 34px; }
  .shop-card::after { right: 0; }
  .shop-card .heart { right: 12px; }
  .is-list .shop-card-link { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .is-list .shop-tags, .is-list .shop-artist { display: none; }
  .is-list .shop-price { grid-column: 3; }
}

.is-list .shop-picture .sample-tag { display: none; }

.sample-bar-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* The plus on each listing: adds the piece to the cart in one press */
.quick-add { position: absolute; right: 0; bottom: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; transition: background .25s var(--ease), transform .35s var(--spring); }
.quick-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.quick-add:active { transform: scale(.88); transition-duration: .12s; }
@media (hover: hover) and (pointer: fine) { .quick-add:hover { background: var(--brand-dark); transform: scale(1.08) rotate(90deg); } .quick-add.is-added:hover, .quick-add.is-in-cart:hover { transform: scale(1.08); } }
.quick-add.is-added { background: var(--ok); animation: count-pop .5s var(--spring); }
.quick-add.is-in-cart { background: var(--brand-tint); color: var(--brand-dark); }
.quick-add[aria-busy="true"] { opacity: .6; }
.card > a > span:nth-last-child(-n+2) { padding-right: 50px; }
/* In the gallery look the plus sits beside the heart. */
.shop-card .quick-add { top: 8px; bottom: auto; right: 56px; width: 30px; height: 30px; background: transparent; color: var(--ink); border: 1px solid var(--shop-line); }
.shop-card .quick-add svg { width: 15px; height: 15px; stroke-width: 1.8; }
.shop-card .quick-add.is-added, .shop-card .quick-add.is-in-cart { background: var(--ink); color: #fff; }
.shop-card .shop-head { padding-right: 76px; }
.is-list .shop-card { padding-right: 96px; }
.is-list .shop-card .quick-add { top: 50%; margin-top: -15px; right: 50px; }

/* Three-line menu button and the menu it opens. Colours come from the current look. */
.menu-toggle { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: var(--radius-small); cursor: pointer; color: var(--ink); }
.menu-toggle:hover { background: var(--wash); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 1.6px; background: currentColor; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
body.menu-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(20, 17, 16, .32); opacity: 0; cursor: pointer; }
.drawer.is-open .drawer-scrim { opacity: 1; animation: drawer-fade .25s ease both; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: var(--surface); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 0 0 32px; transform: translateX(-100%); box-shadow: 0 0 40px rgba(0, 0, 0, .18); }
.drawer.is-open .drawer-panel { transform: none; animation: drawer-in .35s var(--ease) both; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer-title { font-weight: 600; font-size: .95rem; }
.drawer-close { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; position: relative; color: var(--ink); border-radius: var(--radius-small); }
.drawer-close:hover { background: var(--wash); }
.drawer-close span::before, .drawer-close span::after { content: ""; position: absolute; left: 9px; top: 17px; width: 18px; height: 1.6px; background: currentColor; transform: rotate(45deg); }
.drawer-close span::after { transform: rotate(-45deg); }
.drawer-top, .drawer-group summary, .drawer-plain a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-top span, .drawer-links a span { color: var(--muted); font-weight: 400; font-size: .8rem; }
.drawer-top:hover, .drawer-group summary:hover, .drawer-plain a:hover { background: var(--wash); }
.drawer-chevron { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.drawer-group[open] .drawer-chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.drawer-links { display: grid; padding: 4px 0 10px; border-bottom: 1px solid var(--line); background: var(--wash); }
.drawer-group[open] .drawer-links { animation: drawer-fade .25s ease both; }
.drawer-links a { display: flex; justify-content: space-between; padding: 9px 20px 9px 32px; color: var(--ink); text-decoration: none; font-size: .88rem; }
.drawer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.drawer-plain a { font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .drawer.is-open .drawer-panel, .drawer.is-open .drawer-scrim, .drawer-group[open] .drawer-links { animation: none; }
}
/* On phones and tablets the three-line menu does this job, so the hover panels stay out of the way. */
@media (max-width: 900px), (hover: none) {
  .nav-panel { display: none !important; }
}

/* The logo ("Letters in a grid"): each letter in its own tile; M and Y red, the rest stepping lighter. */
.logo-svg { display: block; height: 30px; width: auto; color: var(--ink); overflow: visible; }
.logo-tile rect { fill: var(--c); }
.logo-tile text { font: 400 30px/1 "Major Mono Display", monospace; fill: #f4f3f0; }
.logo-tile { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i) * 25ms); }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo-tile { transform: translateY(-4px); } }
.logo-intro .logo-tile { animation: logo-tile .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes logo-tile { from { opacity: 0; transform: translateY(18px); } }
.footer-mark .logo-svg { width: 100%; height: auto; color: inherit; }
@media (max-width: 640px) { .logo-svg { height: 26px; } }
@media (prefers-reduced-motion: reduce) { .logo-intro .logo-tile { animation: none; } .logo-tile { transition: none; } }
