/* KpopBinders — 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;
  --touch: 44px;
  --sticky-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

@media (min-width: 480px) {
  .wrap {
    width: min(100% - 2rem, var(--max));
  }
}

/* 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.75rem 0;
  gap: 0.75rem;
  min-height: var(--touch);
}

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

@media (min-width: 480px) {
  .logo {
    font-size: 1.05rem;
  }
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: var(--touch);
  min-width: var(--touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(26, 18, 36, 0.04);
}

/* Hero */
.hero {
  padding: 1.5rem 0 2rem;
}

@media (min-width: 860px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  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: 1.5rem 1rem 1rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

@media (min-width: 480px) {
  .gallery-main {
    padding: 2rem 1.5rem 1.25rem;
    min-height: 360px;
  }
}

.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(200px, 65%);
  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;
}

@media (min-width: 480px) {
  .binder-mock {
    width: min(220px, 70%);
  }
}

.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);
  text-align: center;
}

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

.thumb {
  border: 2px solid transparent;
  background: var(--surface);
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--touch);
  min-width: var(--touch);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.thumb-label {
  display: none;
}

@media (min-width: 380px) {
  .thumb-label {
    display: inline;
  }
}

.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);
  flex-shrink: 0;
}

.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.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

@media (min-width: 480px) {
  .eyebrow {
    font-size: 0.8rem;
  }
}

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

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

.hero-cta {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
}

.price {
  margin: 1.1rem 0 1.25rem;
  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.65rem;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  min-height: var(--touch);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.color-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.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: 420px;
  min-height: 52px;
  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;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

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

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

.btn-buy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.payment-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.45;
}

.trust-row {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.55rem;
  max-width: 420px;
}

.trust-row li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.trust-row strong {
  color: var(--ink);
  font-weight: 600;
}

.trust-icon {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.35;
}

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

.bullets li {
  position: relative;
  padding: 0.55rem 0 0.55rem 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.95rem;
  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: 0.5rem 0 2.5rem;
}

@media (min-width: 860px) {
  .details {
    padding: 1rem 0 3rem;
  }
}

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

.section-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

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

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

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

.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 3rem;
}

.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.25rem 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;
  min-height: var(--touch);
  padding: 0.35rem 0;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

.faq details p {
  margin: 0 0 0.85rem;
  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.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 28rem;
}

.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;
  }
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(26, 18, 36, 0.08);
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--max);
  margin-inline: auto;
}

.sticky-cta-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

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

.sticky-color {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-buy-sticky {
  width: auto;
  max-width: none;
  flex-shrink: 0;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .sticky-cta {
    display: none !important;
  }
}

/* --- overnight mobile / a11y / sticky CTA --- */
html, body { overflow-x: hidden; max-width: 100%; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.35rem 0.2rem; }
.btn-buy { min-height: 48px; touch-action: manipulation; }
.thumb, .color-option, .size-option, .color-swatch { min-height: 44px; min-width: 44px; touch-action: manipulation; }
.faq summary { min-height: 44px; padding-top: 0.35rem; padding-bottom: 0.35rem; touch-action: manipulation; }
@media (max-width: 720px) {
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Amazon affiliate storefront --- */
.affiliate-disclosure {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.4;
}

.footer-disclosure {
  margin-top: 0.75rem;
  max-width: none;
}

.accessory-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.accessory-list a {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}

.accessory-list a:hover {
  border-color: var(--accent);
}

.price .amount {
  font-size: 1.25rem;
}

.also-by-nick {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  padding: 0 1rem 1.25rem;
  text-align: center;
}
.also-by-nick-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.also-by-nick ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
}
.also-by-nick a {
  font-size: 0.9rem;
  font-weight: 500;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-mark {
  flex-shrink: 0;
  color: var(--accent, #c45b9a);
}
.logo-text {
  letter-spacing: -0.01em;
}

.seasonal-picks {
  margin-top: 0.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: var(--radius, 12px);
  background: linear-gradient(160deg, rgba(196, 91, 154, 0.08), rgba(88, 60, 140, 0.08));
  border: 1px solid var(--line, #e6dce8);
}
.seasonal-picks[data-season="halloween"] {
  background: linear-gradient(160deg, rgba(255, 140, 0, 0.12), rgba(88, 40, 120, 0.1));
}
.seasonal-picks[data-season="bfcm"] {
  background: linear-gradient(160deg, rgba(30, 30, 30, 0.06), rgba(196, 91, 154, 0.1));
}
.seasonal-picks[data-season="holiday"] {
  background: linear-gradient(160deg, rgba(180, 40, 40, 0.08), rgba(40, 120, 70, 0.08));
}
