:root {
  --bg: #faf7f3;
  --surface: #ffffff;
  --surface-soft: #f4ede7;
  --line: rgba(43, 28, 20, 0.12);
  --line-strong: rgba(43, 28, 20, 0.2);
  --ink: #211815;
  --muted: #6c5e56;
  --accent: #9d4f31;
  --accent-deep: #7f3d24;
  --shadow: 0 14px 28px rgba(43, 28, 20, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1160px;
  --body-font: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Segoe UI", sans-serif;
  --heading-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background: linear-gradient(180deg, #fcfaf7 0%, var(--bg) 100%);
  line-height: 1.5;
}

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

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

button,
.button {
  font: inherit;
}

.container {
  width: min(calc(100% - 1rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(33, 24, 21, 0.08);
}

.header-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand img {
  width: 168px;
  height: auto;
}

.site-nav,
.footer-links,
.mini-stats,
.cta-row,
.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-nav a,
.footer-links a,
.breadcrumbs a,
.results-copy {
  color: var(--muted);
}

.site-nav a {
  font-size: 0.95rem;
}

.hero {
  padding: 1.35rem 0 0.85rem;
}

.hero-shell {
  display: grid;
  gap: 0.65rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

.eyebrow--quiet::before {
  background: rgba(157, 79, 49, 0.35);
}

.hero h1,
.section-heading h2,
.product-info-panel h1,
.simple-page__shell h1 {
  margin: 0;
  font-family: var(--heading-font);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.hero p,
.site-footer p,
.product-summary,
.mini-card p,
.selection-note,
.simple-page__shell p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  max-width: 34rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-meta span,
.product-chip,
.mini-stats span,
.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-meta span,
.product-chip,
.mini-stats span {
  padding: 0.52rem 0.78rem;
}

.shop-shell,
.product-section,
.related-section {
  padding: 0.5rem 0 1.8rem;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.section-heading--catalog {
  margin-bottom: 0.9rem;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 6vw, 2.25rem);
}

.filter-bar {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0 0 0.35rem;
  margin-bottom: 0.95rem;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.62rem 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

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

.product-card,
.product-image-wrap,
.mini-card,
.size-picker,
.simple-page__shell,
.empty-state {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
}

.product-card__media {
  display: block;
  background: var(--surface-soft);
}

.product-card__media img,
.product-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.85rem 0.9rem;
}

.product-card h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.3;
  font-weight: 600;
}

.product-card__meta,
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.7rem;
}

.price-stack strong,
#product-price {
  font-size: 1rem;
  font-weight: 700;
}

.product-card__category,
.product-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-layout,
.detail-grid {
  display: grid;
  gap: 1rem;
}

.product-image-wrap {
  padding: 0.55rem;
  border-radius: var(--radius-xl);
}

.product-image-wrap img {
  border-radius: calc(var(--radius-xl) - 6px);
}

.product-info-panel {
  display: grid;
  gap: 0.9rem;
}

.product-info-panel h1 {
  font-size: clamp(1.9rem, 7vw, 3rem);
}

.product-chip {
  width: fit-content;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#product-price {
  font-size: 1.55rem;
}

#product-original-price {
  color: var(--muted);
  text-decoration: line-through;
}

.mini-card,
.size-picker,
.simple-page__shell,
.empty-state {
  padding: 1rem;
}

.mini-card h3,
.empty-state h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.12rem;
}

.size-picker {
  display: grid;
  gap: 0.8rem;
}

.size-list {
  gap: 0.55rem;
}

.size-button {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.size-button:hover:not(:disabled),
.size-button.is-selected {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.size-button.is-unavailable,
.size-button:disabled {
  background: #f1ebe5;
  color: var(--muted);
  border-color: rgba(33, 24, 21, 0.08);
  cursor: not-allowed;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 700;
}

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

.detail-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 0.4rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.9rem;
  font-size: 0.86rem;
}

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

.site-footer {
  border-top: 1px solid rgba(33, 24, 21, 0.08);
  background: rgba(255, 255, 255, 0.65);
}

.site-footer p {
  max-width: 24rem;
}

.footer-shell {
  flex-direction: column;
  align-items: flex-start;
}

.footer-links {
  gap: 0.8rem 1rem;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.simple-page__shell {
  width: min(calc(100% - 1rem), 34rem);
  display: grid;
  gap: 0.8rem;
  text-align: center;
}

.simple-page__shell img {
  margin: 0 auto;
}

@media (min-width: 700px) {
  .container {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .header-shell,
  .footer-shell {
    padding: 1rem 0;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

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

  .product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }

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

  .footer-shell {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
