:root {
  --bg: #f4ede3;
  --panel: rgba(255, 250, 244, 0.8);
  --panel-solid: #fffaf4;
  --ink: #241816;
  --muted: #6d5d58;
  --accent: #9a4e63;
  --accent-strong: #7b3348;
  --gold: #c89d58;
  --olive: #647056;
  --line: rgba(36, 24, 22, 0.1);
  --shadow: 0 30px 70px rgba(75, 43, 33, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(231, 199, 207, 0.9), transparent 32%),
    radial-gradient(circle at bottom right, rgba(200, 157, 88, 0.28), transparent 28%),
    linear-gradient(135deg, #f7f0e8 0%, #efe2d4 100%);
  font-family: "Trebuchet MS", "Gill Sans MT", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.55;
}

body::before {
  width: 260px;
  height: 260px;
  top: 90px;
  right: 8%;
  background: rgba(154, 78, 99, 0.15);
}

body::after {
  width: 320px;
  height: 320px;
  left: -80px;
  bottom: 30px;
  background: rgba(100, 112, 86, 0.12);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr minmax(260px, 380px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-card,
.catalog-panel,
.cart-card,
.form-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 40px;
  border-radius: var(--radius-xl);
}

.hero-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(123, 51, 72, 0.95), rgba(74, 38, 49, 0.94)),
    var(--panel);
  color: #fff8f6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.eyebrow,
.section-label,
.hero-card-label {
  margin: 0 0 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.hero h1,
.section-head h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  max-width: 12ch;
  line-height: 0.95;
}

.hero-text {
  max-width: 30ch;
  margin: 16px 0 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.hero-support,
.hero-card-text,
.product-body p,
.cart-note,
.form-status,
.empty-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.hero-link,
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-link:hover,
.filter-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
}

.hero-card-title {
  margin: 0 0 10px;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 2rem;
  line-height: 1;
}

.demo-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(154, 78, 99, 0.1);
  border: 1px solid rgba(154, 78, 99, 0.16);
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.95fr);
  gap: 24px;
}

.catalog-panel,
.cart-card,
.form-card {
  border-radius: var(--radius-xl);
}

.catalog-panel {
  padding: 28px;
}

.checkout-panel {
  display: grid;
  gap: 24px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.cart-card,
.form-card {
  padding: 24px;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  line-height: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-chip {
  border: 0;
}

.filter-chip.is-active {
  background: var(--accent);
  color: white;
}

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

.product-card,
.empty-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  border: 1px solid rgba(36, 24, 22, 0.08);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(239, 226, 212, 0.8));
}

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

.draft-badge,
.product-category,
.product-source,
.cart-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
}

.draft-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  background: rgba(36, 24, 22, 0.78);
  color: white;
}

.product-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

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

.product-category {
  padding: 6px 10px;
  background: rgba(154, 78, 99, 0.12);
  color: var(--accent-strong);
}

.product-source {
  padding: 6px 10px;
  background: rgba(100, 112, 86, 0.12);
  color: var(--olive);
}

.product-body h3 {
  margin: 0;
  font-size: 1.3rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.sizes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sizes-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3ece4;
  color: var(--muted);
  font-size: 0.85rem;
}

.product-footer,
.cart-summary > div,
.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.add-button,
.checkout-button,
.cart-actions button {
  border: 0;
  border-radius: 14px;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.add-button,
.checkout-button {
  padding: 12px 16px;
  background: var(--ink);
  color: white;
}

.add-button:hover,
.checkout-button:hover {
  transform: translateY(-2px);
}

.cart-items {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--panel-solid);
  border: 1px solid rgba(36, 24, 22, 0.06);
}

.cart-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-item-body {
  display: grid;
  gap: 8px;
}

.cart-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.cart-actions button {
  padding: 7px 10px;
  background: #f2ebe3;
  color: var(--ink);
}

.cart-actions button:last-child {
  background: transparent;
  color: var(--accent-strong);
  padding-inline: 0;
}

.cart-summary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-badge {
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 10px;
  background: var(--accent);
  color: white;
}

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

.field-grid {
  display: grid;
  gap: 12px;
}

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

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 24, 22, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: 2px solid rgba(154, 78, 99, 0.2);
  border-color: rgba(154, 78, 99, 0.5);
}

.checkout-button {
  width: 100%;
  padding-block: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.checkout-button:disabled {
  opacity: 0.7;
  transform: none;
  cursor: wait;
}

.form-status {
  margin: 0;
  min-height: 24px;
}

.form-status.is-error {
  color: #9b2337;
}

.empty-card {
  padding: 24px;
}

.empty-card.compact {
  padding: 18px;
}

@media (max-width: 1080px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 20px;
  }

  .hero-copy,
  .hero-card,
  .catalog-panel,
  .cart-card,
  .form-card {
    padding: 22px;
    border-radius: 24px;
  }

  .section-head,
  .section-head.compact {
    align-items: start;
    flex-direction: column;
  }

  .filters,
  .two-columns {
    justify-content: flex-start;
  }

  .products-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }
}
