/* Storytel Books — Components */

/* ==========================================
   HERO with chat-input
   ========================================== */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -200px, var(--orange-soft), transparent 60%),
    var(--bg);
  padding: clamp(20px, 3vw, 36px) 0 clamp(16px, 2.5vw, 28px);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  font-family: var(--font-sans);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.hero h1 {
  margin: 0 auto 8px;
  font-size: clamp(20px, 5vw, 64px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  hyphens: manual;
}
.hero h1 em { font-style: italic; color: var(--orange); font-weight: 500; }
.hero-sub {
  max-width: 56ch;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
}

.chat-input {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px 16px 14px 22px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.chat-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft), var(--shadow); }
.chat-input svg { color: var(--muted); flex-shrink: 0; }
.chat-input input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  font-size: 17px; font-family: inherit; color: var(--ink);
  padding: 8px 0;
}
.chat-input input::placeholder { color: var(--muted); }
.chat-input .btn { padding: 10px 18px; font-size: 14px; }

.prompt-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 14px;
}
.prompt-chip {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.prompt-chip:hover { border-color: var(--orange); color: var(--orange); }
.prompt-chip svg { width: 14px; height: 14px; }
.prompt-chip .short { display: none; }
@media (max-width: 480px) {
  .prompt-chips { gap: 6px; }
  .prompt-chip { padding: 7px 11px; font-size: 11.5px; gap: 5px; }
  .prompt-chip svg { width: 11px; height: 11px; }
  .prompt-chip .full { display: none; }
  .prompt-chip .short { display: inline; }
}

/* ==========================================
   Book card + horizontal scroller
   ========================================== */
.row-scroller {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
}
.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 14vw, 180px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
  scroll-padding: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.row::-webkit-scrollbar { height: 6px; }
.row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.row > * { scroll-snap-align: start; }

.book-card {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease;
}
.book-card:hover { transform: translateY(-2px); }
.book-card:hover .book-cover { box-shadow: var(--shadow-lg); }
.book-card:hover .book-title { color: var(--orange); }

.book-cover {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: radial-gradient(circle at center, #ffffff 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .15s;
  display: flex; align-items: center; justify-content: center;
  padding: 8%;
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 16px rgba(16,16,16,0.18)) drop-shadow(0 2px 4px rgba(16,16,16,0.08));
}
.book-cover .badge-format {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  font-size: 10px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.book-cover .badge-discount {
  position: absolute; top: 8px; left: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.book-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
  /* Reserve space for 2 lines so 1-line titles align with 2-line titles */
  min-height: calc(1.25em * 2);
}
.book-author {
  font-size: 12.5px; color: var(--muted); font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-price-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 4px;
  min-height: 22px;
  white-space: nowrap;
  overflow: hidden;
}
.book-price {
  font-size: 14px; font-weight: 600; color: var(--ink);
  flex-shrink: 0;
}
.book-price-member {
  font-size: 11px; color: var(--orange);
  background: var(--orange-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

/* ==========================================
   Storytel Favorites — phone verify on home
   ========================================== */
.favorites-section {
  background: linear-gradient(135deg, var(--orange-soft) 0%, #FFFBF7 100%);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.favorites-section .blob {
  position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 65%);
  opacity: 0.18; pointer-events: none;
}
.favorites-section > * { position: relative; z-index: 1; }

.favorites-default {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 700px) {
  .favorites-section { padding: 24px 22px; }
  .favorites-default {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    justify-items: center;
  }
}
.favorites-icon {
  width: 72px; height: 72px;
  border-radius: 999px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(255,92,40,0.15), 0 0 0 18px rgba(255,92,40,0.06);
}
.favorites-icon svg { color: #fff; }
.favorites-content .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 8px;
}
.favorites-content h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  margin-bottom: 6px;
  font-style: italic; font-weight: 500;
  letter-spacing: -0.01em;
}
.favorites-content p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 16px;
  max-width: 60ch;
}
.favorites-form {
  display: flex; gap: 8px;
  max-width: 480px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  align-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.favorites-form:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.favorites-form svg { color: var(--muted); flex-shrink: 0; }
.favorites-form input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; padding: 10px 8px;
}
.favorites-form button {
  background: var(--orange); color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer;
  white-space: nowrap;
}
.favorites-form button:hover { background: var(--orange-dark); }
.favorites-fine {
  font-size: 12px; color: var(--muted);
  margin-top: 10px;
}
.favorites-fine .dot { color: var(--orange); margin: 0 4px; }

.favorites-verified-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.favorites-verified-head .left h2 {
  font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 4px;
}
.favorites-verified-head .left .sub {
  font-size: 13px; color: var(--ink-soft);
}
.favorites-verified-head .left .sub strong { color: var(--orange); }
.favorites-verified-head .reset {
  font-size: 13px; color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  background: none; border: 0;
  font-family: inherit;
}
.favorites-verified-head .reset:hover { color: var(--orange); }

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.favorite-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.favorite-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.favorite-card .cover {
  aspect-ratio: 2/3;
  background: linear-gradient(180deg, #FBF8F2, #EFE8DA);
  display: flex; align-items: center; justify-content: center;
  padding: 8%;
  position: relative;
}
.favorite-card .cover img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(16,16,16,.18)); }
.favorite-card .cover .liked-badge {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.favorite-card .cover .liked-badge svg { width: 12px; height: 12px; }
.favorite-card .info { padding: 10px 12px 12px; }
.favorite-card .title {
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 500; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.favorite-card .author {
  font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 6px;
}
.favorite-card .price-row { display: flex; align-items: baseline; gap: 6px; }
.favorite-card .price { font-size: 13px; font-weight: 600; color: var(--ink); }
.favorite-card .price-was { font-size: 11px; color: var(--muted); text-decoration: line-through; }

.favorites-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,92,40,0.18);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.favorites-summary .left {
  font-size: 14px; color: var(--ink-soft);
}
.favorites-summary .left strong { color: var(--ink); }
.favorites-summary .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Demo toggle */
.favorites-demo-toggle {
  position: absolute; top: 14px; right: 14px;
  z-index: 2;
  display: flex; gap: 4px; padding: 3px;
  background: rgba(16,16,16,0.06);
  border-radius: 999px;
}
.favorites-demo-toggle button {
  padding: 5px 11px;
  font-size: 11px; font-weight: 600;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.favorites-demo-toggle button.active {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(16,16,16,.08);
}
.favorites-demo-toggle button .short { display: none; }
@media (max-width: 700px) {
  .favorites-demo-toggle button .full { display: none; }
  .favorites-demo-toggle button .short { display: inline; }
}

@media (max-width: 700px) {
  .favorites-section .blob {
    width: 200px; height: 200px;
    top: -60px; right: -60px;
    opacity: 0.14;
  }
  .favorites-demo-toggle {
    position: static;
    display: flex;
    width: 100%;
    margin-bottom: 20px;
  }
  .favorites-demo-toggle button {
    flex: 1;
    padding: 7px 4px;
    font-size: 10.5px;
    letter-spacing: 0;
  }
  .favorites-icon {
    width: 60px; height: 60px;
    box-shadow: 0 0 0 6px rgba(255,92,40,0.15), 0 0 0 14px rgba(255,92,40,0.06);
  }
  .favorites-icon svg { width: 26px; height: 26px; }
  .favorites-content .eyebrow { justify-content: center; }
  .favorites-content h2 { font-size: 24px; }
  .favorites-content p {
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
  }
  .favorites-form {
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    gap: 10px;
    width: 100%;
    max-width: none;
  }
  .favorites-form:focus-within { box-shadow: none; border: 0; }
  .favorites-form > svg { display: none; }
  .favorites-form input {
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    padding: 13px 18px;
    text-align: center;
    font-size: 15px;
  }
  .favorites-form input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-soft);
  }
  .favorites-form button {
    width: 100%;
    padding: 13px;
  }
  .favorites-fine {
    text-align: center;
    font-size: 11.5px;
    margin-top: 14px;
  }
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .favorites-verified-head { margin-bottom: 16px; }
  .favorites-verified-head .left h2 { font-size: 22px; }
}

/* ==========================================
   Subscriber banner
   ========================================== */
.member-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #1F1B17 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.member-banner::before {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}
.member-banner-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  font-family: var(--font-sans);
}
.member-banner h2 {
  color: #fff;
  font-size: clamp(28px, 3.5vw, 44px);
  max-width: 18ch;
  margin-bottom: 12px;
}
.member-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 52ch;
  margin-bottom: 24px;
}
.member-banner .member-features {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.85);
  margin-top: 20px;
}
.member-banner .member-features div { display: flex; align-items: center; gap: 8px; }
.member-banner .member-features svg { color: var(--orange); }
.member-banner .member-cta { z-index: 1; }

@media (max-width: 768px) {
  .member-banner { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .member-banner h2 { font-size: 26px; }
  .member-banner p { font-size: 14.5px; margin-bottom: 16px; }
  .member-banner .member-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-top: 14px;
    font-size: 12.5px;
  }
  .member-banner .member-features div { gap: 6px; }
  .member-banner .member-features svg { width: 14px; height: 14px; flex-shrink: 0; }
}

/* ==========================================
   Editor's pick (large feature)
   ========================================== */
.editors-pick {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}
@media (max-width: 768px) { .editors-pick { grid-template-columns: 1fr; } }

.editors-pick-cover {
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform .3s;
}
.editors-pick-cover:hover { transform: rotate(0deg) scale(1.02); }
.editors-pick-cover img { width: 100%; height: 100%; object-fit: cover; }

.editors-pick-text .section-eyebrow { color: var(--orange); }
.editors-pick-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 8px;
  font-style: italic;
  font-weight: 400;
}
.editors-pick-text .author { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.editors-pick-text .review {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 24px;
  border-left: 3px solid var(--orange);
  padding-left: 20px;
}
.editors-pick-text .reviewer { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.editors-pick-text .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================
   Storytel listening continuation
   ========================================== */
.listening-section {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.listening-section::before {
  content: ''; position: absolute; left: -100px; bottom: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 60%);
  opacity: 0.25; pointer-events: none;
}
.listening-section h2 { color: #fff; max-width: 22ch; margin-bottom: 12px; }
.listening-section > p { color: rgba(255,255,255,0.7); max-width: 56ch; margin-bottom: 32px; }
.listening-state-toggle {
  position: absolute; top: 24px; right: 24px;
  display: flex; gap: 4px; padding: 3px; background: rgba(255,255,255,0.1); border-radius: 999px;
}
.listening-state-toggle button {
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.7);
  border-radius: 999px;
}
.listening-state-toggle button.active { background: var(--orange); color: #fff; }

@media (max-width: 700px) {
  .listening-section { padding: 28px 22px; }
  .listening-section > p { margin-bottom: 22px; font-size: 14.5px; }
  .listening-section h2 { font-size: 24px; margin-bottom: 10px; }
  .listening-state-toggle {
    position: static;
    display: inline-flex;
    margin-bottom: 16px;
  }
  .listening-state-toggle button { padding: 6px 14px; font-size: 11.5px; }
  .listening-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .listening-card { padding: 12px; gap: 12px; }
  .listening-card-cover { width: 60px; height: 90px; }
}

.listening-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  position: relative; z-index: 1;
}
.listening-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; gap: 14px;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.listening-card:hover { background: rgba(255,255,255,0.1); border-color: var(--orange); }
.listening-card-cover {
  width: 70px; height: 105px;
  border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.listening-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.listening-card-info { flex: 1; min-width: 0; }
.listening-card-info .label { font-size: 11px; color: var(--orange); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.listening-card-info h4 { color: #fff; font-size: 15px; font-family: var(--font-display); font-weight: 500; line-height: 1.2; margin-bottom: 4px; }
.listening-card-info .author { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.listening-card-info .progress {
  height: 3px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden;
  margin-bottom: 6px;
}
.listening-card-info .progress span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.listening-card-info .progress-text { font-size: 11px; color: rgba(255,255,255,0.5); }
.listening-card-info .price { font-size: 13px; font-weight: 600; color: #fff; margin-top: 8px; }

.listening-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius);
}
.listening-empty p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }

/* ==========================================
   CATEGORY page
   ========================================== */
.cat-hero {
  padding: 36px 0 24px;
  display: flex; gap: 32px; align-items: end; justify-content: space-between;
  flex-wrap: wrap;
}
.cat-hero .left { max-width: 60ch; }
.cat-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.025em; margin-bottom: 8px; }
.cat-hero h1 em { color: var(--orange); font-style: italic; font-weight: 500; }
.cat-hero .lead { font-size: 16px; color: var(--muted); }
.cat-hero .count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cat-hero .count strong { color: var(--ink); font-weight: 600; }

.cat-ai-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  margin: 4px 0 24px;
  max-width: 560px;
  transition: border-color .15s, background .15s;
}
.cat-ai-bar:focus-within { border-color: var(--orange); background: #fff; }
.cat-ai-bar .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,92,40,0.18);
  flex-shrink: 0;
}
.cat-ai-bar input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 8px 0;
}
.cat-ai-bar input::placeholder { color: var(--muted); }
.cat-ai-bar button {
  background: var(--ink); color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-ai-bar button:hover { background: var(--orange); }

.cat-toolbar {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cat-pills { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cat-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.cat-pill:hover { border-color: var(--ink); color: var(--ink); }
.cat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat-sort {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.cat-sort select {
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px 20px;
  padding-bottom: 48px;
}

.cat-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.cat-empty h3 { font-family: var(--font-display); font-size: 24px; color: var(--ink); margin-bottom: 8px; font-weight: 500; }

.cat-loadmore { display: flex; justify-content: center; padding: 32px 0 16px; }
.cat-loadmore-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cat-loadmore-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================
   PDP — Product detail page
   ========================================== */
.pdp-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pdp-breadcrumb a:hover { color: var(--orange); }
.pdp-breadcrumb .sep { color: var(--border-strong); }
@media (max-width: 700px) {
  .pdp-breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    padding-right: 28px;
  }
  .pdp-breadcrumb::-webkit-scrollbar { display: none; }
  .pdp-breadcrumb > * { flex-shrink: 0; white-space: nowrap; }
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: 24px 0 48px;
  align-items: start;
}
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; } }

/* Gallery */
.pdp-gallery {
  position: sticky; top: 96px;
}
@media (max-width: 900px) {
  .pdp-gallery { position: static; }
}
.pdp-thumbs {
  display: flex; flex-direction: column; gap: 8px;
}
.pdp-thumb {
  aspect-ratio: 2/3;
  border-radius: 6px;
  background: linear-gradient(180deg, #FBF8F2 0%, #F2EDE3 100%);
  border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  cursor: pointer;
  transition: border-color .15s;
}
.pdp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(16,16,16,.15)); }
.pdp-thumb.active { border-color: var(--orange); }
.pdp-thumb:hover { border-color: var(--border-strong); }

.pdp-cover {
  aspect-ratio: 1/1.3;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FBF8F2 0%, #EFE8DA 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 8%;
  position: relative;
}
.pdp-cover img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(16,16,16,0.22)) drop-shadow(0 4px 8px rgba(16,16,16,0.1));
}
@media (max-width: 700px) {
  .pdp-cover {
    aspect-ratio: auto;
    height: 48vh;
    min-height: 280px;
    padding: 6%;
  }
}
.pdp-cover .ribbon {
  position: absolute; top: 16px; left: 16px;
  background: var(--orange); color: #fff;
  padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px;
}

/* Info column */
.pdp-info { padding-top: 4px; }
.pdp-format-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-soft); color: var(--orange);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
  margin-bottom: 14px;
}
.pdp-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.pdp-author {
  font-size: 17px;
  margin-bottom: 14px;
}
.pdp-author a { color: var(--ink); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.pdp-author a:hover { color: var(--orange); border-color: var(--orange); }
.pdp-author-publisher { color: var(--muted); font-size: 14px; }
.pdp-rating-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}
.pdp-rating-row .stars { display: inline-flex; gap: 1px; }
.pdp-rating-row .stars svg { width: 16px; height: 16px; color: #F5A623; }
.pdp-rating-row a { color: var(--muted); border-bottom: 1px solid var(--border-strong); }
.pdp-rating-row a:hover { color: var(--orange); }

/* Format picker */
.pdp-formats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.pdp-format {
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
  display: flex; flex-direction: column; gap: 2px;
}
.pdp-format:hover { border-color: var(--ink); }
.pdp-format.active { border-color: var(--orange); background: var(--orange-soft); }
.pdp-format .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.pdp-format .price { font-size: 12px; color: var(--muted); }
.pdp-format.audiobook .label { display: flex; align-items: center; gap: 6px; }
.pdp-format.audiobook .label svg { color: var(--orange); }
.pdp-format.audiobook .price { color: var(--orange); font-weight: 600; }

/* Price block */
.pdp-price-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.pdp-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price-now {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em;
}
.pdp-price-was { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.pdp-price-save { font-size: 13px; color: var(--orange); font-weight: 600; background: var(--orange-soft); padding: 3px 8px; border-radius: 4px; }
.pdp-price-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pdp-member-prompt {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pdp-member-prompt strong { color: var(--ink); }
.pdp-member-prompt a { color: var(--orange); font-weight: 600; }
.pdp-member-prompt a:hover { text-decoration: underline; }

/* CTA buttons */
.pdp-cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 480px) { .pdp-cta-row { grid-template-columns: 1fr; } }
.pdp-cta-row .btn { padding: 16px 24px; font-size: 16px; }
.pdp-gift-btn {
  background: #fff;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.pdp-gift-btn:hover { background: var(--ink); color: #fff; }

/* Trust list */
.pdp-trust {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.pdp-trust-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-soft);
}
.pdp-trust-item svg { color: var(--orange); flex-shrink: 0; }
.pdp-trust-item strong { font-weight: 600; color: var(--ink); }

/* Description */
.pdp-section { margin-bottom: 32px; }
.pdp-section h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-sans);
  margin-bottom: 12px;
}
.pdp-description {
  font-size: 15px; line-height: 1.7; color: var(--ink-soft);
  position: relative;
  transition: max-height .3s;
  white-space: pre-wrap;
}
.pdp-description.is-clipped { max-height: 200px; overflow: hidden; }
.pdp-description.expanded { max-height: 2000px; }
.pdp-description.is-clipped:not(.expanded)::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.pdp-description-toggle {
  display: none;
  margin-top: 8px;
  color: var(--orange); font-weight: 600; font-size: 14px;
  cursor: pointer;
}
.pdp-description.is-clipped ~ .pdp-description-toggle { display: inline-block; }
.pdp-description-toggle:hover { text-decoration: underline; }

/* Audio sample player */
.pdp-sample {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.pdp-sample .play-btn {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .1s;
}
.pdp-sample .play-btn:hover { transform: scale(1.05); }
.pdp-sample .meta { flex: 1; min-width: 0; }
.pdp-sample .label { font-size: 11px; color: var(--orange); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.pdp-sample .title { font-size: 14px; font-weight: 500; color: #fff; }
.pdp-sample .narrator { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* Specs grid */
.pdp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 14px;
}
.pdp-specs dt { color: var(--muted); }
.pdp-specs dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ==========================================
   Hero inline expanding search (Klindra-inspired)
   ========================================== */
.search-container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  transition: max-width .4s cubic-bezier(.16,1,.3,1);
}
.search-container.open { max-width: 1100px; }

.search-shell {
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.search-container.open .search-shell {
  border-color: rgba(255,92,40,0.35);
  box-shadow: 0 16px 48px rgba(16,16,16,.12), 0 4px 12px rgba(16,16,16,.06);
}

.search-input-row {
  display: flex; align-items: center;
  padding: 14px 16px 14px 22px;
  gap: 12px;
}
.search-input-row svg.search-glass { color: var(--muted); flex-shrink: 0; }
.search-input-row input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink);
  padding: 8px 0;
}
.search-input-row input::placeholder { color: var(--muted); }
.search-input-row .result-count {
  font-size: 12px; color: var(--muted); font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  margin-right: 4px;
}
.search-input-row .esc-hint {
  font-size: 10.5px; color: var(--muted);
  padding: 3px 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  display: none;
}
.search-container.open .search-input-row .esc-hint { display: inline-flex; }
.search-input-row .close-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: none; align-items: center; justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 0; cursor: pointer;
}
.search-input-row .close-btn:hover { background: var(--surface); color: var(--ink); }
.search-container.open .search-input-row .close-btn { display: flex; }
.search-input-row .ask-btn {
  background: var(--orange); color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer;
  display: none;
}
.search-container:not(.open) .search-input-row .ask-btn { display: inline-flex; }
.search-input-row .ask-btn:hover { background: var(--orange-dark); }

.search-content {
  display: none;
  border-top: 1px solid var(--border);
  text-align: left;
  animation: searchContentIn .25s ease-out;
}
.search-container.open .search-content { display: block; }
@keyframes searchContentIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.search-filters {
  display: none;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.search-filters.show { display: flex; }
.search-filters .label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.search-filters button {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .12s;
}
.search-filters button:hover { border-color: var(--orange); color: var(--orange); }
.search-filters button.active {
  background: var(--orange); color: #fff; border-color: var(--orange);
  display: inline-flex; align-items: center; gap: 6px;
}

.search-body {
  padding: 22px;
  max-height: 65vh;
  overflow-y: auto;
}

.search-section {
  margin-bottom: 24px;
}
.search-section:last-child { margin-bottom: 0; }
.search-section-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.search-section-head .icon { color: var(--orange); font-size: 16px; }
.search-section-head h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink); font-family: var(--font-sans);
}
.search-section-head .small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.search-quickchips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.search-quickchip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .12s;
}
.search-quickchip:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.search-quickchip.featured {
  background: var(--orange-soft);
  border-color: rgba(255,92,40,0.3);
  color: var(--orange);
  font-weight: 600;
}
.search-quickchip.featured:hover { background: var(--orange); color: #fff; }

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.search-grid.cols-2-md { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.search-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
}
.search-card:hover { border-color: rgba(255,92,40,0.4); transform: translateY(-2px); box-shadow: var(--shadow); }
.search-card .cover {
  aspect-ratio: 2/3;
  background: linear-gradient(180deg, #FBF8F2, #EFE8DA);
  display: flex; align-items: center; justify-content: center;
  padding: 8%;
  position: relative;
}
.search-card .cover img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(16,16,16,.18)); }
.search-card .cover .badge-discount {
  position: absolute; top: 6px; right: 6px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.search-card .info { padding: 10px 12px 12px; }
.search-card .title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
  margin-bottom: 4px;
}
.search-card .author {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 6px;
}
.search-card .price-row {
  display: flex; align-items: baseline; gap: 6px;
}
.search-card .price { font-size: 13px; font-weight: 600; color: var(--ink); }
.search-card .price-was { font-size: 11px; color: var(--muted); text-decoration: line-through; }

mark.search-highlight {
  background: rgba(255,92,40,0.18);
  color: var(--ink);
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
}

.search-ai-summary {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--orange-soft);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.search-ai-summary .ai-mark {
  flex-shrink: 0;
  font-size: 18px; color: var(--orange);
  line-height: 1;
}
.search-ai-summary .text { font-size: 14px; line-height: 1.5; }
.search-ai-summary .text .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); display: block; margin-bottom: 2px;
}
.search-ai-summary .text strong { color: var(--ink); font-weight: 600; }
.search-ai-summary .text a { color: var(--orange); font-weight: 600; }

.search-chat-bubble {
  display: flex; gap: 12px;
  margin-bottom: 18px;
  animation: searchContentIn .25s ease-out;
}
.search-chat-bubble .avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--ink); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.search-chat-bubble .body { flex: 1; min-width: 0; }
.search-chat-bubble .body .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 6px;
}
.search-chat-bubble .body .bubble {
  background: var(--surface);
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 14px 16px;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink);
}
.search-chat-bubble .body .bubble ul { margin: 8px 0; padding-left: 0; list-style: none; }
.search-chat-bubble .body .bubble ul li { display: flex; gap: 8px; padding: 3px 0; }
.search-chat-bubble .body .bubble .dot { color: var(--orange); font-weight: 700; flex-shrink: 0; }
.search-chat-bubble .body .bubble strong { color: var(--ink); font-weight: 600; }
.search-chat-bubble .body .bubble form { display: flex; gap: 8px; margin-top: 10px; }
.search-chat-bubble .body .bubble form input {
  flex: 1; padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 14px;
  outline: 0;
}
.search-chat-bubble .body .bubble form input:focus { border-color: var(--orange); }
.search-chat-bubble .body .bubble form button {
  padding: 8px 14px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.search-chat-bubble .body .bubble form button:hover { background: var(--orange); }

.search-quickactions {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.search-quickactions .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.search-quickactions .row { display: flex; flex-wrap: wrap; gap: 6px; }
.search-quickactions button {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 500;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.search-quickactions button:hover { border-color: var(--orange); color: var(--orange); }

/* Hero promo collapsing */
#hero-promo {
  transition: opacity .25s ease, transform .3s ease, max-height .4s cubic-bezier(.16,1,.3,1), margin .4s ease;
  max-height: 600px;
}
#hero-promo.collapsed {
  opacity: 0; transform: translateY(-8px);
  max-height: 0; margin: 0 !important;
  overflow: hidden; pointer-events: none;
}
.search-container.open ~ .prompt-chips,
.search-container.open ~ .hero-trustpilot { display: none; }

@media (max-width: 700px) {
  .search-body { padding: 16px; max-height: 60vh; }
  .search-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .search-input-row { padding: 12px 14px 12px 16px; }
  .search-input-row input { font-size: 16px; }
  .search-input-row .esc-hint { display: none !important; }
}

/* ==========================================
   Search overlay (Klindra-style smart search in modal)
   ========================================== */
.search-overlay-panel {
  width: 100%; max-width: 880px;
  margin: 0 auto;
  animation: searchOverlayIn .2s ease-out;
}
@keyframes searchOverlayIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.search-overlay-panel .search-shell {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 64px rgba(16,16,16,.25), 0 4px 12px rgba(16,16,16,.08);
  overflow: hidden;
}

/* Old overlay legacy (still loaded but unused) */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(16,16,16,0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 80px 20px 20px;
  overflow-y: auto;
}
.search-overlay.open { display: flex; }
.search-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 720px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: searchIn .15s ease-out;
}
@keyframes searchIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap svg.search-icon { color: var(--muted); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink);
  padding: 6px 0;
}
.search-input-wrap input::placeholder { color: var(--muted); }
.search-input-wrap .esc-hint {
  font-size: 11px; color: var(--muted); padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 4px;
  font-family: var(--font-sans);
}
.search-input-wrap button.close-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.search-input-wrap button.close-btn:hover { background: var(--surface); color: var(--ink); }

.search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px;
}
.search-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  padding: 12px 12px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.search-result-item:hover { background: var(--surface); }
.search-result-cover {
  width: 36px; aspect-ratio: 2/3;
  border-radius: 4px;
  background: linear-gradient(180deg, #FBF8F2, #EFE8DA);
  display: flex; align-items: center; justify-content: center;
  padding: 2px;
  flex-shrink: 0;
}
.search-result-cover img { max-width: 100%; max-height: 100%; object-fit: contain; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-info .title { font-family: var(--font-display); font-size: 14px; font-weight: 500; line-height: 1.25; }
.search-result-info .author { font-size: 12px; color: var(--muted); }
.search-result-info .price { font-size: 13px; font-weight: 600; color: var(--ink); flex-shrink: 0; }

.search-empty { padding: 32px; text-align: center; color: var(--muted); font-size: 14px; }
.search-ai-prompt {
  margin: 12px;
  padding: 16px 18px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: transform .15s;
}
.search-ai-prompt:hover { transform: translateY(-1px); }
.search-ai-prompt .icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--orange);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.search-ai-prompt .text { flex: 1; min-width: 0; }
.search-ai-prompt .text strong { display: block; font-size: 13px; color: var(--orange); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.search-ai-prompt .text span { font-size: 14px; color: rgba(255,255,255,0.9); }
.search-ai-prompt .arrow { color: var(--orange); }

.search-suggest-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px 16px;
}
.search-suggest-grid button {
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--border); background: #fff; color: var(--ink-soft);
}
.search-suggest-grid button:hover { border-color: var(--orange); color: var(--orange); }

/* ==========================================
   Wishlist heart on book card
   ========================================== */
.book-cover .wish-btn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  z-index: 2;
  cursor: pointer;
  transition: transform .12s, color .12s, background .15s;
  border: 0;
  backdrop-filter: blur(4px);
}
.book-cover .wish-btn:hover { transform: scale(1.08); color: var(--orange); }
.book-cover .wish-btn.active { color: var(--orange); }
.book-cover .wish-btn svg { width: 16px; height: 16px; }
.book-cover .wish-btn.active svg { fill: var(--orange); stroke: var(--orange); }

/* Quick-add cart button on book card */
.book-cover .quick-add-btn {
  position: absolute; top: 8px; right: 48px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  z-index: 2;
  cursor: pointer;
  transition: transform .12s, color .12s, background .15s;
  border: 0;
  backdrop-filter: blur(4px);
}
.book-cover .quick-add-btn:hover { transform: scale(1.08); color: var(--orange); background: #fff; }
.book-cover .quick-add-btn svg { width: 16px; height: 16px; }
.book-cover .quick-add-btn.added { background: var(--orange); color: #fff; transform: scale(1.12); }

/* Cart-add toast */
.cart-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  width: min(380px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.16);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.cart-toast.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cart-toast img { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-toast-body { min-width: 0; }
.cart-toast-msg { font-size: 12px; color: var(--muted); font-weight: 500; }
.cart-toast-title { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-toast-cta { font-size: 13px; font-weight: 600; color: var(--orange); text-decoration: none; white-space: nowrap; }
.cart-toast-cta:hover { text-decoration: underline; }
.cart-toast-close {
  position: absolute; top: 6px; right: 8px;
  width: 22px; height: 22px;
  border: 0; background: transparent;
  font-size: 18px; line-height: 1; color: var(--muted);
  cursor: pointer; border-radius: 4px;
}
.cart-toast-close:hover { color: var(--ink); background: var(--bg-soft); }

/* Cart item × remove button */
.cart-item { position: relative; }
.cart-item-x {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .15s;
}
.cart-item-x:hover { color: var(--orange); border-color: var(--orange); background: #fff; }

/* PDP wishlist + share buttons */
.pdp-extra-actions {
  display: flex; gap: 8px;
  margin-top: 12px; margin-bottom: 16px;
}
.pdp-extra-actions button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s;
}
.pdp-extra-actions button:hover { border-color: var(--ink); color: var(--ink); }
.pdp-extra-actions button.active { color: var(--orange); border-color: var(--orange); background: var(--orange-soft); }
.pdp-extra-actions button.active svg { fill: var(--orange); }
.pdp-extra-actions button svg { width: 14px; height: 14px; }

/* Wishlist page grid */
.wishlist-empty {
  text-align: center;
  padding: 80px 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.wishlist-empty svg { color: var(--orange); opacity: 0.5; margin-bottom: 16px; }
.wishlist-empty h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.wishlist-empty p { color: var(--muted); margin-bottom: 24px; }

/* ==========================================
   Account dropdown (topbar)
   ========================================== */
.account-wrap { position: relative; }
.account-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 240px;
  z-index: 60;
  display: none;
}
.account-dropdown.open { display: block; }
.account-dropdown::before {
  content: '';
  position: absolute; top: -6px; right: 16px;
  width: 12px; height: 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
.account-dropdown a, .account-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  text-align: left;
  border: 0; background: none; cursor: pointer;
}
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--surface); color: var(--ink); }
.account-dropdown a svg, .account-dropdown button svg { color: var(--muted); }
.account-dropdown .divider { height: 1px; background: var(--border); margin: 6px -8px; }
.account-dropdown .header {
  padding: 12px;
  background: var(--orange-soft);
  border-radius: 8px;
  margin-bottom: 6px;
}
.account-dropdown .header strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.account-dropdown .header span { font-size: 12px; color: var(--muted); }
.account-dropdown .header.guest { background: var(--surface); }

/* Login modal extends member modal */
.login-tabs {
  display: flex; gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.login-tabs button {
  flex: 1;
  padding: 8px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  transition: all .15s;
}
.login-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ==========================================
   PDP — book reviews
   ========================================== */
.pdp-reviews {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.pdp-reviews-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.pdp-reviews-head h2 { font-size: clamp(22px, 2.5vw, 30px); margin-bottom: 4px; }
.pdp-reviews-head .sub { color: var(--muted); font-size: 14px; }
.pdp-reviews-summary {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
}
.pdp-reviews-summary .score { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.pdp-reviews-summary .meta { display: flex; flex-direction: column; line-height: 1.3; }
.pdp-reviews-summary .stars { display: inline-flex; gap: 1px; }
.pdp-reviews-summary .stars svg { width: 14px; height: 14px; color: #F5A623; }
.pdp-reviews-summary .count { font-size: 12px; color: var(--muted); }

.pdp-rating-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}
@media (max-width: 700px) { .pdp-rating-block { grid-template-columns: 1fr; } }

.pdp-rating-summary-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.pdp-rating-summary-card .score {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.pdp-rating-summary-card .stars { display: inline-flex; gap: 2px; margin: 10px 0 6px; }
.pdp-rating-summary-card .stars svg { width: 18px; height: 18px; color: #F5A623; }
.pdp-rating-summary-card .count { font-size: 13px; color: var(--muted); }
.pdp-rating-summary-card .verified-pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px;
  font-size: 11px; font-weight: 600; color: #00B67A;
  background: rgba(0,182,122,0.08);
  padding: 4px 10px; border-radius: 999px;
}
.pdp-rating-summary-card .verified-pill svg { width: 11px; height: 11px; }

.pdp-rating-bars {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 10px;
}
.pdp-rating-bar { display: grid; grid-template-columns: 40px 1fr 50px; gap: 14px; align-items: center; font-size: 13px; }
.pdp-rating-bar .label { color: var(--ink-soft); display: flex; align-items: center; gap: 4px; font-weight: 500; }
.pdp-rating-bar .label svg { width: 12px; height: 12px; color: #F5A623; }
.pdp-rating-bar .track { display: block; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.pdp-rating-bar .fill {
  display: block;
  height: 100%; min-width: 4px;
  background: linear-gradient(90deg, #F5A623, #FFB840);
  border-radius: 999px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.pdp-rating-bar .count { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.pdp-rating-bar:hover .fill { background: linear-gradient(90deg, #E8930E, #F5A623); }

.pdp-reviews-head h2 { display: flex; align-items: center; gap: 10px; }

.pdp-reviews-toggle {
  display: flex; justify-content: center;
  margin-top: 20px;
}
.pdp-reviews-toggle button {
  padding: 12px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.pdp-reviews-toggle button:hover { border-color: var(--orange); color: var(--orange); }
.pdp-reviews-toggle button svg { transition: transform .2s; }
.pdp-reviews-toggle button.expanded svg { transform: rotate(180deg); }

.pdp-review.hidden { display: none; }

.pdp-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pdp-review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.pdp-review .stars { display: inline-flex; gap: 1px; margin-bottom: 10px; }
.pdp-review .stars svg { width: 14px; height: 14px; color: #F5A623; }
.pdp-review .quote-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 6px; line-height: 1.3; }
.pdp-review .quote-body { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 12px; }
.pdp-review .reviewer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
  padding-top: 10px; border-top: 1px solid var(--border);
}
.pdp-review .reviewer .name { font-weight: 500; color: var(--ink); }
.pdp-review .reviewer .verified { display: inline-flex; align-items: center; gap: 4px; color: #00B67A; font-weight: 600; }
.pdp-review .reviewer .verified svg { width: 11px; height: 11px; }

/* ==========================================
   PDP — inline AI prompt (bottom of product page)
   ========================================== */
.pdp-ai-prompt {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pdp-ai-prompt::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 65%);
  opacity: 0.18; pointer-events: none;
}
@media (max-width: 700px) { .pdp-ai-prompt { grid-template-columns: 1fr; gap: 16px; } }

.pdp-ai-avatar {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(255,80,28,0.18), 0 0 0 14px rgba(255,80,28,0.08);
  position: relative; z-index: 1;
}
.pdp-ai-avatar svg { color: #fff; }

.pdp-ai-content { position: relative; z-index: 1; }
.pdp-ai-content h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.pdp-ai-content p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 60ch;
}

.pdp-ai-input {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px 10px 10px 18px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.pdp-ai-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,80,28,0.12); }
.pdp-ai-input svg { color: var(--muted); flex-shrink: 0; }
.pdp-ai-input input {
  flex: 1; border: 0; outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px; font-family: inherit;
  padding: 6px 0;
}
.pdp-ai-input input::placeholder { color: var(--muted); font-size: 14px; }
.pdp-ai-input .btn { padding: 8px 16px; font-size: 13px; }

.pdp-ai-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-ai-chip {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.pdp-ai-chip:hover { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-dark); }

/* ==========================================
   CHAT page
   ========================================== */
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  min-height: calc(100vh - 200px);
  padding: 24px 0 48px;
}
@media (max-width: 900px) { .chat-layout { grid-template-columns: minmax(0, 1fr); } }

.chat-main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column;
  min-height: 600px;
  min-width: 0;
}
.chat-conversation {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 70vh;
  padding-right: 4px;
  min-width: 0;
}
.chat-msg {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.ai {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  max-width: 100%;
}
.chat-msg.ai .ai-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--orange);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 10px;
}
.chat-msg.ai .ai-header .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--orange); }
.chat-msg.ai p { margin-bottom: 12px; }
.chat-msg.ai p:last-of-type { margin-bottom: 0; }

.chat-book-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 12px;
  margin-top: 16px;
  min-width: 0;
}
.chat-book { min-width: 0; }
.chat-book {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.chat-book:hover {
  border-color: rgba(255, 92, 40, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.chat-book-cover {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 2/3;
  background: linear-gradient(180deg, #FBF8F2, #EFE8DA);
  padding: 10%;
  text-decoration: none;
}
.chat-book-cover img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(16,16,16,.18));
}
.chat-book-cover .badge-discount {
  position: absolute; top: 6px; left: 6px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.chat-book-wish {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.chat-book-wish:hover { color: var(--orange); background: #fff; border-color: var(--orange); }
.chat-book-wish.active { color: var(--orange); border-color: var(--orange); background: #fff; }
.chat-book-info { display: flex; flex-direction: column; padding: 10px 12px 12px; gap: 6px; flex: 1; }
.chat-book-title-link { text-decoration: none; color: inherit; display: block; }
.chat-book-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
  margin-bottom: 4px;
}
.chat-book-author {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-book-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.chat-book-price { font-size: 14px; font-weight: 700; color: var(--ink); }
.chat-book-price-was { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.chat-book-buy {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.chat-book-buy:hover { background: var(--orange); }
.chat-book-buy:active { transform: scale(0.97); }
.chat-book-buy.added { background: #2E7D5C; }

.chat-input-bar {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.chat-input-bar .chat-input { box-shadow: none; border-color: var(--border-strong); }

.chat-typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 14px 18px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 18px; border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 999px; background: var(--muted);
  animation: typingBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-followup {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chat-followup:hover {
  background: var(--orange-tint, #FFF4F0);
  border-color: var(--orange);
}

.search-curator-cta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: linear-gradient(135deg, #FFF4F0 0%, #FFFAF7 100%);
  border: 1px solid #FFD9CC;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.search-curator-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 92, 40, 0.12);
  border-color: var(--orange);
}
.search-curator-cta .cta-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange);
  color: #fff;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
}
.search-curator-cta .cta-body { flex: 1; min-width: 0; }
.search-curator-cta .cta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.search-curator-cta .cta-query {
  font-family: var(--font-serif, Fraunces, serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
  font-style: italic;
}
.search-curator-cta .cta-hint {
  font-size: 13px;
  color: var(--muted);
}

.chat-sidebar {
  display: flex; flex-direction: column; gap: 24px;
}
.chat-sidebar h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-sans);
  margin-bottom: 12px;
}
.chat-new-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.chat-new-btn:hover { background: var(--orange); }

.chat-history-list { display: flex; flex-direction: column; gap: 4px; }
.chat-history-item {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.chat-history-item:hover { background: var(--surface); border-left-color: var(--orange); }
.chat-history-item:hover .chat-history-delete { opacity: 1; }
.chat-history-item.active { background: var(--orange-soft); color: var(--orange); border-left-color: var(--orange); font-weight: 500; }
.chat-history-title {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-history-delete {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}
.chat-history-delete:hover { background: rgba(255,92,40,0.12); color: var(--orange); }

.chat-empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.chat-empty-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange) 0%, #FF7A4F 100%);
  color: #fff;
  border-radius: 16px;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(255,92,40,0.25);
}
.chat-empty-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}
.chat-empty-lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 480px;
}
.chat-empty-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.chat-empty-chip {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.chat-empty-chip:hover { border-color: var(--orange); color: var(--orange); }
.chat-empty-chip:active { transform: scale(0.97); }

.chat-suggestions {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
}
.chat-suggestions p { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.chat-suggestion-list { display: flex; flex-direction: column; gap: 6px; }
.chat-suggestion-list button {
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
}
.chat-suggestion-list button:hover { border-color: var(--orange); color: var(--orange); }

/* ==========================================
   CART page
   ========================================== */
.cart-header {
  padding: 24px 0 8px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
}
.cart-header h1 { font-size: clamp(28px, 3.5vw, 40px); }
.cart-header .meta { font-size: 14px; color: var(--muted); }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  padding: 16px 0 48px;
  align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-items {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: opacity .18s ease, transform .18s ease;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item.is-removing {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
}
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 70px 1fr; gap: 14px; padding: 16px; }
  .cart-item-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
}

.cart-item-cover {
  aspect-ratio: 2/3;
  border-radius: 6px;
  background: linear-gradient(180deg, #FBF8F2, #EFE8DA);
  display: flex; align-items: center; justify-content: center;
  padding: 6%;
}
.cart-item-cover img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(16,16,16,.18)); }

.cart-item-info { min-width: 0; }
.cart-item-info .title { font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.25; margin-bottom: 4px; letter-spacing: -0.01em; }
.cart-item-info .author { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cart-item-info .meta-row { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.cart-item-info .badge { font-size: 11px; font-weight: 600; padding: 3px 8px; background: var(--surface); border-radius: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.cart-item-info .availability { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #16a34a; font-weight: 500; }
.cart-item-info .availability::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: #16a34a; }

.cart-item-controls {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.cart-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
}
.cart-qty button {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background .15s;
}
.cart-qty button:hover { background: var(--surface); color: var(--ink); }
.cart-qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-qty .qty-val { padding: 0 12px; font-size: 14px; font-weight: 600; min-width: 32px; text-align: center; }

.cart-item-price { font-size: 18px; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.cart-item-price-was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.cart-item-price-stack {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.cart-item-price-stack .cart-item-price { color: var(--orange); }
.cart-item-discount-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--orange);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .cart-item-price-stack { justify-content: flex-start; }
}
.cart-item-remove { font-size: 12px; color: var(--muted); cursor: pointer; }
.cart-item-remove:hover { color: var(--orange); text-decoration: underline; }

.cart-empty {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
}
.cart-empty h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; font-weight: 500; }
.cart-empty p { color: var(--muted); margin-bottom: 24px; }

/* Storytel upsell banner */
.cart-upsell {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 16px;
  position: relative; overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
}
.cart-upsell::before {
  content: ''; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 60%);
  opacity: 0.16; pointer-events: none;
}
@media (max-width: 700px) { .cart-upsell { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; } }

.cart-upsell .lockup {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-upsell .lockup .icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(255,80,28,0.15), 0 0 0 14px rgba(255,80,28,0.06);
}
.cart-upsell .lockup .icon svg { width: 30px; height: 34px; color: #fff; }
.cart-upsell .lockup .label { display: none; }

.cart-upsell .content { position: relative; z-index: 1; flex: 1; min-width: 0; }
.cart-upsell .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px;
  margin-bottom: 10px;
}
.cart-upsell h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.cart-upsell h2 strong { color: var(--orange); font-weight: 600; font-style: normal; }
.cart-upsell .pricing-line {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.cart-upsell .price-was { color: var(--muted); text-decoration: line-through; }
.cart-upsell .price-now { font-size: 18px; font-weight: 700; color: var(--orange); font-family: var(--font-sans); }
.cart-upsell .price-save { color: var(--ink-soft); }
.cart-upsell ul {
  list-style: none; padding: 0; margin: 14px 0 16px;
  display: grid; gap: 6px;
  font-size: 13px; color: var(--ink-soft);
}
.cart-upsell ul li { display: flex; align-items: center; gap: 8px; }
.cart-upsell ul li svg { color: var(--orange); flex-shrink: 0; }
.cart-upsell .cta-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 6px;
}
.cart-upsell .cta-row .btn { padding: 11px 20px; font-size: 14px; }
.cart-upsell .cta-row .reject { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.cart-upsell .cta-row .reject:hover { color: var(--ink-soft); text-decoration: underline; }
.cart-upsell .fine { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.4; }

/* Order summary tweaks for cart */
.cart-summary { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 96px; }
@media (max-width: 900px) { .cart-summary { position: static; padding: 24px; } }
.cart-summary h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 16px; font-weight: 500; }
.cart-promo {
  display: flex; gap: 8px; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.cart-promo input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; font-size: 16px; outline: 0; }
.cart-promo input:focus { border-color: var(--orange); }
.cart-promo button { padding: 10px 16px; font-size: 13px; }

.cart-summary .summary-row.subscription {
  background: rgba(255,92,40,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px -12px;
}
.cart-summary .summary-row.subscription strong { color: var(--orange); font-weight: 700; }

/* ==========================================
   CHECKOUT page
   ========================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  padding: 24px 0 48px;
  align-items: start;
}
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}
.checkout-step h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
.checkout-step h3 .step-num {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center;
}
.checkout-step .step-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; margin-left: 40px; }

.form-row { display: grid; gap: 12px; margin-bottom: 12px; }
.form-row.split { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .form-row.split { grid-template-columns: 1fr; } }
.form-row label { font-size: 12px; font-weight: 600; color: var(--muted); }
.form-row label.field-label { display: block; margin-bottom: 4px; }

/* Gift toggle */
.gift-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 16px;
  cursor: pointer;
}
.gift-toggle input { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.gift-toggle .label { flex: 1; }
.gift-toggle .label strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.gift-toggle .label span { font-size: 13px; color: var(--muted); }

.gift-fields {
  display: none;
  padding: 20px; background: var(--orange-soft);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--orange);
}
.gift-fields.open { display: block; }
.gift-fields h4 { font-size: 14px; font-weight: 700; color: var(--orange); margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.gift-fields textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font: inherit; font-size: 15px; resize: vertical;
  min-height: 80px;
  outline: 0;
}
.gift-fields textarea:focus { border-color: var(--orange); }

.gift-wrap-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gift-wrap-option {
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer; text-align: center;
  font-size: 13px;
  transition: border-color .15s;
}
.gift-wrap-option:hover { border-color: var(--ink); }
.gift-wrap-option.active { border-color: var(--orange); background: #fff; }
.gift-wrap-option .swatch {
  display: block;
  height: 60px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.gift-wrap-option .label { font-weight: 500; }
.gift-wrap-option .price { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Delivery */
.delivery-list { display: flex; flex-direction: column; gap: 8px; }
.delivery-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s;
}
.delivery-option:hover { border-color: var(--ink); }
.delivery-option.active { border-color: var(--orange); background: var(--orange-soft); }
.delivery-option input { accent-color: var(--orange); }
.delivery-option .brand-pill { flex-shrink: 0; }
.delivery-option .info { flex: 1; }
.delivery-option .info strong { display: block; font-size: 14px; }
.delivery-option .info span { font-size: 12px; color: var(--muted); }
.delivery-option .price { font-weight: 600; font-size: 14px; }

/* Payment */
.payment-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 480px) { .payment-list { grid-template-columns: 1fr 1fr; } }
.payment-option {
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 12px;
  cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color .15s;
}
.payment-option:hover { border-color: var(--ink); }
.payment-option.active { border-color: var(--orange); background: var(--orange-soft); }
.payment-option .info { font-size: 12px; color: var(--muted); }

/* Order summary */
.order-summary {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky; top: 96px;
}
@media (max-width: 900px) { .order-summary { position: static; padding: 24px; } }
.order-summary h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 16px; font-weight: 500; }
.order-items { display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.order-item { display: flex; gap: 12px; transition: opacity .18s ease, transform .18s ease; }
.order-item.is-removing {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
}
.order-item-cover {
  width: 60px; aspect-ratio: 2/3;
  border-radius: 4px;
  background: linear-gradient(180deg, #FBF8F2, #EFE8DA);
  display: flex; align-items: center; justify-content: center; padding: 4px;
  flex-shrink: 0;
}
.order-item-cover img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(16,16,16,.15)); }
.order-item-info { flex: 1; min-width: 0; }
.order-item-info .title { font-family: var(--font-display); font-size: 14px; font-weight: 500; line-height: 1.25; margin-bottom: 2px; }
.order-item-info .author { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.order-item-info .meta { font-size: 12px; color: var(--ink); }
.order-item-info .price { font-weight: 600; font-size: 14px; }
.order-item-remove {
  flex-shrink: 0; align-self: flex-start;
  background: transparent; border: 1px solid var(--border);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.order-item-remove:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.order-empty { font-size: 14px; color: var(--muted); padding: 8px 0; }
.order-empty a { color: var(--orange); text-decoration: underline; }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-row.discount { color: var(--orange); }
.summary-row.total {
  font-size: 18px; font-weight: 700;
  padding-top: 12px; margin-top: 6px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
}

.member-verify-card {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.member-verify-card::before {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 65%);
  opacity: 0.25; pointer-events: none;
}
.member-verify-card > * { position: relative; z-index: 1; }
.member-verify-card .label { font-size: 11px; color: var(--orange); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.member-verify-card h4 { font-family: var(--font-display); font-size: 18px; color: #fff; font-weight: 500; margin-bottom: 8px; line-height: 1.2; }
.member-verify-card p { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 12px; line-height: 1.45; }
.member-verify-card .btn { width: 100%; }
.member-verify-card .btn-ghost-light {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: 6px;
}
.member-verify-card .btn-ghost-light:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.member-verify-card .fine { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 10px; line-height: 1.4; margin-bottom: 0; }
.member-verify-card.verified { background: linear-gradient(135deg, #14532d, #166534); }
.member-verify-card.verified::before { background: radial-gradient(circle, #4ade80 0%, transparent 65%); opacity: 0.2; }
.member-verify-card.verified .label { color: #4ade80; }

/* ==========================================
   USP top strip (above main nav)
   ========================================== */
.usp-strip {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.usp-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 9px var(--gutter) 4px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .usp-strip {
    font-size: 12px;
    overflow: hidden;
  }
  .usp-strip-inner {
    position: relative;
    display: block;
    height: 32px;
    padding: 0 var(--gutter);
  }
  .usp-strip-inner .usp-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(40px);
    animation: uspRotate 18s infinite;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  .usp-strip-inner .usp-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .usp-strip-inner .usp-item:nth-child(1) { animation-delay: 0s; }
  .usp-strip-inner .usp-item:nth-child(2) { animation-delay: 6s; }
  .usp-strip-inner .usp-item:nth-child(3) { animation-delay: 12s; }
}
@keyframes uspRotate {
  0%   { opacity: 0; transform: translateX(40px); }
  3.3% { opacity: 1; transform: translateX(0); }
  33%  { opacity: 1; transform: translateX(0); }
  36%  { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 0; transform: translateX(-40px); }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .usp-strip-inner .usp-item { animation: none; opacity: 0; transform: none; }
  .usp-strip-inner .usp-item:nth-child(1) { opacity: 1; }
}
.usp-strip-fine {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  letter-spacing: 0.01em;
}
.usp-strip-fine span { margin: 0 6px; }
.usp-item { display: inline-flex; align-items: center; gap: 6px; }
.usp-item svg { color: var(--orange); flex-shrink: 0; }
.usp-trustpilot { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.usp-trustpilot .stars { display: inline-flex; gap: 1px; }
.usp-trustpilot .stars span {
  width: 14px; height: 14px;
  background: #00B67A;
  display: inline-flex; align-items: center; justify-content: center;
}
.usp-trustpilot .stars svg { width: 10px; height: 10px; color: #fff; }
.usp-trustpilot strong { color: #fff; font-weight: 700; }

/* Trustpilot inline mini in hero */
.hero-trustpilot {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap; justify-content: center;
  max-width: 100%;
}
@media (max-width: 480px) {
  .hero-trustpilot { font-size: 12px; gap: 8px; }
}
.hero-trustpilot .stars { display: inline-flex; gap: 2px; }
.hero-trustpilot .stars span {
  width: 18px; height: 18px;
  background: #00B67A;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.hero-trustpilot .stars svg { width: 12px; height: 12px; color: #fff; }
.hero-trustpilot strong { color: var(--ink); font-weight: 700; }

/* ==========================================
   Reviews section
   ========================================== */
.reviews {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
}
.reviews-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.reviews-head .left h2 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 8px; }
.reviews-head .left p { color: var(--muted); font-size: 14px; }
.reviews-tp-badge {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 14px;
}
.reviews-tp-badge .stars { display: inline-flex; gap: 2px; }
.reviews-tp-badge .stars span {
  width: 22px; height: 22px;
  background: #00B67A;
  display: inline-flex; align-items: center; justify-content: center;
}
.reviews-tp-badge .stars svg { width: 14px; height: 14px; color: #fff; }
.reviews-tp-badge .meta { display: flex; flex-direction: column; line-height: 1.2; }
.reviews-tp-badge .score { font-size: 18px; font-weight: 700; color: var(--ink); }
.reviews-tp-badge .count { font-size: 12px; color: var(--muted); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
}
.review-card .stars { display: inline-flex; gap: 2px; margin-bottom: 14px; }
.review-card .stars span {
  width: 18px; height: 18px;
  background: #00B67A;
  display: inline-flex; align-items: center; justify-content: center;
}
.review-card .stars svg { width: 11px; height: 11px; color: #fff; }
.review-card .quote-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.review-card .quote-body { font-size: 14px; color: var(--ink-soft); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.review-card .reviewer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.review-card .reviewer .verified { display: inline-flex; align-items: center; gap: 4px; color: #00B67A; font-weight: 600; }
.review-card .reviewer .verified svg { width: 12px; height: 12px; }

/* ==========================================
   Trust strip (logos)
   ========================================== */
.trust-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .trust-strip-inner { grid-template-columns: 1fr; } }
.trust-block .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.logo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Brand pills (mockup-quality logos rendered as styled text chips) */
.brand-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px;
  min-width: 56px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}
.brand-pill.klarna { background: #FFA8CD; color: #0E1117; border-color: transparent; font-weight: 700; }
.brand-pill.swish { background: #fff; color: #EE3A3A; border: 1px solid #EE3A3A; }
.brand-pill.visa { background: #1A1F71; color: #fff; border-color: transparent; font-style: italic; letter-spacing: 0.06em; }
.brand-pill.mc { background: #fff; padding: 0 10px; }
.brand-pill.mc::before, .brand-pill.mc::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%; display: inline-block;
}
.brand-pill.mc::before { background: #EB001B; margin-right: -6px; }
.brand-pill.mc::after { background: #F79E1B; }
.brand-pill.applepay { background: #000; color: #fff; border-color: transparent; }
.brand-pill.applepay svg { margin-right: 3px; }
.brand-pill.trustly { background: #0EE06E; color: #0E1117; border-color: transparent; }
.brand-pill.paypal { background: #fff; color: #003087; border: 1px solid #E0E4ED; }
.brand-pill.paypal em { color: #009CDE; font-style: normal; font-weight: 700; }

.brand-pill.postnord { background: #005CA9; color: #FFCD00; border-color: transparent; letter-spacing: 0.04em; }
.brand-pill.dhl { background: #FFCC00; color: #D40511; border-color: transparent; font-weight: 800; }
.brand-pill.budbee { background: #00C896; color: #fff; border-color: transparent; }
.brand-pill.instabox { background: #FF595A; color: #fff; border-color: transparent; }
.brand-pill.schenker { background: #fff; color: #002664; border: 1px solid #002664; }
.brand-pill.bring { background: #E2231A; color: #fff; border-color: transparent; }

/* Trygg-e-handel certification pseudo-badge */
.trygg-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  background: #FFE600; color: #101010;
  border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ==========================================
   Footer
   ========================================== */
footer.site-footer {
  background: var(--surface);
  margin-top: 80px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--orange); }
.footer-blurb { color: var(--muted); font-size: 14px; max-width: 36ch; margin-top: 16px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}

/* ==========================================
   Modal (subscriber verification)
   ========================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(16,16,16,0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.modal-close:hover { background: var(--surface); color: var(--ink); }
.modal h3 { font-size: 24px; margin-bottom: 8px; font-family: var(--font-display); }
.modal p { color: var(--muted); margin-bottom: 24px; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.input-field {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.input-field:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.modal-disclaimer { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Floating-label field with optional validation check */
.field {
  position: relative;
  display: block;
}
.field-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 44px 8px 16px;
  font: inherit;
  font-size: 16px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
textarea.field-input {
  padding-top: 28px;
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}
.field-input::placeholder { color: transparent; }
.field-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  font-family: var(--font-sans);
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, color .15s ease, transform .15s ease;
  background: transparent;
  padding: 0 4px;
}
.field:has(textarea.field-input) .field-label {
  top: 18px;
  transform: none;
}
.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label {
  top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transform: none;
}
.field-input:focus + .field-label {
  color: var(--orange);
}
.field-check {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%) scale(0.6);
  color: #16a34a;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.field:has(textarea.field-input) .field-check {
  top: 18px;
  transform: scale(0.6);
}
.field.is-valid .field-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.field:has(textarea.field-input).is-valid .field-check {
  transform: scale(1);
}
.field.is-valid .field-input {
  border-color: #16a34a;
  padding-right: 44px;
}

/* ==========================================
   AI curator overlay (Pass 2 — modal/drawer)
   Lives globally; opened from topbar, PDP, cart, category, search.
   Reuses existing .chat-* internals so sendChatQuery() works as-is.
   ========================================== */
.curator-overlay {
  position: fixed; inset: 0;
  background: rgba(16,16,16,0.5);
  backdrop-filter: blur(6px);
  z-index: 220;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 20px;
}
.curator-overlay.open { display: flex; }

.curator-panel {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 880px;
  height: min(82vh, 760px);
  box-shadow: 0 32px 80px rgba(16,16,16,0.32), 0 8px 24px rgba(16,16,16,0.12);
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  animation: curatorIn .22s ease-out;
}
@keyframes curatorIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.curator-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 18px;
  display: flex; flex-direction: column;
  gap: 18px;
  min-height: 0;
}
.curator-sidebar-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500; font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.curator-sidebar-head .star {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff;
  border-radius: 8px;
  font-weight: 700; font-size: 14px;
  font-family: var(--font-sans);
}
.curator-new-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.curator-new-btn:hover { background: var(--orange); }
.curator-history-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2px;
}
.curator-history-list {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  margin: 0 -6px;
}
.curator-history-list .empty {
  font-size: 12px; color: var(--muted); padding: 8px 6px;
}
.curator-history-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px; color: var(--ink-soft);
  cursor: pointer;
  border-left: 2px solid transparent;
  background: transparent;
  border-top: 0; border-right: 0; border-bottom: 0;
  text-align: left;
}
.curator-history-item:hover {
  background: #fff;
  border-left-color: var(--orange);
}
.curator-history-item.active {
  background: var(--orange-soft);
  color: var(--orange);
  border-left-color: var(--orange);
  font-weight: 500;
}
.curator-history-item .title {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.curator-history-item .del {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}
.curator-history-item:hover .del { opacity: 1; }
.curator-history-item .del:hover { background: rgba(255,80,28,0.12); color: var(--orange); }

.curator-main {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--bg);
}

.curator-topbar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.curator-mobile-history-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: 999px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  cursor: pointer;
}
.curator-mobile-history-btn:hover { background: var(--surface-2); color: var(--orange); }
.curator-context-pill {
  display: none;
  align-items: center; gap: 8px;
  padding: 7px 10px 7px 12px;
  background: var(--orange-soft);
  border: 1px solid #FFD9CC;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
}
.curator-context-pill.show { display: inline-flex; }
.curator-context-pill .label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange);
}
.curator-context-pill .text {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink-soft);
}
.curator-context-pill .text strong {
  color: var(--ink); font-weight: 600;
}
.curator-context-pill .clear {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px; line-height: 1;
  cursor: pointer;
}
.curator-context-pill .clear:hover { background: rgba(0,0,0,0.06); color: var(--ink); }

.curator-spacer { flex: 1; }
.curator-close-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.curator-close-btn:hover { background: #fff; color: var(--orange); border-color: var(--orange); }

.curator-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: 18px 22px 0;
  overflow: hidden;
}
.curator-body #chat-conversation {
  flex: 1; min-height: 0;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 16px;
  margin: 0 -4px 14px;
  padding: 0 4px;
  max-height: none;
}
.curator-body .chat-msg { font-size: 14.5px; }
.curator-body .chat-msg.ai .ai-header { margin-bottom: 8px; }
.curator-body .chat-empty-state { padding: 18px 8px 8px; }
.curator-body .chat-empty-icon { margin-bottom: 12px; width: 48px; height: 48px; font-size: 22px; }
.curator-body .chat-empty-title { font-size: 22px; margin-bottom: 6px; }
.curator-body .chat-empty-lead { font-size: 14px; margin-bottom: 16px; }

.curator-input-bar {
  flex-shrink: 0;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.curator-input-bar .chat-input {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: none;
}
.curator-input-bar .chat-input:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,80,28,0.12);
}
.curator-input-bar .chat-input svg { color: var(--muted); flex-shrink: 0; }
.curator-input-bar .chat-input input {
  flex: 1; border: 0; outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px; font-family: inherit;
  padding: 6px 0;
}
.curator-input-bar .chat-input input::placeholder { color: var(--muted); font-size: 14px; }
.curator-input-bar .chat-input .btn { padding: 9px 16px; font-size: 13px; }

/* Mobile: drawer from bottom */
@media (max-width: 700px) {
  .curator-overlay { padding: 0; align-items: flex-end; }
  .curator-panel {
    grid-template-columns: 1fr;
    max-width: 100%;
    height: 88vh;
    border-radius: 18px 18px 0 0;
    animation: curatorDrawerIn .25s ease-out;
  }
  @keyframes curatorDrawerIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .curator-panel::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px;
    border-radius: 999px;
    background: var(--border-strong);
    pointer-events: none;
  }
  .curator-sidebar {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 24px 18px 18px;
  }
  .curator-sidebar.show { display: flex; }
  .curator-mobile-history-btn { display: flex; }
  .curator-topbar { padding: 18px 16px 12px; }
  .curator-body { padding: 14px 16px 0; }
  .curator-input-bar { padding: 10px 16px 16px; }
  .curator-input-bar .chat-input input { font-size: 16px; }
  .curator-body #chat-conversation { gap: 12px; }
  .curator-body .chat-msg { max-width: 92%; }
}

/* Topbar curator trigger button (✦) */
.curator-trigger-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 0 0 4px rgba(255,80,28,0.10);
  flex-shrink: 0;
}
.curator-trigger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,80,28,0.28), 0 0 0 4px rgba(255,80,28,0.14);
}
.curator-trigger-btn:active { transform: translateY(0); }
.curator-trigger-btn svg { width: 16px; height: 16px; }
.curator-trigger-btn .glyph {
  font-size: 18px; font-weight: 700; line-height: 1;
}

/* Compact PDP CTA — replaces the old big .pdp-ai-prompt block */
.pdp-curator-cta {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #FFF4F0 0%, #FFFAF7 100%);
  border: 1px solid #FFD9CC;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  font-family: inherit;
  color: var(--ink);
}
.pdp-curator-cta:hover {
  transform: translateY(-1px);
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(255,80,28,0.14);
}
.pdp-curator-cta .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange);
  color: #fff;
  border-radius: 12px;
  font-size: 22px; font-weight: 700;
}
.pdp-curator-cta .body { flex: 1; min-width: 0; }
.pdp-curator-cta .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 4px;
}
.pdp-curator-cta .lead {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500; font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pdp-curator-cta .arrow {
  flex-shrink: 0;
  color: var(--orange);
  font-size: 22px;
  font-weight: 600;
  margin-left: 4px;
}
@media (max-width: 700px) {
  .pdp-curator-cta { padding: 16px; gap: 12px; }
  .pdp-curator-cta .icon { width: 40px; height: 40px; font-size: 20px; }
  .pdp-curator-cta .lead { font-size: 16px; }
}

/* Cart-side curator nudge */
.cart-curator-nudge {
  margin-top: 16px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.cart-curator-nudge:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(255,80,28,0.10);
}
.cart-curator-nudge .star {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-soft); color: var(--orange);
  border-radius: 999px;
  flex-shrink: 0;
  font-weight: 700;
}
.cart-curator-nudge .body { flex: 1; min-width: 0; }
.cart-curator-nudge .body strong { display: block; font-size: 14px; font-weight: 600; }
.cart-curator-nudge .body span { font-size: 13px; color: var(--muted); }
