@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600;6..96,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ivory: #fbf6ee;
  --linen: #f3e8dc;
  --champagne: #d8b990;
  --blush: #ead0c7;
  --espresso: #2d160c;
  --cocoa: #6b422f;
  --muted: #77675c;
  --surface: rgba(255, 252, 247, 0.86);
  --white: #fff;
  --border: rgba(107, 66, 47, 0.16);
  --shadow: 0 24px 70px rgba(45, 22, 12, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100% - 40px));
  --font-display: 'Bodoni Moda', 'Cormorant Garamond', serif;
  --font-body: 'Manrope', 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(216, 185, 144, 0.22), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(234, 208, 199, 0.36), transparent 30%),
    linear-gradient(180deg, #fffaf4 0%, var(--ivory) 48%, #f7efe6 100%);
  color: var(--espresso);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.announcement {
  background: var(--espresso);
  color: #fff6ea;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.33rem 1rem;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cocoa);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.55vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--espresso);
}

.cart-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--espresso);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.68rem 0.95rem;
}

.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--espresso);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  font-weight: 700;
  padding: 0.65rem 0.95rem;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(52px, 9vw, 96px) 0 58px;
}

.hero-copy h1,
.page-hero h1,
.category-hero h1,
.story h1,
.contact-section h1 {
  max-width: 780px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7.4vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero-copy p,
.page-hero p,
.category-hero p,
.story-copy p,
.contact-copy p {
  max-width: 650px;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--espresso);
  color: #fff8ef;
  box-shadow: 0 14px 28px rgba(45, 22, 12, 0.22);
}

.btn-secondary {
  border-color: rgba(45, 22, 12, 0.3);
  background: rgba(255, 252, 247, 0.72);
  color: var(--espresso);
}

.btn-small {
  min-height: 40px;
  width: 100%;
  margin-top: 1rem;
  background: var(--espresso);
  color: var(--white);
  font-size: 0.78rem;
  padding: 0.7rem 1rem;
}

.btn.is-added {
  background: #476a4f;
}

.hero-media {
  position: relative;
}

.hero-media::before,
.category-hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: auto -22px -22px auto;
  width: 72%;
  height: 70%;
  border-radius: var(--radius-lg);
  background: var(--blush);
  z-index: -1;
}

.hero-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 46% 46% var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: 46% center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.horizontal {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.measurement-intro h2,
.process h2,
.cta-strip h2,
.article-card h2,
.tip-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section-heading p,
.measurement-intro p,
.process p,
.cta-strip p,
.article-card p,
.tip-panel p {
  color: var(--muted);
  margin-top: 0.7rem;
}

.section-heading a {
  color: var(--cocoa);
  font-weight: 700;
}

.collections,
.product-showcase,
.process,
.article-layout,
.story,
.contact-section {
  padding: clamp(46px, 7vw, 86px) 0;
}

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

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

.collection-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--linen);
  box-shadow: var(--shadow);
  padding: 28px;
}

.collection-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 246, 238, 0.1), rgba(45, 22, 12, 0.76));
  z-index: -1;
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 500ms ease;
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-card span {
  color: #fff9ef;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.collection-card strong {
  max-width: 310px;
  margin-top: 0.6rem;
  color: rgba(255, 249, 239, 0.9);
  font-size: 0.96rem;
  font-weight: 500;
}

.measurement-band {
  border-block: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(251, 246, 238, 0.92), rgba(255, 255, 255, 0.62)),
    url('img/vestido-de-madrinha-vermelho-sangue-1.jpg') right center / auto 100% no-repeat;
}

.measurement-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.25fr 0.84fr;
  gap: 28px;
  align-items: center;
  padding: clamp(34px, 5vw, 58px) 0;
}

.icon-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(216, 185, 144, 0.34);
  color: var(--cocoa);
  font-size: 1.4rem;
}

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

.measurement-form label,
.contact-form label {
  position: relative;
  color: var(--cocoa);
  font-size: 0.78rem;
  font-weight: 700;
}

.measurement-form input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--espresso);
  outline: none;
  padding: 0.82rem 2.25rem 0.82rem 0.88rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.measurement-form input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(107, 66, 47, 0.44);
  box-shadow: 0 0 0 4px rgba(216, 185, 144, 0.18);
}

.measurement-form label span {
  position: absolute;
  right: 12px;
  bottom: 11px;
  color: var(--muted);
  font-size: 0.72rem;
}

.measurement-form .btn,
.measurement-form .form-message {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-message.success {
  color: #476a4f;
}

.form-message.error {
  color: #9b3131;
}

.size-guide {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.size-guide h3 {
  color: var(--cocoa);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
}

.size-guide table {
  width: 100%;
  margin-top: 0.7rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.size-guide th,
.size-guide td {
  border-bottom: 1px solid var(--border);
  padding: 0.42rem 0.2rem;
  text-align: left;
}

.size-guide small {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.process {
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 2rem;
  text-align: left;
}

.process-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.72);
  padding: 28px;
}

.process-grid span {
  color: var(--champagne);
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  line-height: 1;
}

.process-grid h3,
.product-card h3,
.contact-cards h2 {
  margin-top: 0.45rem;
  color: var(--espresso);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.84);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: top center;
}

.product-card div {
  padding: 22px;
}

.product-card p {
  min-height: 54px;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card strong {
  display: block;
  margin-top: 0.8rem;
  color: var(--cocoa);
  font-size: 0.95rem;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 8vw, 90px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, rgba(234, 208, 199, 0.52), rgba(255, 252, 247, 0.92));
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 38px);
}

.page-hero,
.category-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  padding: clamp(50px, 8vw, 86px) 0;
}

.page-hero img,
.category-hero img {
  width: 100%;
  aspect-ratio: 5 / 3.2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.category-hero img {
  aspect-ratio: 4 / 4.7;
  object-position: top center;
}

.bridal img {
  object-position: center top;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.story-media {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 16px;
  align-items: center;
}

.story-media img {
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.76);
  box-shadow: var(--shadow);
}

.story-media img:first-child {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-media img:last-child {
  padding: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.article-card,
.tip-panel,
.contact-form,
.contact-cards article {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.8);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 38px);
}

.article-card p + p {
  margin-top: 1rem;
}

.tip-panel {
  position: sticky;
  top: 110px;
}

.tip-panel .btn {
  margin-top: 1.25rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
  margin-top: 2rem;
}

.contact-cards article {
  padding: 22px;
}

.contact-cards h2 {
  font-size: 1.45rem;
}

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

.contact-form textarea {
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--border);
  background: #2b170f;
  color: rgba(255, 249, 239, 0.82);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer .brand {
  color: #fff6ea;
  font-size: 2rem;
}

.footer p,
.footer a {
  display: block;
  color: rgba(255, 249, 239, 0.76);
  font-size: 0.9rem;
  margin-top: 0.45rem;
}

.footer h3 {
  color: var(--champagne);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
}

.reveal {
  animation: rise 700ms ease both;
}

.reveal:nth-child(2) {
  animation-delay: 130ms;
}

@keyframes rise {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

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

@media (max-width: 980px) {
  .cart-link {
    display: none;
  }

  .hero,
  .page-hero,
  .category-hero,
  .story,
  .contact-section,
  .article-layout,
  .measurement-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img,
  .category-hero img {
    max-height: 560px;
  }

  .collection-grid,
  .product-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .size-guide {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .announcement {
    font-size: 0.68rem;
  }

  .nav {
    min-height: 68px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 1.75rem;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 0 1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    border-top: 1px solid var(--border);
    padding: 0.9rem 0;
  }

  .hero-copy h1,
  .page-hero h1,
  .category-hero h1,
  .story h1,
  .contact-section h1 {
    font-size: clamp(3rem, 16vw, 4.9rem);
  }

  .hero-actions,
  .cta-strip,
  .section-heading.horizontal {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-grid,
  .product-grid,
  .process-grid,
  .footer-grid,
  .measurement-form {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 280px;
  }

  .measurement-band {
    background: linear-gradient(180deg, rgba(251, 246, 238, 0.96), rgba(255, 255, 255, 0.78));
  }

  .story-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .hero,
  .page-hero,
  .category-hero,
  .collections,
  .product-showcase,
  .process,
  .article-layout,
  .story,
  .contact-section {
    padding-block: 38px;
  }

  .product-card div,
  .collection-card {
    padding: 20px;
  }
}

/* Reference-inspired storefront pass */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav {
  max-width: 1330px;
}

.nav-links {
  gap: clamp(14px, 1.55vw, 26px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link,
button.cart-link {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.1rem;
}

.icon-link:hover,
button.cart-link:hover {
  border-color: var(--border);
  background: rgba(255, 252, 247, 0.8);
}

.hero-reference {
  min-height: 240px;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 1) 0%, rgba(255, 250, 244, 0.96) 39%, rgba(255, 250, 244, 0.12) 69%),
    linear-gradient(90deg, #fff8ef 0%, #f7eadf 100%);
  overflow: hidden;
}

.hero-reference-inner {
  min-height: 246px;
  display: grid;
  grid-template-columns: minmax(480px, 0.78fr) minmax(520px, 1fr);
  align-items: center;
  position: relative;
}

.hero-reference .hero-copy {
  position: relative;
  z-index: 2;
  padding: 1.35rem 0;
}

.hero-reference .hero-copy h1 {
  max-width: 660px;
  font-size: clamp(2.85rem, 3.55vw, 4.05rem);
  letter-spacing: -0.05em;
}

.hero-reference .hero-copy p {
  color: var(--espresso);
  font-size: clamp(1.08rem, 1.45vw, 1.45rem);
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
}

.hero-reference .hero-actions {
  margin-top: 0.8rem;
}

.hero-reference .btn {
  min-width: 220px;
  min-height: 38px;
  border-radius: 5px;
  padding: 0.58rem 1.2rem;
}

.hero-reference-image {
  position: absolute;
  inset: 0 -8vw 0 52%;
}

.hero-reference-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.reference-grid {
  gap: 14px;
}

.collections {
  padding: 16px 0 14px;
}

.reference-card.collection-card {
  min-height: 144px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(90deg, #fffdf9 0%, #f5ebe2 100%);
  box-shadow: none;
  padding: 0;
}

.reference-card.collection-card::after {
  display: none;
}

.reference-card div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0 20px 30px;
}

.reference-card.collection-card span {
  color: var(--espresso);
  font-size: 2.2rem;
}

.reference-card.collection-card strong {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.reference-card em {
  color: var(--espresso);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 1rem;
}

.reference-card.collection-card img {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 144px;
  object-fit: cover;
  z-index: 0;
}

.reference-measurement.measurement-band {
  background:
    linear-gradient(90deg, rgba(255, 251, 246, 0.98), rgba(255, 251, 246, 0.9) 76%, rgba(255, 251, 246, 0.55)),
    url('img/atelier-medidas-fita.png') right center / auto 100% no-repeat;
}

.reference-measurement .measurement-layout {
  grid-template-columns: 0.72fr 1.55fr 0.95fr;
  gap: 22px;
  padding: 7px 0;
}

.reference-measurement .measurement-intro {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  align-items: center;
}

.reference-measurement .measurement-intro .icon-mark {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.reference-measurement .measurement-intro h2 {
  font-size: 1.62rem;
}

.reference-measurement .measurement-intro p {
  margin-top: 0.15rem;
  font-size: 0.74rem;
}

.reference-measurement .measurement-form {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 14px;
}

.reference-measurement .measurement-form input {
  height: 24px;
  border-radius: 5px;
  padding-block: 0.25rem;
}

.reference-measurement .measurement-form .btn {
  display: none;
}

.reference-measurement .measurement-form .form-message {
  display: none;
}

.reference-measurement .size-guide {
  background: rgba(255, 252, 247, 0.72);
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

.reference-measurement .size-guide h3 {
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.reference-measurement .size-guide table {
  font-size: 0.6rem;
  margin-top: 0.25rem;
}

.reference-measurement .size-guide th,
.reference-measurement .size-guide td {
  padding: 0.08rem 0.12rem;
}

.reference-measurement .size-guide small {
  display: none;
}

.reference-process.process {
  padding: 8px 0 12px;
}

.reference-process h2 {
  font-size: clamp(2.1rem, 2.7vw, 3rem);
}

.reference-process .process-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0.55rem;
}

.reference-process .process-grid article {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 14px 28px;
}

.reference-process .process-grid article:last-child {
  border-right: 0;
}

.reference-process .process-grid span {
  color: var(--cocoa);
  font-size: 2.15rem;
}

.reference-process .process-grid h3 {
  margin-top: 0;
  font-size: 1rem;
}

.reference-process .process-grid p {
  grid-column: 2;
  margin-top: 0.2rem;
  font-size: 0.72rem;
}

.rail-heading {
  margin-bottom: 8px;
}

#destaques.product-showcase {
  padding: 8px 0 18px;
}

.rail-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 0 6px 12px;
  scroll-snap-type: x mandatory;
}

.rail-card.product-card {
  position: relative;
  min-width: 178px;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  background: transparent;
  scroll-snap-align: start;
}

.rail-card.product-card img {
  aspect-ratio: 2.24 / 1;
  border-radius: 7px;
  object-fit: cover;
}

.rail-card.product-card div {
  padding: 4px 4px 0;
}

.rail-card.product-card h3 {
  font-size: 0.9rem;
  line-height: 1.1;
  margin-top: 0;
  text-align: center;
}

.rail-card.product-card strong {
  color: var(--espresso);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 0.2rem;
  text-align: center;
}

.heart-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(107, 66, 47, 0.3);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.heart-button.is-added {
  background: var(--espresso);
}

.reference-cta.cta-strip {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 0;
  border-radius: 5px;
  box-shadow: none;
  padding: 8px 28px;
}

.reference-cta h2 {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.reference-cta p {
  font-size: 0.78rem;
  margin-top: 0;
}

.reference-cta .btn {
  min-height: 32px;
  border-radius: 5px;
  padding: 0.45rem 1.35rem;
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--espresso);
  border-radius: 50%;
  color: var(--espresso);
  font-size: 1.5rem;
}

.adapt-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(340px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: clamp(42px, 6vw, 76px) 0;
}

.adapt-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.adapt-section p {
  color: var(--muted);
  margin-top: 1rem;
}

.adapt-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.adapt-form label {
  color: var(--cocoa);
  font-size: 0.78rem;
  font-weight: 700;
}

.adapt-form input,
.adapt-form select,
.adapt-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--espresso);
  padding: 0.82rem 0.9rem;
  outline: none;
}

.file-drop {
  display: grid;
  place-items: center;
  min-height: 154px;
  border: 1px dashed rgba(107, 66, 47, 0.35);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(234, 208, 199, 0.28), rgba(255, 252, 247, 0.86));
  cursor: pointer;
  padding: 1.2rem;
  text-align: center;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  color: var(--espresso);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
}

.file-drop small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  margin-top: 0.25rem;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.photo-preview figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-preview figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  padding: 0.35rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-content: end;
  background: rgba(45, 22, 12, 0);
  pointer-events: none;
  transition: background 180ms ease;
}

.cart-drawer.is-open {
  background: rgba(45, 22, 12, 0.3);
  pointer-events: auto;
}

.cart-panel {
  width: min(420px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  border-left: 1px solid var(--border);
  background: #fffaf4;
  box-shadow: -24px 0 80px rgba(45, 22, 12, 0.18);
  transition: transform 220ms ease;
}

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

.cart-header,
.cart-footer {
  padding: 22px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.cart-header span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  line-height: 1;
}

.cart-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  font-size: 1.5rem;
}

.cart-list {
  flex: 1;
  overflow: auto;
  padding: 16px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.cart-item img {
  width: 82px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.05;
}

.cart-item p,
.empty-cart,
.cart-footer p {
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.35rem;
  padding: 0;
}

.cart-footer {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.78rem;
  }
}

@media (max-width: 980px) {
  .cart-link {
    display: inline-flex;
  }

  .icon-link {
    display: none;
  }

  .hero-reference-inner,
  .adapt-section {
    grid-template-columns: 1fr;
  }

  .hero-reference-image {
    position: relative;
    inset: auto;
    height: 330px;
    margin-inline: calc((100vw - 100%) / -2);
  }

  .reference-grid,
  .reference-measurement .measurement-layout,
  .reference-process .process-grid {
    grid-template-columns: 1fr;
  }

  .reference-process .process-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .reference-process .process-grid article:last-child {
    border-bottom: 0;
  }

  .reference-cta.cta-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .whatsapp-icon {
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .nav-actions {
    margin-left: auto;
  }

  .nav .cart-link {
    min-height: 38px;
    padding: 0.55rem 0.8rem;
  }

  .hero-reference .hero-copy h1 {
    font-size: clamp(3rem, 14.5vw, 4.9rem);
  }

  .hero-reference .hero-copy p {
    font-size: 1.05rem;
  }

  .hero-reference .btn,
  .reference-cta .btn {
    width: 100%;
  }

  .reference-card.collection-card {
    grid-template-columns: 1fr;
  }

  .reference-card.collection-card img {
    min-height: 210px;
  }

  .reference-measurement .measurement-form {
    grid-template-columns: 1fr;
  }

  .reference-measurement .measurement-intro {
    grid-template-columns: 1fr;
  }

  .reference-measurement .measurement-intro .icon-mark {
    grid-row: auto;
  }

  .product-rail {
    grid-auto-columns: minmax(210px, 74vw);
  }
}

/* Product, checkout and owner panels */
.product-detail-page,
.account-page,
.admin-page {
  padding: clamp(42px, 7vw, 82px) 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(320px, 0.8fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
}

.product-gallery-detail,
.product-info-detail,
.account-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.84);
  box-shadow: var(--shadow);
}

.product-gallery-detail {
  padding: clamp(14px, 2vw, 22px);
}

.zoom-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 10px);
  background: var(--linen);
  cursor: zoom-in;
}

.zoom-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  transition: transform 180ms ease;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.product-thumbs button {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.product-thumbs button.active {
  border-color: var(--cocoa);
}

.product-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-info-detail {
  padding: clamp(24px, 4vw, 40px);
}

.back-link {
  color: var(--cocoa);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-info-detail h1,
.account-page h1,
.admin-page h1 {
  margin-top: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.product-info-detail p,
.account-page > section > p,
.admin-page > section > p {
  color: var(--muted);
  margin-top: 1rem;
}

.product-info-detail ul {
  display: grid;
  gap: 8px;
  margin: 1.4rem 0;
  padding-left: 1.1rem;
}

.price-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(234, 208, 199, 0.26), rgba(255, 252, 247, 0.86));
  margin: 1.5rem 0;
  padding: 18px;
}

.price-preview h2,
.account-card h2 {
  color: var(--espresso);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 1;
}

.price-preview table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.price-preview th,
.price-preview td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
  text-align: left;
}

.product-info-detail .btn + .btn {
  margin-left: 10px;
}

.checkout-panel {
  width: min(560px, 100vw);
}

.cart-body {
  flex: 1;
  overflow: auto;
}

.checkout-login,
.checkout-measures {
  margin: 16px 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.78);
  padding: 16px;
}

.checkout-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkout-login p,
.checkout-login a {
  color: var(--muted);
  font-size: 0.84rem;
}

.checkout-login a {
  color: var(--cocoa);
  font-weight: 800;
}

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

.checkout-measures h3,
.checkout-measures p {
  grid-column: 1 / -1;
}

.checkout-measures h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  line-height: 1;
}

.checkout-measures p {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkout-measures label,
.account-card label,
[data-admin-cost-fields] label {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--cocoa);
  font-size: 0.78rem;
  font-weight: 800;
}

.checkout-measures input,
.checkout-item select,
.account-card input,
.account-card select,
.account-card textarea,
[data-admin-cost-fields] input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--espresso);
  outline: none;
  padding: 0.72rem 0.85rem;
}

.checkout-measures label span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--muted);
  font-size: 0.7rem;
}

.checkout-item {
  align-items: start;
}

.checkout-item label {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--cocoa);
  font-size: 0.76rem;
  font-weight: 800;
}

.checkout-item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.45rem;
}

.checkout-item strong {
  display: block;
  color: var(--espresso);
  font-size: 1.05rem;
  margin-top: 0.35rem;
}

.checkout-total {
  color: var(--espresso);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.account-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.account-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
}

.measurement-form-panel {
  grid-template-columns: repeat(2, 1fr);
}

.measurement-form-panel h2,
.measurement-form-panel .btn,
.measurement-form-panel .form-message {
  grid-column: 1 / -1;
}

[data-admin-cost-fields] {
  display: grid;
  gap: 12px;
}

[data-admin-cost-fields] h3 {
  margin-top: 8px;
  color: var(--espresso);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page > .account-card {
  margin-top: 24px;
}

.admin-product-list {
  display: grid;
  gap: 14px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
  padding: 10px;
}

.admin-product-row img {
  width: 96px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.admin-product-row h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.brand,
.hero-copy h1,
.page-hero h1,
.category-hero h1,
.story h1,
.contact-section h1,
.section-heading h2,
.measurement-intro h2,
.process h2,
.cta-strip h2,
.article-card h2,
.tip-panel h3,
.collection-card span,
.process-grid h3,
.product-card h3,
.contact-cards h2,
.rail-heading h2,
.product-info-detail h1,
.account-page h1,
.admin-page h1,
.cart-header h2,
.price-preview h2,
.account-card h2,
.checkout-total,
.admin-product-row h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.product-card img,
.zoom-frame img,
.product-thumbs img,
.admin-product-row img,
.cart-item img {
  image-rendering: auto;
  object-position: center top;
}

.product-card h3 {
  font-weight: 600;
}

.rail-card.product-card img {
  aspect-ratio: 3 / 4;
  object-position: center 18%;
}

.product-rail {
  grid-auto-columns: minmax(185px, 220px);
}

.admin-product-row p,
.admin-product-row a {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-product-row a {
  color: var(--cocoa);
  font-weight: 800;
}

@media (max-width: 900px) {
  .product-detail,
  .account-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .product-info-detail .btn + .btn {
    margin: 10px 0 0;
  }
}

@media (max-width: 560px) {
  .checkout-measures,
  .measurement-form-panel {
    grid-template-columns: 1fr;
  }

  .checkout-login {
    align-items: start;
    flex-direction: column;
  }

  .cart-item,
  .admin-product-row {
    grid-template-columns: 1fr;
  }

  .cart-item img,
  .admin-product-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
