@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=JetBrains+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --background: #f8f5ef;
  --surface: #ffffff;
  --surface-soft: #f1ece3;
  --cream: #ede5d8;
  --stone: #d8d0c3;
  --olive: #555941;
  --olive-dark: #383b2d;
  --text: #191713;
  --text-muted: #6f685e;
  --line: #ddd6ca;
  --black: #111111;
  --sale: #9c3d2e;
  --success: #4f6f45;
  --container: 1440px;
  --pad: 40px;
  --radius: 8px;
  --button-radius: 2px;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(248, 245, 239, 0.92), rgba(248, 245, 239, 0.92)),
    url("assets/backgrounds/bg_main_ivory_1920x1080.png") center top / 1200px auto repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 0;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.topbar {
  background: var(--olive-dark);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
  height: 28px;
}

.topbar .container {
  align-items: center;
  display: flex;
  gap: 24px;
  height: 100%;
  justify-content: center;
}

.topbar span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  padding-left: 24px;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  align-items: center;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  height: 72px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  width: fit-content;
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 500;
  line-height: 0.84;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: center;
}

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

.main-nav a:hover {
  color: var(--olive);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 38px;
}

.icon-button img,
.bottom-nav img,
.category-icon img,
.card-action img,
.meta-icon {
  filter: brightness(0) saturate(100%) invert(8%) sepia(7%) saturate(1029%) hue-rotate(359deg) brightness(96%) contrast(88%);
}

.cart-count {
  align-items: center;
  background: #c6902e;
  border-radius: 50%;
  color: var(--surface);
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 4px;
  position: absolute;
  right: 3px;
  top: 2px;
}

.search-panel {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: none;
  padding: 16px 0;
}

.search-panel.is-open {
  display: block;
}

.search-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.field,
.select,
.textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

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

.field:focus,
.select:focus,
.textarea:focus {
  border-color: var(--olive-dark);
}

.btn {
  align-items: center;
  border: 1px solid var(--olive-dark);
  border-radius: var(--button-radius);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--olive-dark);
  color: var(--surface);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

.btn:hover {
  border-color: var(--olive);
}

.section {
  padding: 36px 0;
}

.section-tight {
  padding: 20px 0;
}

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

.section-heading h2,
.plain-page h1,
.product-info h1,
.success-card h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.section-link {
  border-bottom: 1px solid var(--text);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 2px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.96) 0%, rgba(248, 245, 239, 0.88) 50%, rgba(248, 245, 239, 0.35) 100%),
    url("assets/backgrounds/bg_surface_soft_1920x1080.png") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(430px, 0.84fr) minmax(460px, 1.16fr);
  min-height: 520px;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
  padding: 64px 0;
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 24px;
}

.hero p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-note {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.hero-media {
  align-items: end;
  display: flex;
  justify-content: end;
  min-height: 100%;
  overflow: hidden;
  padding: 30px 0 0 20px;
  position: relative;
}

.hero-image {
  display: block;
  max-height: 470px;
  object-fit: contain;
  position: relative;
  width: min(780px, 100%);
  z-index: 1;
}

.hero-board-image {
  max-height: 430px;
  width: min(720px, 100%);
}

.hero-prop {
  background: rgba(85, 89, 65, 0.1);
  border-radius: 50%;
  bottom: 52px;
  height: 140px;
  position: absolute;
  right: 54px;
  width: 140px;
}

.hero-slider {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 430px;
  overflow: hidden;
  position: relative;
  width: min(720px, 100%);
  z-index: 1;
}

.hero-slide {
  color: var(--text);
  display: block;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 450ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-image {
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("assets/backgrounds/bg_surface_white_1920x1080.png") center / cover no-repeat;
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 22px 24px 82px;
  width: 100%;
}

.hero-slide-dark .hero-slide-image {
  background: var(--black);
  object-fit: cover;
  padding: 0;
}

.hero-slide-dark::after {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.76), rgba(17, 17, 17, 0.18));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-slide-gallery {
  background:
    linear-gradient(rgba(248, 245, 239, 0.88), rgba(248, 245, 239, 0.88)),
    url("assets/backgrounds/bg_surface_soft_1920x1080.png") center / cover no-repeat;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  padding: 40px 42px 92px;
}

.hero-slide-gallery img {
  align-self: center;
  background: var(--surface);
  border: 1px solid rgba(221, 214, 202, 0.78);
  border-radius: var(--radius);
  height: 100%;
  justify-self: center;
  object-fit: contain;
  padding: 12px;
  width: 100%;
}

.hero-slide-gallery img:first-child {
  grid-row: 1 / 3;
}

.hero-slide-copy {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 6px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  left: 20px;
  max-width: 410px;
  padding: 14px 16px;
  position: absolute;
  z-index: 3;
}

.hero-slide-dark .hero-slide-copy {
  background: var(--black);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--surface);
}

.hero-slide-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-slide-copy strong {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
}

.hero-slide-copy span:not(.hero-slide-kicker) {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-slide-dark .hero-slide-copy span:not(.hero-slide-kicker) {
  color: rgba(255, 255, 255, 0.78);
}

.hero-slide-copy em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  margin-top: 3px;
  text-transform: uppercase;
}

.hero-arrow {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  display: flex;
  font-family: Georgia, serif;
  font-size: 26px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  z-index: 4;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--surface);
}

.hero-arrow-prev {
  left: 14px;
}

.hero-arrow-next {
  right: 14px;
}

.hero-dots {
  bottom: 22px;
  display: flex;
  gap: 7px;
  position: absolute;
  right: 22px;
  z-index: 4;
}

.hero-dot {
  background: var(--stone);
  border: 0;
  border-radius: 999px;
  height: 4px;
  padding: 0;
  width: 28px;
}

.hero-dot.is-active {
  background: var(--olive);
}

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

.category-tile {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.42)),
    url("assets/backgrounds/bg_surface_white_1920x1080.png") center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 170px;
  overflow: hidden;
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  border-color: var(--stone);
}

.category-tile.large {
  grid-column: span 3;
  min-height: 245px;
}

.category-tile.small {
  grid-column: span 2;
}

.category-tile-body {
  align-self: center;
  padding: 30px 30px;
  position: relative;
  z-index: 2;
}

.category-tile h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 8px;
}

.category-tile p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 22px;
}

.category-tile-link {
  color: var(--text);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
}

.category-tile-image {
  align-self: end;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  padding: 12px 10px 0 0;
  width: 100%;
}

.category-tile-pack-image {
  align-self: center;
  height: auto;
  max-height: 86%;
  object-fit: contain;
  padding: 0 8px 0 0;
  width: 100%;
}

.icon-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  margin-top: 18px;
}

.category-icon {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 104px;
  justify-content: center;
}

.category-icon img {
  height: 32px;
  width: 32px;
}

.category-icon span {
  font-size: 12px;
  font-weight: 800;
}

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

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--stone);
}

.product-image-wrap {
  background:
    linear-gradient(rgba(241, 236, 227, 0.56), rgba(241, 236, 227, 0.56)),
    url("assets/backgrounds/bg_product_image_area_1600x1600.png") center / cover no-repeat;
  display: block;
  overflow: hidden;
  position: relative;
}

.product-image-wrap::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.product-image {
  height: 100%;
  inset: 0;
  object-fit: contain;
  padding: 10px;
  position: absolute;
  transition: transform 180ms ease;
  width: 100%;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.badge-new {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--olive-dark);
  font-size: 10px;
  font-weight: 800;
  left: 8px;
  padding: 3px 7px;
  position: absolute;
  top: 8px;
  z-index: 2;
}

.favorite-floating {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 30px;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  z-index: 2;
}

.favorite-floating img {
  height: 16px;
  margin: 6px;
  width: 16px;
}

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

.product-code {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 5px;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.36;
  margin: 0 0 10px;
  min-height: 36px;
}

.price-main {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  margin: auto 0 2px;
}

.price-opt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.product-actions {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.card-action {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  height: 30px;
  justify-content: center;
  padding: 0;
}

.card-action img {
  height: 22px;
  width: 22px;
}

.wholesale-banner {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.78) 48%, rgba(17, 17, 17, 0.36)),
    url("assets/backgrounds/bg_dark_promo_banner_1920x700.png") center / cover no-repeat;
  color: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.6fr);
  min-height: 260px;
}

.wholesale-copy {
  align-self: center;
  padding: 42px 48px;
}

.wholesale-copy h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 10px;
}

.wholesale-copy p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 22px;
  max-width: 560px;
}

.wholesale-banner .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--surface);
}

.editorial-order {
  background: rgba(255, 255, 255, 0.54);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1.2fr;
  padding: 38px 0;
}

.editorial h2,
.how-order h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 500;
  margin: 0 0 10px;
}

.editorial p {
  color: var(--text-muted);
  max-width: 560px;
}

.order-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.order-step {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.order-step strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}

.order-step span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.footer {
  background:
    linear-gradient(rgba(248, 245, 239, 0.86), rgba(248, 245, 239, 0.86)),
    url("assets/backgrounds/bg_footer_1920x1080.png") center / cover no-repeat;
  border-top: 1px solid var(--line);
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 38px;
  grid-template-columns: 1.4fr repeat(4, 1fr);
}

.footer h3 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 16px;
}

.footer a,
.footer p {
  color: var(--text-muted);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 9px;
}

.footer .brand-mark {
  font-size: 48px;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 20px;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  padding: 46px 0 34px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 10px;
}

.page-hero p {
  color: var(--text-muted);
  margin: 0;
  max-width: 720px;
}

.catalog-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 260px 1fr;
}

.filter-panel {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 112px;
}

.filter-panel h2 {
  font-size: 14px;
  margin: 0 0 14px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.category-list a {
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 8px;
}

.category-list a.is-active,
.category-list a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

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

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

.product-page {
  padding: 36px 0 64px;
}

.breadcrumbs {
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.product-layout {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 0.9fr);
}

.gallery-main {
  background:
    linear-gradient(rgba(241, 236, 227, 0.55), rgba(241, 236, 227, 0.55)),
    url("assets/backgrounds/bg_product_image_area_1600x1600.png") center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.gallery-main img {
  height: 88%;
  object-fit: contain;
  width: 88%;
}

.thumb-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.thumb {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 1 / 0.72;
  display: grid;
  place-items: center;
}

.thumb img {
  height: 84%;
  object-fit: contain;
  width: 84%;
}

.product-info h1 {
  margin-bottom: 26px;
}

.product-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.meta-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
}

.meta-row span:first-child {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.meta-row strong {
  font-weight: 800;
}

.product-price {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

.price-row {
  align-items: baseline;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
}

.price-row span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.price-row strong {
  font-size: 24px;
  font-weight: 900;
}

.quantity-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 120px 1fr;
  margin-bottom: 12px;
}

.qty-control {
  border: 1px solid var(--line);
  border-radius: 2px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  min-height: 46px;
}

.qty-control button {
  background: var(--surface);
  border: 0;
  font-weight: 900;
}

.qty-control output {
  align-items: center;
  display: flex;
  font-weight: 800;
  justify-content: center;
}

.product-secondary-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.tabs {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 54px;
  margin-top: 36px;
}

.tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-weight: 800;
  min-height: 54px;
  padding: 0;
}

.tabs button.is-active {
  border-bottom-color: var(--text);
}

.tab-content {
  color: var(--text-muted);
  margin-top: 22px;
  max-width: 900px;
}

.cart-page,
.checkout-page,
.plain-page {
  padding: 44px 0 70px;
}

.cart-table {
  border-top: 1px solid var(--line);
}

.cart-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 150px 150px 150px 40px;
  padding: 16px 0;
}

.cart-head {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-product {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 74px 1fr;
}

.cart-product img {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  height: 74px;
  object-fit: contain;
  padding: 4px;
  width: 74px;
}

.cart-summary {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  margin-top: 26px;
}

.summary-box {
  display: grid;
  gap: 18px;
}

.summary-line {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.summary-line strong {
  font-size: 28px;
  font-weight: 900;
}

.remove-button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
}

.checkout-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 1fr 0.92fr;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.radio-list {
  display: grid;
  gap: 14px;
}

.radio-list label {
  align-items: center;
  display: flex;
  font-weight: 700;
  gap: 10px;
}

.order-summary {
  background: rgba(255, 255, 255, 0.56);
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.summary-item {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto auto;
  margin-bottom: 12px;
}

.empty-state,
.success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 30px auto;
  max-width: 760px;
  padding: 34px;
  text-align: center;
}

.plain-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.plain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.plain-card h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 10px;
}

.plain-card p {
  color: var(--text-muted);
  margin: 0;
}

.mobile-bottom-nav {
  display: none;
}

.toast {
  background: var(--olive-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  bottom: 22px;
  color: var(--surface);
  font-size: 13px;
  font-weight: 800;
  left: 50%;
  padding: 12px 18px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 90;
}

@media (max-width: 1180px) {
  :root {
    --pad: 24px;
  }

  .header-inner {
    grid-template-columns: 168px 1fr auto;
  }

  .main-nav {
    gap: 14px;
  }

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

  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --pad: 16px;
  }

  body {
    padding-bottom: 70px;
  }

  .topbar {
    height: 30px;
  }

  .topbar .container {
    gap: 0;
    justify-content: center;
  }

  .topbar span:not(:first-child) {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    height: 72px;
  }

  .brand-mark {
    font-size: 36px;
  }

  .main-nav,
  .user-action {
    display: none;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    display: block;
    min-height: auto;
  }

  .hero-copy {
    padding: 36px 0 4px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero p {
    font-size: 15px;
  }

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

  .hero-media {
    justify-content: center;
    min-height: 238px;
    padding: 0;
  }

  .hero-image {
    max-height: 238px;
    width: 100%;
  }

  .hero-board-image {
    max-height: 238px;
    width: min(100%, 340px);
  }

  .hero-note {
    display: none;
  }

  .hero-prop {
    bottom: 20px;
    height: 92px;
    right: 30px;
    width: 92px;
  }

  .hero-slider {
    aspect-ratio: 4 / 3;
    min-height: 260px;
    width: 100%;
  }

  .hero-slide-image {
    padding: 12px 12px 82px;
  }

  .hero-slide-gallery {
    gap: 8px;
    padding: 20px 18px 96px;
  }

  .hero-slide-gallery img {
    padding: 8px;
  }

  .hero-slide-copy {
    bottom: 12px;
    left: 12px;
    max-width: none;
    padding: 10px 12px;
    right: 12px;
  }

  .hero-slide-copy strong {
    font-size: 22px;
  }

  .hero-slide-copy span:not(.hero-slide-kicker) {
    display: none;
  }

  .hero-arrow {
    height: 32px;
    width: 32px;
  }

  .hero-arrow-prev {
    left: 10px;
  }

  .hero-arrow-next {
    right: 10px;
  }

  .hero-dots {
    bottom: 13px;
    right: 14px;
  }

  .hero-dot {
    width: 20px;
  }

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

  .category-tile,
  .category-tile.large,
  .category-tile.small {
    grid-column: auto;
    min-height: 150px;
  }

  .category-tile-body {
    padding: 22px;
  }

  .category-tile h3 {
    font-size: 27px;
  }

  .icon-strip {
    gap: 0;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
  }

  .category-icon {
    min-height: 88px;
  }

  .section-heading h2,
  .plain-page h1,
  .product-info h1,
  .success-card h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .section-heading {
    align-items: center;
  }

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

  .product-title {
    font-size: 13px;
    min-height: 52px;
  }

  .wholesale-banner {
    display: block;
    min-height: 0;
  }

  .wholesale-copy {
    padding: 32px 22px;
  }

  .wholesale-copy h2 {
    font-size: 30px;
  }

  .editorial-order {
    display: block;
  }

  .order-steps {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .catalog-layout {
    display: block;
  }

  .filter-panel {
    margin-bottom: 20px;
    position: static;
  }

  .category-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-list a {
    white-space: nowrap;
  }

  .catalog-toolbar {
    gap: 12px;
  }

  .product-layout {
    display: block;
  }

  .product-info {
    margin-top: 28px;
  }

  .quantity-row {
    grid-template-columns: 112px 1fr;
  }

  .tabs {
    gap: 22px;
    overflow-x: auto;
  }

  .cart-row {
    gap: 12px;
    grid-template-columns: 1fr auto;
  }

  .cart-head {
    display: none;
  }

  .cart-row > :nth-child(2),
  .cart-row > :nth-child(4) {
    display: none;
  }

  .cart-summary {
    display: block;
  }

  .summary-box {
    margin-top: 18px;
  }

  .checkout-grid {
    display: block;
  }

  .checkout-grid > * {
    margin-bottom: 28px;
  }

  .order-summary {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }

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

  .mobile-bottom-nav {
    background: rgba(248, 245, 239, 0.97);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 64px;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 70;
  }

  .bottom-nav {
    align-items: center;
    color: var(--text);
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 800;
    gap: 3px;
    justify-content: center;
    position: relative;
  }

  .bottom-nav img {
    height: 22px;
    width: 22px;
  }
}

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

  .btn {
    padding: 0 14px;
  }

  .category-tile {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .category-tile-image {
    padding-right: 0;
  }

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

  .order-steps {
    grid-template-columns: 1fr;
  }
}
