:root {
  --wine: #8f1627;
  --wine-dark: #6f0e1c;
  --ink: #17191b;
  --muted: #666b70;
  --line: #dedede;
  --paper: #ffffff;
  --white: #fff;
  --green: #197a45;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; }
.site-header {
  min-height: 82px; padding: 11px clamp(20px, 5vw, 72px); display: flex; align-items: center;
  justify-content: space-between; background: rgba(255,255,255,.97); border-bottom: 4px solid var(--wine);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 52px; height: 52px; display: grid; place-items: center; background: var(--wine);
  color: white; font-weight: 900; letter-spacing: -.04em; border-radius: 4px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.brand small { color: var(--muted); margin-top: 2px; font-size: .78rem; }
.brand-logo img { width: 128px; height: 54px; object-fit: contain; display: block; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-weight: 700; text-decoration: none; }
.nav-contact { color: var(--wine); }
.intro {
  min-height: 390px; padding: 60px clamp(20px, 7vw, 104px); display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(400px, 1.25fr); align-items: center;
  gap: clamp(38px, 7vw, 110px); background: linear-gradient(105deg, #fff 0 70%, #f7eef0 70%);
  border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
.intro::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -85px; border: 22px solid var(--wine); transform: rotate(12deg); opacity: .1; }
.intro-logo { display: grid; align-content: center; gap: 2px; padding: 30px; border-right: 1px solid var(--line); }
.intro-logo span { display: block; font-size: clamp(2rem, 4.2vw, 4.6rem); line-height: .96; font-weight: 900; letter-spacing: -.055em; color: var(--ink); }
.intro-logo span:nth-child(2) { color: var(--wine); }
.intro-copy { max-width: 700px; }
.eyebrow { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .17em; font-weight: 800; color: var(--wine); }
h1 { max-width: 720px; margin: 0; font-size: clamp(2.3rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -.05em; }
.lead { max-width: 620px; margin: 22px 0 28px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.primary-button, .whatsapp-button {
  flex: none; display: inline-flex; align-items: center; gap: 12px; padding: 16px 20px;
  font-weight: 800; text-decoration: none; border-radius: 3px;
}
.primary-button { background: var(--wine); color: white; }
.catalog { max-width: 1440px; margin: auto; padding: 68px clamp(20px, 5vw, 72px) 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.section-heading h2, .contact-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.section-heading > p { max-width: 360px; color: var(--muted); line-height: 1.5; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.catalog-layout .product-grid { grid-template-columns: repeat(3, 1fr); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; }
.product-card { background: var(--white); border: 1px solid #e5e5e5; border-top: 4px solid var(--wine); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.image-link, .title-link { display: block; color: inherit; text-decoration: none; }
.image-wrap { aspect-ratio: 1 / .82; overflow: hidden; background: var(--white); border-bottom: 1px solid #eee; }
.image-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .35s; }
.product-card:hover img { transform: scale(1.035); }
.card-body { padding: 18px 20px 20px; }
.card-body h3 { margin: 0 0 17px; min-height: 2.4em; font-size: 1.12rem; line-height: 1.25; }
.catalog .card-body h3, .category-grid .card-body h3 { margin-bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.card-body > a { display: flex; justify-content: space-between; color: var(--wine); font-weight: 800; text-decoration: none; border-top: 1px solid var(--line); padding-top: 15px; }
.product-showcase {
  position: sticky; top: 112px; padding: 24px; background: #f0f1f2; border-top: 4px solid var(--wine);
  box-shadow: 0 12px 30px rgba(0,0,0,.08); overflow: hidden;
}
.product-showcase > .eyebrow { margin-bottom: 18px; }
.product-showcase > a { display: block; color: inherit; text-decoration: none; }
.showcase-image { height: 265px; display: grid; place-items: center; overflow: hidden; background: white; border: 1px solid #e0e0e0; }
.showcase-image img { width: 100%; height: 100%; padding: 20px; object-fit: contain; }
.product-showcase h3 { min-height: 2.5em; margin: 20px 0 14px; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.025em; }
.showcase-dots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.showcase-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #a7aaad; cursor: pointer; }
.showcase-dots button.active { width: 24px; border-radius: 8px; background: var(--wine); }
.showcase-enter { animation: showcase-in .42s ease both; }
@keyframes showcase-in { from { opacity: .15; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.contact-panel {
  margin: 0 clamp(20px, 5vw, 72px) 72px; padding: clamp(30px, 5vw, 56px);
  background: var(--wine); color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.contact-panel .eyebrow { color: #ffc8cf; }
.contact-panel p:last-child { color: #f1d9dd; margin-bottom: 0; }
.whatsapp-button { background: var(--green); color: white; }
.whatsapp-icon { width: 24px; height: 24px; display: block; }
footer { padding: 25px clamp(20px, 5vw, 72px); background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
footer strong { text-transform: uppercase; letter-spacing: .05em; }
footer span { color: #c8c8c8; }
.floating-whatsapp {
  position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--green); color: white; border-radius: 50%; text-decoration: none; font-weight: 900;
  box-shadow: 0 7px 24px rgba(0,0,0,.22); z-index: 12;
}
.floating-whatsapp img { width: 31px; height: 31px; }
.inner-hero {
  min-height: 285px; position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  background: #d7d9db; border-bottom: 1px solid #c9cbcd;
}
.inner-hero-bg {
  position: absolute; z-index: -2; inset: -32px; background-position: center; background-size: cover;
  filter: grayscale(1) blur(6px) contrast(.92); transform: scale(1.04); opacity: .58;
}
.inner-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(238,239,240,.9) 0%, rgba(224,226,228,.7) 58%, rgba(205,208,211,.48) 100%);
}
.inner-hero-content { width: min(1280px, 100%); margin: auto; padding: 42px clamp(20px, 6vw, 86px) 46px; color: var(--ink); }
.inner-hero .back-link { color: var(--wine); margin-bottom: 34px; }
.inner-hero .eyebrow { color: var(--wine); }
.inner-hero h1 { max-width: none; color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.7); white-space: nowrap; }
.category-hero .inner-hero-content > p:last-child { max-width: 650px; margin: 18px 0 0; color: #555b60; font-size: 1.05rem; line-height: 1.6; }
.detail-main { max-width: 1280px; margin: auto; padding: 54px clamp(20px, 6vw, 86px) 80px; }
.back-link { display: inline-flex; color: var(--wine); font-weight: 800; text-decoration: none; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: clamp(34px, 6vw, 84px); align-items: start; }
.detail-image { position: relative; background: white; border: 1px solid var(--line); min-height: 460px; display: grid; place-items: center; padding: 28px; touch-action: pan-y; }
.detail-image img { max-width: 100%; max-height: 580px; object-fit: contain; }
.detail-counter { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 18px; background: rgba(23,25,27,.78); color: white; font-size: .78rem; font-weight: 800; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.detail-thumbs button { width: 78px; height: 66px; padding: 5px; background: white; border: 1px solid var(--line); cursor: pointer; }
.detail-thumbs button.active { border: 2px solid var(--wine); }
.detail-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.category-main { max-width: 1280px; margin: auto; padding: 54px clamp(20px, 6vw, 86px) 86px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail-copy { padding-top: 4px; }
.detail-description { margin: 28px 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; text-align: justify; hyphens: auto; }
.detail-list { margin: 0 0 30px; padding-left: 20px; line-height: 1.75; text-align: justify; }
.detail-list:empty { display: none; }
.detail-copy .whatsapp-button { margin-top: 8px; }
.related-section { margin-top: 84px; padding-top: 52px; border-top: 1px solid var(--line); }
.related-heading { margin-bottom: 26px; }
.related-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.04em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card .card-body h3 { margin-bottom: 0; min-height: 0; text-align: center; }
@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .catalog-layout .product-grid { grid-template-columns: repeat(2, 1fr); }
  .intro { grid-template-columns: .75fr 1.25fr; }
}
@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .brand small, nav > a:first-child { display: none; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-logo img { width: 112px; height: 47px; }
  nav { gap: 12px; }
  .intro { min-height: auto; grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 48px; background: white; }
  .intro-logo { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 0 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-layout .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-showcase { position: relative; top: auto; order: -1; }
  .showcase-image { height: 280px; }
  .catalog { padding-top: 56px; }
  .section-heading, .contact-panel, footer { align-items: flex-start; flex-direction: column; }
  .section-heading > p { margin: 0; }
  .card-body { padding: 15px; }
  .card-body h3 { font-size: 1rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image { min-height: 320px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .inner-hero { min-height: 250px; }
  .inner-hero-content { padding-top: 34px; padding-bottom: 38px; }
  .related-section { margin-top: 62px; padding-top: 42px; }
  .related-grid {
    display: flex; gap: 14px; overflow-x: auto; padding: 0 0 16px; margin: 0;
    scroll-snap-type: x mandatory; scroll-padding-left: 0; -webkit-overflow-scrolling: touch;
  }
  .related-card { flex: 0 0 min(78vw, 330px); scroll-snap-align: start; }
}
@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr; }
  .catalog-layout .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
