:root {
  --bg: #f7f2e8;
  --panel: #ffffff;
  --paper: #f3ecdf;
  --ink: #141414;
  --muted: #5d5d5d;
  --gold: #866521;
  --gold-soft: #d4af37;
  --gold-deep: #5b3f0d;
  --border: rgba(20, 20, 20, 0.12);
  --shadow: 0 24px 60px rgba(20, 20, 20, 0.12);
}

.top-header-inner > .brand img {
  width: 62px;
  height: 62px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.6;
}

.home-audiobooks-section {
  padding-block: 34px;
}

.audiobooks-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid #c9ced1;
  border-radius: 14px;
  background: linear-gradient(115deg, #1e2e3e, #38516b);
  color: #fff;
}

.audiobooks-card h2 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.audiobooks-card p {
  max-width: 690px;
  margin: 0;
  color: #e4e9ed;
  line-height: 1.6;
}

.audiobooks-status {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: #edc76e;
  color: #26323b;
  font-weight: 800;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.header {
  background: #141414;
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(212, 175, 55, 0.8); }
.brand-copy { font-size: 0.9rem; color: #f5f1e8; }
.brand-copy strong { display: block; font-size: 1.15rem; letter-spacing: 0.04em; }
.site-actions { display: flex; align-items: center; gap: 12px; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 0.7rem 1rem; min-width: 260px;
}
.search-box input {
  background: transparent; border: 0; outline: none; color: #fff; width: 100%;
}
.search-box input::placeholder { color: rgba(255,255,255,0.65); }
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 20, 20, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center; min-height: 64px;
}
.nav-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav-link {
  padding: 0.62rem 0.9rem; border-radius: 999px; color: #f8f3ea; font-size: 0.8rem; font-weight: 600; transition: 0.2s ease;
}
.nav-link:hover { background: rgba(212,175,55,0.15); }
.nav-link.primary { background: linear-gradient(135deg, #866521 0%, #b6902d 100%); color: white; }
.cart-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border-radius: 999px; padding: 0.5rem 0.85rem; border: 1px solid rgba(255,255,255,0.12); color: #fff; font-weight: 700;
}
.cart-count-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; border-radius: 50%; background: white; color: var(--ink); font-size: 0.7rem;
}
.hero {
  background: radial-gradient(circle at top, rgba(212,175,55,0.1), transparent 30%), linear-gradient(135deg, #141414 0%, #2f2a23 100%);
  color: #fff; padding: 64px 0 52px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 800; color: var(--gold-soft);
}
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 0.96; margin: 0.8rem 0 1rem; }
.hero-copy p { font-size: 1.08rem; color: #efe7d8; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 0.92rem 1.5rem; font-weight: 800; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, #b6902d 100%); color: white; box-shadow: 0 12px 30px rgba(134,101,33,0.28); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid var(--border); }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(212,175,55,0.25); border-radius: 24px; padding: 20px; box-shadow: var(--shadow);
}
.hero-stack { display: grid; gap: 14px; }
.feature-pill { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.04); border-radius: 16px; padding: 14px; }
.feature-pill strong { font-size: 1.1rem; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); font-family: Georgia, 'Times New Roman', serif; }
.section-head a { color: var(--gold); font-weight: 700; }
.product-grid, .collection-grid, .combo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card, .collection-card, .combo-card { background: rgba(255,255,255,0.8); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(20,20,20,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover, .collection-card:hover, .combo-card:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(20,20,20,0.08); }
.product-media { position: relative; height: 300px; background: linear-gradient(135deg, #f8f4ee, #efe5d3); overflow: hidden; }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f4efe7;
  padding: 10px;
}
.badge { position: absolute; top: 12px; left: 12px; background: #141414; color: white; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.45rem 0.7rem; border-radius: 999px; }
.product-body { padding: 18px; }
.product-edition-tag {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0 0.8rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(134, 101, 33, 0.09);
  color: var(--gold-deep);
  border: 1px solid rgba(134, 101, 33, 0.25);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.format-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 24px;
}
.format-modal {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px 18px;
  box-shadow: 0 30px 70px rgba(15, 15, 15, 0.22);
}
.format-modal h3 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}
.format-modal-note {
  margin: 0 0 1rem;
  color: var(--gold-deep);
  font-weight: 700;
}
.format-choice-list {
  display: grid;
  gap: 12px;
}
.format-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.format-choice:hover {
  border-color: rgba(134, 101, 33, 0.5);
  background: rgba(134, 101, 33, 0.04);
}
.format-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.product-meta { color: var(--gold); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 800; }
.product-body h3 { font-size: 1.15rem; line-height: 1.35; min-height: 3.2em; margin: 0.4rem 0 1rem; }
.product-price-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; margin-bottom: 1rem; }
.product-price-row small { display: block; color: var(--muted); margin-bottom: 4px; }
.product-price-row strong { font-size: 1.05rem; }
.product-actions { display: flex; gap: 10px; }
.product-actions .btn { flex: 1; padding: 0.8rem 1rem; }
.collection-card, .combo-card { padding: 22px; }
.collection-head { margin-bottom: 1rem; }
.collection-head h3 { margin: 0.2rem 0 0; font-size: 1.35rem; }
.collection-card ul, .combo-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.collection-card li, .combo-card li { padding-bottom: 8px; border-bottom: 1px solid rgba(20,20,20,0.06); }
.combo-price { margin: 1rem 0; font-size: 1.8rem; font-weight: 900; color: var(--gold-deep); }
.catalog-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.field { background: rgba(255,255,255,0.8); border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 1rem; }
.field input, .field select { border: 0; background: transparent; min-width: 160px; outline: none; }
.catalog-count { color: var(--muted); font-weight: 600; }
.empty-state { background: rgba(255,255,255,0.8); border: 1px dashed var(--border); border-radius: 16px; padding: 2rem; text-align: center; color: var(--muted); }
.product-detail-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.product-detail-media img { border-radius: 24px; box-shadow: var(--shadow); }
.product-detail-content h1 { margin: 0.8rem 0 0.4rem; }
.subtitle { color: var(--muted); font-size: 1.1rem; }
.product-edition-tag {
  display: inline-flex;
  align-items: center;
  margin: 0.5rem 0 0.9rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(134, 101, 33, 0.1);
  color: var(--gold-deep);
  border: 1px solid rgba(134, 101, 33, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.meta-line { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.format-switcher { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0; }
.format-pill { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 0.8rem 1rem; font-weight: 700; cursor: pointer; }
.format-pill.active { background: var(--gold); color: white; border-color: var(--gold); }
.detail-info-box { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px; margin-top: 28px; }
.detail-info-box ul { margin: 0; padding-left: 1.3rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0,2fr) 360px; gap: 20px; }
.cart-items { display: grid; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; gap: 18px; background: rgba(255,255,255,0.8); border: 1px solid var(--border); border-radius: 18px; padding: 16px; align-items: center; }
.cart-item img { width: 110px; height: 120px; object-fit: cover; border-radius: 12px; }
.cart-item-copy h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.cart-item-copy p { margin: 0; color: var(--muted); }
.quantity-control { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.quantity-control button { width: 32px; height: 32px; border: 1px solid var(--border); background: white; border-radius: 8px; cursor: pointer; }
.quantity-control .remove-btn { width: auto; padding: 0 0.7rem; }
.cart-price { font-weight: 800; }
.cart-summary { position: sticky; top: 92px; background: rgba(255,255,255,0.8); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 18px; font-size: 1.1rem; font-weight: 800; }
.summary-row.discount { color: #1a7f5a; }
.cart-estimate-note { color: var(--muted); font-size: 0.82rem; line-height: 1.5; margin: 0.5rem 0 1rem; }
.cart-request-modal[hidden] { display: none; }
.cart-request-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; background: rgba(15,15,15,0.58); }
.cart-request-dialog { width: min(620px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; position: relative; background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 30px 70px rgba(15,15,15,0.28); }
.cart-request-dialog h2 { margin: 0 2rem 0.7rem 0; }
.cart-request-dialog > p { color: var(--muted); }
.cart-request-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 2rem; cursor: pointer; }
.cart-request-details { margin: 20px 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
.cart-request-details ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cart-request-details li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.cart-request-fields { display: grid; gap: 14px; }
.cart-request-fields label { display: grid; gap: 6px; font-weight: 700; }
.cart-request-fields input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 1rem; font: inherit; }
.cart-request-fields input:focus { outline: 2px solid rgba(134,101,33,0.32); border-color: var(--gold); }
.cart-request-feedback { margin: 0; color: var(--muted); }
.cart-request-feedback.error { color: #b42318; }
.cart-format-notice {
  position: fixed;
  z-index: 160;
  right: 20px;
  bottom: 20px;
  max-width: min(440px, calc(100vw - 40px));
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #b42318;
  border-radius: 12px;
  background: #fff;
  color: #8f1d16;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}
.cart-format-notice[hidden] { display: none; }
.footer { background: #141414; color: #f5f1e8; padding: 28px 0; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) {
  .hero-grid, .product-detail-layout, .cart-layout, .product-grid, .collection-grid, .combo-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .search-box { min-width: 0; width: 100%; }
  .nav-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
}
@media (max-width: 520px) {
  .cart-request-dialog { padding: 24px 18px; }
}
@media (max-width: 640px) {
  .nav-links { gap: 8px; }
  .nav-link { padding: 0.5rem 0.7rem; }
  .hero { padding-top: 42px; }
  .product-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 88px minmax(0,1fr); }
  .cart-price { grid-column: 2; justify-self: end; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(20,20,20,0.08);
}

.top-header {
  background: #111111;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.top-header-inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.7);
}
.brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 700px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  color: #fff;
}
.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.96rem;
}
.search-box input::placeholder { color: rgba(255,255,255,0.68); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.header-link,
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 600;
}
.header-cart {
  background: linear-gradient(135deg, var(--gold) 0%, #b6902d 100%);
  border: 0;
}
.mini-badge,
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  font-size: 0.72rem;
  font-weight: 800;
}
.dept-bar {
  background: #1a1a1a;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.dept-bar-inner {
  overflow-x: auto;
  scrollbar-width: none;
}

.dept-bar-inner::-webkit-scrollbar {
  display: none;
}
.department-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  white-space: nowrap;
}
.department-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: 0.2s ease;
}
.department-nav a:hover {
  background: rgba(212,175,55,0.15);
  color: #fff;
}
.hero-spotlight {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 24px;
}
.hero-spotlight h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.1;
}
.hero-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 20px;
}
.hero-price-row strong { font-size: 1.8rem; }
.hero-price-row span { color: rgba(255,255,255,0.72); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(243,236,223,0.9));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(20,20,20,0.04);
}
.category-icon { font-size: 2rem; }
.category-tile strong { font-size: 1.2rem; }
.category-tile small { color: var(--muted); }
.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20,20,20,0.12);
}
.favorite-button.active { background: #fbe7dd; color: #a43023; }
.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d79a06;
  margin-bottom: 12px;
}
.rating-row small { color: var(--muted); }
.price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
}
.price-stack strong { font-size: 1.4rem; }
.price-stack small {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  margin-bottom: 2px;
}
.hotmart-sync-status {
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  background: #f1ecdf;
  text-align: center;
}
.hotmart-sync-status.is-error {
  color: #8a3e18;
  background: #fff4e8;
  border: 1px solid #f0d5bd;
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
}
.brand-story-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: center;
}
.story-card {
  background: linear-gradient(135deg, rgba(134,101,33,0.12), rgba(255,255,255,0.8));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}
.story-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.catalog-sidebar {
  position: sticky;
  top: 20px;
}
.filter-box {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.filter-box h3 {
  margin-top: 0;
  margin-bottom: 14px;
}
.filter-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
}
.filter-field input,
.filter-field select {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.9rem;
}
.catalog-results {
  min-width: 0;
}
.catalog-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .top-header-inner {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-sidebar {
    position: static;
  }
  .search-box { width: 100%; }
  .header-actions { justify-content: space-between; }
  .hero-grid, .product-detail-layout, .cart-layout, .product-grid, .collection-grid, .combo-grid, .category-grid, .brand-story-inner { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .search-box { min-width: 0; width: 100%; }
  .nav-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
}
@media (max-width: 640px) {
  .header-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .header-link, .header-cart { flex: 1; justify-content: center; }
  .header-cart { width: 100%; }
  .nav-links { gap: 8px; }
  .nav-link { padding: 0.5rem 0.7rem; }
  .hero { padding-top: 42px; }
  .product-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 88px minmax(0,1fr); }
  .cart-price { grid-column: 2; justify-self: end; }
}

/* Shared visual polish */
:root {
  --gold: #8b6a26;
  --gold-soft: #dfc16c;
  --gold-deep: #604813;
  --border: rgba(36, 31, 22, 0.12);
  --shadow: 0 24px 60px rgba(20, 20, 20, 0.14);
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #fbf9f4;
}

a, button, input, select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #d9b957;
  outline-offset: 3px;
}

.site-header {
  background: rgba(18, 18, 18, 0.97);
  box-shadow: 0 8px 28px rgba(12, 12, 12, 0.18);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding-block: 12px;
}

.nav-shell .brand {
  flex: 0 0 auto;
  color: #fff;
}

.nav-shell .brand img {
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(223, 193, 108, 0.1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-inline: auto;
  color: #f7f3e9;
}

.main-nav a {
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(223, 193, 108, 0.14);
  color: #f5d985;
}

.nav-cart {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(223, 193, 108, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, #9a762b, #76591c);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(123, 91, 27, 0.24);
}

.nav-cart:hover {
  background: linear-gradient(135deg, #aa8637, #866724);
}

.nav-cart .cart-badge {
  background: #fff;
  color: #231d10;
}

.page-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0;
  background:
    radial-gradient(ellipse at 82% 8%, rgba(185, 146, 57, 0.22), transparent 36%),
    linear-gradient(120deg, #171715 0%, #29251c 100%);
  color: #fff;
}

.page-banner::after {
  position: absolute;
  right: -100px;
  bottom: -250px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(223, 193, 108, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(223, 193, 108, 0.035), 0 0 0 72px rgba(223, 193, 108, 0.025);
  content: "";
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.page-banner .kicker {
  color: #e5c873;
}

.page-banner h1 {
  max-width: 900px;
  margin: 12px 0 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

.section {
  padding-block: clamp(42px, 6vw, 72px);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  color: #211e18;
  line-height: 1.15;
  text-wrap: balance;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 180ms ease, gap 180ms ease;
}

.link-more:hover {
  gap: 10px;
  color: var(--gold-deep);
}

.catalog-layout {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 30px;
}

.catalog-sidebar {
  top: 104px;
}

.filter-box {
  border-color: rgba(36, 31, 22, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(26, 24, 19, 0.06);
}

.filter-box h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.filter-field {
  color: #3c3932;
  font-size: 0.9rem;
}

.filter-field input,
.filter-field select {
  min-height: 48px;
  border-color: rgba(36, 31, 22, 0.14);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: #aa873b;
  box-shadow: 0 0 0 3px rgba(170, 135, 59, 0.13);
  outline: none;
}

.catalog-bar {
  min-height: 48px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(36, 31, 22, 0.1);
}

.catalog-bar strong {
  color: #26231d;
  font-size: 1rem;
}

.product-grid, .collection-grid, .combo-grid {
  gap: 20px;
}

.product-card, .collection-card, .combo-card {
  border-color: rgba(36, 31, 22, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 24, 19, 0.055);
}

.product-card:hover, .collection-card:hover, .combo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(26, 24, 19, 0.12);
}

.product-media {
  height: auto;
  aspect-ratio: 1.18;
  background:
    radial-gradient(ellipse at center, #fff 0%, transparent 62%),
    linear-gradient(145deg, #f6f2e9, #e9e0ce);
}

.product-media img {
  padding: 16px;
  background: transparent;
  transition: transform 300ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.badge {
  z-index: 1;
  background: #211f1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.favorite-button {
  z-index: 1;
  border: 1px solid rgba(36, 31, 22, 0.08);
}

.product-body {
  padding: 20px;
}

.product-meta {
  color: #856526;
}

.product-body h3 {
  min-height: 2.7em;
  margin-bottom: 0.8rem;
  color: #25231e;
  font-size: 1.08rem;
  line-height: 1.38;
}

.product-price-row {
  gap: 10px;
}

.product-price-row small {
  color: #666157;
  font-size: 0.78rem;
}

.product-price-row strong {
  color: #29251c;
}

.product-actions .btn {
  min-height: 46px;
  border-radius: 11px;
}

.btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #92702b 0%, #76591d 100%);
  box-shadow: 0 8px 20px rgba(118, 89, 29, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a48137 0%, #846522 100%);
  box-shadow: 0 12px 26px rgba(118, 89, 29, 0.28);
}

.btn-secondary {
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(190, 151, 60, 0.2), transparent 36%),
    linear-gradient(125deg, #141412 0%, #29251d 100%);
}

.hero h1 {
  max-width: 720px;
  text-wrap: balance;
}

.hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border-color: rgba(223, 193, 108, 0.32);
}

.hero-spotlight {
  border-color: rgba(223, 193, 108, 0.25);
  background: rgba(15, 15, 13, 0.25);
}

.category-tile {
  border-radius: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 106, 38, 0.34);
  box-shadow: 0 18px 38px rgba(20, 20, 20, 0.09);
}

.cart-item, .cart-summary, .detail-info-box {
  border-color: rgba(36, 31, 22, 0.1);
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 24, 19, 0.045);
}

.footer {
  border-top: 1px solid rgba(223, 193, 108, 0.24);
  background: #171715;
}

.footer a {
  color: #eee8d9;
  transition: color 160ms ease;
}

.footer a:hover {
  color: #e5c873;
}

@media (max-width: 1000px) {
  .nav-shell {
    gap: 12px;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding-inline: 0.5rem;
    font-size: 0.82rem;
  }
}

.home-shelf-section {
  padding-block: 42px;
}

.home-shelf-section[hidden] { display: none !important; }

.shelf-note {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.home-category-section {
  padding-block: 34px;
  background: #f1ede4;
}

.home-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-product-grid .product-media {
  aspect-ratio: 0.86;
}

.home-product-grid .product-body {
  padding: 16px;
}

.home-product-grid .product-body h3 {
  min-height: 2.8em;
  font-size: 0.98rem;
}

.home-product-grid .product-price-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-product-grid .product-price-row strong {
  font-size: 0.92rem;
}

.home-product-grid .product-actions .btn {
  min-height: 42px;
  padding: 0.65rem 0.7rem;
  font-size: 0.84rem;
}

.hero {
  padding-block: 40px 36px;
}

.hero h1 {
  font-size: clamp(2.7rem, 4.5vw, 4rem);
}

.hero-copy p {
  margin-block: 0.65rem;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 20px;
}

.hero-card {
  padding: 14px;
}

.hero-spotlight {
  padding: 20px;
}

.hero-spotlight h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.hero-price-row {
  margin-block: 12px 14px;
}

.home-shelf-section .section-head h2 {
  margin-top: 4px;
}

.home-shelf-section .section-head .kicker,
.home-category-section .section-head .kicker {
  color: #806127;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-block: 34px;
  }
}

@media (max-width: 640px) {
  .home-shelf-section {
    padding-block: 30px;
  }

  .home-product-grid {
    gap: 10px;
  }

  .home-product-grid .product-media {
    aspect-ratio: 0.8;
  }

  .home-product-grid .product-media img {
    padding: 9px;
  }

  .home-product-grid .product-body {
    padding: 12px;
  }

  .home-product-grid .product-body h3 {
    min-height: 0;
    font-size: 0.9rem;
  }

  .home-product-grid .product-price-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .home-product-grid .product-actions .btn {
    padding-inline: 0.4rem;
    font-size: 0.76rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.2rem);
  }
}

@media (max-width: 900px) {
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-card {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero {
    padding-block: 26px;
  }

  .hero-copy p {
    margin-block: 0.45rem;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-actions .btn-secondary {
    display: none;
  }

  .home-category-section .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-category-section .category-tile {
    min-height: 118px;
    padding: 14px;
  }

  .home-category-section .category-tile strong {
    font-size: 1rem;
  }

  .home-product-grid {
    gap: 10px;
  }
}

/* Marketplace-style home storefront */
.home-books-nav {
  border-bottom: 1px solid #d9dfe3;
  background: #fff;
  color: #25313a;
}

.home-books-nav > .container {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.home-books-nav > .container::-webkit-scrollbar {
  display: none;
}

.home-books-nav a {
  color: #303a42;
  font-size: 0.82rem;
  text-decoration: none;
}

.home-books-nav .home-books-label {
  padding-right: 20px;
  border-right: 1px solid #d9dfe3;
  color: #17232e;
  font-size: 1.1rem;
  font-weight: 800;
}

.home-format-filter {
  border-bottom: 1px solid #d9dfe3;
  background: #fff;
}

.home-format-filter > .container {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.home-format-filter > .container::-webkit-scrollbar {
  display: none;
}

.home-format-filter strong {
  margin-right: 2px;
  font-size: 0.82rem;
}

.home-format-filter a {
  padding: 7px 15px;
  border: 1px solid #bfc4c8;
  border-radius: 18px;
  background: #fff;
  color: #25313a;
  font-size: 0.8rem;
  text-decoration: none;
}

.home-format-filter a:hover {
  border-color: #8a6a2a;
  background: #fffaf0;
}

.home-page .home-shelf-section {
  padding-block: 20px 12px;
  background: #fff;
}

.home-page .home-shelf-section .section-head {
  align-items: center;
  margin-bottom: 10px;
}

.home-page .home-shelf-section .section-head h1,
.home-page .home-shelf-section .section-head h2 {
  margin: 0;
  color: #171b1e;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-page .home-shelf-section .section-head .kicker {
  display: none;
}

.home-page .home-shelf-section .home-product-grid {
  gap: 14px;
}

.home-page .home-shelf-section .home-product-grid > .product-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .home-shelf-section .home-product-grid .product-media {
  height: 220px;
  margin-bottom: 7px;
  background: #fff;
}

.home-page .home-shelf-section .home-product-grid .product-media img {
  padding: 0;
  background: #fff;
}

.home-page .home-shelf-section .home-product-grid .product-media .badge,
.home-page .home-shelf-section .home-product-grid .product-media .favorite-button {
  display: none;
}

.home-page .home-shelf-section .home-product-grid .product-body {
  padding: 0;
}

.home-page .home-shelf-section .home-product-grid .product-body .product-meta,
.home-page .home-shelf-section .home-product-grid .product-body .product-edition-tag,
.home-page .home-shelf-section .home-product-grid .product-body .product-actions {
  display: none;
}

.home-page .home-shelf-section .home-product-grid .product-body h3 {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0;
  overflow: hidden;
  color: #1768a5;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-page .home-shelf-section .home-product-grid .product-price-row {
  display: block;
  margin-top: 5px;
}

.home-page .home-shelf-section .home-product-grid .product-price-row > div:not(:first-child) {
  display: none;
}

.home-page .home-shelf-section .home-product-grid .product-price-row small {
  display: block;
  margin: 0;
  color: #4b5358;
  font-size: 0.68rem;
}

.home-page .home-shelf-section .home-product-grid .product-price-row strong {
  color: #111;
  font-size: 0.85rem;
}

.home-page .home-shelf-section .shelf-actions {
  gap: 16px;
}

.home-page .home-shelf-section .shelf-actions > a {
  color: #1768a5;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.home-page .home-shelf-section .shelf-actions > a:hover {
  text-decoration: underline;
}

.home-page .home-shelf-section .carousel-controls {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  justify-content: space-between;
  pointer-events: none;
}

.home-page .home-shelf-section .container {
  position: relative;
}

.home-page .home-shelf-section .carousel-controls button {
  width: 36px;
  height: 42px;
  border: 1px solid #c9ced1;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
}

.home-page .home-category-section {
  padding-block: 34px;
}

.home-promo-banners {
  display: grid;
  gap: 10px;
  padding-block: 10px 26px;
}

.home-promo-banner {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: 20px 28px;
  color: #fff;
  text-decoration: none;
}

.home-promo-study {
  background: linear-gradient(105deg, #165db3 0%, #087bda 72%, #073b83 100%);
}

.home-promo-combo {
  background: linear-gradient(105deg, #8a236f 0%, #b82a79 58%, #ef6c18 100%);
}

.home-promo-copy {
  display: grid;
  gap: 5px;
}

.home-promo-copy small {
  font-size: 0.82rem;
  font-weight: 700;
}

.home-promo-copy strong {
  max-width: 700px;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.15;
}

.home-promo-copy > span {
  font-size: 0.9rem;
}

.home-promo-action {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 24px;
  background: #fff;
  color: #26323b;
  font-weight: 700;
}

.home-promo-banner:hover .home-promo-action {
  background: #fff6d9;
}

.home-page + .footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  background: #202f3e;
}

.home-back-to-top {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  background: #34485c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.home-back-to-top:hover {
  background: #40566c;
}

.home-page + .footer .home-footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding-block: 26px 34px;
}

.home-page + .footer .home-footer-grid h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.home-page + .footer .home-footer-grid p {
  margin: 6px 0;
  color: #e1e6eb;
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-page + .footer .home-footer-grid a {
  color: #e1e6eb;
  text-decoration: none;
}

.home-page + .footer .home-footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 641px) {
  .home-page .home-shelf-section .carousel-controls {
    top: 118px;
  }
}

@media (max-width: 640px) {
  .home-books-nav > .container {
    min-height: 34px;
    gap: 14px;
  }

  .home-books-nav a {
    font-size: 0.72rem;
  }

  .home-books-nav .home-books-label {
    padding-right: 12px;
    font-size: 0.95rem;
  }

  .home-format-filter > .container {
    min-height: 42px;
    gap: 6px;
  }

  .home-format-filter strong {
    font-size: 0.7rem;
  }

  .home-format-filter a {
    padding: 6px 10px;
    font-size: 0.68rem;
  }

  .home-page .home-shelf-section {
    padding-block: 14px 7px;
  }

  .home-page .home-shelf-section .section-head {
    margin-bottom: 7px;
  }

  .home-page .home-shelf-section .section-head h1,
  .home-page .home-shelf-section .section-head h2 {
    font-size: 0.95rem;
  }

  .home-page .home-shelf-section .home-product-grid {
    gap: 6px;
  }

  .home-page .home-shelf-section .home-product-grid .product-media {
    height: 118px;
    margin-bottom: 4px;
  }

  .home-page .home-shelf-section .home-product-grid .product-body h3 {
    min-height: 3.6em;
    font-size: 0.62rem;
  }

  .home-page .home-shelf-section .home-product-grid .product-price-row {
    margin-top: 3px;
  }

  .home-page .home-shelf-section .home-product-grid .product-price-row small {
    font-size: 0.56rem;
  }

  .home-page .home-shelf-section .home-product-grid .product-price-row strong {
    font-size: 0.68rem;
  }

  .home-page .home-shelf-section .shelf-actions {
    gap: 4px;
  }

  .home-page .home-shelf-section .shelf-actions > a {
    font-size: 0.66rem;
  }

  .home-page .home-shelf-section .carousel-controls {
    top: 76px;
    right: -5px;
    left: -5px;
  }

  .home-page .home-shelf-section .carousel-controls button {
    width: 28px;
    height: 32px;
  }

  .home-promo-banners {
    gap: 8px;
    padding-block: 8px 18px;
  }

  .home-promo-banner {
    min-height: 104px;
    gap: 10px;
    padding: 14px;
  }

  .home-promo-copy {
    gap: 4px;
  }

  .home-promo-copy small {
    font-size: 0.64rem;
  }

  .home-promo-copy strong {
    font-size: 1rem;
  }

  .home-promo-copy > span {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .home-promo-action {
    padding: 8px 10px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .home-page + .footer .home-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    padding-block: 22px;
  }

  .home-page + .footer .home-footer-grid h3 {
    font-size: 0.78rem;
  }

  .home-page + .footer .home-footer-grid p {
    font-size: 0.7rem;
  }
}

/* Product detail layout */
.product-detail-layout {
  grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.25fr) minmax(250px, 0.82fr);
  gap: clamp(20px, 3vw, 42px);
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-breadcrumb a,
.product-author-line a,
.purchase-help {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-detail-gallery {
  position: sticky;
  top: 20px;
}

.product-detail-media {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #f5f3ef;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.product-detail-media img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 14px 32px rgba(25, 20, 12, 0.18);
}

.gallery-caption {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.product-meta {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail-content h1 {
  margin: 8px 0;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.18;
}

.product-author-line {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.product-author-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0.4rem 0 1rem;
  color: var(--ink);
  text-decoration: none;
}
.product-author-profile img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--gold);
}
.product-author-profile span {
  color: var(--muted);
}
.product-author-profile strong {
  color: var(--ink);
}
.product-author-profile:hover strong {
  color: var(--gold-deep);
}
.product-detail-description {
  color: var(--muted);
  line-height: 1.7;
}

.product-detail-highlights h2,
.product-specifications h2,
.product-related-heading h2 {
  font-size: 1.25rem;
}

.product-detail-highlights ul {
  padding-left: 1.2rem;
  line-height: 1.7;
}

.product-purchase-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 20, 12, 0.07);
}

.product-availability {
  display: block;
  margin-bottom: 18px;
  color: #426b39;
  font-size: 0.88rem;
  font-weight: 700;
}

.purchase-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.product-purchase-card .format-switcher {
  display: grid;
  gap: 8px;
  margin: 10px 0 16px;
}

.product-purchase-card .format-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
}

.product-purchase-card .format-pill.active {
  color: var(--ink, #211e18);
  background: #fffaf0;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.product-price-row.detail-price-box {
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.detail-price-box small,
.detail-price-box strong {
  display: block;
}

.detail-price-box strong {
  margin-top: 4px;
  color: #171717;
  font-size: 1.7rem;
}

.product-quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.9rem;
}

.product-quantity-field select {
  min-width: 74px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.product-detail-actions {
  display: grid;
  gap: 9px;
}

.product-detail-actions .btn {
  width: 100%;
  justify-content: center;
}

.purchase-note {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.purchase-help {
  font-size: 0.82rem;
}

.product-specifications {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.product-specifications dl {
  margin: 0;
}

.product-specifications dl > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.product-specifications dt {
  color: var(--muted);
}

.product-specifications dd {
  margin: 0;
  font-weight: 650;
}

.product-related-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.product-related-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.product-related-heading h2 {
  margin: 0;
  color: #171717;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.product-shelf-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.product-shelf-actions > a {
  color: #1768a5;
  font-size: 0.88rem;
  text-decoration: none;
}

.product-shelf-actions > a:hover {
  text-decoration: underline;
}

.product-shelf-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.product-shelf-track::-webkit-scrollbar {
  display: none;
}

.product-shelf-card {
  display: flex;
  flex: 0 0 calc((100% - 108px) / 7);
  min-width: 0;
  flex-direction: column;
  scroll-snap-align: start;
}

.product-shelf-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-shelf-link:hover .product-shelf-title {
  color: #1768a5;
  text-decoration: underline;
}

.product-shelf-cover {
  display: grid;
  width: 100%;
  height: 238px;
  place-items: center;
  margin-bottom: 8px;
  background: #fff;
}

.product-shelf-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-shelf-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.7em;
  color: #1768a5;
  font-size: 0.88rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-shelf-prices {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}

.product-shelf-prices span {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
  align-items: baseline;
}

.product-shelf-prices small {
  color: var(--muted);
  font-size: 0.72rem;
}

.product-shelf-prices strong {
  color: #171717;
  font-size: 0.9rem;
}

.gallery-mobile-caption,
.product-mobile-benefits {
  display: none;
}

@media (max-width: 1000px) {
  .product-detail-layout {
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
  }

  .product-purchase-card {
    grid-column: 2;
  }

  .product-detail-gallery {
    grid-row: span 2;
  }

  .product-shelf-card {
    flex-basis: calc((100% - 72px) / 5);
  }
}

@media (max-width: 640px) {
  .product-page > .section {
    padding-block: 10px 28px;
  }

  #product-detail {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .product-breadcrumb {
    order: 0;
    margin-bottom: 10px;
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
  }

  .product-detail-layout {
    order: 1;
    grid-template-columns: minmax(56px, 0.62fr) minmax(0, 1.55fr) minmax(88px, 0.92fr);
    gap: 8px;
    align-items: start;
  }

  .product-detail-gallery {
    position: static;
    min-width: 0;
    grid-row: auto;
  }

  .product-detail-media {
    width: 100%;
    min-height: 0;
    height: 112px;
    max-height: none;
    padding: 3px;
    border-radius: 4px;
  }

  .product-detail-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    box-shadow: none;
  }

  .gallery-caption {
    display: none;
  }

  .gallery-mobile-caption {
    display: block;
    margin-top: 5px;
    color: #1768a5;
    font-size: 0.62rem;
    line-height: 1.25;
    text-align: center;
  }

  .product-purchase-card {
    grid-column: auto;
    min-width: 0;
    padding: 7px;
    border-radius: 6px;
    box-shadow: none;
  }

  .product-availability {
    margin-bottom: 7px;
    font-size: 0.61rem;
    line-height: 1.2;
  }

  .purchase-label {
    display: block;
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .product-purchase-card .format-switcher {
    gap: 5px;
    margin: 6px 0;
  }

  .product-purchase-card .format-pill {
    display: grid;
    gap: 2px;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .product-purchase-card .format-pill strong {
    font-size: 0.66rem;
  }

  .product-price-row.detail-price-box {
    margin: 6px 0;
    padding-top: 5px;
  }

  .detail-price-box small {
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .detail-price-box strong {
    font-size: 0.92rem;
  }

  .product-quantity-field {
    gap: 4px;
    margin: 7px 0;
    font-size: 0.62rem;
  }

  .product-quantity-field select {
    min-width: 42px;
    padding: 4px;
    font-size: 0.66rem;
  }

  .product-detail-actions {
    gap: 5px;
  }

  .product-detail-actions .btn {
    min-height: 28px;
    padding: 5px 3px;
    border-radius: 5px;
    font-size: 0.58rem;
    line-height: 1.15;
  }

  .purchase-note,
  .purchase-help {
    display: none;
  }

  .product-detail-content {
    min-width: 0;
  }

  .product-detail-content .product-meta {
    display: block;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
  }

  .product-detail-content h1 {
    margin: 4px 0;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .product-detail-content .subtitle {
    margin: 4px 0;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .product-author-line {
    margin: 4px 0;
    padding-bottom: 5px;
    font-size: 0.64rem;
    line-height: 1.25;
  }

  .product-detail-description {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .product-detail-description p {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
  }

  .product-detail-highlights {
    display: none;
  }

  .product-mobile-benefits {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 16px -14px 30px;
    padding: 10px 14px;
    background: #e6f0f8;
  }

  .product-mobile-benefits article {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border: 1px solid #e4e8ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(20, 39, 55, 0.08);
  }

  .product-mobile-benefits strong {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .product-mobile-benefits span {
    color: var(--muted);
    font-size: 0.56rem;
    line-height: 1.25;
  }

  .product-related-section[aria-labelledby="product-related-grid-title"] {
    order: 3;
  }

  .product-related-section[aria-labelledby="product-more-grid-title"] {
    order: 4;
  }

  .product-reviews {
    order: 6;
  }

  .product-specifications {
    order: 5;
    margin-top: 18px;
    padding: 12px;
  }

  .product-specifications h2 {
    margin-top: 0;
    font-size: 0.95rem;
  }

  .product-specifications dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-related-heading {
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
  }

  .product-related-heading h2 {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .product-related-section {
    position: relative;
    margin-top: 20px;
    padding-top: 14px;
  }

  .product-shelf-actions {
    display: contents;
  }

  .product-shelf-actions > a {
    white-space: nowrap;
    font-size: 0.7rem;
  }

  .product-shelf-actions .carousel-controls {
    position: absolute;
    z-index: 1;
    top: 66px;
    right: -5px;
    left: -5px;
    justify-content: space-between;
    gap: 0;
    pointer-events: none;
  }

  .product-shelf-actions .carousel-controls button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
  }

  .product-shelf-card {
    flex-basis: calc((100% - 42px) / 8);
  }

  .product-shelf-track {
    gap: 6px;
    padding-bottom: 7px;
  }

  .product-shelf-cover {
    height: 78px;
    margin-bottom: 4px;
  }

  .product-shelf-title {
    min-height: 3.6em;
    font-size: 0.56rem;
    line-height: 1.2;
    -webkit-line-clamp: 3;
  }

  .product-shelf-prices {
    gap: 2px;
    margin-top: 4px;
  }

  .product-shelf-prices span {
    display: block;
    line-height: 1.15;
  }

  .product-shelf-prices small {
    display: block;
    overflow: hidden;
    font-size: 0.49rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-shelf-prices strong {
    font-size: 0.58rem;
  }

  .home-shelf-section {
    padding-block: 18px 14px;
  }

  .home-shelf-section .container {
    position: relative;
  }

  .home-shelf-section .section-head {
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .home-shelf-section .section-head > div:first-child {
    min-width: 0;
  }

  .home-shelf-section .section-head .kicker {
    display: none;
  }

  .home-shelf-section .section-head h2 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .home-shelf-section .shelf-actions {
    display: contents;
  }

  .home-shelf-section .shelf-actions > a {
    flex: 0 0 auto;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .home-shelf-section .carousel-controls {
    position: absolute;
    z-index: 2;
    top: 62px;
    right: -5px;
    left: -5px;
    justify-content: space-between;
    gap: 0;
    pointer-events: none;
  }

  .home-shelf-section .carousel-controls button {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
  }

  .home-product-grid {
    gap: 6px;
    padding: 2px 1px 8px;
  }

  .home-product-grid > .product-card {
    flex-basis: calc((100% - 24px) / 5);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-product-grid .product-media {
    height: 118px;
    aspect-ratio: auto;
    margin-bottom: 4px;
    background: #fff;
  }

  .home-product-grid .product-media img {
    padding: 0;
    border-radius: 0;
  }

  .home-product-grid .product-media .badge,
  .home-product-grid .favorite-button,
  .home-product-grid .product-body .product-meta,
  .home-product-grid .product-body .product-edition-tag,
  .home-product-grid .product-actions {
    display: none;
  }

  .home-product-grid .product-body {
    padding: 0;
  }

  .home-product-grid .product-body h3 {
    display: -webkit-box;
    min-height: 3.8em;
    margin: 0;
    overflow: hidden;
    color: #1768a5;
    font-size: 0.65rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .home-product-grid .product-price-row {
    display: block;
    margin-top: 4px;
  }

  .home-product-grid .product-price-row > div {
    margin-bottom: 3px;
  }

  .home-product-grid .product-price-row small {
    display: block;
    overflow: hidden;
    margin: 0;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-product-grid .product-price-row strong {
    font-size: 0.7rem;
  }
}

.shelf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(36, 31, 22, 0.2);
  border-radius: 50%;
  background: #fff;
  color: #273440;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(26, 24, 19, 0.08);
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.carousel-controls button:hover:not(:disabled) {
  border-color: #9a762b;
  background: #f6edda;
}

.carousel-controls button:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.home-product-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 14px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-product-grid::-webkit-scrollbar {
  display: none;
}

.home-product-grid > .product-card {
  flex: 0 0 calc((100% - 84px) / 7);
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 1100px) {
  .home-product-grid > .product-card {
    flex-basis: calc((100% - 56px) / 5);
  }
}

@media (max-width: 900px) {
  .section-head {
    align-items: flex-start;
  }

  .shelf-actions {
    justify-content: space-between;
    width: 100%;
  }

  .home-product-grid > .product-card {
    flex-basis: calc((100% - 42px) / 4);
  }
}

@media (max-width: 640px) {
  .shelf-actions {
    gap: 8px;
  }

  .carousel-controls {
    gap: 6px;
  }

  .carousel-controls button {
    width: 34px;
    height: 34px;
  }

  .home-product-grid {
    gap: 10px;
  }

  .home-product-grid > .product-card {
    flex-basis: calc((100% - 24px) / 5);
  }
}

@media (max-width: 900px) {
  .nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    min-height: 0;
    padding-block: 12px 10px;
  }

  .nav-shell .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .nav-shell .brand strong {
    font-size: 0.95rem;
  }

  .nav-cart {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .top-header-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding-block: 12px;
  }

  .top-header-inner > .brand {
    justify-self: start;
  }

  .top-header-inner > .search-box {
    grid-row: auto;
    width: 100%;
  }

  .top-header-inner > .header-actions {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
  }

  .top-header-inner .header-link,
  .top-header-inner .header-cart {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding-inline: 0.45rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .top-header-inner .header-cart {
    width: auto;
  }

  .page-banner {
    padding-block: 42px;
  }

  .page-banner h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .section-head h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .product-grid, .collection-grid, .combo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .product-media {
    aspect-ratio: 1.2;
  }

  .catalog-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .filter-box {
    padding: 18px;
  }

  .filter-field {
    margin-top: 14px;
  }

  .hero {
    padding-block: 48px 42px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Marketplace storefront layout */
.site-header {
  background: #17232e;
  color: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 31, 0.22);
}

.top-header {
  background: #17232e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header-inner {
  grid-template-columns: minmax(330px, 390px) minmax(180px, 460px) minmax(0, 1fr);
  gap: 14px;
  min-height: 84px;
}

.top-header-inner > .brand {
  min-width: 0;
}

.top-header-inner > .brand strong {
  color: #fff;
  font-size: 1.08rem;
  white-space: nowrap;
}

.top-header-inner > .brand span {
  color: #d3d8dc;
}

.top-header-inner > .search-box {
  width: 100%;
  min-width: 0;
  padding: 0.25rem 0.35rem 0.25rem 0.85rem;
  border: 2px solid #c49b45;
  border-radius: 9px;
  background: #fff;
  color: #4e5358;
}

.top-header-inner > .search-box:focus-within {
  border-color: #edc76e;
  box-shadow: 0 0 0 3px rgba(237, 199, 110, 0.2);
}

.top-header-inner > .search-box > span {
  display: grid;
  width: 30px;
  height: 32px;
  place-items: center;
  color: #46515a;
  font-size: 1.75rem;
  line-height: 1;
}

.top-header-inner > .search-box input {
  min-width: 0;
  padding: 0.55rem 0.35rem;
  color: #20262b;
}

.top-header-inner > .search-box input::placeholder {
  color: #777d82;
}

.top-header-inner .search-submit {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #e9cd82;
  color: #273440;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.top-header-inner .search-submit:hover {
  background: #e1bd5e;
}

.top-header-inner > .header-actions {
  gap: 6px;
}

.top-header-inner .header-link,
.top-header-inner .header-cart {
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  white-space: nowrap;
}

.top-header-inner .header-link:hover,
.top-header-inner .header-cart:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.top-header-inner .header-cart {
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
}

.top-header-inner .cart-badge,
.top-header-inner .mini-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  background: #e3bd63;
  color: #17232e;
}

.dept-bar {
  background: #263541;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.department-nav {
  min-height: 42px;
  gap: 4px;
}

.menu-socials {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  position: relative;
  order: 2;
  margin-left: auto;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-socials a {
  display: grid;
  position: relative;
  width: 25px;
  height: 25px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f2f4f5;
}

.menu-socials a:hover {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
}

.menu-socials a::after {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 50%;
  padding: 5px 8px;
  border-radius: 5px;
  background: #111;
  color: #fff;
  content: attr(aria-label);
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.menu-socials a:hover::after,
.menu-socials a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.menu-socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.menu-socials text {
  fill: currentColor;
}

.department-nav a {
  padding: 0.42rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #f2f4f5;
  font-size: 0.82rem;
}

.department-nav a:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: transparent;
  color: #fff;
}

.hotmart-sync-status {
  max-width: 1180px;
  padding: 8px 16px;
  background: #f0eee8;
  text-align: left;
}

.page-banner {
  padding-block: 38px;
  background: #f2eee5;
  color: #1f2327;
}

.page-banner::after {
  display: none;
}

.page-banner .kicker {
  color: #77591e;
}

.page-banner h1 {
  max-width: 860px;
}

/* Author page layout */
.author-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.author-card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.author-photo-wrapper {
  overflow: hidden;
  border-radius: 14px;
  background: #17232e;
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.author-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 461 / 703;
  object-fit: contain;
  display: block;
}

.author-card-info {
  margin-top: 14px;
}

.author-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: #77591e;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.author-card-sub {
  margin: 10px 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

.author-card-meta {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
}

.author-card-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.author-card-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.author-biography {
  max-width: 780px;
}

.author-biography .lead {
  font-size: 1.14rem;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.author-biography p {
  line-height: 1.85;
  color: #334155;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.author-socials {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.author-socials h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--ink);
}

.author-socials p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.author-socials strong {
  color: var(--gold-deep);
}

.author-closing {
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 1.12rem;
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .author-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .author-card {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
}

.catalog-layout {
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 22px;
}

.catalog-layout .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog-layout .product-media {
  aspect-ratio: 0.95;
}

.catalog-layout .product-body {
  padding: 15px;
}

.catalog-layout .product-body h3 {
  min-height: 3em;
  font-size: 0.98rem;
}

.catalog-layout .product-price-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-layout .product-price-row strong {
  font-size: 0.92rem;
}

.catalog-layout .product-actions .btn {
  padding-inline: 0.65rem;
  font-size: 0.85rem;
}

.filter-box {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26, 24, 19, 0.05);
}

.product-card, .collection-card, .combo-card {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26, 24, 19, 0.08);
}

.product-card:hover, .collection-card:hover, .combo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 24, 19, 0.14);
}

.product-actions .btn-primary {
  border: 1px solid #c99c36;
  background: #f1d58b;
  color: #202326;
  box-shadow: none;
}

.product-actions .btn-primary:hover {
  background: #e7c66b;
}

@media (max-width: 1100px) {
  .top-header-inner {
    grid-template-columns: minmax(290px, 330px) minmax(160px, 1fr) auto;
    gap: 8px;
  }

  .top-header-inner .header-link,
  .top-header-inner .header-cart {
    padding-inline: 0.45rem;
    font-size: 0.72rem;
  }

  .catalog-layout .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .top-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 0;
    padding-block: 10px;
  }

  .top-header-inner > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .top-header-inner > .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .top-header-inner > .header-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    flex-wrap: nowrap;
  }

  .top-header-inner .header-link,
  .top-header-inner .header-cart {
    flex: 0 1 auto;
    width: auto;
  }

  .dept-bar-inner {
    width: 100%;
    padding-inline: 14px;
  }

  .department-nav {
    min-height: 40px;
  }

  .catalog-layout .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding-block: 9px;
  }

  .top-header-inner > .brand img {
    width: 48px;
    height: 48px;
  }

  .top-header-inner > .brand strong {
    font-size: 0.78rem;
  }

  .top-header-inner > .brand span {
    font-size: 0.68rem;
  }

  .audiobooks-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .top-header-inner > .header-actions {
    gap: 2px;
  }

  .top-header-inner .header-link {
    display: none;
  }

  .top-header-inner .header-cart {
    min-height: 40px;
    padding-inline: 0.4rem;
    font-size: 0.7rem;
  }

  .top-header-inner > .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 42px;
  }

  .dept-bar-inner {
    padding-inline: 8px;
  }

  .department-nav {
    min-height: 42px;
    gap: 2px;
  }

  .department-nav a {
    padding-inline: 0.58rem;
    font-size: 0.74rem;
  }

  .page-banner {
    padding-block: 25px;
  }

  .page-banner h1 {
    font-size: 1.75rem;
  }

  .catalog-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-layout .product-media {
    aspect-ratio: 0.88;
  }

  .catalog-layout .product-media img {
    padding: 9px;
  }

  .catalog-layout .product-body {
    padding: 12px;
  }

  .catalog-layout .product-body h3 {
    min-height: 0;
    font-size: 0.9rem;
  }

  .catalog-layout .product-price-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .catalog-layout .product-price-row small {
    margin-bottom: 0;
  }

  .catalog-layout .product-actions .btn {
    padding: 0.65rem 0.45rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-card {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 9vw, 2.8rem);
  }

  .home-category-section .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-category-section .category-tile {
    min-height: 118px;
    padding: 14px;
  }

  .home-category-section .category-tile strong {
    font-size: 1rem;
  }

  .home-product-grid {
    gap: 10px;
  }
}

/* Avaliações e comentários */
.product-media-link { display: block; width: 100%; height: 100%; }
.product-title-link { color: inherit; text-decoration: none; }
.product-title-link:hover { color: var(--gold); }
.product-media img { background: transparent; }
.stars { color: var(--gold-soft); letter-spacing: 0.08em; }
.stars-empty { color: #d8cfbd; }
.rating-summary { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted, #6b6258); text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.product-reviews { margin: 3rem 0; scroll-margin-top: 100px; }
.reviews-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr); gap: 2rem; margin-bottom: 2rem; }
.reviews-summary, .review-form { background: rgba(255,255,255,0.85); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; display: grid; gap: 0.6rem; align-content: start; }
.reviews-average { font-size: 2.6rem; line-height: 1; }
.review-bar { display: grid; grid-template-columns: 2.2rem 1fr 2.6rem; gap: 0.5rem; align-items: center; font-size: 0.8rem; }
.review-bar i { height: 8px; background: #eadfca; border-radius: 99px; overflow: hidden; }
.review-bar b { display: block; height: 100%; background: var(--gold-soft); }
.review-form label { display: grid; gap: 0.3rem; font-weight: 600; }
.review-form input[type="text"], .review-form textarea { font: inherit; padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.rating-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.rating-input legend { float: left; width: 100%; font-weight: 600; margin-bottom: 0.3rem; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.9rem; color: #d8cfbd; cursor: pointer; display: inline; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold-soft); }
.rating-input input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }
.review-feedback { color: #a02a2a; font-weight: 600; margin: 0; }
.review-note { font-size: 0.8rem; color: #6b6258; margin: 0; }
.review-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.review-item header { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.review-item time { font-size: 0.8rem; color: #6b6258; }
.review-item p { margin: 0.5rem 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-delete { background: none; border: 0; padding: 0; color: #a02a2a; font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
@media (max-width: 760px) { .reviews-layout { grid-template-columns: 1fr; } }
