:root {
  --paper: #f6f1eb;
  --paper-2: #ece4dc;
  --ink: #1a1716;
  --muted: #726a64;
  --wine: #5b1423;
  --line: rgba(26, 23, 22, .17);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.catalog-announcement {
  align-items: center;
  background: var(--wine);
  color: white;
  display: flex;
  font-size: 9px;
  font-weight: 600;
  justify-content: center;
  letter-spacing: .13em;
  min-height: 31px;
  padding: 7px 16px;
  text-align: center;
  text-transform: uppercase;
}

.catalog-header {
  align-items: center;
  background: rgba(246, 241, 235, .94);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 90px;
  padding: 0 clamp(20px, 4vw, 72px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.catalog-logo { display: grid; justify-self: start; }
.catalog-logo strong {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1;
}
.catalog-logo span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .18em;
  margin-top: 4px;
  text-transform: uppercase;
}
.catalog-header nav { display: flex; gap: 34px; }
.catalog-header nav a {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 35px 0 7px;
  position: relative;
  text-transform: uppercase;
}
.catalog-header nav a::after {
  background: var(--wine);
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  width: 100%;
}
.catalog-header nav a:hover::after,
.catalog-header nav a.is-active::after { transform: scaleX(1); }
.header-contact {
  border: 1px solid var(--ink);
  font-size: 8px;
  font-weight: 600;
  justify-self: end;
  letter-spacing: .1em;
  padding: 13px 18px;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.header-contact:hover { background: var(--ink); color: white; }

.catalog-hero {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 50px;
  grid-template-columns: 1.6fr .65fr;
  min-height: 470px;
  padding: 100px clamp(20px, 7vw, 130px) 75px;
}
.eyebrow {
  color: var(--wine);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  margin: 0 0 26px;
  text-transform: uppercase;
}
.catalog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 7.3vw, 126px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .88;
  margin: 0;
  max-width: 930px;
}
.catalog-hero h1 em { color: var(--wine); font-style: italic; }
.catalog-hero__aside { border-left: 1px solid var(--line); padding-left: 35px; }
.catalog-hero__aside p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 50px; }
.catalog-hero__aside span {
  align-items: baseline;
  display: flex;
  font-size: 8px;
  gap: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.catalog-hero__aside strong { color: var(--wine); font-family: var(--serif); font-size: 42px; font-weight: 400; }

.catalog-toolbar {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 50px;
  justify-content: space-between;
  padding: 25px clamp(20px, 4vw, 72px);
}
.catalog-search { display: grid; gap: 7px; width: min(330px, 32vw); }
.catalog-search span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.catalog-search input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 12px;
  outline: 0;
  padding: 8px 0;
}
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.catalog-filters button {
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 10px 15px;
  text-transform: uppercase;
  transition: .2s ease;
}
.catalog-filters button:hover,
.catalog-filters button.is-active { background: var(--wine); border-color: var(--wine); color: white; }

.catalog-section { padding: 45px clamp(16px, 4vw, 72px) 130px; }
.catalog-state {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 30px;
  padding: 100px 0;
  text-align: center;
}
.catalog-grid {
  display: grid;
  gap: 70px 18px;
  grid-template-columns: repeat(4, 1fr);
}
.catalog-card__media {
  background: #e9e0d8;
  display: block;
  overflow: hidden;
  padding-top: 132%;
  position: relative;
}
.catalog-card__media img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .65s cubic-bezier(.2,.65,.25,1);
  width: 100%;
}
.catalog-card__media > span {
  background: var(--paper);
  font-size: 7px;
  font-weight: 600;
  left: 12px;
  letter-spacing: .12em;
  padding: 8px 10px;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
}
.catalog-card__media i {
  background: var(--wine);
  bottom: 0;
  color: white;
  font-size: 8px;
  font-style: normal;
  left: 0;
  letter-spacing: .1em;
  padding: 15px;
  position: absolute;
  right: 0;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.catalog-card:hover .catalog-card__media img { transform: scale(1.035); }
.catalog-card:hover .catalog-card__media i { transform: none; }
.catalog-card__info { padding: 17px 2px 0; }
.catalog-card__info p {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.catalog-card__info > div { align-items: baseline; display: flex; gap: 15px; justify-content: space-between; }
.catalog-card__info h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; margin: 0; }
.catalog-card__info strong { color: var(--wine); font-size: 13px; }
.catalog-card__info > span { color: var(--muted); display: block; font-size: 10px; margin-top: 5px; }

.catalog-size-guide {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(32px, 6vw, 90px);
  grid-template-columns: minmax(0, .75fr) minmax(340px, .55fr);
  padding: 90px clamp(20px, 7vw, 130px);
  scroll-margin-top: 130px;
}
.catalog-size-guide h2 {
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 96px);
  font-weight: 400;
  line-height: .9;
  margin: 0 0 24px;
}
.catalog-size-guide p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 30px;
  max-width: 490px;
}
.catalog-size-guide a:not(.catalog-size-guide__image) {
  border-bottom: 1px solid var(--ink);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  padding-bottom: 4px;
  text-transform: uppercase;
}
.catalog-size-guide__image {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 18px;
}
.catalog-size-guide__image img {
  background: white;
  width: 100%;
}

.catalog-buy-steps {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 46px;
  grid-template-columns: .7fr 1.3fr;
  padding: 86px clamp(20px, 4vw, 72px);
  scroll-margin-top: 130px;
}
.catalog-buy-steps__heading h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 82px);
  font-weight: 400;
  line-height: .92;
  margin: 0;
  max-width: 430px;
}
.catalog-buy-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.catalog-buy-steps article {
  border-left: 1px solid var(--line);
  min-height: 230px;
  padding: 8px 28px 0;
}
.catalog-buy-steps article span {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 36px;
}
.catalog-buy-steps article strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  margin: 34px 0 14px;
}
.catalog-buy-steps article p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 0;
}

.catalog-service {
  background: var(--ink);
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 clamp(20px, 4vw, 72px);
}
.catalog-service > div { border-right: 1px solid rgba(255,255,255,.15); min-height: 250px; padding: 48px 38px; }
.catalog-service > div:last-child { border: 0; }
.catalog-service span { color: rgba(255,255,255,.45); font-family: var(--serif); font-size: 28px; }
.catalog-service strong { display: block; font-family: var(--serif); font-size: 29px; font-weight: 400; margin-top: 45px; }
.catalog-service p { color: rgba(255,255,255,.6); font-size: 10px; line-height: 1.7; max-width: 320px; }

.catalog-footer {
  align-items: end;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 220px;
  padding: 60px clamp(20px, 4vw, 72px);
}
.catalog-footer > div:first-child { display: grid; }
.catalog-footer > div:first-child strong { font-family: var(--serif); font-size: 35px; font-weight: 400; letter-spacing: .06em; }
.catalog-footer > div:first-child span,
.catalog-footer p,
.catalog-socials a { color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.catalog-footer p { margin: 0; }
.catalog-socials { display: flex; gap: 25px; justify-self: end; }
.catalog-mobile-contact { display: none; }

/* Product detail */
.product-breadcrumb {
  align-items: center;
  display: flex;
  font-size: 8px;
  gap: 12px;
  letter-spacing: .1em;
  padding: 24px clamp(20px, 4vw, 72px);
  text-transform: uppercase;
}
.product-breadcrumb span,
.product-breadcrumb strong { color: var(--muted); font-weight: 500; }
.product-detail {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
}
.product-gallery { display: grid; grid-template-columns: 90px minmax(0, 1fr); min-height: auto; }
.product-gallery__main {
  background: #e9e0d8;
  height: clamp(520px, 62vh, 660px);
  order: 2;
}
.product-gallery__main button { background: transparent; border: 0; cursor: zoom-in; height: 100%; padding: 0; position: relative; width: 100%; }
.product-gallery__main img { height: 100%; object-fit: contain; padding: 24px; width: 100%; }
.product-gallery__main span {
  background: rgba(246,241,235,.9);
  bottom: 18px;
  font-size: 7px;
  letter-spacing: .1em;
  padding: 10px 12px;
  position: absolute;
  right: 18px;
  text-transform: uppercase;
}
.product-gallery__thumbs {
  align-content: start;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 10px;
  order: 1;
  padding: 10px;
}
.product-gallery__thumbs button { background: transparent; border: 1px solid transparent; cursor: pointer; padding: 2px; }
.product-gallery__thumbs button.is-active { border-color: var(--wine); }
.product-gallery__thumbs img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.product-copy { align-self: center; padding: 70px clamp(32px, 5vw, 90px); }
.product-copy h1 { font-family: var(--serif); font-size: clamp(70px, 7vw, 120px); font-weight: 400; letter-spacing: -.04em; line-height: .85; margin: 0; }
.product-copy__detail { color: var(--muted); font-size: 13px; margin: 24px 0 30px; }
.product-price { align-items: center; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 20px 0; }
.product-price strong { color: var(--wine); font-family: var(--serif); font-size: 30px; font-weight: 400; }
.product-price span { color: #426e4a; font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product-description { color: var(--muted); font-size: 11px; line-height: 1.75; margin: 28px 0; }
.product-size { border-top: 1px solid var(--line); padding-top: 22px; }
.product-size > div:first-child { align-items: center; display: flex; justify-content: space-between; }
.product-size > div:first-child strong { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.product-size a { border-bottom: 1px solid var(--ink); font-size: 8px; }
.product-sizes { display: grid; gap: 7px; grid-template-columns: repeat(6, 1fr); margin: 17px 0 12px; }
.product-sizes button { background: transparent; border: 1px solid var(--line); cursor: pointer; min-height: 45px; }
.product-sizes button:hover,
.product-sizes button.is-active { background: var(--wine); border-color: var(--wine); color: white; }
.product-size > p { color: var(--muted); font-size: 8px; line-height: 1.5; }
.product-buy {
  background: var(--wine);
  border: 0;
  color: white;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  margin-top: 20px;
  min-height: 54px;
  text-transform: uppercase;
  width: 100%;
}
.product-buy:disabled { background: #aaa099; cursor: not-allowed; }
.product-share {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  display: block;
  font-size: 8px;
  margin: 18px auto 0;
  padding: 0 0 3px;
  text-transform: uppercase;
}
.product-assurances { border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 40px; padding-top: 20px; }
.product-assurances div { display: grid; gap: 6px; }
.product-assurances span { color: var(--muted); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.product-assurances strong { font-size: 9px; font-weight: 500; }
.related-section { padding: 110px clamp(20px, 4vw, 72px); }
.related-heading h2 { font-family: var(--serif); font-size: clamp(52px, 6vw, 90px); font-weight: 400; margin: 0 0 50px; }
.related-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.related-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.related-card > div { display: grid; gap: 5px; padding-top: 12px; }
.related-card span { color: var(--muted); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.related-card strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.related-card i { color: var(--wine); font-size: 11px; font-style: normal; }
.product-lightbox { display: grid; inset: 0; opacity: 0; pointer-events: none; position: fixed; transition: opacity .2s; z-index: 500; }
.product-lightbox.is-open { opacity: 1; pointer-events: auto; }
.product-lightbox > div { background: rgba(16,14,13,.95); inset: 0; position: absolute; }
.product-lightbox img { align-self: center; height: 92vh; justify-self: center; max-width: 94vw; object-fit: contain; position: relative; z-index: 1; }
.product-lightbox > button { background: white; border: 0; cursor: pointer; font-size: 30px; height: 48px; position: fixed; right: 18px; top: 18px; width: 48px; z-index: 2; }
.not-found { display: grid; min-height: 100vh; place-items: center; text-align: center; }
.not-found h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 100px); font-weight: 400; max-width: 800px; }
.not-found a { border-bottom: 1px solid; font-size: 10px; text-transform: uppercase; }

@media (max-width: 1050px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-header { grid-template-columns: 1fr auto; }
  .catalog-header nav { display: none; }
  .product-detail { grid-template-columns: 1fr 1fr; }
  .product-gallery { grid-template-columns: 70px minmax(0, 1fr); }
  .product-gallery__main { height: clamp(500px, 58vh, 620px); }
}

@media (max-width: 760px) {
  .catalog-header { min-height: 73px; padding: 0 16px; }
  .catalog-logo span { display: none; }
  .header-contact { padding: 11px 12px; }
  .catalog-hero { display: block; min-height: auto; padding: 75px 18px 55px; }
  .catalog-hero h1 { font-size: clamp(58px, 17vw, 94px); }
  .catalog-hero__aside { border-left: 0; border-top: 1px solid var(--line); margin-top: 55px; padding: 28px 0 0; }
  .catalog-hero__aside p { margin-bottom: 25px; }
  .catalog-toolbar { align-items: stretch; display: grid; gap: 22px; padding: 20px 16px; }
  .catalog-search { width: 100%; }
  .catalog-filters { justify-content: flex-start; overflow-x: auto; }
  .catalog-filters button { flex: 0 0 auto; }
  .catalog-section { padding: 32px 10px 90px; }
  .catalog-grid { gap: 42px 9px; grid-template-columns: repeat(2, 1fr); }
  .catalog-card__media i { display: none; }
  .catalog-card__info h2 { font-size: 22px; }
  .catalog-card__info > div { display: block; }
  .catalog-card__info strong { display: block; margin-top: 3px; }
  .catalog-size-guide { display: block; padding: 70px 18px; }
  .catalog-size-guide h2 { font-size: 58px; }
  .catalog-size-guide__image { display: block; margin-top: 35px; padding: 10px; }
  .catalog-buy-steps { display: block; padding: 70px 18px; }
  .catalog-buy-steps__heading h2 { font-size: 54px; }
  .catalog-buy-steps__grid { display: grid; gap: 0; grid-template-columns: 1fr; margin-top: 35px; }
  .catalog-buy-steps article { border-left: 0; border-top: 1px solid var(--line); min-height: auto; padding: 28px 0; }
  .catalog-buy-steps article strong { margin-top: 20px; }
  .catalog-service { grid-template-columns: 1fr; padding: 0 18px; }
  .catalog-service > div { border-bottom: 1px solid rgba(255,255,255,.15); border-right: 0; min-height: 220px; padding: 38px 10px; }
  .catalog-footer { align-items: start; grid-template-columns: 1fr 1fr; padding: 50px 18px 100px; }
  .catalog-footer > p { display: none; }
  .catalog-mobile-contact { align-items: center; background: var(--wine); bottom: 0; color: white; display: flex; font-size: 9px; font-weight: 600; justify-content: space-between; left: 0; letter-spacing: .08em; padding: 17px 18px; position: fixed; right: 0; text-transform: uppercase; z-index: 100; }
  .product-breadcrumb { padding: 18px 16px; }
  .product-detail { display: block; }
  .product-gallery { display: block; min-height: auto; }
  .product-gallery__main { height: min(58vh, 560px); }
  .product-gallery__main img { padding: 14px; }
  .product-gallery__thumbs { border: 0; display: flex; overflow-x: auto; padding: 10px 16px; }
  .product-gallery__thumbs button { flex: 0 0 70px; }
  .product-copy { padding: 65px 18px; }
  .product-copy h1 { font-size: 78px; }
  .product-sizes { grid-template-columns: repeat(3, 1fr); }
  .product-assurances { gap: 18px; grid-template-columns: 1fr; }
  .related-section { padding: 85px 10px; }
  .related-heading { padding: 0 8px; }
  .related-grid { gap: 35px 9px; grid-template-columns: repeat(2, 1fr); }
  .product-lightbox img { height: 88vh; max-width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
