/* =========================================================
   geekbars.store — Premium Multi-Language Ebook Store
   Editorial / Boutique Library aesthetic
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette — warm boutique library */
  --ink:        #1a1612;
  --ink-soft:   #3a322a;
  --paper:      #faf6ef;
  --paper-2:    #f3ece0;
  --cream:      #ece2cf;
  --gold:       #b8893a;
  --gold-deep:  #8a6428;
  --burgundy:   #6b1a2c;
  --forest:     #2d4a3e;
  --rule:       #d8cdb8;
  --muted:      #7a6e5c;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-arabic:  'Noto Naskh Arabic', 'Fraunces', serif;

  /* Layout */
  --max:        1280px;
  --gutter:     clamp(1rem, 3vw, 2rem);
  --radius:     2px;
  --radius-lg:  6px;

  /* Motion */
  --ease:       cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-block;
}

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 300; }

/* RTL */
[dir="rtl"] body { font-family: var(--font-arabic); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--font-arabic); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.divider {
  height: 1px; background: var(--rule); width: 100%; margin: 0;
}
.rule-mini { width: 40px; height: 1px; background: var(--gold); margin: 1rem 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.8rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
}
.btn--primary:hover { background: var(--burgundy); border-color: var(--burgundy); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--gold {
  background: var(--gold); color: var(--paper);
  border: 1px solid var(--gold);
}
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-top {
  background: var(--ink); color: var(--cream);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; padding: .55rem var(--gutter);
}
.header-top span { opacity: .85; }
.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.6rem; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: .35rem;
  grid-column: 2;
}
.brand .dot { color: var(--gold); }
.brand small {
  font-family: var(--font-body); font-size: .6rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin-left: .4rem;
}

.nav-primary { display: flex; gap: 2rem; align-items: center; grid-column: 1; }
.nav-primary a {
  font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  position: relative; padding: .25rem 0;
}
.nav-primary a::after {
  content: ''; position: absolute; bottom: -2px; inset-inline-start: 0;
  height: 1px; width: 0; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-primary a:hover::after, .nav-primary a.active::after { width: 100%; }

.header-actions { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; grid-column: 3; }
.lang-switcher {
  position: relative;
}
.lang-toggle {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem .9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-menu {
  position: absolute; top: calc(100% + .4rem); inset-inline-end: 0;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); min-width: 180px;
  box-shadow: 0 12px 32px rgba(26,22,18,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .25s var(--ease);
  padding: .4rem 0;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: .8rem; width: 100%;
  padding: .7rem 1rem;
  font-size: .85rem; text-align: start;
  transition: background .2s;
}
.lang-menu button:hover { background: var(--paper-2); }
.lang-menu .flag { font-size: 1.1rem; }
.lang-menu .code {
  margin-inline-start: auto;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .15em; color: var(--muted);
}

.cart-icon {
  position: relative; padding: .5rem; line-height: 0;
}
.cart-icon svg { width: 22px; height: 22px; stroke: var(--ink); }
.cart-count {
  position: absolute; top: 0; inset-inline-end: 0;
  background: var(--burgundy); color: var(--paper);
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.menu-toggle { display: none; padding: .5rem; }
.menu-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 5px 0;
  transition: all .3s var(--ease);
}

@media (max-width: 920px) {
  .header-main { grid-template-columns: auto 1fr auto; }
  .brand { grid-column: 2; justify-content: center; }
  .nav-primary {
    position: fixed; inset: 0; top: 0;
    background: var(--paper); flex-direction: column;
    justify-content: center; gap: 2rem;
    transform: translateX(-100%); transition: transform .4s var(--ease);
    z-index: 99; padding: 4rem 2rem;
  }
  [dir="rtl"] .nav-primary { transform: translateX(100%); }
  .nav-primary.open { transform: translateX(0); }
  .nav-primary a { font-size: 1.4rem; font-family: var(--font-display); letter-spacing: 0; text-transform: none; }
  .menu-toggle { display: block; grid-column: 1; }
  .header-actions { grid-column: 3; }
  .lang-toggle .label-full { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter) clamp(5rem, 11vw, 9rem);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(184,137,58,.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(107,26,44,.06), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(26,22,18,.025) 39px 40px);
  pointer-events: none;
}
.hero-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
}
.hero-text .eyebrow { animation: fadeUp .8s var(--ease) both; }
.hero-text h1 {
  animation: fadeUp .9s var(--ease) .1s both;
}
.hero-text h1 em {
  font-style: italic; color: var(--burgundy); font-weight: 300;
}
.hero-text h1 .gold-rule {
  display: inline-block; vertical-align: middle;
  width: 60px; height: 1px; background: var(--gold);
  margin: 0 .5rem;
}
.hero-text p.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft); max-width: 52ch;
  margin: 1.5rem 0 2rem;
  animation: fadeUp 1s var(--ease) .25s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 1.1s var(--ease) .4s both;
}
.hero-meta {
  margin-top: 3rem; display: flex; gap: 2.5rem; flex-wrap: wrap;
  animation: fadeUp 1.2s var(--ease) .55s both;
}
.hero-meta-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.hero-meta-item .dot-gold {
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
}

/* Hero visual: stacked book covers */
.hero-visual {
  position: relative; aspect-ratio: 1/1.05;
  animation: fadeUp 1.1s var(--ease) .35s both;
}
.book {
  position: absolute;
  width: 58%; aspect-ratio: 2/3;
  border-radius: 2px 4px 4px 2px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    -8px 0 20px rgba(26,22,18,.18),
    0 30px 50px rgba(26,22,18,.22);
  transition: transform .5s var(--ease);
}
.book::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.05));
}
.book-content {
  position: absolute; inset: 24px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: rgba(255,255,255,.95);
}
.book-lang {
  font-family: var(--font-body); font-size: .65rem;
  letter-spacing: .25em; text-transform: uppercase;
  opacity: .8;
}
.book-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.35rem; line-height: 1.1;
}
.book-flag {
  font-size: 1.4rem; align-self: flex-end;
}
.book-rule { width: 30px; height: 1px; background: currentColor; opacity: .5; margin: .8rem 0; }

.book.b1 { left: 4%;  top: 2%;  background: linear-gradient(160deg, #2d4a3e 0%, #1a2e25 100%); transform: rotate(-9deg); z-index: 1; }
.book.b2 { left: 24%; top: 14%; background: linear-gradient(160deg, #6b1a2c 0%, #4a0f1d 100%); transform: rotate(-2deg); z-index: 3; }
.book.b3 { left: 44%; top: 6%;  background: linear-gradient(160deg, #b8893a 0%, #8a6428 100%); transform: rotate(5deg);  z-index: 2; }
.book.b4 { left: 22%; top: 42%; background: linear-gradient(160deg, #1a1612 0%, #2a241e 100%); transform: rotate(-4deg); z-index: 4; }

.hero-visual:hover .book.b1 { transform: rotate(-12deg) translateY(-6px); }
.hero-visual:hover .book.b2 { transform: rotate(-3deg) translateY(-10px); }
.hero-visual:hover .book.b3 { transform: rotate(8deg)  translateY(-8px); }
.hero-visual:hover .book.b4 { transform: rotate(-2deg) translateY(-12px); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 1rem auto 0; }
}

/* ---------- Marquee strip ---------- */
.marquee-strip {
  background: var(--ink); color: var(--cream);
  padding: 1.4rem 0; overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.marquee-track {
  display: flex; gap: 4rem; white-space: nowrap;
  animation: scroll-x 40s linear infinite;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 300;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 4rem; }
.marquee-track .star { color: var(--gold); }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 2rem; margin-bottom: 3rem;
  flex-wrap: wrap;
}
.section-head h2 {
  max-width: 24ch;
}
.section-head p {
  max-width: 40ch; color: var(--muted);
}

/* ---------- Collections / Languages ---------- */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.lang-card {
  position: relative;
  padding: 2.5rem 2rem; aspect-ratio: 4/5;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.lang-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--col, var(--ink)) 200%);
  opacity: .08; transition: opacity .4s var(--ease);
}
.lang-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,22,18,.12);
  border-color: var(--col, var(--ink));
}
.lang-card:hover::before { opacity: .14; }
.lang-card .flag { font-size: 2.5rem; }
.lang-card .name {
  font-family: var(--font-display); font-size: 2rem; font-weight: 400;
  margin: 0;
}
.lang-card .native {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--muted);
  margin-top: .2rem;
}
.lang-card .count {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
.lang-card .arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--col, var(--ink));
  margin-top: 1rem;
}
.lang-card[data-lang="en"] { --col: #2d4a3e; }
.lang-card[data-lang="it"] { --col: #6b1a2c; }
.lang-card[data-lang="es"] { --col: #b8893a; }
.lang-card[data-lang="ar"] { --col: #1a1612; }

/* ---------- Bestsellers ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem 1.5rem;
}
.product-card {
  display: block;
  transition: transform .4s var(--ease);
}
.product-card:hover { transform: translateY(-4px); }
.product-cover {
  aspect-ratio: 2/3;
  border-radius: 2px;
  background: var(--col, var(--forest));
  position: relative; overflow: hidden;
  box-shadow: -6px 0 16px rgba(26,22,18,.15), 0 14px 30px rgba(26,22,18,.18);
  margin-bottom: 1rem;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem 1.25rem; color: rgba(255,255,255,.95);
}
.product-cover::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.05));
}
.product-cover .lang-tag {
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
  opacity: .85;
}
.product-cover .cov-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.4rem; line-height: 1.1;
}
.product-cover .cov-flag { font-size: 1.5rem; align-self: flex-end; }
.product-card[data-col="forest"]    .product-cover { background: linear-gradient(160deg, #2d4a3e, #1a2e25); }
.product-card[data-col="burgundy"]  .product-cover { background: linear-gradient(160deg, #6b1a2c, #4a0f1d); }
.product-card[data-col="gold"]      .product-cover { background: linear-gradient(160deg, #b8893a, #8a6428); }
.product-card[data-col="ink"]       .product-cover { background: linear-gradient(160deg, #1a1612, #2a241e); }
.product-card[data-col="ocean"]     .product-cover { background: linear-gradient(160deg, #1d3a5f, #0f2240); }
.product-card[data-col="terra"]     .product-cover { background: linear-gradient(160deg, #b85c3a, #8a3e22); }
.product-card[data-col="sage"]      .product-cover { background: linear-gradient(160deg, #6b7a52, #4a5635); }
.product-card[data-col="plum"]      .product-cover { background: linear-gradient(160deg, #4a2a4f, #2e1a32); }

.product-meta { padding: 0 .25rem; }
.product-card h3 {
  font-size: 1.1rem; font-weight: 500; margin: 0 0 .25rem;
}
.product-card .author {
  font-family: var(--font-display); font-style: italic;
  font-size: .9rem; color: var(--muted);
}
.product-card .price-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .5rem;
}
.product-card .price {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
}
.product-card .price del { color: var(--muted); font-weight: 300; margin-inline-end: .4rem; }
.product-card .stars { color: var(--gold); font-size: .8rem; letter-spacing: .1em; }

/* ---------- Editorial split ---------- */
.editorial {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.editorial-image {
  aspect-ratio: 4/5;
  background:
    radial-gradient(circle at 30% 30%, rgba(184,137,58,.4), transparent 60%),
    linear-gradient(160deg, var(--cream), var(--paper-2));
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.editorial-image::after {
  content: '“'; position: absolute; top: -2rem; right: -1rem;
  font-family: var(--font-display);
  font-size: 22rem; line-height: 1; color: rgba(184,137,58,.15);
  font-style: italic;
}
.editorial-image-inner {
  position: absolute; inset: 2rem;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 820px) { .editorial { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Bundles ---------- */
.bundles {
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.bundles::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.03) 39px 40px);
  pointer-events: none;
}
.bundles .section-head h2 { color: var(--paper); }
.bundles .section-head p { color: rgba(250,246,239,.7); }
.bundles .eyebrow { color: var(--gold); }

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.bundle-card {
  border: 1px solid rgba(250,246,239,.18);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  background: rgba(250,246,239,.02);
  transition: all .35s var(--ease);
  position: relative;
}
.bundle-card:hover {
  border-color: var(--gold);
  background: rgba(184,137,58,.05);
  transform: translateY(-4px);
}
.bundle-card.featured {
  border-color: var(--gold);
  background: rgba(184,137,58,.07);
}
.bundle-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; inset-inline-start: 2rem;
  background: var(--gold); color: var(--ink);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: var(--radius);
}
.bundle-card h3 { color: var(--paper); margin-bottom: .25rem; }
.bundle-card .bundle-sub { color: rgba(250,246,239,.6); font-style: italic; font-family: var(--font-display); }
.bundle-card .price-block {
  margin: 2rem 0;
  display: flex; align-items: baseline; gap: .6rem;
}
.bundle-card .big-price {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 300; color: var(--paper);
  line-height: 1;
}
.bundle-card .big-price .currency { font-size: 1.5rem; vertical-align: top; color: var(--gold); }
.bundle-card .old-price { color: rgba(250,246,239,.4); text-decoration: line-through; }
.bundle-card ul.features { margin: 0 0 2rem; flex: 1; }
.bundle-card ul.features li {
  padding: .6rem 0; border-bottom: 1px solid rgba(250,246,239,.1);
  font-size: .9rem; color: rgba(250,246,239,.85);
  display: flex; align-items: center; gap: .7rem;
}
.bundle-card ul.features li::before {
  content: '✦'; color: var(--gold); font-size: .8rem;
}
.bundle-card .btn { width: 100%; justify-content: center; }

/* ---------- Testimonials ---------- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.test-card {
  padding: 2rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: var(--radius);
  position: relative;
  transition: all .3s var(--ease);
}
.test-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(26,22,18,.08);
}
.test-card .stars { color: var(--gold); margin-bottom: 1rem; letter-spacing: .15em; }
.test-card blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem; line-height: 1.5; font-weight: 300;
  font-style: italic;
}
.test-card blockquote::before { content: '“'; color: var(--gold); margin-inline-end: .15rem; }
.test-card blockquote::after { content: '”'; color: var(--gold); }
.test-card .author {
  display: flex; align-items: center; gap: .8rem;
  padding-top: 1rem; border-top: 1px solid var(--rule);
}
.test-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--burgundy));
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-weight: 600; font-size: .9rem;
  letter-spacing: .05em;
}
.test-card .who-name { font-weight: 600; font-size: .9rem; }
.test-card .who-meta { font-size: .78rem; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter {
  background:
    radial-gradient(ellipse 60% 70% at 70% 30%, rgba(184,137,58,.18), transparent 60%),
    var(--paper-2);
  position: relative; overflow: hidden;
}
.newsletter-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
}
.newsletter h2 em { color: var(--burgundy); font-style: italic; }
.newsletter form {
  display: flex; gap: .75rem; margin-top: 2rem;
  max-width: 480px; margin-inline: auto;
}
.newsletter input[type="email"] {
  flex: 1; padding: 1rem 1.2rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: all .25s var(--ease);
}
.newsletter input[type="email"]:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,137,58,.18);
}
.newsletter .small {
  font-size: .78rem; color: var(--muted); margin-top: 1rem;
}
@media (max-width: 600px) {
  .newsletter form { flex-direction: column; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem; padding: 3rem 0; text-align: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.trust-item .icon {
  width: 36px; height: 36px; margin: 0 auto .8rem; color: var(--gold);
}
.trust-item h4 {
  font-family: var(--font-body); font-size: .82rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 .3rem;
}
.trust-item p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--cream);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand small { color: var(--gold); }
.footer-brand p {
  color: rgba(250,246,239,.65);
  max-width: 32ch; margin: 1rem 0 1.5rem;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 1.05rem; line-height: 1.5;
}
.socials { display: flex; gap: .8rem; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(250,246,239,.25);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.socials svg { width: 16px; height: 16px; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.2rem;
}
.footer-col ul li { margin-bottom: .65rem; }
.footer-col ul a {
  color: rgba(250,246,239,.75); font-size: .9rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(250,246,239,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: rgba(250,246,239,.55);
}
.footer-bottom .legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: var(--gold); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-hero .container {
  max-width: 900px;
}
.breadcrumbs {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { margin: 0 .6rem; opacity: .5; }

/* ---------- Filters (Shop) ---------- */
.shop-layout {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 3rem;
}
.filters {
  position: sticky; top: 120px; align-self: start;
}
.filter-group { margin-bottom: 2rem; }
.filter-group h4 {
  font-family: var(--font-body); font-size: .75rem;
  font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .8rem;
}
.filter-group label {
  display: flex; align-items: center; gap: .6rem;
  padding: .35rem 0;
  font-size: .9rem; cursor: pointer;
  transition: color .2s;
}
.filter-group label:hover { color: var(--gold-deep); }
.filter-group input[type="checkbox"] {
  accent-color: var(--gold);
}
@media (max-width: 820px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

/* ---------- Product Detail ---------- */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.product-detail .product-cover { aspect-ratio: 2/3; max-width: 380px; }
.product-detail h1 { margin-bottom: .5rem; }
.product-detail .author-line {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; color: var(--muted); margin-bottom: 1.5rem;
}
.detail-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding: 1rem 0; margin: 1.5rem 0;
  border-block: 1px solid var(--rule);
  font-size: .85rem;
}
.detail-meta .item { display: flex; flex-direction: column; gap: .1rem; }
.detail-meta .label { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.detail-meta .value { font-weight: 500; }
.price-large {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 400;
  margin: 1.5rem 0;
}
.price-large del { color: var(--muted); font-size: 1.5rem; margin-inline-end: .6rem; }
.purchase-actions { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.feature-list li {
  padding: .5rem 0; display: flex; align-items: center; gap: .7rem;
  font-size: .92rem;
}
.feature-list li::before {
  content: '✓'; color: var(--gold); font-weight: 700;
}
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  width: 100%; text-align: start;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 400;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color .25s;
}
.faq-q:hover { color: var(--gold-deep); }
.faq-q .toggle {
  width: 28px; height: 28px; border: 1px solid var(--rule);
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: all .3s var(--ease);
}
.faq-item.open .faq-q .toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 1.5rem;
  color: var(--ink-soft); max-width: 70ch;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.blog-card { display: block; }
.blog-img {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, var(--cream), var(--paper-2));
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 4rem; font-family: var(--font-display); font-style: italic;
}
.blog-card .meta {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}
.blog-card h3 { font-size: 1.4rem; transition: color .25s; }
.blog-card:hover h3 { color: var(--gold-deep); }
.blog-card p { color: var(--ink-soft); margin: .5rem 0; }
.blog-card .read-more {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep);
}

/* ---------- Legal pages ---------- */
.legal-prose {
  max-width: 760px; margin: 0 auto;
}
.legal-prose h2 {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 1.6rem;
}
.legal-prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal-prose p, .legal-prose li { color: var(--ink-soft); }
.legal-prose ul { padding-inline-start: 1.5rem; list-style: disc; }
.legal-prose li { margin-bottom: .4rem; }
.legal-prose strong { font-weight: 600; color: var(--ink); }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .4rem;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: all .25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,137,58,.18);
}
.form-row textarea { resize: vertical; min-height: 140px; }

/* ---------- Thank You / Success ---------- */
.success-icon {
  width: 80px; height: 80px; margin: 0 auto 2rem;
  border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-size: 2.5rem;
  animation: pop .6s var(--ease);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}
@keyframes pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-aos].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* RTL fixes */
[dir="rtl"] .marquee-track { animation-direction: reverse; }
