:root {
  --ink: #18181b;
  --muted: #68625a;
  --line: #ded8cf;
  --paper: #fffdf8;
  --surface: #ffffff;
  --accent: #0f6b5f;
  --accent-strong: #0a4b43;
  --gold: #bf7f2f;
  --rose: #b94a62;
  --shadow: 0 18px 50px rgba(24, 24, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.top-banner-wrap {
  background: var(--accent-strong);
  display: block;
  height: 50px;
  overflow: hidden;
  width: 100%;
}

.top-banner {
  display: block;
  height: 50px;
  max-width: none;
  width: auto;
}

@media (max-width: 640px) {
  .top-banner {
    height: 50px;
  }
}

.site-header {
  align-items: center;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.top-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

main {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 34px clamp(18px, 5vw, 64px) 56px;
}

.intro {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  padding-bottom: 28px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(1.85rem, 3.8vw, 3.4rem);
  max-width: 850px;
}

.intro h2 a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.intro > p {
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

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

.ordering-notice {
  background: #f1efeb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #68625a;
  font-weight: 800;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(24, 24, 27, 0.05);
  overflow: hidden;
}

.product-media {
  aspect-ratio: 1 / 1;
  background: #f7f2ea;
  overflow: hidden;
  position: relative;
}

.product-media img {
  cursor: zoom-in;
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-media img:focus-visible {
  outline: 4px solid rgba(15, 107, 95, 0.45);
  outline-offset: -4px;
}

.carousel-button {
  align-items: center;
  background: rgba(24, 24, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 2rem;
  font-weight: 600;
  height: 42px;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  padding: 0 0 4px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 2;
}

.carousel-button:hover {
  background: var(--ink);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  bottom: 12px;
  display: flex;
  gap: 7px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.carousel-dots span {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 24, 27, 0.18);
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.carousel-dots span.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

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

.product-heading {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.product-heading h2 {
  font-size: 1.15rem;
}

.product-heading strong {
  color: var(--rose);
  font-size: 1.05rem;
  white-space: nowrap;
}

.color-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
}

.size-options {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.size-options legend {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.size-options label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 22px 1fr auto;
  min-height: 44px;
  padding: 10px 12px;
}

.size-options input {
  accent-color: var(--accent);
  appearance: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: none;
  height: 18px;
  min-height: 18px;
  outline: 0;
  padding: 0;
  width: 18px;
}

.size-options strong {
  color: var(--rose);
  font-size: 0.95rem;
  white-space: nowrap;
}

.size-options label.is-disabled {
  background: #f1efeb;
  color: #8f8981;
  cursor: not-allowed;
  opacity: 0.66;
}

.size-options label.is-disabled strong {
  color: #8f8981;
}

.size-options label.is-disabled em {
  color: #8f8981;
  font-style: normal;
  font-weight: 700;
}

.is-ordering-closed {
  opacity: 0.72;
}

.size-options:disabled label {
  background: #f1efeb;
  color: #8f8981;
  cursor: not-allowed;
}

.size-options:disabled strong {
  color: #8f8981;
}

.swatch {
  border: 1px solid rgba(24, 24, 27, 0.18);
  border-radius: 999px;
  display: inline-block;
  height: 16px;
  width: 16px;
}

.swatch-white {
  background: #fff;
}

.swatch-underberg {
  background: #0f6b3f;
}

.swatch-black {
  background: #1f1f23;
}

.swatch-navy {
  background: #17325c;
}

.swatch-natural {
  background: #d9c8aa;
}

.swatch-steel {
  background: #9aa0a6;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 7px;
}

input,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #aaa39a;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 107, 95, 0.14);
}

input[readonly] {
  background: #f1efeb;
  color: #68625a;
  cursor: not-allowed;
}

button {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button:hover {
  background: var(--accent-strong);
}

button:active {
  transform: translateY(1px);
}

button:disabled,
button:disabled:hover {
  background: #8f8981;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.order-panel {
  align-self: start;
  background: #fbf5ec;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 20px;
  position: sticky;
  top: 92px;
}

.order-panel h2 {
  font-size: 1.65rem;
}

.order-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-list li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.empty-order {
  color: var(--muted);
}

.order-title {
  display: flex;
  font-weight: 800;
  justify-content: space-between;
}

.order-text {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.quantity-control {
  align-items: center;
  display: inline-grid;
  gap: 8px;
  grid-template-columns: 34px minmax(22px, auto) 34px;
  justify-self: start;
}

.quantity-control span {
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.quantity-button {
  align-items: center;
  background: #f1efeb;
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  font-size: 1.1rem;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.quantity-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.remove-item {
  align-self: start;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 34px;
  padding: 6px 10px;
}

.remove-item:hover {
  background: #fff4f4;
  border-color: #e5b8b8;
  color: #9f2f3a;
}

.summary-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 1.1rem;
  justify-content: space-between;
  padding-top: 16px;
}

.summary-row strong {
  color: var(--rose);
}

.summary-row-total {
  font-weight: 900;
}

.summary-row-total strong {
  font-size: 1.2rem;
}

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

.address-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(110px, 0.8fr) minmax(140px, 1.2fr);
}

.send-button {
  background: var(--ink);
}

.send-button:hover {
  background: #333335;
}

.order-message {
  color: var(--accent-strong);
  font-weight: 700;
  margin: 0;
  min-height: 24px;
}

.site-footer {
  padding: 0 clamp(18px, 5vw, 64px) 34px;
  text-align: center;
}

.site-footer a {
  color: #8f8981;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--accent);
}

.image-lightbox {
  align-items: center;
  background: rgba(10, 10, 12, 0.88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 100;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  max-height: calc(100vh - 56px);
  max-width: calc(100vw - 56px);
  object-fit: contain;
}

.lightbox-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: inline-flex;
  font-size: 2rem;
  height: 46px;
  justify-content: center;
  line-height: 1;
  min-height: 46px;
  padding: 0 0 4px;
  position: fixed;
  right: 18px;
  top: 18px;
  width: 46px;
}

.lightbox-close:hover {
  background: #fff;
}

.product-media {
  aspect-ratio: 1 / 1;
  display: block;
  line-height: 0;
}

.product-media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.carousel-button {
  border-radius: 999px;
  height: 42px;
  left: auto;
  min-height: 42px;
  padding: 0 0 4px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 2;
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.size-options input[type="radio"] {
  appearance: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
  height: 18px;
  margin: 0;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

@media (max-width: 980px) {
  main {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header,
  .intro,
  .product-heading {
    align-items: start;
  }

  .site-header,
  .intro {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
  }

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

  .address-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox img {
    max-height: calc(100vh - 28px);
    max-width: calc(100vw - 28px);
  }
}
