:root {
  --yellow: #f7b801;
  --yellow-soft: #fff2b8;
  --brown: #4a2b1b;
  --green: #40b649;
  --ink: #211713;
  --muted: #71645e;
  --line: #eadfd6;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(74, 43, 27, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(16px, 5vw, 56px);
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(74, 43, 27, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: clamp(128px, 24vw, 210px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  color: var(--brown);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover {
  background: var(--yellow-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brown);
}

.hero,
.section {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.98fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(36px, 7vw, 82px) 0;
}

.hero-copy h1,
.section-heading h2,
.location h2 {
  margin: 0;
  color: var(--brown);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(3rem, 8vw, 7.1rem);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.hero-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.location-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: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button-primary {
  color: var(--brown);
  background: var(--yellow);
  box-shadow: 0 10px 26px rgba(247, 184, 1, 0.24);
}

.button-secondary {
  color: var(--brown);
  background: var(--white);
  border-color: var(--line);
}

.button.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(64, 182, 73, 0.13), transparent 42%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero > *,
.section > *,
.location > * {
  min-width: 0;
}

.hero-logo {
  width: min(460px, 92%);
  filter: drop-shadow(0 14px 24px rgba(74, 43, 27, 0.12));
}

.hero-stats {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  width: min(270px, calc(100% - 32px));
  padding: 14px;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(74, 43, 27, 0.12);
}

.hero-stats span {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 42px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.strip div {
  min-width: 0;
  padding: 18px;
  background: var(--white);
}

.strip strong,
.strip span {
  display: block;
}

.strip strong {
  color: var(--brown);
  font-size: 1rem;
}

.strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 42px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2,
.location h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.section-heading p:not(.eyebrow),
.location p,
.location dd {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

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

.featured-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.featured-card div {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 12px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(33, 23, 19, 0.1), rgba(33, 23, 19, 0.86));
  border-radius: var(--radius);
}

.featured-card h3,
.featured-card p {
  margin: 0;
}

.featured-card h3 {
  font-size: 1rem;
}

.featured-card p {
  margin-top: 2px;
  font-size: 0.88rem;
}

.catalog-section {
  padding-top: 58px;
}

.catalog-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.catalog-summary {
  justify-self: end;
  color: var(--muted);
  font-weight: 800;
}

.toolbar {
  position: sticky;
  top: 76px;
  z-index: 10;
  display: grid;
  gap: 12px;
  padding: 12px;
  margin-bottom: 18px;
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.search-box input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(247, 184, 1, 0.2);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--brown);
  font-size: 0.9rem;
  font-weight: 900;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.filter-button.active {
  background: var(--yellow);
  border-color: var(--yellow);
}

.status-message {
  display: none;
  padding: 16px;
  margin-bottom: 16px;
  color: var(--brown);
  font-weight: 800;
  background: var(--yellow-soft);
  border: 1px solid rgba(247, 184, 1, 0.5);
  border-radius: var(--radius);
}

.status-message.visible {
  display: block;
}

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

.product-card {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(74, 43, 27, 0.07);
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f5ef;
  border: 0;
  cursor: zoom-in;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.product-card:hover .image-button img {
  transform: scale(1.04);
}

.product-info {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.product-topline,
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-code {
  font-size: 0.76rem;
  font-weight: 900;
}

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

.product-info h3 {
  min-height: 2.7em;
  margin: 0;
  color: var(--brown);
  font-size: 1rem;
  line-height: 1.35;
}

.product-size {
  min-height: 1.35em;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-price {
  color: var(--brown);
  font-size: 1.05rem;
}

.add-button {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--brown);
  font-size: 0.9rem;
  font-weight: 900;
  background: var(--yellow);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.cart-section {
  padding-top: 58px;
}

.cart-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.promo-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  color: var(--brown);
  background: var(--yellow-soft);
  border: 1px solid rgba(247, 184, 1, 0.45);
  border-radius: var(--radius);
}

.promo-box strong {
  font-weight: 900;
}

.promo-box span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.cart-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-row h3,
.cart-row p {
  margin: 0;
}

.cart-row h3 {
  overflow-wrap: anywhere;
  color: var(--brown);
  font-size: 0.96rem;
}

.cart-row p {
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-controls {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 4px;
  align-items: center;
}

.cart-controls button {
  width: 34px;
  height: 34px;
  color: var(--brown);
  font-weight: 900;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.cart-controls span {
  text-align: center;
  font-weight: 900;
}

.cart-empty {
  padding: 16px;
  color: var(--muted);
  background: #fffdf8;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.cart-empty.hidden {
  display: none;
}

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.cart-footer span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-footer strong {
  color: var(--brown);
  font-size: 1.8rem;
}

.cart-preview[hidden] {
  display: none;
}

.cart-preview {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: min(420px, calc(100% - 36px));
  padding: 14px;
  color: var(--brown);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.cart-preview strong {
  font-weight: 900;
}

.cart-preview span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.cart-preview-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cart-preview-actions .button {
  min-height: 42px;
  padding: 9px 12px;
}

.cart-preview-close {
  width: 34px;
  height: 34px;
  color: var(--brown);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.catalog-top-button[hidden] {
  display: none;
}

.catalog-top-button {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--brown);
  font-weight: 900;
  background: var(--yellow);
  border: 2px solid rgba(74, 43, 27, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.catalog-top-button:hover {
  transform: translateY(-1px);
}

.catalog-top-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 1.15rem;
  line-height: 1;
}

.catalog-top-button strong {
  font-size: 0.9rem;
}

.location {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
  padding-bottom: 72px;
}

.location-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.location dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.location dt {
  color: var(--brown);
  font-weight: 900;
}

.location dd {
  margin: 3px 0 0;
}

.map-wrap {
  min-height: 360px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 23, 19, 0.62);
  border: 0;
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 20px;
  width: min(900px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-card > img {
  width: 100%;
  height: 100%;
  max-height: 660px;
  object-fit: contain;
  background: #f8f5ef;
  border-radius: var(--radius);
}

.modal-card h2 {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.modal-card p {
  color: var(--muted);
}

.modal-card strong {
  display: block;
  margin: 18px 0;
  color: var(--brown);
  font-size: 1.8rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: var(--brown);
  font-size: 1.6rem;
  line-height: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .location {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .hero-media {
    min-height: 340px;
  }

  .strip,
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-heading {
    grid-template-columns: 1fr;
  }

  .catalog-summary {
    justify-self: start;
  }

  .modal-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand img {
    width: 142px;
  }

  .hero,
  .section {
    width: min(100% - 24px, 1160px);
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 14vw, 3.7rem);
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .location-actions,
  .cart-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .toolbar {
    top: 68px;
  }

  .cart-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .cart-controls {
    grid-column: 1 / -1;
    justify-content: end;
  }

  .cart-preview {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .catalog-top-button {
    left: 12px;
    bottom: 12px;
    min-height: 44px;
    padding: 9px 12px;
  }
}
