:root {
  --ink: #241f2f;
  --muted: #6b6176;
  --paper: #fff8ee;
  --card: #ffffff;
  --sun: #ffd56f;
  --coral: #ff6f61;
  --teal: #3fc3b0;
  --lilac: #bca4ff;
  --mint: #def8ed;
  --blue: #62a8ff;
  --butter: #fff1ba;
  --rose: #ffe4e0;
  --line: rgba(36, 31, 47, 0.1);
  --shadow: 0 22px 60px rgba(72, 55, 92, 0.14);
  --soft-shadow: 0 12px 30px rgba(72, 55, 92, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 111, 97, 0.2) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 7%, rgba(63, 195, 176, 0.18) 0 150px, transparent 151px),
    linear-gradient(180deg, #fff1bd 0, #fff8ee 470px),
    var(--paper);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 111, 97, 0.16) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(63, 195, 176, 0.14) 0 3px, transparent 4px),
    linear-gradient(120deg, rgba(188, 164, 255, 0.12) 0 12px, transparent 12px 48px);
  background-position: 0 0, 24px 30px, 0 0;
  background-size: 68px 68px, 74px 74px, 96px 96px;
  opacity: 0.75;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 14px;
}

.brand,
.nav-links,
.hero-actions,
.category-filters {
  display: flex;
  align-items: center;
}

.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: Nunito, system-ui, sans-serif;
  line-height: 1;
}

.brand-name {
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 4px;
  color: #9a4b2c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  gap: 8px;
}

.nav-links a,
.nav-button,
.secondary-link,
.primary-link,
.buy-link {
  min-height: 42px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.nav-links a {
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 31, 47, 0.08);
  box-shadow: 0 8px 18px rgba(72, 55, 92, 0.06);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-links a:hover {
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.nav-button {
  padding: 0 14px;
  border: 1px solid rgba(37, 33, 45, 0.1);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 46px;
  min-height: min(700px, calc(100vh - 74px));
  padding: 28px 0 42px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: #9a4b2c;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Nunito, system-ui, sans-serif;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 5.9vw, 5.65rem);
  font-weight: 900;
}

.approval-line {
  width: fit-content;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid rgba(36, 31, 47, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 22px rgba(72, 55, 92, 0.08);
  color: #9a4b2c;
  font-family: Nunito, system-ui, sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 900;
}

.hero-disclosure {
  max-width: 540px;
  margin: 0;
  color: #6b6275;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 540px;
  color: #51475d;
  font-size: 1.1rem;
  line-height: 1.72;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.primary-link,
.secondary-link,
.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
}

.primary-link,
.buy-link {
  background:
    linear-gradient(135deg, var(--ink), #3c3150);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(36, 31, 47, 0.18);
}

.secondary-link {
  border: 2px solid rgba(36, 31, 47, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px rgba(72, 55, 92, 0.08);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 18px -12px -12px 18px;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 111, 97, 0.26), rgba(63, 195, 176, 0.2));
  content: "";
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 9px solid #ffffff;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: -8px;
}

.intro-strip div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 245, 0.88));
  box-shadow: var(--soft-shadow);
}

.intro-strip strong {
  display: block;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 1.62rem;
  font-weight: 900;
}

.intro-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.shop-controls,
.product-section,
.collections-section,
.popular-section,
.book-feature,
.sheet-note {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 246, 0.9));
  box-shadow: var(--shadow);
}

.section-heading,
.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.results-heading h2,
.sheet-note h2 {
  margin-top: 5px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  margin-top: 18px;
}

.search-wrap,
.select-wrap {
  display: grid;
  gap: 7px;
}

.search-wrap span,
.select-wrap span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  min-height: 48px;
  width: 100%;
  border: 2px solid rgba(36, 31, 47, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(72, 55, 92, 0.05);
}

input {
  padding: 0 16px;
}

select {
  padding: 0 12px;
}

textarea {
  min-height: 110px;
  padding: 12px 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(70, 198, 178, 0.38);
  outline-offset: 2px;
}

.category-filters {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.filter-button {
  min-height: 40px;
  border: 2px solid rgba(36, 31, 47, 0.09);
  border-radius: 8px;
  background: #ffffff;
  color: #453b50;
  cursor: pointer;
  font-weight: 900;
  padding: 0 13px;
  box-shadow: 0 8px 16px rgba(72, 55, 92, 0.05);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.filter-button:hover {
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  background:
    linear-gradient(135deg, var(--sun), #ffeaa4);
  color: var(--ink);
}

.results-heading {
  margin-bottom: 18px;
}

.results-heading p {
  color: var(--muted);
  line-height: 1.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.book-feature {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(255, 213, 111, 0.54), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.book-cover-wrap {
  display: grid;
  place-items: center;
  min-height: 310px;
  border-radius: 8px;
  background: #fff1c9;
}

.book-cover-wrap img {
  display: block;
  width: min(230px, 78%);
  border: 8px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(63, 49, 94, 0.18);
}

.book-copy {
  display: grid;
  gap: 14px;
}

.book-copy h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.book-author {
  color: var(--coral);
  font-family: Nunito, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.book-copy p:not(.eyebrow):not(.book-author) {
  max-width: 680px;
  color: #554b61;
  font-size: 1.03rem;
  line-height: 1.65;
}

.popular-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.popular-panel {
  min-width: 0;
}

.popular-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.popular-heading h3 {
  font-size: 1.55rem;
}

.scroll-controls {
  display: flex;
  gap: 8px;
}

.scroll-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(37, 33, 45, 0.14);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(63, 49, 94, 0.1);
}

.scroll-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.popular-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 26%);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.popular-rail.is-auto-scrolling {
  scroll-snap-type: none;
}

.popular-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  scroll-snap-align: start;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.popular-card:hover {
  box-shadow: 0 18px 36px rgba(72, 55, 92, 0.14);
  transform: translateY(-2px);
}

.popular-art,
.popular-mini-grid {
  min-height: 130px;
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 111, 97, 0.2), transparent 34%),
    linear-gradient(135deg, #fff1c9, #e5f8f4);
}

.popular-art {
  display: grid;
  place-items: center;
  padding: 14px;
}

.popular-art img,
.popular-art span {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 33, 45, 0.12);
}

.popular-art img {
  padding: 8px;
  object-fit: contain;
}

.popular-art span {
  display: grid;
  place-items: center;
  color: var(--coral);
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 900;
}

.popular-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px;
}

.popular-mini-grid img,
.popular-mini-grid span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 33, 45, 0.12);
}

.popular-mini-grid img {
  padding: 7px;
  object-fit: contain;
}

.popular-mini-grid span {
  display: grid;
  place-items: center;
  color: var(--coral);
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 900;
}

.popular-card-body {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
}

.popular-card-body h4 {
  margin: 0;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 1.14rem;
  line-height: 1.1;
}

.popular-card-body p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.popular-card-body .buy-link,
.popular-card-body button {
  justify-self: start;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 13px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.collection-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.collection-card:hover {
  box-shadow: 0 18px 38px rgba(72, 55, 92, 0.14);
  transform: translateY(-2px);
}

.collection-card.is-active {
  outline: 3px solid rgba(70, 198, 178, 0.36);
  outline-offset: 2px;
}

.collection-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 116px;
  padding: 14px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 111, 97, 0.18), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(98, 168, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #fff1c9, #f2eaff);
}

.collection-preview img,
.collection-preview span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 33, 45, 0.12);
}

.collection-preview img {
  padding: 7px;
  object-fit: contain;
}

.collection-preview span {
  display: grid;
  place-items: center;
  color: var(--coral);
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 900;
}

.collection-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.collection-body h3 {
  font-size: 1.55rem;
}

.collection-body p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.collection-body button {
  justify-self: start;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(72, 55, 92, 0.15);
  transform: translateY(-2px);
}

.product-card.is-highlighted {
  outline: 3px solid var(--accent, #ff7867);
  outline-offset: 3px;
  animation: card-pulse 2.4s ease;
}

@keyframes card-pulse {
  0%, 100% { box-shadow: var(--soft-shadow); }
  20% { box-shadow: 0 0 0 6px rgba(255, 120, 103, 0.28); }
}

.product-art {
  position: relative;
  min-height: 142px;
  padding: 16px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(135deg, var(--accent-bg, #f7e9ff), #ffffff);
}

.product-art::before,
.product-art::after {
  position: absolute;
  content: "";
  border-radius: 8px;
}

.product-art::before {
  right: 24px;
  bottom: 18px;
  width: 88px;
  height: 64px;
  background: rgba(255, 255, 255, 0.78);
  transform: rotate(-6deg);
}

.product-art::after {
  right: 46px;
  bottom: 40px;
  width: 46px;
  height: 46px;
  border: 8px solid rgba(36, 31, 47, 0.13);
  background: transparent;
}

.product-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 33, 45, 0.12);
  color: var(--accent, var(--coral));
  font-family: Nunito, system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
}

.product-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(112px, 44%);
  height: 112px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(36, 31, 47, 0.12);
  object-fit: contain;
}

.tested-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  max-width: 128px;
  padding: 7px 9px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 31, 47, 0.92), rgba(66, 54, 88, 0.92));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.product-category {
  color: var(--accent, var(--coral));
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body h3 {
  font-size: 1.44rem;
}

.product-body p {
  color: #62586c;
  line-height: 1.55;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta span {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f5f0ff;
  color: #584b6e;
  font-size: 0.75rem;
  font-weight: 800;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 16px;
}

.store-name {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.buy-link {
  flex: 0 0 auto;
}

.empty-state {
  padding: 42px 16px;
  text-align: center;
}

.empty-state h3 {
  font-size: 2rem;
}

.empty-state p {
  margin-top: 8px;
  color: var(--muted);
}

.sheet-note {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  background: #fff3c7;
}

.sheet-note p {
  color: #594f28;
  line-height: 1.55;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 34px;
  color: #635970;
  font-size: 0.9rem;
}

.affiliate-disclosure {
  opacity: 0.58;
  font-size: 0.72rem;
}

footer a {
  font-weight: 900;
}

.admin-page main {
  padding-bottom: 36px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 110px);
}

.admin-login h1,
.admin-heading h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

.login-card,
.admin-panel,
.stats-grid article,
.admin-warning {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.login-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.login-card label,
.product-form label,
.collection-form label,
.field-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-note {
  min-height: 22px;
  color: #b33138;
  font-weight: 800;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
  padding-bottom: 30px;
}

.admin-heading,
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.admin-actions,
.panel-heading {
  flex-wrap: wrap;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions button,
.panel-heading button,
.manager-item button,
.product-form button {
  min-height: 42px;
  border: 1px solid rgba(37, 33, 45, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.admin-warning {
  padding: 14px 16px;
  background: #fff3c7;
  color: #594f28;
  font-weight: 800;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.stats-grid article {
  min-height: 114px;
  padding: 16px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-grid strong {
  display: block;
  margin-top: 12px;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 2rem;
}

.admin-panel {
  padding: 20px;
}

.admin-panel h2 {
  margin-top: 4px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: #50465c;
  line-height: 1.45;
}

td a {
  color: #4a3788;
  font-weight: 800;
}

.product-form,
.collection-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.product-form .wide-field,
.collection-form .wide-field {
  grid-column: span 4;
}

.product-form button,
.collection-form button {
  align-self: end;
  background: var(--ink);
  color: #ffffff;
}

.product-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.picker-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(37, 33, 45, 0.08);
  border-radius: 8px;
  background: #ffffff;
  text-transform: none;
}

.picker-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.picker-option strong,
.picker-option small {
  display: block;
}

.picker-option strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.3;
}

.picker-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.manager-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.manager-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.manager-item h3 {
  font-size: 1.15rem;
}

.manager-item p,
.manager-item a {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.manager-item a {
  display: inline-block;
  color: #4a3788;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.4rem, 8vw, 5.8rem);
  }

  .hero-visual {
    max-width: 680px;
  }

  .product-grid,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-feature {
    grid-template-columns: 1fr;
  }

  .book-cover-wrap {
    min-height: 260px;
  }

  .popular-rail {
    grid-auto-columns: minmax(220px, 42%);
  }

  .stats-grid,
  .product-form,
  .collection-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-form .wide-field,
  .collection-form .wide-field {
    grid-column: span 2;
  }

  .sheet-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 22px, 1180px);
  }

  .topbar,
  .section-heading,
  .results-heading,
  .admin-heading,
  .panel-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 10px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.55rem);
  }

  .intro-strip,
  .control-row,
  .product-grid,
  .admin-login,
  .stats-grid,
  .product-form,
  .collection-form,
  .product-picker {
    grid-template-columns: 1fr;
  }

  .admin-login {
    min-height: 0;
    padding: 24px 0;
  }

  .product-form .wide-field,
  .collection-form .wide-field {
    grid-column: auto;
  }

  .manager-item {
    grid-template-columns: 1fr;
  }

  .shop-controls,
  .product-section,
  .collections-section,
  .popular-section,
  .book-feature,
  .sheet-note {
    padding: 16px;
  }

  .popular-rail {
    grid-auto-columns: minmax(218px, 82%);
  }

  .product-card {
    min-height: 0;
  }
}
