:root {
  --ink: #191613;
  --muted: #746d65;
  --cream: #f4efe8;
  --paper: #fbf9f5;
  --white: #fff;
  --wine: #711f2b;
  --gold: #b39868;
  --line: rgba(25, 22, 19, 0.16);
  --shadow: 0 24px 70px rgba(35, 25, 20, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 18px;
  color: #f8f4ef;
  background: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.announcement__divider { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; width: max-content; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-style: italic; letter-spacing: -0.03em; }
.brand__place { margin-top: 5px; font-size: 8px; letter-spacing: 0.34em; text-transform: uppercase; }

.desktop-nav { display: none; align-items: center; justify-content: center; gap: 30px; }
.desktop-nav a { font-size: 12px; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.desktop-nav a:hover { color: var(--wine); }

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0 9px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-trigger__count {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 50px;
  color: var(--white);
  background: var(--wine);
  font-size: 11px;
}

.hero {
  min-height: calc(100svh - 110px);
  display: grid;
  align-items: center;
  gap: 38px;
  padding: clamp(42px, 8vw, 108px) clamp(18px, 6vw, 96px) clamp(72px, 10vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(179, 152, 104, 0.11), transparent 28%),
    var(--cream);
}

.hero__copy { position: relative; z-index: 2; max-width: 660px; }
.eyebrow { margin: 0 0 16px; color: var(--wine); font-size: 10px; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; line-height: 0.98; }
h1 { max-width: 710px; margin-bottom: 28px; font-size: clamp(52px, 8vw, 106px); }
h2 { margin-bottom: 20px; font-size: clamp(38px, 5.3vw, 68px); }
h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 23px; font-weight: 400; }

.hero__lead { max-width: 560px; margin-bottom: 32px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.75; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--dark { color: var(--white); background: var(--ink); }
.button--dark:hover { background: var(--wine); }
.button--outline { border-color: var(--ink); background: transparent; }
.button--outline:hover { color: var(--white); background: var(--ink); }
.button--full { width: 100%; }
.button--instagram { color: var(--white); background: var(--wine); }
.button--whatsapp { margin-top: 9px; color: var(--ink); border-color: var(--ink); background: transparent; }

.text-link {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.hero__notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__notes span:not(:last-child)::after { margin-left: 22px; color: var(--gold); content: "◆"; font-size: 5px; vertical-align: middle; }

.hero__visual { position: relative; min-height: 520px; width: min(100%, 560px); justify-self: center; }
.hero__figure { position: absolute; margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure--main { top: 0; left: 0; width: 70%; height: 86%; }
.hero__figure--accent { right: 0; bottom: 0; width: 47%; height: 61%; border: 9px solid var(--cream); }
.hero__seal { position: absolute; z-index: 3; right: 4%; top: 3%; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: var(--white); font-family: var(--serif); font-size: 13px; line-height: 1; text-align: center; }

.collection { padding: clamp(76px, 10vw, 148px) clamp(16px, 4vw, 68px); }
.section-heading { display: flex; flex-direction: column; gap: 16px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading__copy { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.7; }
.section-heading--center { align-items: center; text-align: center; }

.catalog-tools { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 11px; }
.filter-chip.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.catalog-tools__right { display: flex; gap: 10px; }
.search-field, .sort-field { min-height: 42px; display: flex; align-items: center; border: 1px solid var(--line); background: var(--white); }
.search-field { flex: 1; min-width: 0; gap: 8px; padding: 0 12px; }
.search-field svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.search-field input, .sort-field select { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.sort-field { padding: 0 10px; }
.sort-field select { max-width: 142px; cursor: pointer; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
.product-card { min-width: 0; }
.product-card__media { position: relative; width: 100%; padding: 0; border: 0; overflow: hidden; background: #e7e0d7; cursor: pointer; }
.product-card__media::after { position: absolute; inset: 0; border: 1px solid rgba(25,22,19,.07); content: ""; pointer-events: none; }
.product-card__media img { aspect-ratio: 3 / 4.6; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-card__media img { transform: scale(1.025); }
.product-card__badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 6px 8px; color: var(--ink); background: rgba(251,249,245,.92); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.product-card__status { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 5px 7px; color: var(--white); background: rgba(25,22,19,.82); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.product-card__status.is-sold { background: var(--wine); }
.product-card__body { padding-top: 13px; }
.product-card__meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin: 0; overflow: hidden; font-family: var(--serif); font-size: clamp(17px, 2vw, 22px); line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }
.product-card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 9px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: 12px; font-weight: 700; }
.product-price del { color: var(--muted); font-size: 10px; font-weight: 400; }
.quick-view { padding: 2px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 10px; text-transform: uppercase; }

.product-skeleton { aspect-ratio: 3 / 4.9; background: linear-gradient(100deg, #ede8e1 30%, #f8f5f1 50%, #ede8e1 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -150%; } }
.empty-state { padding: 50px 0; color: var(--muted); text-align: center; }

.editorial { display: grid; background: var(--ink); }
.editorial__image { min-height: 560px; overflow: hidden; }
.editorial__image img { height: 100%; object-fit: cover; object-position: center 30%; }
.editorial__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(58px, 8vw, 112px) clamp(24px, 7vw, 92px); color: #f7f1ea; }
.editorial__copy .eyebrow { color: #d8bd8e; }
.editorial__copy h2 { max-width: 670px; }
.editorial__copy p:not(.eyebrow) { max-width: 540px; margin-bottom: 30px; color: #c5bdb4; line-height: 1.8; }
.editorial__copy .button--outline { color: #fff; border-color: rgba(255,255,255,.55); }

.how { padding: clamp(78px, 10vw, 140px) clamp(18px, 6vw, 94px); background: var(--cream); }
.steps { display: grid; gap: 34px; margin: 50px 0 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.steps__number { color: var(--wine); font-family: var(--serif); font-size: 13px; }
.steps h3 { margin-top: 26px; }
.steps p { max-width: 290px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.service-strip { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-strip article { display: flex; align-items: center; gap: 15px; padding: 28px clamp(18px, 4vw, 58px); }
.service-strip article:not(:last-child) { border-bottom: 1px solid var(--line); }
.service-strip svg { width: 26px; flex: 0 0 auto; fill: none; stroke: var(--wine); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.service-strip div { display: flex; flex-direction: column; gap: 3px; }
.service-strip strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.service-strip span { color: var(--muted); font-size: 11px; }

.site-footer { display: grid; gap: 38px; padding: 64px clamp(20px, 6vw, 92px) 28px; color: #ddd6cd; background: #11100e; }
.site-footer__brand .brand__name { color: #fff; font-size: 42px; }
.site-footer__brand p { max-width: 260px; margin: 15px 0 0; color: #8f8982; font-size: 13px; }
.site-footer h2 { margin-bottom: 15px; color: #8f8982; font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-footer > div:not(.site-footer__brand):not(.site-footer__bottom) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer a { color: inherit; font-size: 12px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #77726c; font-size: 10px; }

.icon-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; font-family: var(--sans); font-size: 24px; font-weight: 300; line-height: 1; }

.product-dialog { width: min(1020px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.product-dialog::backdrop { background: rgba(14,12,10,.72); backdrop-filter: blur(3px); }
.product-dialog__close { position: absolute; z-index: 4; top: 12px; right: 12px; }
.product-dialog__layout { display: grid; }
.product-dialog__media { min-height: 420px; background: #e9e2d9; }
.product-dialog__media img { width: 100%; height: 100%; max-height: 82svh; object-fit: cover; }
.product-dialog__details { padding: 36px clamp(22px, 5vw, 58px) 42px; }
.product-dialog__details h2 { margin-bottom: 10px; font-size: clamp(38px, 5vw, 58px); }
.product-dialog__code { margin-bottom: 24px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.product-dialog__price { margin-bottom: 22px; font-size: 16px; font-weight: 700; }
.product-dialog__description { margin-bottom: 28px; color: var(--muted); line-height: 1.7; }
.product-dialog__instagram { display: inline-block; margin-top: 20px; }
.option-group { margin: 0 0 22px; padding: 0; border: 0; }
.option-group legend { margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.option-group legend span { margin-left: 6px; color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-button { min-width: 44px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 11px; }
.option-button.is-selected { color: var(--white); border-color: var(--ink); background: var(--ink); }
.option-button:disabled { color: #aaa39c; background: #eee9e3; cursor: not-allowed; text-decoration: line-through; }

.drawer-backdrop { position: fixed; z-index: 39; inset: 0; background: rgba(14,12,10,.52); opacity: 0; transition: opacity 220ms ease; }
.drawer-backdrop.is-open { opacity: 1; }
.cart-drawer { position: fixed; z-index: 40; top: 0; right: 0; width: min(440px, 100%); height: 100svh; display: flex; flex-direction: column; padding: 26px; background: var(--paper); box-shadow: -24px 0 70px rgba(20,16,12,.18); transform: translateX(105%); visibility: hidden; transition: transform 280ms cubic-bezier(.2,.8,.2,1), visibility 280ms; }
.cart-drawer.is-open { transform: translateX(0); visibility: visible; }
.cart-drawer__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cart-drawer__header h2 { margin: 0; font-size: 42px; }
.cart-drawer__items { flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 82px; aspect-ratio: 3 / 4; object-fit: cover; }
.cart-item h3 { margin: 0 0 6px; font-size: 17px; }
.cart-item p { margin: 0 0 3px; color: var(--muted); font-size: 10px; }
.cart-item__actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cart-item__actions button { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.cart-item__remove { align-self: start; padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; text-transform: uppercase; }
.cart-empty { flex: 1; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); text-align: center; }
.cart-drawer__footer { padding-top: 20px; border-top: 1px solid var(--line); }
.cart-note, .copy-hint { color: var(--muted); font-size: 10px; line-height: 1.55; text-align: center; }
.cart-note { margin-bottom: 14px; }
.copy-hint { margin: 10px 0 0; }

.toast { position: fixed; z-index: 70; right: 16px; bottom: 18px; max-width: calc(100% - 32px); padding: 13px 16px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

noscript { display: block; padding: 20px; color: white; background: var(--wine); text-align: center; }

@media (min-width: 700px) {
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .desktop-nav { display: flex; }
  .cart-trigger { justify-self: end; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
  .hero__visual { min-height: 620px; }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .section-heading--center { flex-direction: column; align-items: center; }
  .catalog-tools { flex-direction: row; align-items: center; justify-content: space-between; }
  .catalog-tools__right { min-width: 360px; justify-content: flex-end; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 18px; }
  .editorial { grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 74px); }
  .service-strip { grid-template-columns: repeat(3, 1fr); }
  .service-strip article:not(:last-child) { border-right: 1px solid var(--line); border-bottom: 0; }
  .site-footer { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer__bottom { grid-column: 1 / -1; }
  .product-dialog__layout { grid-template-columns: minmax(360px, 1fr) minmax(370px, .9fr); min-height: 650px; }
  .product-dialog__details { align-self: center; }
}

@media (min-width: 1120px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 54px 22px; }
}

@media (max-width: 699px) {
  .announcement { font-size: 9px; }
  .site-header { min-height: 68px; }
  .hero__visual { order: -1; min-height: 460px; }
  .hero__copy { text-align: left; }
  .hero__notes span::after { display: none; }
  .product-dialog__media { height: 54svh; min-height: 320px; }
  .product-dialog__media img { max-height: none; }
  .product-dialog__details { padding-top: 28px; }
  .cart-drawer { padding: 22px 18px; }
}

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