:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --surface-warm: #f4efe4;
  --text: #25312d;
  --muted: #64716b;
  --line: #ded8ca;
  --river: #2f7186;
  --river-dark: #1e5667;
  --field: #6f815d;
  --clay: #b56645;
  --clay-soft: #ead6c8;
  --shadow: 0 18px 45px rgba(60, 48, 32, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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;
  line-height: 1.5;
}

body.cart-open,
body.modal-open {
  overflow: hidden;
}

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

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

button {
  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;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(222, 216, 202, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fffdf8;
  background: var(--river);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
}

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

.site-nav a,
.cart-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  padding: 9px 12px;
}

.site-nav a:hover,
.cart-link:hover {
  background: var(--surface-warm);
}

.cart-link span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--clay);
  color: white;
  font-size: 0.78rem;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  max-width: var(--max);
  min-height: calc(100vh - 73px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(34px, 7vw, 84px) clamp(18px, 4vw, 28px) 42px;
}

.hero-copy h1,
.section-heading h2,
.split-copy h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(4.4rem, 11vw, 8.4rem);
}

.hero-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  padding: 12px 18px;
}

.button.primary {
  color: white;
  background: var(--river);
}

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

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--clay-soft);
}

.hero-media img {
  aspect-ratio: 5 / 4;
  height: 100%;
  object-fit: cover;
}

.category-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px clamp(18px, 4vw, 28px) 34px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.category-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
  white-space: nowrap;
}

.category-chip.active,
.category-chip:hover {
  background: var(--field);
  border-color: var(--field);
  color: white;
}

.shop-section,
.split-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px clamp(18px, 4vw, 28px);
}

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

.section-heading h2,
.split-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-image-button {
  width: 100%;
  display: block;
  border: 0;
  background: var(--surface-warm);
  cursor: zoom-in;
  padding: 0;
}

.product-image-button:focus-visible {
  outline: 3px solid var(--river);
  outline-offset: -3px;
}

.product-image-button img {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-warm);
  transition: transform 180ms ease;
}

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

.product-content {
  padding: 16px;
}

.product-content h3 {
  margin: 0;
  font-size: 1.02rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.add-button {
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: var(--radius);
  background: var(--text);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

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

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 36px);
  background: rgba(37, 49, 45, 0);
  opacity: 0;
  pointer-events: none;
  transition: background 180ms ease, opacity 180ms ease;
}

.product-modal.open {
  background: rgba(37, 49, 45, 0.54);
  opacity: 1;
  pointer-events: auto;
}

.product-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 180ms ease;
}

.product-modal.open .product-modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

.product-modal-media {
  min-height: 0;
  background: var(--surface-warm);
}

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

.product-modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.product-modal-content span {
  color: var(--field);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-modal-content h2 {
  margin: 8px 54px 10px 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.product-modal-content strong {
  font-size: 1.35rem;
}

.product-modal-content p {
  margin: 18px 0 28px;
  color: var(--muted);
}

.modal-actions {
  display: grid;
  gap: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 6vw, 68px);
}

.events-section {
  border-top: 1px solid var(--line);
}

.about-section {
  padding-top: 50px;
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface-warm);
}

.split-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.event-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.event-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.event-list time {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: var(--radius);
  background: var(--clay-soft);
  color: #6d3d2c;
  font-weight: 900;
}

.event-list h3,
.event-list p {
  margin: 0;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(37, 49, 45, 0);
  opacity: 0;
  pointer-events: none;
  transition: background 180ms ease, opacity 180ms ease;
}

.cart-drawer.open {
  background: rgba(37, 49, 45, 0.34);
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  width: min(430px, 100%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: -24px 0 45px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

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

.cart-header,
.cart-footer {
  padding: 20px;
}

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

.cart-header h2,
.cart-header p {
  margin: 0;
}

.cart-header p {
  color: var(--muted);
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px 20px;
}

.empty-cart {
  margin: 24px 0;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

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

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

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

.order-summary {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.order-summary h3 {
  margin: 0 0 2px;
  font-size: 0.98rem;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.order-summary strong {
  color: var(--text);
  text-align: right;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.paypal-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfaf6;
}

.paypal-shell p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

#paypal-button-container {
  min-height: 0;
}

.paypal-preview {
  display: grid;
  gap: 10px;
}

.paypal-button-preview {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1;
}

.paypal-main {
  background: #ffc439;
  color: #123984;
  font-size: 1.35rem;
  font-style: italic;
}

.paypal-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.paypal-later {
  border: 1px solid #b9b9b9;
  background: white;
  color: #2c2e2f;
}

.paypal-apple,
.paypal-card {
  background: #101820;
  color: white;
}

.paypal-divider {
  position: relative;
  display: flex;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.paypal-divider::before {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  content: "";
  border-top: 1px solid var(--line);
}

.paypal-divider span {
  position: relative;
  z-index: 1;
  background: #fbfaf6;
  padding: 0 10px;
}

.paypal-preview small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
}

.paypal-preview b {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.paypal-button-preview.paypal-card {
  border-radius: var(--radius);
}

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

  .hero {
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: 8ch;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

  .about-section .split-copy {
    order: 2;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .product-modal-media img {
    min-height: 0;
    max-height: 52vh;
  }

  .product-modal-content {
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

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

  .site-nav a,
  .cart-link {
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--line);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .hero-actions {
    display: grid;
  }

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

  .shop-section,
  .split-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .product-modal {
    align-items: end;
    padding: 12px;
  }

  .product-modal-panel {
    max-height: calc(100vh - 24px);
  }

  .product-modal-media img {
    max-height: 44vh;
  }

  .product-modal-content h2 {
    margin-right: 48px;
  }
}
