:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f3f6ff;
  --text: #243047;
  --muted: #5f6980;
  --accent: #3d74d8;
  --accent-dark: #2551a8;
  --accent-soft: #eaf1ff;
  --pink: #ff4f8b;
  --yellow: #ffcf4d;
  --green: #1ea672;
  --border: #d8e2f2;
  --shadow: 0 16px 38px rgba(37, 81, 168, 0.10);
  --shadow-soft: 0 8px 24px rgba(37, 81, 168, 0.08);
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(255, 207, 77, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 79, 139, 0.16), transparent 28%),
    linear-gradient(180deg, #fdfdff 0%, #eff4ff 100%);
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 226, 242, 0.9);
}

.header-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  min-height: 94px;
}

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

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #14356f;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  max-width: 240px;
  line-height: 1.35;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.nav a {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.nav .nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}

.nav .nav-cta:hover {
  text-decoration: none;
  opacity: 0.92;
}

.hero-wrap { padding: 28px 0 12px; }

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 38px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.82fr);
  gap: 24px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1, h2, h3 {
  color: #14356f;
}

h1 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  max-width: 720px;
  font-size: 19px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover { text-decoration: none; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: #fff;
  color: var(--accent-dark);
  border-color: var(--border);
}

.hero-points {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.hero-side {
  background: linear-gradient(180deg, #f9fbff 0%, #f0f5ff 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 20px;
}

.hero-side h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.mini-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini-list li { margin-bottom: 7px; }

section.block { padding: 12px 0; }

.section-header {
  max-width: 780px;
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.14;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.category-strip,
.grid,
.grid-3,
.grid-links {
  display: grid;
  gap: 18px;
}

.category-strip,
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-links { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card,
.info-card,
.category-card,
.stat-card,
.panel,
.empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card {
  overflow: hidden;
}

.card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body,
.info-card,
.category-card,
.panel,
.empty {
  padding: 18px;
}

.card h2,
.card h3,
.info-card h3,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.card p,
.info-card p,
.category-card p {
  margin: 0;
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.price {
  font-weight: 800;
  font-size: 1.2rem;
}

.availability {
  font-size: 0.95rem;
  color: var(--green);
  font-weight: 700;
}

.availability.is-out {
  color: #c06612;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  padding: 16px 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #14356f;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1fr);
  gap: 22px;
  padding: 22px 0 34px;
  align-items: start;
}

.product-layout .panel {
  min-width: 0;
}

.product-layout > .panel:first-child {
  padding: 14px;
}

.product-layout h1 {
  font-size: clamp(2rem, 3vw, 3.7rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.product-image {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-thumb {
  appearance: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  border-radius: 16px;
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 81, 168, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 81, 168, 0.36);
}

.product-thumb.is-active,
.product-thumb[aria-pressed="true"] {
  border-color: rgba(61, 116, 216, 0.56);
  box-shadow: 0 10px 22px rgba(37, 81, 168, 0.16);
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(37, 81, 168, 0.16);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.category-chip:hover {
  text-decoration: none;
  border-color: rgba(37, 81, 168, 0.36);
}

.inline-cart-form,
.inline-form {
  margin: 0;
}

.variant-box {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6ff 100%);
}

.variant-label {
  margin-bottom: 12px;
  color: #14356f;
}

.variant-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-pill {
  appearance: none;
  border: 1px solid rgba(37, 81, 168, 0.22);
  background: #fff;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 14px rgba(37, 81, 168, 0.08);
}

.variant-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 81, 168, 0.42);
  text-decoration: none;
}

.variant-pill:focus-visible {
  outline: 3px solid rgba(61, 116, 216, 0.22);
  outline-offset: 2px;
}

.variant-pill.is-active,
.variant-pill[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(61, 116, 216, 0.26);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.prose h2:not(:first-child) {
  margin-top: 28px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}

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

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  padding: 12px 0 34px;
  align-items: start;
}

.alert {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.alert-success {
  background: #edf9f4;
  border-color: rgba(30, 166, 114, 0.22);
  color: #126245;
}

.alert-error {
  background: #fff1f4;
  border-color: rgba(255, 79, 139, 0.24);
  color: #8d2149;
}

.alert-info {
  background: #eef4ff;
  border-color: rgba(61, 116, 216, 0.22);
  color: #2551a8;
}

.alert.compact {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 15px;
}

.cart-lines,
.summary-products {
  display: grid;
  gap: 14px;
}

.cart-line,
.summary-product {
  display: grid;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.cart-line {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  padding: 14px;
}

.summary-product {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.cart-line-media {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line-body h2 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.2;
}

.cart-line-body p {
  margin: 0;
}

.cart-line-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.qty-input,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.qty-input {
  width: 84px;
  text-align: center;
  padding: 10px 8px;
}

.checkout-form {
  display: grid;
  gap: 22px;
}

.required-note,
.checkout-submit-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid rgba(61, 116, 216, 0.18);
  color: #35507f;
  font-size: 14px;
}

.required-note strong,
.checkout-submit-note strong {
  color: #14356f;
}

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

.form-grid label,
.shipping-options {
  display: grid;
  gap: 8px;
  color: #14356f;
  font-weight: 700;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.required-mark {
  color: #d43d6b;
  font-weight: 900;
}

.field-error {
  color: #b23a59;
  font-size: 14px;
  font-weight: 700;
}

.consent-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #14356f;
  font-weight: 600;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.consent-check span {
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.shipping-options {
  border: 0;
  margin: 0;
  padding: 0;
}

.shipping-options legend {
  margin-bottom: 12px;
  color: #14356f;
  font-weight: 800;
}

.shipping-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
}

.shipping-card.is-selected,
.shipping-card:has(input:checked) {
  border-color: rgba(61, 116, 216, 0.45);
  box-shadow: 0 8px 18px rgba(37, 81, 168, 0.10);
}

.shipping-card input {
  width: 18px;
  height: 18px;
}

.shipping-card-main {
  display: grid;
  gap: 2px;
}

.shipping-card-main small {
  color: var(--muted);
  font-weight: 500;
}

.shipping-card-price {
  font-weight: 800;
  color: #14356f;
}

.summary-panel h2 {
  margin-top: 0;
}

.free-shipping-note {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 79, 139, 0.22);
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.07), rgba(255, 190, 92, 0.12));
  color: #7d3051;
  font-size: 14px;
}

.free-shipping-note strong {
  color: #14356f;
}

.free-shipping-note.is-qualified {
  border-color: rgba(30, 166, 114, 0.24);
  background: linear-gradient(135deg, rgba(30, 166, 114, 0.08), rgba(89, 194, 255, 0.12));
  color: #2d6e58;
}

.summary-list {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.summary-total {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 800;
  color: #14356f;
}

.cart-line-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #14356f;
}

.link-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.link-btn.danger {
  color: #b23a59;
}

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

.breadcrumbs {
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: inherit;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 120;
}

.cookie-banner__content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(15, 47, 79, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(15, 47, 79, 0.16);
  backdrop-filter: blur(10px);
}

.cookie-banner__content strong {
  display: block;
  margin-bottom: 6px;
  color: #14356f;
}

.cookie-banner__content p {
  margin: 0;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.free-shipping-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  width: min(360px, calc(100vw - 40px));
  padding: 22px;
  border: 1px solid rgba(15, 47, 79, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 46px rgba(15, 47, 79, 0.18);
}

.free-shipping-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 47, 79, 0.08);
  color: #14356f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.free-shipping-popup__eyebrow {
  margin: 0 0 8px;
  color: #2551a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.free-shipping-popup strong {
  display: block;
  max-width: calc(100% - 34px);
  margin: 0 0 8px;
  color: #14356f;
  font-size: 24px;
  line-height: 1.12;
}

.free-shipping-popup p {
  margin: 0 0 16px;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 42px;
}

.footer-box {
  background: #0f2f4f;
  color: rgba(255,255,255,0.88);
  border-radius: 22px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-box a {
  color: #fff;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
}

.contact-card {
  padding: 24px;
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contact-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff 0%, #f3f7ff 100%);
}

.contact-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-link {
  color: #14356f;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cta-panel {
  background: linear-gradient(135deg, #fff7ea 0%, #f6f8ff 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 20px;
  align-items: center;
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 920px) {
  .header-inner,
  .hero,
  .product-layout,
  .checkout-layout,
  .footer-box,
  .cta-panel {
    grid-template-columns: 1fr;
  }

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

  .stat-row {
    grid-template-columns: 1fr;
  }

  .cart-line,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cart-line-controls {
    justify-items: start;
  }

  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .free-shipping-popup {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
}
