@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #f8f5f0;
  --surface: #fffdf9;
  --surface-soft: #f2ede5;
  --text: #1f1f1f;
  --muted: #756d64;
  --line: #e8e0d3;
  --espresso: #3b2e26;
  --espresso-soft: #675349;
  --shadow: 0 18px 45px rgba(45, 34, 26, 0.09);
  --font-display: "Cormorant Garamond", "Playfair Display", "Bodoni 72", Georgia, serif;
  --font-body: "Inter", "Manrope", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 245, 240, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
}

.logo-row {
  display: flex;
  justify-content: center;
  padding: 4px clamp(18px, 4vw, 42px) 2px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 320px;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 7vw, 96px);
  width: 100%;
  padding: 11px clamp(18px, 4vw, 42px) 10px;
  border-top: 1px solid rgba(59, 46, 38, 0.14);
  border-bottom: 1px solid rgba(59, 46, 38, 0.14);
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--espresso);
}

.main-nav a::after {
  position: absolute;
  right: 0.16em;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover::after {
  opacity: 0.42;
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  min-height: 60vh;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.hero-media {
  position: relative;
  min-height: clamp(420px, 54vh, 560px);
  background: transparent;
}

.hero-tile {
  position: absolute;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 8px solid var(--bg);
  box-shadow: 0 20px 44px rgba(45, 34, 26, 0.14);
}

.hero-tile:first-child {
  z-index: 3;
  top: 8%;
  left: 28%;
  width: 42%;
  height: 78%;
  transform: rotate(-0.6deg);
}

.hero-tile:nth-child(2) {
  z-index: 2;
  top: 3%;
  left: 4%;
  width: 30%;
  height: 50%;
  transform: rotate(1.1deg);
}

.hero-tile:nth-child(3) {
  z-index: 4;
  right: 5%;
  bottom: 5%;
  width: 30%;
  height: 50%;
  transform: rotate(0.8deg);
}

.hero-tile:nth-child(4) {
  z-index: 1;
  right: 13%;
  top: 0;
  width: 25%;
  height: 61%;
  transform: rotate(-1.2deg);
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--espresso-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.05rem, 4.5vw, 4.05rem);
  line-height: 1.04;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.detail-copy > p {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.15vw, 1.06rem);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 11px 18px;
  border: 1px solid var(--espresso);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn.primary {
  background: var(--espresso);
  color: #fffdf9;
}

.btn.secondary {
  color: var(--espresso);
}

.btn:hover {
  background: var(--espresso-soft);
  border-color: var(--espresso-soft);
  color: #fffdf9;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 42px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  line-height: 1.04;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 390px));
  justify-content: center;
  gap: clamp(34px, 8vw, 120px);
}

.collection-card,
.product-card,
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.collection-card {
  position: relative;
  display: grid;
  min-height: clamp(380px, 44vw, 560px);
  align-content: end;
  isolation: isolate;
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: -2;
}

.collection-card.logo-card {
  background: #fffdf9;
}

.collection-card.logo-card img {
  padding: clamp(36px, 5.4vw, 70px);
  object-fit: contain;
  background: linear-gradient(180deg, #fffdf9 0%, #f5efe5 100%);
}

.collection-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.02) 20%, rgba(31, 31, 31, 0.66) 100%);
  content: "";
  z-index: -1;
}

.collection-card.logo-card::after {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.08) 35%, rgba(59, 46, 38, 0.34) 100%);
}

.collection-card span {
  padding: 0 22px;
  color: #fffdf9;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.12;
}

.collection-card b {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 18px 22px 24px;
  padding: 10px 14px;
  background: #fffdf9;
  border-radius: 4px;
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalogue-row-label {
  grid-column: 1 / -1;
  margin: 10px 0 0;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.card-image {
  background: var(--surface-soft);
}

.card-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.product-card.brand-valentina-rio .card-image img {
  object-position: center top;
}

.card-body {
  display: flex;
  min-height: 240px;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--espresso-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.12;
}

.card-body p:not(.card-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.card-price {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: auto;
  padding-top: 18px;
}

.original-price {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.current-price {
  color: var(--espresso);
  font-weight: 700;
}

.current-price.request {
  font-size: 0.82rem;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--espresso);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(58px, 10vw, 120px) clamp(18px, 4vw, 42px) clamp(34px, 6vw, 70px);
}

.page-hero.compact h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.8rem);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 42px);
}

.detail-media {
  background: var(--surface-soft);
}

.detail-media img {
  width: 100%;
  height: auto;
  max-height: min(82vh, 860px);
  object-fit: contain;
  object-position: center top;
}

.detail-copy {
  align-self: center;
}

.detail-layout.brand-valentina-rio {
  align-items: start;
}

.detail-layout.brand-valentina-rio .detail-media {
  align-self: start;
  background: transparent;
}

.detail-layout.brand-valentina-rio .detail-media img {
  height: auto;
  max-height: min(78vh, 820px);
  object-fit: contain;
  object-position: center top;
}

.detail-layout.brand-valentina-rio .detail-copy {
  align-self: start;
}

.detail-copy h1 {
  font-size: clamp(2.15rem, 4.8vw, 4.35rem);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 34px;
}

.detail-items {
  display: grid;
  gap: 12px;
}

.detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.detail-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.detail-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.size-availability {
  margin-top: 14px;
}

.availability-label {
  margin: 0 0 8px;
  color: var(--espresso-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.size-list span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 9px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.size-list strong {
  color: var(--espresso);
  font-weight: 700;
}

.availability-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.price-line {
  display: flex;
  gap: 10px;
  align-items: start;
  white-space: nowrap;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.mini-card span {
  display: block;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.12;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 36px;
  padding: clamp(42px, 7vw, 78px) clamp(18px, 5vw, 70px);
  background: var(--espresso);
  color: #fffdf9;
}

.footer h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.footer p {
  max-width: 460px;
  color: rgba(255, 253, 249, 0.75);
}

.footer .eyebrow {
  color: rgba(255, 253, 249, 0.7);
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: min(100%, 330px);
}

.footer .btn {
  border-color: rgba(255, 253, 249, 0.7);
  color: #fffdf9;
}

.footer .btn.primary {
  background: #fffdf9;
  color: var(--espresso);
}

@media (max-width: 980px) {
  .brand-logo img {
    width: 260px;
    max-width: 260px;
  }

  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 500px;
  }

  .collection-grid,
  .product-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-section .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 390px));
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    align-items: stretch;
  }

  .logo-row {
    padding-top: 6px;
    padding-bottom: 3px;
  }

  .brand-logo img {
    width: 200px;
    max-width: 200px;
  }

  .main-nav {
    gap: clamp(20px, 8vw, 34px);
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .main-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero-copy {
    padding: 30px 20px 38px;
  }

  .hero-media {
    min-height: 460px;
    margin: 0;
  }

  .hero-tile:first-child {
    top: 8%;
    left: 27%;
    width: 46%;
    height: 76%;
  }

  .hero-tile:nth-child(2) {
    top: 0;
    left: 0;
    width: 34%;
    height: 58%;
  }

  .hero-tile:nth-child(3) {
    right: 0;
    bottom: 4%;
    width: 34%;
    height: 58%;
  }

  .hero-tile:nth-child(4) {
    top: 2%;
    right: 10%;
    width: 28%;
    height: 58%;
  }

  .hero h1,
  .page-hero.compact h1,
  .detail-copy h1 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .collection-grid,
  .product-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .collection-section .collection-grid {
    grid-template-columns: minmax(0, 390px);
  }

  .collection-card {
    min-height: clamp(500px, 135vw, 620px);
  }

  .card-image img {
    aspect-ratio: 2 / 3;
  }

  .mini-card img {
    aspect-ratio: 3 / 4;
  }

  .detail-media img {
    max-height: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-item {
    grid-template-columns: 1fr;
  }

  .price-line {
    white-space: normal;
  }
}
