:root {
  --bg: #f4f1ea;
  --ink: #171717;
  --muted: #6e6a62;
  --line: #d8d0c1;
  --panel: #ffffff;
  --accent: #2f6b5f;
  --accent-dark: #1b463e;
  --soft: #ebe4d6;
  --warn: #ad542e;
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

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

.topbar {
  align-items: center;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 64px;
  padding: 12px clamp(16px, 4vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-logo {
  background: #111;
  border: 1px solid var(--line);
  height: 42px;
  object-fit: contain;
  padding: 3px;
  width: 42px;
}

.nav {
  align-items: center;
  display: flex;
  gap: clamp(12px, 3vw, 28px);
}

.nav a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.icon-button,
.close-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
}

.cart-count {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
}

.kicker {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 20px;
  max-width: 760px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.03;
  margin-bottom: 0;
}

.primary-link,
.primary-button {
  align-items: center;
  background: var(--accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.primary-link:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

.section {
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px);
}

.offer-slider-section {
  background: #111;
  border-bottom: 1px solid var(--line);
  padding: clamp(10px, 1.6vw, 20px) clamp(12px, 3vw, 36px);
}

.offer-slider {
  margin: 0 auto;
  max-width: 1320px;
  position: relative;
}

.offer-track {
  background: #111;
  height: clamp(300px, 42vw, 520px);
  overflow: hidden;
  position: relative;
}

.offer-slide {
  display: block;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 260ms ease;
}

.offer-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.offer-slide img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.slider-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 42px;
  height: 52px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  z-index: 3;
}

.slider-prev {
  left: 14px;
}

.slider-next {
  right: 14px;
}

.slider-dots {
  bottom: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 3;
}

.slider-dots button {
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  cursor: pointer;
  height: 8px;
  padding: 0;
  width: 28px;
}

.slider-dots button.is-active {
  background: #fff;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.shop-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
}

.filter-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 20px;
  padding: 18px;
  position: sticky;
  top: 86px;
}

.filter-group {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
}

.filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-group > p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.filter-button,
.size-button {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  min-height: 34px;
  padding: 0 11px;
}

.swatch-filter {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
}

.swatch-filter .swatch {
  border-radius: 999px;
  height: 16px;
  width: 16px;
}

.filter-button.is-active,
.size-button.is-active,
.swatch-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-button:hover,
.size-button:hover,
.swatch-filter:hover {
  border-color: var(--ink);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #eee9df;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 7px;
  text-transform: uppercase;
}

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

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  transition: border-color 160ms ease, transform 160ms ease;
}

.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.product-image {
  aspect-ratio: 4 / 5;
  background: #ebe7dc;
  overflow: hidden;
}

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

.product-info {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.product-title-row h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.price {
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}

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

.swatch {
  border: 1px solid rgba(0, 0, 0, 0.2);
  height: 22px;
  width: 22px;
}

.product-modal {
  border: 0;
  max-height: min(92vh, 900px);
  max-width: min(1120px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.product-modal > .close-button {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
}

.modal-body {
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.modal-gallery {
  background: #eee9df;
  padding: 16px;
}

.gallery-stage {
  position: relative;
}

.gallery-stage > img {
  aspect-ratio: 4 / 5;
  height: min(70vh, 720px);
  object-fit: cover;
}

.gallery-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 38px;
  height: 48px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 160ms ease;
  width: 48px;
  z-index: 2;
}

.gallery-stage:hover .gallery-arrow,
.gallery-arrow:focus-visible {
  opacity: 1;
}

.gallery-arrow-left {
  left: 12px;
}

.gallery-arrow-right {
  right: 12px;
}

.thumb-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 10px;
}

.thumb-row button {
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

.thumb-row button.is-active {
  border-color: var(--accent);
}

.thumb-row img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.modal-info {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 54px);
  place-content: center stretch;
}

.modal-info h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.modal-info > p:not(.kicker):not(.price) {
  color: var(--muted);
  line-height: 1.6;
}

.option-block {
  display: grid;
  gap: 10px;
}

.option-block > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-panel {
  background: #fff;
  bottom: 0;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 440px;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 180ms ease;
  width: min(100vw, 440px);
  z-index: 40;
}

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

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

.cart-head h2 {
  font-size: 26px;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 16px 0;
}

.cart-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.summary-line {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.summary-line.offer {
  color: var(--accent);
  font-weight: 800;
}

.summary-line.total {
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
  padding-top: 10px;
}

.offer-note {
  background: #e7f1ed;
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px;
}

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

.cart-thumb {
  aspect-ratio: 4 / 5;
  background: #eee9df;
  overflow: hidden;
}

.cart-thumb img {
  height: 100%;
  object-fit: cover;
}

.cart-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cart-item p {
  margin: 0;
}

.cart-item button {
  background: transparent;
  border: 0;
  color: var(--warn);
  cursor: pointer;
  justify-self: start;
  padding: 0;
}

.whatsapp-button {
  width: 100%;
}

.site-footer {
  align-items: center;
  background: #111;
  color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px);
}

.footer-brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-logo {
  background: #fff;
  height: 36px;
  object-fit: contain;
  padding: 3px;
  width: 36px;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 10px;
}

.social-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
  width: 42px;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.social-link svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.footer-contact-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
  transition: background 160ms ease, border-color 160ms ease;
}

.footer-contact-button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-modal {
  border: 0;
  max-width: min(520px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.contact-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.contact-modal > .close-button {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.contact-form {
  background: #fff;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 42px);
}

.contact-form h2 {
  font-size: clamp(28px, 5vw, 42px);
  padding-right: 48px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 12px;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(47, 107, 95, 0.14);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.scrim {
  background: rgba(0, 0, 0, 0.35);
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 35;
}

.scrim.is-open {
  display: block;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

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

  .modal-gallery > img {
    height: auto;
  }

  .offer-track {
    height: clamp(240px, 62vw, 390px);
  }

  .slider-button {
    height: 44px;
    width: 44px;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 12px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    display: none;
  }

  .product-grid {
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-title-row {
    display: grid;
  }

  .cart-item {
    grid-template-columns: 82px 1fr;
  }

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