:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #fafafa;
  --text: #171717;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --accent: #b83257;
  --accent-dark: #8f2544;
  --success: #2f6f55;
  --gold: #9b7a40;
  --shadow: 0 18px 46px rgba(0, 0, 0, .08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 24px;
}

.hero-stats span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.hero-stats strong {
  color: var(--text);
  font-size: 20px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.category-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-main {
  min-width: 0;
}

.category-rail .filter-button {
  width: 100%;
  border-radius: 8px;
  text-align: left;
}

.photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(23, 23, 23, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.product-modal-media {
  position: relative;
}

.product-modal-thumbs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
}

.product-modal-thumbs button {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.product-modal-thumbs button.active {
  border-color: var(--accent);
}

.product-modal-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-composition {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.checkout select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
}

.checkout select:focus {
  border-color: rgba(184, 50, 87, .42);
  box-shadow: 0 0 0 4px rgba(184, 50, 87, .08);
}

.checkout-row.two,
.checkout-row.three,
.payment-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.payment-switch label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.payment-switch input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.payment-switch label:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.payment-only,
.checkout-subsection {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.payment-only strong,
.subsection-head strong {
  color: var(--text);
}

.payment-only span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-form-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--text);
  font-weight: 800;
}

.inline-form-check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}

.recipient-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-order-actions {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .category-rail {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .category-rail .filter-button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .hero-stats,
  .checkout-row.two,
  .checkout-row.three,
  .recipient-fields,
  .payment-switch {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.cart-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
}

.nav a {
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  background: #fff;
  color: var(--text);
}

.top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-link {
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.cart-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.cart-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  position: relative;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -8px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  display: grid;
  align-items: end;
  min-height: min(680px, calc(100svh - 94px));
  padding: clamp(44px, 8vw, 92px) clamp(16px, 5vw, 70px) 42px;
}

.hero-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .86) 35%, rgba(255, 255, 255, .28) 72%, rgba(255, 255, 255, .12) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .2));
}

.hero-copy {
  width: min(100%, 700px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 640px;
  color: #4d4d4d;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(184, 50, 87, .18);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.catalog-band,
.info-grid,
.contact-band {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px clamp(16px, 4vw, 52px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.catalog-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.catalog-controls label {
  display: grid;
  gap: 6px;
}

.catalog-controls span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.catalog-controls input,
.catalog-controls select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.search {
  display: grid;
  gap: 7px;
  width: min(100%, 360px);
}

.search span,
.checkout span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search input,
.checkout input,
.checkout textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
}

.search input {
  min-height: 46px;
  padding: 12px 14px;
}

.search input:focus,
.checkout input:focus,
.checkout textarea:focus {
  border-color: rgba(184, 50, 87, .42);
  box-shadow: 0 0 0 4px rgba(184, 50, 87, .08);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .055);
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f3f3;
  cursor: pointer;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.product-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-category {
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.stock-pill {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f0f7f3;
  color: var(--success);
  font-size: 11px;
  font-weight: 900;
}

.stock-pill.empty {
  background: #f4f4f4;
  color: var(--muted);
}

.product-title {
  min-height: 48px;
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.product-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.price strong {
  font-size: 18px;
}

.price del {
  color: var(--muted);
  font-size: 13px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.add-button,
.details-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.add-button {
  border: 0;
  background: #1f2420;
  color: #fff;
}

.details-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.add-button:hover {
  background: var(--success);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(31, 36, 32, .42);
}

.product-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 80;
  display: none;
  grid-template-columns: minmax(280px, 440px) minmax(0, 500px);
  width: min(calc(100vw - 28px), 940px);
  max-height: calc(100dvh - 28px);
  transform: translate(-50%, -50%);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-modal.open {
  display: grid;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.product-modal-media {
  min-height: 420px;
  background: #f4f4f4;
}

.product-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.product-modal-body {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
}

.product-modal-body h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.product-modal-body p {
  color: var(--muted);
  line-height: 1.65;
}

.modal-facts,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-facts span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-price strong {
  font-size: 28px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

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

.info-grid article,
.contact-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.info-grid article {
  padding: 24px;
}

.info-grid p,
.contact-band p {
  color: var(--muted);
  line-height: 1.6;
}

.info-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
  padding: 34px clamp(20px, 4vw, 44px);
}

.contact-band p {
  max-width: 680px;
  margin-bottom: 0;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(31, 36, 32, .36);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  display: flex;
  width: min(100vw, 560px);
  height: 100dvh;
  flex-direction: column;
  transform: translateX(105%);
  border-left: 1px solid var(--line);
  background: var(--bg);
  box-shadow: -24px 0 60px rgba(31, 36, 32, .18);
  transition: transform .2s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 28px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 10px;
  max-height: 42vh;
  overflow: auto;
  padding: 14px 18px;
}

.cart-addons {
  display: grid;
  gap: 10px;
  padding: 0 18px 14px;
}

.cart-addons-head {
  display: grid;
  gap: 2px;
}

.cart-addons-head strong {
  font-size: 14px;
}

.cart-addons-head span,
.legal-check span,
.legal-check a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cart-addons-list {
  display: grid;
  gap: 8px;
}

.cart-addon {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.cart-addon img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-addon strong,
.cart-addon span {
  display: block;
}

.cart-addon strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-addon span {
  color: var(--muted);
  font-size: 12px;
}

.cart-addon button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item-title {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 800;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stepper button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  cursor: pointer;
}

.remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.checkout {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.checkout label {
  display: grid;
  gap: 6px;
}

.checkout .legal-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.legal-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.legal-check a {
  color: var(--accent-dark);
  font-weight: 800;
}

.checkout input,
.checkout textarea {
  min-height: 44px;
  padding: 11px 12px;
}

.checkout textarea {
  resize: vertical;
}

.delivery-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.delivery-switch label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.delivery-switch input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.pickup-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
}

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

.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cart-summary {
  display: grid;
  gap: 8px;
  padding: 12px 0 4px;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text) !important;
}

.cart-total strong {
  font-size: 22px;
}

.checkout-status {
  min-height: 20px;
  margin: 0;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 52px) 42px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.site-footer nav a,
.legal-back {
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  background: #fafafa;
}

.legal-doc {
  width: min(100% - 24px, 880px);
  margin: 0 auto;
  padding: 32px 0 64px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  background: #fff;
}

.legal-doc h1 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}

.legal-doc h2 {
  margin-top: 30px;
  font-size: 22px;
}

.legal-doc p {
  color: #4d4d4d;
  font-size: 16px;
  line-height: 1.7;
}

.legal-doc a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: min(640px, calc(100svh - 84px));
  }

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

  .catalog-controls,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 64px;
    padding: 10px 12px;
  }

  .brand small,
  .cart-label {
    display: none;
  }

  .account-link {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: min(620px, calc(100svh - 64px));
    padding: 44px 12px 28px;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .82) 52%, rgba(255, 255, 255, .62) 100%),
      linear-gradient(0deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .28));
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .catalog-band,
  .info-grid,
  .contact-band {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-head,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .product-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .cart-drawer {
    width: 100vw;
  }

  .product-modal {
    inset: auto 0 0 0;
    grid-template-columns: 1fr;
    width: 100vw;
    max-height: 92dvh;
    transform: none;
    border-radius: 8px 8px 0 0;
  }

  .product-modal-media,
  .product-modal-media img {
    min-height: 280px;
  }

  .product-actions,
  .delivery-switch,
  .promo-row {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }
}

.catalog-main .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-actions {
  grid-template-columns: 1fr;
}
