/* Shared styles for Sujood guide/content pages. */
:root {
  --bg: #0d1110;
  --panel: #121715;
  --border: #1e2523;
  --text: #e5e5e0;
  --muted: #9aa8a4;
  --gold: #c5a27d;
  --gold-bright: #d5b28d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}
a { color: var(--gold-bright); }
/* Same selection colours as the shop. */
::selection { background: var(--gold); color: #0d1110; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px; }
.btn {
  display: inline-block; background: var(--gold); color: #0d1110;
  padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--gold-bright); }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 2.1rem; line-height: 1.2; margin: 8px 0 4px; }
h2 { font-family: Georgia, serif; font-size: 1.5rem; margin: 40px 0 8px; color: #f5f5f0; }
h3 { font-size: 1.15rem; margin: 24px 0 6px; }
.lede { color: var(--muted); font-size: 1.1rem; }
.kicker { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin: 18px 0; }
ul { padding-left: 20px; }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; color: #f5f5f0; }
details p { color: var(--muted); }
.cta { text-align: center; margin: 40px 0; }
img.inline { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.related { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.related a {
  flex: 1 1 200px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text);
}
.related a:hover { border-color: var(--gold); }
.related a strong { color: var(--gold-bright); display: block; margin-bottom: 2px; }
.crumbs { color: var(--muted); font-size: 0.8rem; margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-bright); }
.price { font-size: 1.25rem; color: var(--muted); }
.price strong { color: var(--gold-bright); font-family: Georgia, serif; font-size: 1.6rem; }
.product-hero img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); display: block; margin-top: 16px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.swatches figure { margin: 0; }
.swatches img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); display: block; }
.swatches figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; text-align: center; }
table.specs { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; display: block; overflow-x: auto; }
table.specs th, table.specs td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
table.specs thead th, table.specs tbody th { color: #f5f5f0; font-weight: 600; }
@media (max-width: 520px) {
  h1 { font-size: 1.7rem; }
}

/* Product cards on shop-style guide pages. */
.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.shop-card {
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--muted); font-size: 0.9rem; line-height: 1.45;
}
.shop-card:hover { border-color: var(--gold); }
.shop-card img { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: 8px; }
.shop-card strong { color: #f5f5f0; font-family: Georgia, serif; font-size: 1.05rem; }
.shop-card .shop-price { color: var(--gold-bright); font-weight: 600; margin-top: 4px; }
.shop-card .shop-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; margin-top: 2px; }
/* Cards with their own buy button (/luxury-prayer-mats/): the image and name link to the
   product page, and the button, kept level across cards, goes to the colour picker. */
.shop-card .shop-main { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.shop-card .shop-main:hover strong { color: var(--gold-bright); }
.shop-card .shop-buy { margin-top: auto; padding-top: 10px; }
.shop-card .shop-buy .btn { display: block; text-align: center; }

/* ---- Site header and footer: mirror the homepage (src/App.tsx). ---- */
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/playfair-display-latin.woff2") format("woff2");
}
.bar { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 17, 16, 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 37, 35, 0.6);
}
header.site .bar { height: 80px; display: flex; align-items: center; justify-content: space-between; }
/* Equal-width ends keep the nav centred, as on the homepage. */
header.site .logo, header.site .actions { flex: 1; display: flex; align-items: center; }
header.site .logo img {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(197, 162, 125, 0.25);
}
header.site nav a {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.15s;
}
header.site nav a:hover { color: #f5f5f0; }
header.site .site-nav { display: flex; align-items: center; gap: 32px; }
header.site .actions { justify-content: flex-end; gap: 12px; }
header.site .btn { font-size: 0.85rem; padding: 9px 16px; white-space: nowrap; }
header.site details.menu { display: none; border: 0; padding: 0; }
header.site details.menu summary {
  list-style: none; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: #1a1f1d; border: 1px solid var(--border); color: #f5f5f0;
}
header.site details.menu summary::-webkit-details-marker { display: none; }
header.site details.menu .i-close, header.site details.menu[open] .i-open { display: none; }
header.site details.menu[open] .i-close { display: block; }
header.site details.menu nav {
  position: absolute; left: 0; right: 0; top: 80px;
  display: flex; flex-direction: column; gap: 16px; padding: 16px 24px;
  background: var(--bg); border-top: 1px solid rgba(30, 37, 35, 0.6);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 767px) {
  header.site .site-nav { display: none; }
  header.site details.menu { display: block; }
}

footer.site {
  margin-top: 64px; padding: 64px 0;
  background: #f5f5f0; color: #0d1110; border-top: 1px solid #e5e5e0;
}
footer.site .bar { display: flex; flex-direction: column; gap: 48px; }
footer.site a { color: inherit; text-decoration: none; transition: color 0.15s; }
footer.site a:hover { color: var(--gold); }
footer.site p { margin: 0; }
footer.site .mark { display: flex; width: fit-content; align-items: center; gap: 12px; }
footer.site .mark img {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(197, 162, 125, 0.4);
}
footer.site .mark span {
  font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.1em;
}
footer.site .about p { margin-top: 16px; font-size: 11px; line-height: 1.625; max-width: 320px; }
footer.site .cols, footer.site .legal {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}
/* One row from 640px up; two tidy columns on phones, where three don't fit. */
footer.site .cols { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px 40px; font-size: 12px; line-height: 1.35; }
footer.site .cols > div { display: flex; flex-direction: column; gap: 8px; }
footer.site .cols > div:last-child { grid-column: 1 / -1; }
footer.site .col-title {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
footer.site .cols span { color: #5f6f6a; }
footer.site .legal { font-size: 10px; line-height: 1.5; color: #5f6f6a; display: flex; flex-direction: column; gap: 4px; }
footer.site .legal a { text-decoration: underline; }
@media (min-width: 640px) {
  footer.site .cols { display: flex; flex-wrap: nowrap; white-space: nowrap; }
}
@media (min-width: 1024px) {
  footer.site .bar { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 32px; }
  footer.site .about { flex: 1; max-width: 320px; }
  footer.site .cols { flex-shrink: 0; }
  footer.site .legal { width: 208px; flex-shrink: 0; text-align: right; }
}
