:root {
  --wine: #641c2d;
  --wine-dark: #351019;
  --cream: #f5efe3;
  --paper: #fcfaf5;
  --ink: #25211d;
  --muted: #746d65;
  --gold: #ca9b53;
  --line: #ddd4c7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.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; }

.hero { min-height: 680px; position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 70% 30%, #7b293a 0, var(--wine) 35%, #47131f 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .11; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); pointer-events: none; }
.nav { height: 110px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { color: inherit; text-decoration: none; display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; line-height: 1.05; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-family: "Playfair Display", serif; font-size: 15px; }
.nav-link { color: #fff; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.nav-link span { margin-left: 8px; color: #edc68a; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.cart-trigger { padding: 11px 13px; border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; }
.cart-trigger span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 7px; padding: 0 5px; place-items: center; border-radius: 20px; color: var(--wine-dark); background: #e7c083; }
.hero-content { position: relative; z-index: 2; padding-top: 90px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #e7c083; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--wine); }
h1, h2, h3 { font-family: "Playfair Display", serif; }
h1 { max-width: 660px; margin: 22px 0 24px; font-size: clamp(58px, 7.4vw, 102px); line-height: .93; letter-spacing: -.045em; font-weight: 600; }
h1 em { color: #e7c083; font-weight: 500; }
.hero-content > p { max-width: 500px; color: #eadde0; font-size: 17px; line-height: 1.65; }
.hero-content > p strong { color: #fff; }
.cta { display: inline-flex; align-items: center; gap: 34px; margin-top: 16px; padding: 17px 21px; background: var(--cream); color: var(--wine); text-decoration: none; font-weight: 700; font-size: 14px; }
.hero-note { position: absolute; z-index: 2; right: 30px; top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center; color: rgba(255,255,255,.46); letter-spacing: .18em; font-size: 10px; }
.hero-art { position: absolute; z-index: 1; right: 4%; bottom: -90px; width: 48%; height: 600px; }
.sun { position: absolute; width: 420px; height: 420px; border: 1px solid rgba(231,192,131,.4); border-radius: 50%; right: 7%; top: 0; box-shadow: 0 0 90px rgba(209,151,74,.12) inset; }
.bottle { position: absolute; bottom: 0; width: 108px; height: 440px; border-radius: 20px 20px 38px 38px; background: linear-gradient(90deg, #151711, #34382a 45%, #0a0c09 90%); box-shadow: -20px 20px 50px rgba(0,0,0,.35); }
.bottle::before { content: ""; position: absolute; width: 39px; height: 115px; left: 35px; top: -102px; background: linear-gradient(90deg,#151711,#34382a 50%,#10120e); border-radius: 5px 5px 0 0; }
.bottle::after { content: "ÚLTIMAS\A GARrafas"; white-space: pre; text-transform: uppercase; display: grid; place-items: center; text-align: center; position: absolute; left: 10px; right: 10px; top: 170px; height: 135px; color: var(--wine-dark); background: #e6d6ba; font-family: "Playfair Display",serif; font-size: 15px; line-height: 1.7; letter-spacing: .07em; }
.bottle-one { right: 40%; transform: rotate(-8deg); }
.bottle-two { right: 20%; height: 475px; bottom: -8px; transform: scale(1.08); }
.bottle-three { right: 0; transform: rotate(9deg); }

.catalog { padding-block: 96px 110px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.catalog-heading h2 { margin: 10px 0 0; font-size: clamp(40px,5vw,66px); letter-spacing: -.04em; }
.catalog-heading > p { width: 350px; margin: 0; color: var(--muted); line-height: 1.6; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; gap: 12px; padding: 18px; border: 1px solid var(--line); background: #fff; }
.filters label { display: flex; flex-direction: column; gap: 7px; }
.filters label > span:not(.sr-only) { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.filters input, .filters select { width: 100%; height: 46px; border: 0; border-bottom: 1px solid var(--line); outline: none; color: var(--ink); background: transparent; }
.filters input:focus, .filters select:focus { border-color: var(--wine); }
.search-field { position: relative; }
.search-field svg { position: absolute; width: 20px; height: 20px; left: 5px; bottom: 13px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-field input { padding-left: 37px; }
.clear-button { height: 46px; padding: 0 18px; color: var(--wine); background: transparent; border: 1px solid var(--wine); font-size: 12px; font-weight: 700; }
.clear-button:hover { color: #fff; background: var(--wine); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 34px 0 24px; color: var(--muted); font-size: 13px; }
.results-bar strong { color: var(--ink); }
.sort-label select { margin-left: 8px; border: 0; color: var(--ink); background: transparent; font-weight: 600; }
.wine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wine-card { position: relative; min-width: 0; border: 1px solid var(--line); background: #fff; transition: transform .25s, box-shadow .25s; }
.wine-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(50,35,27,.10); }
.card-visual { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; background: var(--card-bg); }
.card-visual::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(100,28,45,.14); }
.mini-bottle { position: relative; z-index: 1; width: 45px; height: 150px; border-radius: 7px 7px 15px 15px; background: var(--bottle-color); box-shadow: 7px 9px 18px rgba(0,0,0,.19); }
.mini-bottle::before { content: ""; position: absolute; width: 17px; height: 39px; left: 14px; top: -32px; border-radius: 2px 2px 0 0; background: inherit; }
.mini-bottle::after { content: attr(data-initials); position: absolute; left: 4px; right: 4px; top: 59px; min-height: 48px; padding: 8px 2px; display: grid; place-items: center; background: #eee2cb; color: #5f2330; text-align: center; font-family: "Playfair Display",serif; font-size: 10px; font-weight: 600; }
.product-image { position: absolute; z-index: 2; inset: 10px 22px; width: calc(100% - 44px); height: calc(100% - 20px); object-fit: contain; object-position: center; mix-blend-mode: multiply; filter: drop-shadow(8px 10px 10px rgba(24,15,10,.16)); }
.product-image + .stock { z-index: 3; }
.discount { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 6px 8px; color: #fff; background: var(--wine); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.stock { position: absolute; z-index: 2; right: 12px; bottom: 10px; padding: 5px 7px; color: var(--wine); background: rgba(255,255,255,.87); font-size: 10px; font-weight: 700; }
.card-body { padding: 20px; }
.card-meta { color: var(--wine); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.card-body h3 { min-height: 54px; margin: 9px 0 8px; font-size: 21px; line-height: 1.25; }
.description { min-height: 57px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 47px; margin: 14px 0; }
.tag { align-self: start; padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.price-row { display: flex; justify-content: space-between; align-items: end; padding-top: 15px; border-top: 1px solid var(--line); }
.old-price { display: block; color: #9a9289; font-size: 11px; text-decoration: line-through; }
.price { color: var(--wine); font-family: "Playfair Display",serif; font-size: 24px; font-weight: 600; }
.sku { color: #aaa198; font-size: 9px; }
.add-button { width: 100%; margin-top: 15px; padding: 12px; border: 1px solid var(--wine); color: var(--wine); background: transparent; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; transition: .2s; }
.add-button:hover { color: #fff; background: var(--wine); }
.show-more { display: block; margin: 42px auto 0; padding: 15px 30px; border: 1px solid var(--wine); color: var(--wine); background: transparent; font-weight: 700; }
.show-more:hover { color: #fff; background: var(--wine); }
.empty { padding: 70px 20px; border: 1px solid var(--line); text-align: center; }
.empty span { color: var(--gold); font-size: 40px; }
.empty h3 { margin: 8px 0; font-size: 28px; }
.empty p { color: var(--muted); }
.empty button { padding: 12px 20px; border: 0; color: #fff; background: var(--wine); }
footer { padding: 42px 0; color: #d8cbd0; background: var(--wine-dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner p { font-size: 12px; line-height: 1.7; }
.responsible { text-align: right; }
.cart-open { overflow: hidden; }
.cart-overlay { position: fixed; z-index: 20; inset: 0; opacity: 0; background: rgba(25,12,15,.55); transition: opacity .25s; }
.cart-overlay.open { opacity: 1; }
.cart-drawer { position: fixed; z-index: 21; top: 0; right: 0; width: min(480px, 100%); height: 100dvh; display: flex; flex-direction: column; padding: 30px; background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .3s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 7px 0 0; font-size: 42px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); color: var(--ink); background: transparent; font-size: 26px; line-height: 1; }
.cart-items { overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 55px 1fr auto; gap: 13px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.cart-item-art { width: 55px; height: 72px; display: grid; place-items: center; color: var(--wine); background: #eee4da; font-family: "Playfair Display",serif; font-weight: 700; }
.cart-item-info { min-width: 0; display: flex; align-items: start; flex-direction: column; gap: 3px; }
.cart-item-info strong { font-family: "Playfair Display",serif; font-size: 15px; line-height: 1.2; }
.cart-item-info small { overflow: hidden; max-width: 100%; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.cart-item-info > span { margin-top: 3px; color: var(--wine); font-weight: 700; font-size: 13px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--line); }
.quantity button { width: 28px; height: 32px; border: 0; background: transparent; }
.quantity span { min-width: 20px; text-align: center; font-size: 12px; }
.cart-empty { margin: auto; padding: 50px 20px; text-align: center; }
.cart-empty > span { color: var(--gold); font-size: 40px; }
.cart-empty h3 { margin: 8px 0; font-size: 24px; }
.cart-empty p { color: var(--muted); font-size: 13px; }
.cart-summary { padding-top: 20px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); font-size: 13px; }
.cart-summary .cart-total { align-items: baseline; color: var(--ink); font-size: 16px; }
.cart-total strong { color: var(--wine); font-family: "Playfair Display",serif; font-size: 29px; }
.cart-summary .delivery-form { display: block; margin-top: 14px; padding: 16px 0 8px; border-top: 1px solid var(--line); }
.delivery-form h3 { margin: 0 0 12px; font-size: 19px; }
.delivery-form label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.delivery-form input, .delivery-form select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); outline: none; color: var(--ink); background: #fff; font-size: 12px; text-transform: none; letter-spacing: 0; }
.delivery-form input:focus, .delivery-form select:focus { border-color: var(--wine); }
.delivery-form .invalid { border-color: #b1263f; background: #fff8f8; }
.delivery-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.delivery-error { min-height: 16px; margin: 0; color: #a51e37; font-size: 10px; }
.checkout-button { width: 100%; display: flex; justify-content: space-between; margin-top: 14px; padding: 16px; border: 0; color: #fff; background: #286a45; font-weight: 700; }
.checkout-button:disabled { opacity: .65; cursor: wait; }
.copy-button { width: 100%; margin-top: 8px; padding: 11px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.cart-summary > p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 25px; max-width: calc(100% - 30px); padding: 12px 18px; opacity: 0; color: #fff; background: var(--wine-dark); pointer-events: none; transform: translate(-50%, 15px); transition: .25s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 950px) {
  .hero-art { opacity: .38; right: -12%; width: 65%; }
  .filters { grid-template-columns: 2fr 1fr 1fr; }
  .clear-button { grid-column: 3; }
  .wine-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: 680px; }
  .nav { height: 86px; }
  .nav-link { display: none; }
  .hero-content { padding-top: 95px; }
  .hero-content > p { max-width: 90%; }
  .hero-art { right: -50%; width: 105%; bottom: -185px; }
  .hero-note { display: none; }
  .catalog { padding-block: 70px; }
  .catalog-heading { display: block; }
  .catalog-heading > p { width: auto; margin-top: 18px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .clear-button { grid-column: 2; }
  .wine-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-visual { height: 190px; }
  .card-body { padding: 15px; }
  .card-body h3 { font-size: 18px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .responsible { text-align: left; }
  .cart-drawer { padding: 22px 18px; }
}
@media (max-width: 460px) {
  h1 { font-size: 54px; }
  .filters { grid-template-columns: 1fr; }
  .search-field, .clear-button { grid-column: auto; }
  .results-bar { align-items: start; gap: 10px; flex-direction: column; }
  .wine-grid { grid-template-columns: 1fr; }
  .card-visual { height: 220px; }
  .description { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wine-card { transition: none; } }
