/* =========================================================
   HIBAH — Premium Islamic Canvas Art (New Zealand)
   Stylesheet — ivory / charcoal / muted gold / forest palette
   ========================================================= */

:root {
  --ivory: #FAF6EE;
  --cream: #F3ECDF;
  --stone: #EAE3D5;
  --stone-dark: #DCD3C0;
  --charcoal: #232019;
  --charcoal-soft: #4A453C;
  --gold: #B08A4E;
  --gold-light: #D8BD8C;
  --gold-dark: #8C6C39;
  --forest: #2F4A3E;
  --forest-light: #3F6152;
  --white: #FFFFFF;
  --error: #A23B2E;
  --success: #3F6152;

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Work Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 2px;
  --shadow-card: 0 1px 3px rgba(35,32,25,0.08), 0 8px 24px rgba(35,32,25,0.05);
  --shadow-lift: 0 4px 8px rgba(35,32,25,0.10), 0 16px 40px rgba(35,32,25,0.08);
  --max-width: 1240px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Scroll reveal ----
   Applied via initReveal() in js/main.js (IntersectionObserver). Elements
   start slightly lowered and faded, then settle in as they enter the
   viewport — a quiet, considered motion rather than anything showy.
   Reduced-motion users (see rule above) get the final state instantly. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--charcoal-soft); }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold-dark); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ---- Focus states (accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 0; top: -100px;
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---- Buttons ----
   Premium treatment: slim, uppercase, letter-spaced text with an animated
   underline / fill sweep on hover rather than a filled e-commerce block.
   .btn-solid keeps a filled look for the single most important action per
   page (primary CTA / add to cart / checkout); everything else favours the
   quieter outline or text-underline styles. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  text-align: center;
  min-height: 48px;
  overflow: hidden;
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}
.btn-solid:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }

.btn-gold {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--charcoal); }

/* Quiet text-link button — for tertiary actions (View Artwork, filters
   inside cards, etc.), with an underline that draws in on hover/focus. */
.btn-text {
  display: inline-block;
  padding: 4px 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  background-image: linear-gradient(var(--gold-dark), var(--gold-dark));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.25s ease, color 0.25s ease;
}
.btn-text:hover, .btn-text:focus-visible { color: var(--gold-dark); background-size: 100% 1px; }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Announcement bar ---- */
.announcement-bar {
  background: var(--charcoal);
  color: var(--stone);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 10px 16px;
}
.announcement-bar a { color: var(--gold-light); }

/* ---- Header / Nav ---- */
/* Selector is #site-header (ID) because the wrapper element in every page
   is <div id="site-header">, populated by renderHeader() in js/layout.js —
   it doesn't carry a matching class. */
#site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--stone-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--charcoal);
}
.logo span { color: var(--gold); }

.nav-links {
  list-style: none;
  display: none;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-content: flex-end;
}
.nav-links li { position: relative; }
.nav-links a {
  color: var(--charcoal-soft);
  white-space: nowrap;
  padding: 6px 0;
  background-image: linear-gradient(var(--gold-dark), var(--gold-dark));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.2s ease, color 0.2s ease;
}
.nav-links a.active, .nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-dark); background-size: 100% 1px; }

/* "Shop" dropdown listing the four collections */
.nav-caret { font-size: 0.6rem; margin-left: 3px; display: inline-block; transition: transform 0.2s ease; }
.has-dropdown:hover .nav-caret, .has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.dropdown {
  /* Invisible hit-area: starts flush against the nav link (no gap) and
     pads the top by the same amount the panel used to be offset, so the
     mouse never leaves a hoverable box while travelling from "Shop" down
     into the menu. Without this, a dead zone between the link and the
     panel breaks :hover before the cursor reaches the menu. */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  display: none;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}
.dropdown-menu {
  background: var(--white);
  border: 1px solid var(--stone-dark);
  box-shadow: var(--shadow-lift);
  min-width: 230px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  text-transform: none;
  letter-spacing: 0.01em;
}
.dropdown-menu a {
  display: block;
  padding: 11px 22px;
  background-image: none;
  color: var(--charcoal-soft);
}
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { color: var(--gold-dark); background: var(--cream); }

@media (min-width: 1160px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.nav-right { display: flex; align-items: center; gap: 18px; }
.cart-link {
  position: relative;
  color: var(--charcoal);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-badge {
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  font-size: 1.2rem;
  padding: 8px 12px;
  cursor: pointer;
  min-height: 44px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 20px 20px;
  border-top: 1px solid var(--stone-dark);
  background: var(--ivory);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--stone-dark);
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}
.mobile-nav a.mobile-child {
  padding-left: 18px;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--stone-dark);
  color: var(--charcoal-soft);
}
@media (min-width: 1160px) { .mobile-nav { display: none !important; } }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
  padding: 64px 0 56px;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero-eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 14px;
  font-weight: 600;
}
.hero h1 { margin-bottom: 20px; }
.hero p.lede { font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-visual {
  aspect-ratio: 4/5;
  background: url("../images/hero.svg") center / cover no-repeat, linear-gradient(160deg, var(--stone) 0%, var(--cream) 100%);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Interim generated composition — an original geometric design standing in
   for real product photography until HIBAH supplies approved images (see
   docs/PLACEHOLDER_ART_GUIDE.md). */

/* ---- Section shells ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream); }
.section-stone { background: var(--stone); }
.section-forest { background: var(--forest); color: var(--ivory); }
.section-forest h2, .section-forest p { color: var(--ivory); }
.section-forest .btn-outline { color: var(--ivory); border-color: var(--ivory); }
.section-forest .btn-outline:hover { background: var(--ivory); color: var(--forest); }

.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.section-forest .eyebrow { color: var(--gold-light); }

/* ---- Art frame placeholder ---- */
.art-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stone-dark);
  background: var(--cream);
}
.art-pattern {
  position: absolute; inset: 0;
  opacity: 1;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
/* Subtle zoom on hover — a quiet, gallery-like touch once real photography
   replaces these placeholder patterns (an <img> inside .art-frame will
   pick up the same transition automatically). */
.art-frame:hover .art-pattern,
.product-card:hover .art-pattern,
.collection-card:hover .art-pattern {
  transform: scale(1.05);
}
/* Interim generated artwork — original geometric/line compositions themed
   to each piece, standing in for real product photography until HIBAH
   supplies approved images (see docs/PLACEHOLDER_ART_GUIDE.md). */
.pat-1 { background-image: url("../images/art-1.svg"); }
.pat-2 { background-image: url("../images/art-2.svg"); }
.pat-3 { background-image: url("../images/art-3.svg"); }
.pat-4 { background-image: url("../images/art-4.svg"); }
.pat-5 { background-image: url("../images/art-5.svg"); }
.pat-6 { background-image: url("../images/art-6.svg"); }
.pat-7 { background-image: url("../images/art-7.svg"); }
.pat-8 { background-image: url("../images/art-8.svg"); }

.art-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 18px;
  background: linear-gradient(0deg, rgba(35,32,25,0.35), rgba(35,32,25,0));
}
.art-arabic {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 6px;
  direction: rtl;
}
.art-title {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.limited-flag {
  position: absolute; top: 14px; left: 14px;
  z-index: 2; /* sits above .art-pattern, which is full-bleed and would otherwise paint over this badge since it comes later in source order */
  background: var(--charcoal);
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius);
}

/* ---- Brand motif divider ----
   A small, non-figurative geometric line motif used between key sections
   in place of a plain rule or colour block — a quiet recurring signature
   rather than a literal pattern. Purely decorative (aria-hidden). */
.motif-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
  padding: 0;
  color: var(--gold);
}
.motif-divider .motif-line { width: 64px; height: 1px; background: var(--stone-dark); }
.section-forest .motif-divider .motif-line { background: rgba(255,255,255,0.25); }
.motif-divider svg { width: 22px; height: 22px; display: block; }

/* ---- Canvas texture overlay ----
   A faint noise/grain layer over placeholder art frames, hinting at the
   physical canvas material even before real photography is in place. An
   <img> introduced later (see docs/PLACEHOLDER_ART_GUIDE.md) can keep or
   drop this overlay as desired. */
.art-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- Grids ---- */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Product / collection cards ---- */
.product-card, .collection-card {
  background: var(--white);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover, .collection-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.product-info { padding: 18px 20px 22px; }
.cat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.product-info h4 { margin-bottom: 4px; }
.product-meta { font-size: 0.85rem; color: var(--charcoal-soft); margin-bottom: 10px; }
.price-from { font-weight: 600; color: var(--charcoal); margin-bottom: 14px; }

.collection-card {
  padding: 0;
}
.collection-card .cc-visual {
  aspect-ratio: 16/10;
  background: var(--stone);
}
.cc-body { padding: 24px; }
.cc-body h3 { margin-bottom: 8px; }

/* ---- Feature split sections ---- */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split.reverse .split-visual { order: -1; }
@media (min-width: 900px) {
  .split.reverse .split-visual { order: 2; }
}
.split-visual .art-frame { aspect-ratio: 16/11; }

/* ---- Why choose grid ---- */
.why-item { padding: 8px 0; }
.why-item .num {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}

/* ---- Icon badge ----
   Small thin-line icon wrapper used on the "Why Choose HIBAH" and Delivery
   sections, in place of plain numerals/text only. */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge-lg { width: 56px; height: 56px; margin: 0 auto 16px; }
.icon-badge-lg svg { width: 26px; height: 26px; }

/* ---- Stat badge (e.g. "25+ years") ---- */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 26px;
  padding: 10px 20px 10px 6px;
  border-left: 2px solid var(--gold);
}
.stat-badge-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}
.stat-badge-plus { color: var(--gold-dark); font-size: 1.4rem; }
.stat-badge-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  line-height: 1.4;
}

/* ---- Testimonials ---- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--stone-dark);
  padding: 32px 28px;
  border-radius: var(--radius);
  position: relative;
}
.testimonial p { font-style: italic; color: var(--charcoal); }
.testimonial .author {
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  font-style: normal;
  margin-top: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.quote-glyph {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 6px;
}
.placeholder-note {
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  text-align: center;
  margin-top: 12px;
}

/* ---- Testimonial carousel ----
   Simple, auto-rotating single-quote carousel (see initTestimonialCarousel
   in js/main.js). Falls back to a static single visible quote with no
   motion if prefers-reduced-motion is set. */
.testimonial-carousel { max-width: 640px; margin: 0 auto; }
.testimonial-track { position: relative; min-height: 190px; }
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  text-align: center;
}
.testimonial-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.testimonial-dots button.is-active { background: var(--gold); }

/* ---- Newsletter ---- */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
@media (min-width: 560px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
}

/* ---- Forms ---- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.field .hint { font-size: 0.78rem; color: var(--charcoal-soft); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 4px; width: auto; min-height: auto; }
.checkbox-row label { font-weight: 400; font-size: 0.88rem; color: var(--charcoal-soft); }

fieldset { border: 1px solid var(--stone-dark); border-radius: var(--radius); padding: 20px; margin: 0 0 24px; }
legend { padding: 0 8px; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; }

.form-notice {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-bottom: 24px;
  border-radius: var(--radius);
}

/* ---- Pills (size / orientation / personalisation selectors) ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--white);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}
.pill small { display: block; color: var(--charcoal-soft); font-size: 0.75rem; margin-top: 2px; }
.pill.selected { border-color: var(--gold); background: var(--cream); box-shadow: 0 0 0 1px var(--gold); }

/* ---- Certificate of authenticity mockup ----
   A visual preview (not the real certificate artwork) shown on limited
   edition product pages, so customers can see roughly what to expect
   before ordering. Replace with a real certificate template/photo once
   available — see docs/PLACEHOLDER_ART_GUIDE.md. */
.certificate-mockup { margin: 18px 0 8px; }
.certificate-mockup-inner {
  border: 1px solid var(--gold);
  outline: 1px solid var(--stone-dark);
  outline-offset: 4px;
  padding: 26px 20px;
  text-align: center;
  background: var(--cream);
}
.cert-eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.cert-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--charcoal);
}
.cert-line { font-size: 0.82rem; color: var(--charcoal-soft); margin: 8px 0 14px; }
.cert-number { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold-dark); margin-bottom: 6px; }
.cert-signature { font-size: 0.72rem; color: var(--charcoal-soft); font-style: italic; }

/* ---- Product detail ---- */
.product-detail {
  display: grid;
  gap: 40px;
  padding: 48px 0 24px;
}
@media (min-width: 900px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 60px; } }
.pd-gallery .art-frame { aspect-ratio: 4/5; }
.pd-price { font-size: 1.6rem; font-weight: 600; margin: 10px 0 20px; }
.pd-section { border-top: 1px solid var(--stone-dark); padding: 20px 0; }
.pd-section h4 { margin-bottom: 8px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--stone-dark); border-radius: var(--radius); }
.qty-control button { background: none; border: none; padding: 10px 16px; font-size: 1.1rem; cursor: pointer; min-height: 44px; }
.qty-control span { padding: 0 12px; min-width: 24px; text-align: center; }

/* ---- Cart ----
   A calmer two-column layout: order details/delivery on the left, a sticky
   order-summary card on the right, so the checkout feels considered rather
   than busy. See renderCartPage() in js/main.js. */
.cart-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; } }
.cart-summary-card {
  background: var(--cream);
  border: 1px solid var(--stone-dark);
  padding: 28px;
}
@media (min-width: 900px) { .cart-summary-card { position: sticky; top: 104px; } }
.secure-checkout-note {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin-top: 14px;
}
.secure-checkout-note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold-dark); }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--stone-dark); font-size: 0.9rem; vertical-align: top; }
.cart-item-name { font-weight: 600; }
.cart-item-meta { font-size: 0.82rem; color: var(--charcoal-soft); margin-top: 4px; }
.qty-mini { display: flex; align-items: center; gap: 8px; }
.qty-btn { border: 1px solid var(--stone-dark); background: var(--white); border-radius: var(--radius); width: 32px; height: 32px; cursor: pointer; }
.cart-remove { background: none; border: none; color: var(--error); cursor: pointer; font-size: 0.82rem; text-decoration: underline; }
.cart-summary { max-width: 420px; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; }
.cart-summary .row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--stone-dark); margin-top: 8px; padding-top: 14px; }
.cart-empty { text-align: center; padding: 60px 0; }
.checkout-error { color: var(--error); font-size: 0.88rem; margin-top: 10px; display: none; }
.shipping-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; }
.shipping-option {
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.shipping-option.selected { border-color: var(--gold); background: var(--cream); }
.shipping-option input { margin-top: 3px; }
.shipping-option .so-price { margin-left: auto; font-weight: 600; white-space: nowrap; }
.multi-canvas-note {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.promo-row { display: flex; gap: 10px; margin: 18px 0; }
.promo-row input { flex: 1; }
.promo-row button { white-space: nowrap; }

/* ---- FAQ accordion ---- */
.faq-item { border-bottom: 1px solid var(--stone-dark); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.faq-a { padding: 0 0 20px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-icon { flex-shrink: 0; }

/* ---- Legal pages ---- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; }
.legal-content ul, .legal-content ol { color: var(--charcoal-soft); padding-left: 1.3em; }
.placeholder-tag {
  background: var(--stone);
  color: var(--charcoal);
  padding: 1px 8px;
  border-radius: var(--radius);
  font-size: 0.85em;
  font-family: monospace;
}
.legal-updated { color: var(--charcoal-soft); font-size: 0.85rem; margin-bottom: 2em; }

/* ---- Footer ---- */
/* Selector is #site-footer (ID) — see note above #site-header. This was the
   root cause of the footer's missing dark background: the CSS was never
   matching the <div id="site-footer"> element, so the footer rendered on
   the page's ivory background with light text on top of it, making the
   text unreadable. Footer background is also a touch deeper than the
   standard --charcoal used for body text, for stronger contrast. */
#site-footer {
  background: #1B1812;
  color: var(--stone);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h5 { color: var(--gold-light); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { color: var(--stone); font-size: 0.88rem; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { color: #B8B2A4; font-size: 0.88rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #9B9384;
}

/* ---- Toast ---- */
.hb-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  max-width: 90vw;
  text-align: center;
}
.hb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ---- Filters ---- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  background: var(--white);
  border: 1px solid var(--stone-dark);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
}
.filter-btn.active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* ---- Page header (interior pages) ---- */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
  background: var(--cream);
}
.page-header p { max-width: 56ch; margin: 0 auto; }

/* ---- Misc ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--stone); font-size: 0.75rem; padding: 4px 10px; border-radius: var(--radius); color: var(--charcoal-soft); }
