:root {
  --text: #1a1a1a;
  --text-muted: #666;
  --line: #e4e4e4;
  --bg: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

/* --- Layout: two columns --- */
.shop-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 50px 96px;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* --- Left column: carousel --- */
.bio-gallery {
  min-width: 0;
}

.bio-slides {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #f5f5f5;
  overflow: hidden;
}

.bio-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.bio-slide.is-current {
  opacity: 1;
  pointer-events: auto;
}

/* --- Controls: arrows, dots, pause --- */
.bio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.bio-controls[hidden] {
  display: none;
}

.bio-arrow {
  background: none;
  border: none;
  padding: 4px 6px;
  font-family: var(--font);
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.bio-arrow:hover {
  opacity: 0.5;
}

.bio-dots {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bio-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #777;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bio-dot:hover {
  border-color: var(--text);
}

.bio-dot.is-active {
  background: var(--text);
  border-color: var(--text);
}

.bio-play {
  margin-left: 8px;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--font);
  font-size: 11px;
  color: #777;
  cursor: pointer;
}

.bio-play:hover {
  color: var(--text);
}

.bio-arrow:focus-visible,
.bio-dot:focus-visible,
.bio-play:focus-visible,
.shop-buy-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .bio-slide {
    transition: none;
  }
}

/* --- Right column: details --- */
.shop-details {
  min-width: 0;
}

.shop-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777;
}

.shop-title {
  margin: 0 0 24px;
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.shop-lead {
  margin: 0 0 32px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
}

.shop-text p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}

/* --- Tabs: Description / Additional information --- */
.shop-tabs {
  margin-top: 72px;
}

.shop-tablist {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.shop-tab {
  position: relative;
  margin-bottom: -1px;
  padding: 20px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.shop-tab:hover,
.shop-tab.is-active {
  color: #8a7557;
}

.shop-tab.is-active {
  border-bottom-color: #8a7557;
}

.shop-tab:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -4px;
}

.shop-tabpanel {
  padding: 22px 6px 0;
}

.shop-tabpanel[hidden] {
  display: none;
}

.shop-tabpanel p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}

.shop-info-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 640px;
}

.shop-info-table th,
.shop-info-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  text-align: left;
}

.shop-info-table th {
  width: 160px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #777;
}

.shop-info-table td {
  color: var(--text);
}

/* --- Price & button --- */
.shop-price {
  margin: 28px 0 24px;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text);
}

.shop-price small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.shop-buy-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--text);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s ease;
}

.shop-buy-button:hover {
  background: #444;
}

/* --- Mobile --- */
@media (max-width: 900px) {
  .shop-page {
    padding: 24px 20px 64px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shop-title {
    font-size: 1.9rem;
  }

  .shop-tabs {
    margin-top: 48px;
  }

  .shop-tablist {
    gap: 8px;
  }

  .shop-tab {
    padding: 16px 12px;
    font-size: 0.75rem;
  }

  .shop-tabpanel {
    padding-top: 16px;
  }

  .shop-buy-button {
    display: block;
    width: 100%;
  }
}


/* Ensure inactive information panels are hidden */
.shop-tabpanel[hidden] {
  display: none !important;
}

/* Make tabs clickable */
.shop-tab {
  cursor: pointer;
  pointer-events: auto;
}

/* White background around shop photographs only. */
.page-shop .bio-slides {
  background: #fff;
}

/* Keep the book title and subtitle together. */
.page-shop .shop-title {
  margin-bottom: 6px;
}
.page-shop .shop-title + h3 {
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.4;
}