:root {
  --ink: #2e2a3b;
  --muted: #5c5668;
  --faint: #8a8494;
  --paper: #f7f1ea;
  --paper-2: #efe7dc;
  --card: #fffdf9;
  --coral: #c45d44;
  --coral-hover: #a84934;
  --coral-soft: #e07a5f;
  --line: #e2d8cc;
  --sage: #4f7d6a;
  --focus: #2e2a3b;
  --max: 70rem;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "DM Serif Display", "Iowan Old Style", Palatino, Georgia, serif;
  --arabic: "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Arabic Typesetting", serif;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/noto-naskh-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--coral); text-underline-offset: 0.14em; }
a:hover { color: var(--coral-hover); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
nav a:hover,
nav a[aria-current="page"] { color: var(--coral); text-decoration: underline; }

.etsy-banner {
  background: var(--ink);
  color: #f7f1ea;
  text-align: center;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  letter-spacing: 0.01em;
}
.etsy-banner a { color: #f3c7b8; }

.hero {
  padding: 3.2rem 0 2.4rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.hero p {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
}

.section {
  padding: 1.5rem 0 3rem;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.85rem;
  margin: 0 0 0.35rem;
}
.lede {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 42, 59, 0.08);
  color: inherit;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.card-body { padding: 1rem 1.05rem 1.15rem; }
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.lang-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}
.price {
  font-weight: 600;
  font-size: 1.05rem;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}
.card h3.ar,
.ar-title {
  font-family: var(--arabic);
  font-weight: 500;
  direction: rtl;
  text-align: right;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product {
  display: grid;
  gap: 2rem;
  padding: 2.2rem 0 3rem;
}
@media (min-width: 900px) {
  .product {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.gallery { position: relative; }
.gallery input { position: absolute; opacity: 0; pointer-events: none; }
.stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}
.stage img { display: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
#g1:checked ~ .stage .i1,
#g2:checked ~ .stage .i2,
#g3:checked ~ .stage .i3 { display: block; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.7rem;
}
.thumbs label {
  display: block;
  cursor: pointer;
  border: 2px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--card);
}
#g1:checked ~ .thumbs label[for="g1"],
#g2:checked ~ .thumbs label[for="g2"],
#g3:checked ~ .thumbs label[for="g3"] { border-color: var(--ink); }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.buy-box h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.listing-title {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.buy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 1.1rem;
}
.buy-meta .price { font-size: 1.7rem; font-family: var(--serif); font-weight: 400; }
.pill {
  display: inline-block;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1.3rem;
  border-radius: 0.5rem;
  border: 0;
  text-align: center;
}
.btn:hover { background: var(--coral-hover); color: #fff; }
.btn-wide { width: 100%; }

.checkout-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.short { margin: 1.25rem 0 0; }

.details { padding: 0 0 3rem; }
.details h2, .prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 2rem 0 0.6rem;
}
.details h3, .prose h3 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.4rem;
  font-weight: 600;
}
.details ul, .prose ul { margin: 0.3rem 0 0.8rem; padding-left: 1.2rem; }
.details li, .prose li { margin: 0.2rem 0; }
.made {
  color: var(--muted);
  font-size: 0.92rem;
}

.rtl { font-family: var(--arabic); font-size: 1.12rem; line-height: 1.9; }
.rtl h2, .rtl h3 { font-family: var(--arabic); font-weight: 500; }

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--coral); text-decoration: underline; }

.related { padding: 0 0 3.5rem; }
.related h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 1rem; }
.related .grid { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .related .grid { grid-template-columns: repeat(2, minmax(0, 22rem)); }
}

.prose { padding: 2.4rem 0 3.5rem; max-width: 42rem; }
.prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}
.prose p { margin: 0 0 1rem; }
.prose a { font-weight: 500; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner { display: grid; gap: 0.6rem; }
.footer-inner a { color: var(--ink); }
.footer-brand { font-family: var(--serif); color: var(--ink); font-size: 1.05rem; }

@media (max-width: 639px) {
  .header-inner { padding: 0.75rem 0; }
  .hero { padding: 2.1rem 0 1.5rem; }
}

