:root {
  --bg: #f4efe8;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --sand: #e8ddcf;
  --line: rgba(88, 60, 28, 0.12);
  --line-strong: rgba(88, 60, 28, 0.22);
  --ink: #21160f;
  --muted: #6f6258;
  --muted-soft: #8b7a6d;
  --accent: #a1462f;
  --accent-deep: #6d2416;
  --forest: #29443c;
  --forest-deep: #182923;
  --gold: #d9b06f;
  --shadow-soft: 0 18px 60px rgba(40, 23, 11, 0.08);
  --shadow-card: 0 24px 50px rgba(52, 29, 12, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 176, 111, 0.22), transparent 32%),
    linear-gradient(180deg, #f8f4ee 0%, #f3ede6 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a,
button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 32px;
  background: rgba(255, 252, 246, 0.88);
  border-bottom: 1px solid rgba(88, 60, 28, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(109, 36, 22, 0.22);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(88, 60, 28, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-label {
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.search input::placeholder {
  color: #99897e;
}

.topbar-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.top-link,
.top-action,
.hero-primary,
.hero-secondary,
.contact-cta,
.order-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.top-link,
.hero-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(88, 60, 28, 0.12);
}

.top-action,
.hero-primary,
.contact-cta,
.order-box a {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 34px rgba(109, 36, 22, 0.2);
}

.top-link:hover,
.top-action:hover,
.hero-primary:hover,
.hero-secondary:hover,
.contact-cta:hover,
.order-box a:hover {
  transform: translateY(-1px);
}

main {
  padding-bottom: 30px;
}

.hero,
.hero-carousel,
.catalog-shell,
.contact {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 34px 0 16px;
}

.hero-copy,
.filters,
.products,
.contact,
.hero-carousel {
  position: relative;
}

.hero-copy {
  padding: 42px 36px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(248, 241, 231, 0.96)),
    var(--paper);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -40px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(217, 176, 111, 0.32), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.hero-carousel-head h2,
.products-head h2,
.filters h2,
.contact h2,
.detail-info h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.93;
}

.hero-copy > p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.hero-summary {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 28px;
}

.hero-summary-head h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
}

.hero-summary p:not(.eyebrow),
.filter-intro,
.section-copy,
.contact p,
.detail-copy,
.table-note,
.size-translation p,
.order-box ul,
.search-empty {
  color: var(--muted);
  line-height: 1.65;
}

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

.info-list div {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 16px;
}

.info-list span {
  display: block;
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-list strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.3;
}

.hero-carousel {
  margin-top: 18px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.hero-carousel-head,
.products-head,
.section-title,
.contact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.hero-carousel-head {
  margin-bottom: 18px;
}

.hero-carousel-head h2,
.products-head h2,
.filters h2,
.contact h2 {
  margin: 0;
}

.hero-carousel-head h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 0.98;
}

.section-copy {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: 15px;
}

.hero-carousel-controls {
  display: flex;
  gap: 10px;
}

.hero-nav {
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(88, 60, 28, 0.12);
  border-radius: 50%;
  cursor: pointer;
}

.hero-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.hero-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 292px);
  gap: 16px;
}

.hero-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.hero-card-button,
.card-button {
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ede4d8;
}

.hero-card-info {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.hero-tag,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tag {
  color: #fff;
  background: var(--forest);
}

.hero-card-info h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.filters h2 {
  font-size: 36px;
  line-height: 0.98;
}

.filter-intro {
  margin: 12px 0 22px;
  font-size: 14px;
}

.filter {
  width: 100%;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 0 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter[hidden] {
  display: none;
}

.filter:hover,
.filter.active {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(88, 60, 28, 0.12);
  transform: translateX(2px);
}

.filter-note {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(88, 60, 28, 0.12);
  font-size: 13px;
}

.filter-note strong {
  color: var(--ink);
}

.products {
  padding: 28px;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid rgba(88, 60, 28, 0.08);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.products-head {
  margin-bottom: 18px;
}

.products-head h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.98;
}

.count {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(88, 60, 28, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-empty {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(88, 60, 28, 0.12);
  border-radius: 18px;
}

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

.product-card,
.empty-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.product-card.is-hidden {
  display: none;
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 242, 234, 0.74), rgba(236, 228, 219, 0.9));
}

.card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(30, 20, 13, 0.16));
  pointer-events: none;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

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

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  color: #fff;
  background: rgba(24, 41, 35, 0.9);
  backdrop-filter: blur(12px);
}

.card-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "category category"
    "title price";
  column-gap: 12px;
  row-gap: 4px;
  padding: 18px;
}

.category {
  grid-area: category;
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-info h3 {
  grid-area: title;
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.card-info p,
.price-row span,
.meta,
.card-sizes {
  display: none;
}

.price-row {
  grid-area: price;
  align-self: start;
}

.price-row strong {
  display: inline-block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.empty-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 26px;
  color: var(--muted);
}

.contact {
  margin-top: 22px;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(217, 176, 111, 0.18), transparent 28%),
    linear-gradient(145deg, #201510, #2f221a 58%, #4b2a1e 100%);
  border: 1px solid rgba(88, 60, 28, 0.12);
  border-radius: 34px;
  color: #fff;
  box-shadow: 0 30px 65px rgba(28, 17, 10, 0.28);
}

.contact div {
  max-width: 800px;
}

.contact h2 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 0.96;
}

.contact p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.contact-whatsapp,
.contact-email {
  font-size: 14px;
}

.contact-whatsapp a,
.contact-email a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-copy {
  display: inline;
  margin-left: 8px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact-cta {
  color: var(--ink);
  background: #fff9f1;
  box-shadow: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 12, 9, 0.68);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-columns: minmax(390px, 1.08fr) minmax(360px, 0.92fr);
  gap: 26px;
  max-width: 1320px;
  margin: auto;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 241, 233, 0.98));
  border: 1px solid rgba(88, 60, 28, 0.12);
  border-radius: 30px;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 36px 100px rgba(22, 14, 8, 0.28);
}

.close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(88, 60, 28, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 24px;
}

.detail-gallery,
.detail-info,
.size-stock,
.product-info-block,
.order-box,
.available-sizes {
  min-width: 0;
}

.detail-image-stack {
  display: grid;
  gap: 14px;
}

.detail-image-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: linear-gradient(180deg, #f7f1ea, #ede2d5);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 22px;
}

.detail-image-stack + .main-photo,
.detail-image-stack ~ .thumbs {
  display: none;
}

.main-photo {
  display: grid;
  place-items: center;
  min-height: 580px;
  background: linear-gradient(180deg, #f7f1ea, #ede2d5);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 22px;
  overflow: hidden;
}

.main-photo img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thumbs button {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(88, 60, 28, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

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

.detail-info {
  padding: 18px 6px 10px;
}

.detail-info h2 {
  margin: 0 0 10px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.96;
}

.style-no {
  margin: 0 0 18px;
  color: var(--muted-soft);
  font-weight: 700;
}

.detail-copy {
  margin: 0;
  font-size: 15px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.detail-specs div,
.attribute-grid div,
.available-sizes strong {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(88, 60, 28, 0.1);
}

.detail-specs div {
  padding: 14px;
  border-radius: 16px;
}

.detail-specs span,
.info-lines span,
.attribute-grid span,
.available-sizes > span,
.section-title span,
.size-stock th {
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-specs strong,
.info-lines strong,
.attribute-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.product-info-block,
.available-sizes {
  margin: 0 0 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 22px;
}

.info-lines {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.info-lines div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(88, 60, 28, 0.08);
}

.info-lines div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

.attribute-grid div {
  padding: 12px;
  border-radius: 16px;
}

.available-sizes div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.available-sizes strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 14px;
}

.size-stock {
  margin: 0 0 22px;
}

.section-title {
  align-items: flex-end;
  margin: 0 0 10px;
}

.section-title h3 {
  margin: 0;
  font-size: 20px;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 22px;
}

.size-chart-image {
  margin: 0 0 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 18px;
}

.size-chart-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.size-translation {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 18px;
}

.size-translation strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.size-translation ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.size-stock table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.size-stock th,
.size-stock td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(88, 60, 28, 0.08);
  text-align: left;
  white-space: nowrap;
}

.size-stock td {
  background: rgba(255, 255, 255, 0.78);
}

.size-stock th {
  background: rgba(243, 233, 222, 0.8);
}

.size-stock tr:last-child td {
  border-bottom: 0;
}

.size-stock th:last-child,
.size-stock td:last-child {
  display: none;
}

.table-note {
  margin: 8px 0 0;
  font-size: 12px;
}

.order-box {
  padding: 20px;
  background: linear-gradient(180deg, rgba(237, 228, 216, 0.72), rgba(252, 246, 238, 0.92));
  border: 1px solid rgba(88, 60, 28, 0.1);
  border-radius: 22px;
}

.order-box h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.order-box ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 18px;
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

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

  .filters {
    position: static;
  }

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

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 20px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .hero,
  .hero-carousel,
  .catalog-shell,
  .contact {
    width: min(100% - 20px, 1400px);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy,
  .hero-carousel,
  .products,
  .filters,
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy {
    padding-top: 30px;
    padding-bottom: 30px;
  }

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

  .products-head,
  .hero-carousel-head,
  .section-title,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .modal-panel {
    inset: 14px;
    max-height: calc(100dvh - 28px);
  }

  .main-photo {
    min-height: 420px;
  }

  .detail-info {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .hero,
  .hero-carousel,
  .catalog-shell,
  .contact {
    width: min(100% - 12px, 1400px);
  }

  .hero-copy,
  .hero-carousel,
  .products,
  .filters,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-carousel-head h2,
  .products-head h2,
  .filters h2,
  .contact h2,
  .spotlight-copy h2 {
    font-size: 34px;
  }

  .hero-track {
    grid-auto-columns: 78vw;
  }

  .grid,
  .detail-specs,
  .attribute-grid,
  .size-translation ul,
  .info-list {
    grid-template-columns: 1fr;
  }

  .count {
    padding: 10px 14px;
  }

  .card-info {
    grid-template-columns: 1fr;
    grid-template-areas:
      "category"
      "title"
      "price";
  }

  .price-row strong {
    text-align: left;
  }

  .modal-panel {
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 14px;
    border-radius: 0;
  }

  .detail-info h2 {
    font-size: 34px;
  }

  .info-lines div {
    grid-template-columns: 1fr;
  }

  .thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .thumbs button {
    flex: 0 0 72px;
  }

  .main-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .table-wrap {
    max-width: 100%;
  }

  .size-stock table {
    min-width: 860px;
  }
}
