/* Card Collector Shop — A5 Binder storefront */
:root {
  --bg: #faf8fb;
  --surface: #ffffff;
  --ink: #1a1224;
  --muted: #6b5f78;
  --line: #e8e0ef;
  --accent: #c45b9a;
  --accent-hover: #a84482;
  --pink: #f2a0c8;
  --pink-deep: #e878b0;
  --purple: #9b7bc9;
  --purple-deep: #7a5aad;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(26, 18, 36, 0.08);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.gallery-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.25rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.gallery-main[data-color="pink"] {
  background: linear-gradient(160deg, #fff5fa 0%, #ffffff 55%);
}

.gallery-main[data-color="purple"] {
  background: linear-gradient(160deg, #f4f0fb 0%, #ffffff 55%);
}

.binder-mock {
  width: min(220px, 70%);
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 10px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(26, 18, 36, 0.18);
  transition: background 0.25s ease;
}

.gallery-main[data-color="pink"] .binder-mock {
  background: linear-gradient(145deg, var(--pink) 0%, var(--pink-deep) 100%);
}

.gallery-main[data-color="purple"] .binder-mock {
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-deep) 100%);
}

.binder-spine {
  width: 18%;
  background: rgba(0, 0, 0, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.binder-cover {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.binder-label {
  font-size: 1.6rem;
}

.binder-sub {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.binder-pocket {
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 42%;
  height: 28%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
}

.gallery-caption {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-thumbs {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
  justify-content: center;
}

.thumb {
  border: 2px solid transparent;
  background: var(--surface);
  border-radius: 10px;
  padding: 0.35rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.thumb.active,
.thumb:hover {
  border-color: var(--ink);
}

.swatch {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.swatch.pink {
  background: linear-gradient(145deg, var(--pink), var(--pink-deep));
}

.swatch.purple {
  background: linear-gradient(145deg, var(--purple), var(--purple-deep));
}

/* Buy panel */
.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.buy-panel h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.tagline {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.price {
  margin: 1.25rem 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price .amount {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price .currency {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.color-picker {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.color-picker legend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.color-option:has(input:checked) {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selected-color {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-buy:hover {
  background: #2c2038;
  color: #fff !important;
}

.btn-buy:active {
  transform: scale(0.985);
}

.payment-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 360px;
}

.todo-hint {
  display: block;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: #fff6e8;
  border: 1px dashed #e0b86a;
  border-radius: 8px;
  color: #7a5a1a;
  font-size: 0.78rem;
}

.todo-hint code {
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.cta-copy {
  margin: 1.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.bullets {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.bullets li:last-child {
  border-bottom: none;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.spec-note {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec-note h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.spec-note p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Details */
.details {
  padding: 1rem 0 3rem;
}

.details h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.detail-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.detail-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.detail-grid p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  padding: 0 0 3.5rem;
}

.faq h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.65rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #f3eef7;
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
}

.footer-fine {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}
