/*
Theme Name: Riftbound Buylist
Theme URI: https://example.com/riftbound-buylist
Author: OpenAI
Author URI: https://openai.com
Description: A WordPress-ready Riftbound storefront focused on buying cards, with sealed products shown as out of stock.
Version: 1.3.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: riftbound-buylist
*/

:root {
  --bg: #f4f8ff;
  --bg-soft: #e8f1ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-alt: #edf4ff;
  --surface-blue: #dfeeff;
  --border: rgba(25, 90, 173, 0.16);
  --border-strong: rgba(25, 90, 173, 0.28);
  --text: #18304d;
  --text-soft: #446384;
  --text-muted: #6f89a6;
  --accent: #1f66d8;
  --accent-strong: #0e4fb5;
  --accent-soft: #d8e8ff;
  --accent-warm: #bd7b18;
  --accent-warm-strong: #8f5800;
  --danger: #cf4d4d;
  --success: #1d8a62;
  --shadow: 0 18px 48px rgba(22, 64, 128, 0.12);
  --shadow-soft: 0 10px 28px rgba(22, 64, 128, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --site-width: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 102, 216, 0.12), transparent 30%),
    radial-gradient(circle at right 15%, rgba(189, 123, 24, 0.11), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 55%, #f4f8ff 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(56px);
  pointer-events: none;
  opacity: 0.55;
}

.site-shell::before {
  top: -160px;
  left: -120px;
  background: rgba(57, 117, 214, 0.16);
}

.site-shell::after {
  right: -120px;
  bottom: 5vh;
  background: rgba(189, 123, 24, 0.13);
}

.site-header,
.site-footer,
.hero,
.section {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 22px 0 10px;
}

.site-header__inner,
.site-footer__inner,
.section__inner,
.hero__inner {
  width: min(calc(100% - 32px), var(--site-width));
  margin: 0 auto;
}

.site-header__panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__crest {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(140deg, #1f66d8, #4b97ff);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 14px 32px rgba(31, 102, 216, 0.28);
}

.brand__title {
  display: block;
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__subtitle {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.96rem;
  font-weight: 600;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header__search {
  width: 100%;
}

.button,
.wp-element-button,
button[type="submit"],
input[type="submit"] {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(31, 102, 216, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.button:hover,
.wp-element-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(31, 102, 216, 0.26);
}

.button--ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(31, 102, 216, 0.18);
  box-shadow: var(--shadow-soft);
}

.button--warm {
  background: linear-gradient(135deg, #d29a3d, #a76400);
  color: #fff;
  box-shadow: 0 12px 28px rgba(143, 88, 0, 0.2);
}

.hero {
  padding: 22px 0 24px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero__inner--single {
  grid-template-columns: 1fr;
}

.hero__content,
.hero__panel,
.card,
.status-banner,
.form-shell,
.how-it-works__item,
.faq__item,
.empty-state,
.sidebar-card,
.catalog-card,
.product-card,
.single-card__image-card,
.single-card__details-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero__content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.92)),
    var(--surface);
}

.hero__content::before,
.hero__content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 420ms ease, opacity 420ms ease, background-position 620ms ease;
}

.hero__content::before {
  inset: -12%;
  opacity: 0.72;
  background:
    radial-gradient(circle at 16% 22%, rgba(31, 102, 216, 0.12), transparent 16%),
    radial-gradient(circle at 72% 68%, rgba(189, 123, 24, 0.12), transparent 18%),
    repeating-linear-gradient(72deg, rgba(31, 102, 216, 0.08) 0, rgba(31, 102, 216, 0.08) 2px, transparent 2px, transparent 54px),
    repeating-linear-gradient(128deg, rgba(31, 102, 216, 0.07) 0, rgba(31, 102, 216, 0.07) 1px, transparent 1px, transparent 62px),
    repeating-linear-gradient(22deg, rgba(189, 123, 24, 0.06) 0, rgba(189, 123, 24, 0.06) 1px, transparent 1px, transparent 88px);
  background-size: auto, auto, 140% 140%, 165% 165%, 150% 150%;
  background-position: 0 0, 0 0, 0 0, 18% 10%, 80% 20%;
  mix-blend-mode: multiply;
}

.hero__content::after {
  inset: auto -10% -22% 22%;
  height: 74%;
  opacity: 0.86;
  background:
    radial-gradient(circle at 18% 34%, rgba(31, 102, 216, 0.18), transparent 24%),
    radial-gradient(circle at 62% 58%, rgba(31, 102, 216, 0.12), transparent 18%),
    radial-gradient(circle at 78% 64%, rgba(189, 123, 24, 0.16), transparent 22%);
  filter: blur(14px);
}

.hero__content:hover::before,
.hero__content:focus-within::before {
  opacity: 0.95;
  transform: translate3d(12px, -8px, 0) rotate(1.2deg) scale(1.03);
  background-position: 8% 6%, 0 0, 66px -22px, 26% 18%, 72% 8%;
}

.hero__content:hover::after,
.hero__content:focus-within::after {
  transform: translate(-22px, -12px) scale(1.08);
}

.hero__content > * {
  position: relative;
  z-index: 1;
}

.hero__content--wide {
  max-width: none;
  width: 100%;
  min-height: min(72vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(280px, 0.4fr);
  gap: 28px;
  align-items: center;
}

.hero__copy {
  max-width: 100%;
}

.hero__art {
  display: flex;
  justify-content: flex-end;
}

.hero__art-stack {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
}

.hero__art-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 0.76;
  padding: 16px;
  border-radius: 32px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(216, 232, 255, 0.74)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 24px 48px rgba(19, 61, 126, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 240ms ease;
}

.hero__art-frame--center {
  position: absolute;
  right: 24px;
  top: 36px;
  z-index: 2;
  width: min(100%, 320px);
  transform: rotate(0deg);
}

.hero__art-frame--left,
.hero__art-frame--right {
  position: absolute;
  z-index: 1;
  width: min(100%, 220px);
}

.hero__art-frame--left {
  left: 6px;
  top: 138px;
  transform: rotate(-14deg);
}

.hero__art-frame--right {
  right: -2px;
  top: 8px;
  z-index: 4;
  transform: rotate(11deg);
}

.hero__art-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(31, 102, 216, 0.08);
  pointer-events: none;
}

.hero__art-frame img,
.hero__art-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 32px rgba(12, 38, 80, 0.16);
}

.hero__content:hover .hero__art-frame--left,
.hero__content:focus-within .hero__art-frame--left {
  transform: translate(-6px, 10px) rotate(-18deg);
}

.hero__content:hover .hero__art-frame--center,
.hero__content:focus-within .hero__art-frame--center {
  transform: translateY(-6px) rotate(-1deg);
}

.hero__content:hover .hero__art-frame--right,
.hero__content:focus-within .hero__art-frame--right {
  transform: translate(8px, -6px) rotate(15deg);
}

.hero__art-placeholder {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(135deg, rgba(31, 102, 216, 0.92), rgba(81, 137, 226, 0.84) 45%, rgba(189, 123, 24, 0.74));
}

.hero__panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 4.25vw, 4.15rem);
  line-height: 1.04;
  color: #102946;
  max-width: 11ch;
}

.hero__copy > p {
  max-width: 44ch;
  font-size: 1.06rem;
}

.hero p,
.section-copy,
.hero-link-card p,
.signal p,
.card p,
.faq__item p,
.empty-state p,
.sidebar-card li,
.product-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.hero-signals {
  width: min(calc(100% - 32px), var(--site-width));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.hero__stat,
.hero-link-card,
.signal,
.status-banner,
.product-card__body,
.catalog-card__body {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 102, 216, 0.08);
  border-radius: var(--radius-lg);
}

.hero__stat {
  padding: 18px;
}

.hero-link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100%;
  min-height: 200px;
  padding: 26px 22px 44px;
  text-align: center;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.hero-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 102, 216, 0), rgba(189, 123, 24, 0));
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero-link-card > * {
  position: relative;
  z-index: 1;
}

.hero-link-card__icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(31, 102, 216, 0.1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(31, 102, 216, 0.08);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.hero-link-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero-link-card__cta {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-weight: 700;
  color: var(--accent);
}

.hero-link-card__cta::after {
  content: ">";
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 0 currentColor;
  transition: transform 220ms ease;
}

.hero-link-card:hover,
.hero-link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 102, 216, 0.18);
  box-shadow: 0 20px 40px rgba(22, 64, 128, 0.16);
  color: #fff;
}

.hero-link-card:hover::before,
.hero-link-card:focus-visible::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(31, 102, 216, 0.94), rgba(189, 123, 24, 0.94));
}

.hero-link-card:hover .hero-link-card__icon,
.hero-link-card:focus-visible .hero-link-card__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: scale(1.04);
}

.hero-link-card:hover .hero-link-card__cta,
.hero-link-card:focus-visible .hero-link-card__cta,
.hero-link-card:hover p,
.hero-link-card:focus-visible p {
  color: rgba(255, 255, 255, 0.88);
}

.hero-link-card:hover .hero-link-card__cta::after,
.hero-link-card:focus-visible .hero-link-card__cta::after {
  transform: translateX(4px);
}

.hero__stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #123a6a;
}

.hero__stat span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.signal {
  padding: 18px 20px;
}

.signal strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-warm-strong);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signal h3,
.hero-link-card h3,
.card h2,
.card h3,
.section h2,
.faq__item h3,
.product-card h3,
.catalog-card h3,
.catalog-card h2,
.form-shell h2,
.single-card__details-card h1 {
  margin: 0 0 10px;
  color: #143052;
}

.hero-link-card h3 {
  max-width: 15ch;
  margin: 0;
}

.hero-link-card:hover h3,
.hero-link-card:focus-visible h3 {
  color: #fff;
}

.section {
  padding: 22px 0 30px;
}

.section__heading,
.section-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section__heading {
  margin-bottom: 22px;
}

.section-toolbar {
  margin-bottom: 16px;
}

.section h1,
.section h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.card-search {
  margin: 0 0 22px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.card-search--compact {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.card-search__copy {
  margin-bottom: 14px;
}

.card-search__copy h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.card-search__copy p {
  margin: 0;
  color: var(--text-soft);
}

.card-search__controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(150px, 0.8fr)) auto;
  gap: 12px;
  align-items: center;
}

.card-search--compact .card-search__controls {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.card-search input[type="search"],
.card-search select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 102, 216, 0.16);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.card-search select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.status-pill,
.stock-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-pill {
  background: rgba(31, 102, 216, 0.09);
  color: var(--accent);
}

.status-pill--info {
  background: rgba(31, 102, 216, 0.09);
  color: var(--accent);
}

.stock-flag {
  background: rgba(189, 123, 24, 0.12);
  color: var(--accent-warm-strong);
}

.stock-flag--in {
  background: rgba(29, 138, 98, 0.12);
  color: var(--success);
}

.card-grid,
.how-it-works,
.faq,
.card-library-grid,
.card-detail-sections {
  display: grid;
  gap: 18px;
}

.card-grid,
.how-it-works {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion__item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-accordion__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 64px 24px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #143052;
}

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

.faq-accordion__item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 102, 216, 0.08);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-accordion__item[open] summary::after {
  content: "-";
}

.faq-accordion__answer {
  padding: 0 24px 24px;
}

.faq-accordion__answer p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.card-library-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.card-library-carousel {
  overflow: hidden;
}

.card-library-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 5);
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.card-library-carousel__track::-webkit-scrollbar {
  display: none;
}

.card {
  padding: 26px;
}

.section-copy > p + p {
  margin-top: 1em;
}

.contact-form-shell {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(237, 244, 255, 0.9), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(31, 102, 216, 0.12);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
}

.buylist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.form-shell,
.sidebar-card,
.faq__item,
.how-it-works__item,
.empty-state,
.catalog-card,
.product-card,
.single-card__image-card,
.single-card__details-card {
  padding: 24px;
}

.catalog-card {
  padding: 16px;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 102, 216, 0.12);
  background: rgba(240, 246, 255, 0.95);
}

.notice--success {
  border-color: rgba(29, 138, 98, 0.24);
  background: rgba(223, 247, 238, 0.95);
  color: #176a4d;
}

.notice--error {
  border-color: rgba(207, 77, 77, 0.24);
  background: rgba(255, 239, 239, 0.95);
  color: #9d2f2f;
}

.tablist {
  margin: 20px 0 22px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(31, 102, 216, 0.06);
  border: 1px solid rgba(31, 102, 216, 0.12);
}

.tab-button {
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
}

.tab-button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 102, 216, 0.22);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.fieldset.field,
fieldset.field {
  min-inline-size: 0;
  padding: 0;
  border: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(31, 102, 216, 0.14);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field small {
  color: var(--text-muted);
  line-height: 1.5;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-chip {
  position: relative;
  flex: 1 1 180px;
}

.choice-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.choice-chip span {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(31, 102, 216, 0.12);
  color: var(--text-soft);
}

.choice-chip input:checked + span {
  border-color: rgba(31, 102, 216, 0.38);
  background: rgba(216, 232, 255, 0.62);
  color: var(--accent);
}

.manual-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manual-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(110px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(235, 244, 255, 0.7);
  border: 1px solid rgba(31, 102, 216, 0.1);
}

.manual-row__remove {
  padding: 12px 16px;
  background: #fff7f7;
  color: var(--danger);
  border: 1px solid rgba(207, 77, 77, 0.18);
  box-shadow: none;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.buylist-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.empty-state {
  padding: 20px;
}

.sidebar-card ul,
.sidebar-card ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.sidebar-card li + li {
  margin-top: 8px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(31, 102, 216, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.product-carousel {
  overflow: hidden;
}

.product-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.product-card {
  padding: 12px;
}

.product-card--grid {
  height: 100%;
}

.product-card__image,
.catalog-card__image {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(216, 232, 255, 0.85), rgba(255, 255, 255, 0.92));
}

.product-card__image img,
.catalog-card__image img,
.single-card__image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-card__body,
.catalog-card__body {
  margin-top: 12px;
  padding: 14px;
}

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

.product-card__price {
  color: var(--accent);
  font-weight: 700;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(31, 102, 216, 0.12);
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.catalog-card__body h2,
.catalog-card__body h3 {
  font-size: 0.98rem;
  line-height: 1.2;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.detail-list strong {
  color: var(--text);
}

.detail-list--stacked {
  margin-bottom: 18px;
}

.single-card-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.single-card__stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.single-card__image-card {
  display: flex;
  align-items: start;
  justify-content: center;
}

.single-card__image-card img {
  max-height: 720px;
}

.single-card__info-card {
  margin: 0;
}

.single-card__offer-shell {
  margin-bottom: 22px;
}

.pagination-shell {
  margin-top: 24px;
}

.pagination-shell .nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-shell .page-numbers {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(31, 102, 216, 0.12);
}

.faq--single {
  grid-template-columns: 1fr 1fr;
}

.site-footer {
  padding: 18px 0 38px;
}

.site-footer__inner {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.legal-nav a {
  color: var(--text-soft);
  font-weight: 600;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero__inner,
  .buylist-layout,
  .single-card-layout,
  .card-grid,
  .product-grid,
  .how-it-works,
  .faq,
  .card-detail-sections {
    grid-template-columns: 1fr;
  }

  .card-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .card-library-carousel__track {
    grid-auto-columns: calc((100% - 28px) / 3);
  }

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

  .manual-row > *:last-child {
    grid-column: 1 / -1;
  }

  .site-header__panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-header__actions {
    justify-content: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .card-search__controls,
  .card-search--compact .card-search__controls {
    grid-template-columns: 1fr;
  }

  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__art {
    justify-content: center;
  }

  .hero__art-stack {
    width: min(100%, 420px);
  }

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

@media (max-width: 900px) {
  .hero-signals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 16px;
  }

  .site-header__panel,
  .hero__content,
  .hero__panel,
  .form-shell,
  .sidebar-card,
  .card,
  .faq__item,
  .how-it-works__item,
  .catalog-card,
  .product-card,
  .single-card__image-card,
  .single-card__details-card,
  .empty-state {
    padding: 20px;
    border-radius: 22px;
  }

  .field-grid,
  .manual-row,
  .faq--single {
    grid-template-columns: 1fr;
  }

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

  .card-library-carousel__track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }

  .product-carousel__track {
    grid-auto-columns: 86%;
  }

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

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    max-width: 10ch;
  }

  .hero__copy > p {
    font-size: 1rem;
  }

  .hero__art-stack {
    width: min(100%, 320px);
    aspect-ratio: 0.92;
  }

  .hero__art-frame {
    padding: 14px;
  }

  .hero__art-frame--center {
    width: min(100%, 220px);
    right: 22px;
    top: 32px;
  }

  .hero__art-frame--left,
  .hero__art-frame--right {
    width: min(100%, 152px);
  }

  .hero__art-frame--left {
    left: 0;
    top: 118px;
  }

  .hero__art-frame--right {
    right: 0;
    top: 8px;
  }

  .section__heading,
  .section-toolbar,
  .site-footer__inner {
    align-items: flex-start;
  }
}
