@font-face {
  font-family: "DM Sans";
  src: url(fonts/dm-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url(fonts/playfair.woff2) format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Hedvig Letters Sans";
  src: url(fonts/hedvig-letters-sans.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url(fonts/cormorant-garamond.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #271f18;
  --muted: #625b51;
  --paper: #faf8f2;
  --cream: #fff7df;
  --wine: #53202a;
  --line: #d7d1c5;
  --dark: #241a15;
  --green: #264835;
  --serif: Playfair, Georgia, serif;
  --nav-sans: "Hedvig Letters Sans", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 86px }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans) }
body:has(dialog[open]) { overflow: hidden }
button, input, select { font: inherit; color: inherit }
a { color: inherit }
button { cursor: pointer }
img { display: block; max-width: 100% }
[hidden] { display: none !important }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px }
.wrap { width: min(1390px, calc(100% - 2 * clamp(20px, 6vw, 103px))); margin-inline: auto }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap }
.skip:focus { position: fixed; left: 12px; top: 8px; z-index: 20; background: white; padding: 10px }
h1, h2, h3, p, figure { margin: 0 }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06 }
h2 { font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.062em }
.button { display: inline-flex; gap: .56rem; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: 4px; font-size: .95rem; font-weight: 700; text-decoration: none; line-height: 1.25; text-align: center; transition: background-color .15s ease, color .15s ease, border-color .15s ease }
.light { color: #291e16; background: #fff6dc }
@media (hover: hover) {
  .light:hover { background: #ffdfa8 }
}
.primary { background: var(--wine); color: white }
@media (hover: hover) {
  .primary:hover { background: #733441 }
}
.outline { border-color: #a99d8c; background: transparent }
@media (hover: hover) {
  .outline:hover { background: #ede6d9; border-color: #837665 }
}
.site-header { position: sticky; top: 0; z-index: 10; background: #faf8f2; border-bottom: 1px solid var(--line) }
.masthead { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 2rem }
.brand { justify-self: start; display: inline-flex; align-items: center; flex-direction: column; color: var(--wine); text-decoration: none; line-height: 1 }
.brand span { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; margin-bottom: 1px }
.brand strong { font: 700 2.1rem/.91 var(--serif); letter-spacing: -.075em }
.masthead nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem) }
.masthead nav a { font-size: .92rem; font-weight: 600; text-decoration: none; text-underline-offset: .4em; padding-block: .6rem }
.masthead nav a:hover, .footer-contact:hover { text-decoration: underline }
.header-order { justify-self: end; color: var(--ink); background: transparent; border-color: #b0a799; padding: .52rem .74rem .52rem .9rem; font-size: .9rem; min-height: 42px }
@media (hover: hover) {
  .header-order:hover { background: #ece5d9 }
}
.count { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 1.46rem; min-height: 1.46rem; border-radius: 999px; padding: .1rem .48rem; display: inline-grid; place-items: center; color: white; background: var(--wine); font-size: .8rem }
.small-title { font-size: .91rem; font-weight: 650; line-height: 1.3 }
.catalog { padding-block: clamp(36px, 3.7vw, 60px) }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.65rem; margin-bottom: 2rem }
.section-head p { color: var(--muted); max-width: 36ch; line-height: 1.5; text-wrap: pretty }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .9rem; border-block: 1px solid var(--line) }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center }
.filter { min-height: 42px; border: 1px solid transparent; background: transparent; padding: .52rem .85rem; border-radius: 3px; color: var(--muted); font-weight: 650; font-size: .9rem }
@media (hover: hover) {
  .filter:hover { background: #eee8dd }
}
.filter[aria-pressed=true], .mobile-family select { background: var(--ink); color: var(--paper) }
.search-label { position: relative; min-width: min(246px, 100%); display: flex }
input { min-height: 44px; border: 1px solid #ada699; border-radius: 3px; background: #fffdfa; padding: .58rem .7rem; max-width: 100% }
.search-label input { width: 100%; padding-left: 2.35rem; font-size: .9rem }
.search-icon { position: absolute; width: 14px; height: 14px; top: 13px; left: 13px; border: 1.6px solid var(--muted); border-radius: 50%; pointer-events: none }
.search-icon::after { content: ''; width: 6px; height: 1.6px; background: var(--muted); position: absolute; bottom: -3px; right: -4px; transform: rotate(45deg) }
.results { color: var(--muted); font-size: .86rem; margin: .95rem 0 }
.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: clamp(14px,2.1vw,33px); row-gap: clamp(26px,3.8vw,54px) }
@media (scripting: enabled) {
  .products:empty { min-height: 100svh }
  #results:empty { min-height: 1.55em }
}
.product { display: flex; min-width: 0; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: 1rem }
.product-visual { display: grid; place-items: center; position: relative; aspect-ratio: 5 / 4; width: 100%; border: 0; border-radius: 4px; background: #e9e2d5; overflow: hidden; padding: 8.5%; cursor: zoom-in }
.product-visual img { height: 100%; width: 100%; min-height: 0; object-fit: contain; transition: transform .32s ease }
.product-visual.has-mockup { padding: 0 }
.product-visual.has-mockup img { object-fit: cover }
button.product-visual::after { content: '+'; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: #fffdf6e8; border: 1px solid #cabfaa; border-radius: 50%; color: var(--ink); font: 400 1.1rem/1 var(--sans) }
@media (hover:hover) { .product-visual:hover img { transform: scale(1.035) } }
.product-body { display: flex; flex-direction: column; flex: 1; gap: .45rem; padding-top: 1rem }
.product-body h2 { font-size: clamp(1.48rem, 2.1vw, 2.22rem); letter-spacing: -.046em }
.product-body p { color: var(--muted); font-size: .92rem }
.product-body .button { align-self: start; margin-top: .55rem; min-height: 44px; padding: .47rem .86rem; font-size: .9rem }
.product-body .added { color: var(--green); background: #e3ebdf; border-color: #91a18c }
.empty { grid-column: 1/-1; padding: 1.2rem; background: #f2ede3 }
.empty .button { margin-top: .75rem }
.more-row { display: flex; justify-content: center }
.more-row:has(button:not([hidden])) { margin-top: 2.2rem }
.distribution-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .85rem; align-self: center }
.distribution-form label { display: block; font-size: .92rem; font-weight: 650 }
.distribution-form small { font-size: .83rem; font-weight: 400; color: #ebd9d3 }
.distribution-form input { display: block; margin-top: .32rem; width: 100%; min-height: 46px; font-size: 1rem; background: #fffaf0; color: var(--ink); border: 1px solid #c6ab9f }
.distribution-form .button { grid-column: 1/-1; justify-self: start }
.help { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,6rem); padding-block: clamp(42px,5.2vw,80px) }
.help h2 { font-size: clamp(2.35rem,4.1vw,4rem); margin-bottom: 1rem }
.help-link { color: var(--wine); font-weight: 650; text-underline-offset: .27em; display: inline-block; padding-block: .45rem }
.questions { border-top: 1px solid var(--line) }
.questions details { border-bottom: 1px solid var(--line) }
.questions summary { position: relative; list-style: none; cursor: pointer; font-weight: 650; padding: 1rem 1.7rem 1rem 0 }
.questions summary::-webkit-details-marker { display: none }
.questions summary::after { content: '+'; position: absolute; right: 2px; top: 1rem; font: 500 1.2rem/1.25 var(--sans) }
.questions details[open] summary::after { content: '−' }
.questions details p { margin: -.25rem 1.25rem 1rem 0; color: var(--muted); max-width: 64ch }
.footer { border-top: 1px solid var(--line) }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 105px; padding-block: 1.3rem }
.footer-inner p, .footer-contact { font-size: .88rem; color: var(--muted) }
.footer-contact { font-weight: 650; color: var(--ink); text-underline-offset: 3px }
dialog { color: var(--ink); background: var(--paper); padding: 0; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 100px #19130c50; max-width: calc(100% - 24px); max-height: calc(100% - 24px); overscroll-behavior: contain }
dialog::backdrop { background: #191411bc }
dialog h2 { font-size: clamp(2.15rem, 4vw, 3.1rem); line-height: 1.12 }
#age { width: 480px }
.age-inner { padding: clamp(22px,5vw,38px) }
.age-inner .small-title, .sheet-header .small-title { color: var(--wine); margin-bottom: .6rem }
.age-inner > p:not(.small-title) { color: var(--muted); margin: 1rem 0 }
.age-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem }
.quiet-button, .remove, .close-button { min-height: 44px; padding: .5rem .3rem; border: 0; background: transparent; color: var(--wine); text-decoration: underline; text-underline-offset: .22em; font-weight: 650 }
#age-back { margin-top: .55rem }
#order { width: min(100%, 535px); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; border-radius: 0; border: 0; overflow-y: auto }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.45rem; border-bottom: 1px solid var(--line) }
.sheet-items { padding: .6rem 1.45rem 1.4rem }
.sheet-empty { color: var(--muted); margin: 1rem 0 }
.order-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem .8rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line) }
.order-line span { display: block; color: var(--muted); font-size: .9rem }
.order-line label { display: block; font-size: .85rem; font-weight: 650 }
.quantity-control { display: flex; align-items: center; gap: .2rem }
.quantity-step { width: 42px; height: 44px; padding: 0; border: 1px solid #b9ac9b; border-radius: 3px; background: #f4efe6; font-weight: 700 }
.quantity-step:disabled { opacity: .45; cursor: default }
.quantity-control input { width: 54px; height: 44px; text-align: center; padding: .2rem; appearance: textfield; -moz-appearance: textfield }
.quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none }
.order-line .remove { justify-self: start; font-size: .85rem; min-height: 38px }
.order-line .quantity-error { grid-column: 1/-1; color: #8e252d; font-size: .86rem }
.sheet-details { display: grid; padding: 0 1.45rem 1.6rem; gap: .6rem }
.sheet-details label { font-weight: 650 }
.sheet-details label span, .sheet-details p { color: var(--muted); font-size: .9rem; font-weight: 400 }
.sheet-details a[aria-disabled=true] { opacity: .5 }
#art-dialog { width: min(675px, 100%); padding: .85rem 1.1rem 1.2rem }
#art-dialog form { display: flex; justify-content: flex-end; margin-bottom: .55rem }
#art-dialog figure { text-align: center }
#art-dialog figure img { width: 100%; height: min(52dvh, 480px); object-fit: contain }
#art-dialog figcaption { color: var(--muted); margin-top: .65rem }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 2 * clamp(20px, 4vw, 42px)) }
  .toolbar { flex-direction: column-reverse; align-items: stretch; gap: .55rem }
  .search-label { align-self: flex-start; width: min(310px, 100%) }
  .filters { gap: .25rem }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 107px }
  .masthead { grid-template-columns: 1fr auto; grid-template-rows: 57px auto; min-height: 0; column-gap: .5rem }
  .masthead nav { display: flex; grid-column: 1/-1; grid-row: 2; justify-content: space-between; gap: .4rem; width: 100%; border-top: 1px solid var(--line) }
  .masthead nav a { padding: .55rem .15rem; font-size: .87rem; min-height: 40px }
  .masthead .header-order { grid-column: 2; grid-row: 1 }
  .brand strong { font-size: 1.77rem }
  .brand span { font-size: .65rem }
  .header-order { min-height: 42px; font-size: .85rem }
  .section-head { display: block; margin-bottom: 1.15rem }
  .section-head p { max-width: 43ch; margin-top: .7rem }
  .catalog { padding-block: 30px 38px }
  .toolbar { padding-block: .75rem }
  .search-label { width: 100% }
  .filters { flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: thin; margin-inline: -4px; padding: 4px }
  .filter { white-space: nowrap; flex: none; padding-inline: .65rem; min-height: 44px }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 13px }
  .product-body { padding-top: .65rem; gap: .33rem }
  .product-body h2 { font-size: clamp(1.32rem, 4.6vw, 1.8rem) }
  .product-body p { font-size: .86rem }
  .product-body .button { font-size: .85rem; padding-inline: .65rem }
  .help { grid-template-columns: 1fr; gap: 1rem }
  .distribution-form { grid-template-columns: 1fr; gap: .8rem }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem }
  .footer-inner p { order: 1; flex-basis: 100% }
}
@media (max-width: 390px) {
  .product-body .button { align-self: stretch }
  .quantity-step { width: 38px }
  .sheet-items, .sheet-header, .sheet-details { padding-inline: 1rem }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important }
}

/* Catálogo de compras por caja */
.mobile-family, .order-dock { display: none }
.catalog-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .6rem; margin: .85rem 0 1rem }
.catalog-options .results { margin: 0 }
#catalog-view { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 4px; background: #f4f0e7 }
#catalog-view button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 2px; padding: .33rem .66rem; min-height: 38px; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 650 }
#catalog-view button[aria-pressed=true] { color: var(--paper); background: var(--ink) }
.grid-glyph { width: 5px; height: 5px; background: currentColor; box-shadow: 7px 0 currentColor, 0 7px currentColor, 7px 7px currentColor; margin: -6px 7px 0 0 }
.list-glyph { width: 13px; height: 2px; background: currentColor; box-shadow: 0 4px currentColor,0 -4px currentColor }
.product-body .product-format { font-size: .9rem }
.product-body .case-pack { color: var(--ink); font-weight: 700; line-height: 1.4 }
.case-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .36em;
  margin-top: .22rem;
  color: var(--wine);
  font-size: 1.08em;
}
.case-price span, .unit-price { font-size: .86rem; font-weight: 400; color: var(--muted) }
.case-price strong, .order-subtotal strong { font-variant-numeric: tabular-nums }
.products[data-view=producto] .case-pack { margin-top: .75rem }
.products[data-view=producto] .case-price { margin-top: 0; font-size: 1.45rem }
.order-subtotal {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .8rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: .55rem;
  border-top: 1px solid var(--line);
}
.order-subtotal strong { color: var(--wine); font-size: 1.15rem }
.product-body .product-family { font-size: .82rem; color: var(--muted); font-weight: 650 }
.product.no-image { border-top: 2px solid #9b9e83; background: #ebece2; padding-inline: clamp(12px,2vw,24px); }
.product.no-image .product-body h2 { max-width: 15ch; font-size: clamp(1.5rem,3vw,3rem); margin-top: .45rem }
.card-order { display: flex; align-items: flex-end; justify-content: flex-start; gap: .7rem; flex-wrap: wrap; margin: auto 0 0; padding-top: 1rem }
.card-order .card-quantity { display: grid; align-content: start; gap: .2rem }
.card-quantity label { color: var(--muted); font-weight: 600; font-size: .84rem }
.card-quantity .quantity-control { gap: 0; width: max-content; border: 1px solid #b4ab99; border-radius: 4px; overflow: hidden; background: #fffdf8 }
.card-quantity .quantity-step, .card-quantity input { width: 38px; height: 44px; min-height: 44px; border: none; border-radius: 0 }
.card-quantity .quantity-step { background: transparent; font-weight: 650 }
.card-quantity input { width: 45px; padding: 0; background: transparent; text-align: center; font-weight: 650 }
@media (hover: hover) {
  .card-quantity .quantity-step:hover:not(:disabled) { background: #e8e3d6 }
}
.card-quantity .quantity-control :focus-visible { outline-offset: -3px }
.card-order .quantity-units { font-size: .84rem; color: var(--muted); line-height: 1.35 }
.card-order .quantity-error { max-width: 28ch; color: #8a1927; font-size: .85rem }
.product-body .card-order-action { align-self: flex-start; margin: 1.52rem 0 0; color: var(--wine); border: 1px solid #9f8584; background: transparent; min-height: 44px; padding: .55rem .85rem; font-size: .88rem }
@media (hover: hover) {
  .product-body .card-order-action:hover { background: #eee3df }
}
.product-body .card-order-action.added { background: #e0eadf; color: #264835; border-color: #a1b59f }
.product.no-image .card-order { margin-top: auto }
.product-body .card-order-action[aria-disabled=true] { color: var(--muted); border-color: var(--line) }
#order .quantity-units { margin-top: .15rem }
.products[data-view=lista] { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line) }
.products[data-view=lista] .product { display: grid; grid-template-columns: 86px minmax(0,1fr); align-items: center; gap: clamp(12px,1.6vw,24px); padding: .68rem 0; border-top: 0; background: transparent }
.products[data-view=lista] .product-visual { width: 86px; height: 78px; aspect-ratio: auto; border-radius: 3px }
.products[data-view=lista] .product-visual::after { display: none }
.products[data-view=lista] .product-body { grid-column: 2; display: grid; grid-template-columns: minmax(125px,1.15fr) minmax(124px,.95fr) minmax(98px,.75fr) minmax(210px,1.42fr); gap: .4rem 1rem; align-items: center; padding: 0 }
.products[data-view=lista] .product-body h2, .products[data-view=lista] .product.no-image h2 { grid-column:1; grid-row:1; max-width: none; font-size: clamp(1.13rem,1.7vw,1.6rem); margin: 0 }
.products[data-view=lista] .product-format { grid-column: 2 }
.products[data-view=lista] .case-pack { grid-column: 3; font-size: .88rem }
.products[data-view=lista] .card-order { grid-column: 4; flex-wrap: nowrap; justify-content: flex-end; margin: 0; padding: 0 }
.products[data-view=lista] .product-family { display: none }
.order-summary { margin: 1rem 1.45rem 0; padding: .65rem .85rem; background: #eae5d9; color: var(--ink); font-weight: 650; border-radius: 3px }
@media (min-width: 721px) and (max-width: 1050px) {
  .products[data-view=lista] .product-body { grid-template-columns: minmax(110px,1fr) minmax(95px,.8fr) minmax(238px,1.5fr) }
  .products[data-view=lista] .product-format { grid-column: 1; grid-row: 2 }
  .products[data-view=lista] .case-pack { grid-column: 2; grid-row: 1/3 }
  .products[data-view=lista] .card-order { grid-column: 3; grid-row: 1/3 }
}
@media (max-width: 720px) {
  .catalog-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "search search" "family view" "results results"; align-items: center; gap: .48rem .65rem; border-top: 1px solid var(--line); padding-top: .7rem; margin-bottom: .7rem }
  .catalog-controls .toolbar, .catalog-controls .catalog-options { display: contents }
  .catalog-controls .results { grid-area: results; margin: 0; font-size: .85rem }
  .catalog-controls #catalog-view { grid-area: view }
  .catalog-controls .search-label { grid-area: search; width: 100% }
  .toolbar .filters { display: none }
  .mobile-family { display: block; position: relative; min-width: 0; grid-area: family; color: var(--paper) }
  .mobile-family select { font-size: 1rem; height: 46px; width: 100%; border: 1px solid var(--ink); border-radius: 3px; appearance: none; padding: .5rem 1.6rem .5rem .65rem; text-overflow: ellipsis }
  .mobile-family::after { content: ''; display: block; position: absolute; right: .7rem; top: 18px; width: 7px; height: 7px; transform: rotate(45deg); border-right: 1.5px solid; border-bottom: 1.5px solid; pointer-events: none }
  .search-label { min-width: 0 }
  .search-label input { min-width: 0; font-size: 1rem; height: 46px; padding-left: 2rem }
  .search-icon { left: 10px; top: 14px }
  #catalog-view button { min-height: 42px }
  .catalog-options { margin: .5rem 0 .75rem }
  .section-head p { font-size: .96rem }
  .product-body .card-order { flex-direction: column; gap: .45rem; align-items: stretch; padding-top: .55rem }
  .product-body .card-order-action { margin: 0; width: 100%; align-self: stretch }
  .card-quantity .quantity-step { width: 40px }
  .card-quantity input { width: 39px }
  .products[data-view=lista] .product { position: relative; grid-template-columns: 62px minmax(0,1fr); gap: .6rem; padding: .8rem 0; align-items: start }
  .products[data-view=lista] .product-visual { width: 62px; height: 65px; padding: 7% }
  .products[data-view=lista] .product-visual.has-mockup { padding: 0 }
  .products[data-view=lista] .no-image .product-body { grid-column: 1/-1 }
  .products[data-view=lista] .product-body { display: flex; align-items: stretch; gap: .2rem }
  .products[data-view=lista] .product-body h2, .products[data-view=lista] .product.no-image h2 { font-size: 1.28rem }
  .products[data-view=lista] .card-order { flex-direction: row; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap; gap: .4rem .6rem; margin-top: .35rem }
  .products[data-view=lista] .card-order-action { align-self: center; width: auto }
  .products[data-view=lista] .product-format, .products[data-view=lista] .case-pack { font-size: .87rem }
  .order-dock:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem clamp(14px,4vw,25px) calc(.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink); background: var(--paper); box-shadow: 0 -4px 18px #2b251018 }
  .order-dock span { font-size: .86rem; font-weight: 650 }
  .order-dock .button { font-size: .9rem; flex: none }
  html:has([data-order-dock]:not([hidden])) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)) }
  body:has([data-order-dock]:not([hidden])) { padding-bottom: calc(80px + env(safe-area-inset-bottom)) }
}

@media (min-width: 1051px) {
  .catalog { padding-top: clamp(32px, 2.6vw, 48px) }
  .section-head { margin-bottom: 1.15rem }
  .catalog .toolbar { padding-block: .65rem }
  .catalog-options { margin-block: .5rem .7rem }
}
@media (max-width: 720px) {
  #catalog-title { font-size: clamp(2.25rem,8.7vw,3.4rem) }
  .section-head p { margin-top: .4rem }
  .catalog-controls #catalog-view button { min-height: 40px; padding-inline: .52rem }
  .catalog-controls .search-label input { padding-left: 2.1rem }
}
@media (max-width: 360px) {
  .catalog-controls #catalog-view button { gap: .25rem; padding-inline: .45rem }
  .catalog-controls .grid-glyph, .catalog-controls .list-glyph { display: none }
}


.masthead nav a[aria-current="page"] { color: var(--wine); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .48em }
.header-order { gap: .52rem; border-color: #c5b6ab; background: #f2ece3; color: #47242a; text-decoration: none }
@media (hover: hover) {
  .header-order:hover { border-color: #825b5a; background: #eadfd3 }
}
.quote-icon { flex: none }
.section-label { color: var(--wine); font-size: .9rem; font-weight: 650; margin-bottom: .8rem }
.distribution-form select { display: block; width: 100%; min-height: 46px; margin-top: .32rem; padding: .55rem .65rem; background: #fffaf0; color: var(--ink); font: inherit; font-weight: 400; border: 1px solid #c6ab9f; border-radius: 3px }
#catalog-title { font-size: clamp(3rem,5.3vw,5.6rem); letter-spacing: -.06em }
@media (min-width: 721px) {
  .products:not([data-view=lista]) .product-visual.has-mockup { aspect-ratio: 1.12 }
}

.catalog:has(.products[data-view=producto]) { max-width: 1080px }
.products[data-view=producto] { display: block }
.product-name-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #b9a799;
  text-underline-offset: .16em;
  text-decoration-thickness: 1px;
}
@media (hover: hover) {
  .product-name-link:hover { color: var(--wine); text-decoration-color: currentColor }
}
.catalog-product-media { position: relative }
a.product-visual { cursor: pointer }
.catalog-zoom {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 0;
  cursor: zoom-in;
}
.catalog-zoom::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cabfaa;
  border-radius: 50%;
  background: #fffdf6f2;
  font: 400 1.2rem/1 var(--sans);
}
@media (hover: hover) {
  .catalog-zoom:hover::after { background: #fff; border-color: var(--wine) }
}
.products[data-view=lista] .catalog-zoom { right: -.32rem; bottom: -.32rem }
.products[data-view=lista] .catalog-zoom::after { width: 25px; height: 25px; font-size: 1rem }
.product-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  margin: 0 0 .75rem;
  font-size: .92rem;
}
.product-back::before {
  content: '';
  width: .55em;
  height: .55em;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(45deg);
}
.products[data-view=producto] .product {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
  grid-template-areas: "media title" "media info";
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(28px,5vw,72px);
  padding-bottom: clamp(20px,3vw,40px);
}
.product-media { grid-area: media }
.products[data-view=producto] .product-visual.has-mockup { aspect-ratio: 5 / 4 }
.products[data-view=producto] .product-body { grid-area: info; gap: 0; padding: 0 }
.products[data-view=producto] h1 { grid-area: title; font-size: clamp(2.5rem,4.8vw,4.45rem); letter-spacing: -.055em; text-wrap: balance }
.product-body .product-description { margin: .83rem 0 1.25rem; max-width: 52ch; font-size: 1.05rem; line-height: 1.5; color: var(--ink) }
.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem clamp(1.4rem,4vw,3.2rem);
  padding-block: .8rem;
  margin: 0;
  border-block: 1px solid var(--line);
}
.product-facts dt { color: var(--muted); font-size: .86rem }
.product-facts dd { margin: 0; font-family: var(--sans); font-weight: 650; font-size: 1.16rem; color: var(--ink) }
.product-facts:has(> :nth-child(3)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(.4rem, 1.2vw, 1rem);
}
.product-facts > div { display: flex; flex-direction: column; justify-content: space-between }
.products[data-view=producto] .card-order { margin: .75rem 0 .4rem; padding: 0 }
.products[data-view=producto] .card-order-action { min-width: 9rem }
.products[data-view=producto] .card-order-action:not(.added) { background: var(--wine); color: white }
@media (hover: hover) {
  .products[data-view=producto] .card-order-action:not(.added):hover { background: #733441 }
}
.product-body .product-terms, .product-conditions p { font-size: .88rem; line-height: 1.45 }
.product-conditions { margin: .25rem 0; color: var(--muted) }
.product-conditions summary { width: fit-content; padding-block: .57rem; min-height: 44px; cursor: pointer; color: var(--wine); font-weight: 650; font-size: .89rem }
.product-conditions p { padding: .12rem 0 .7rem; max-width: 51ch }
.product-formats { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem 1.05rem; margin: .4rem 0 .1rem; padding-top: .65rem; border-top: 1px solid var(--line) }
.product-formats h2 { flex-basis: 100%; color: var(--ink); font: 650 .9rem/1.4 var(--sans); letter-spacing: 0 }
.product-formats a, .product-recipe { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; color: var(--wine); font: 600 .92rem/1.4 var(--sans); text-underline-offset: .22em }
.dist-selection { grid-column: 1/-1; border-top: 1px solid #aaab95; padding-top: .5rem }
.dist-selection label { display: flex; align-items: center; gap: .55rem; min-height: 44px; cursor: pointer }
.dist-selection input[type=checkbox] { flex: none; width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: var(--wine) }
.dist-selection p { margin-left: calc(20px + .55rem); font-size: .88rem; color: #ede9db }
@media (max-width: 720px) {
  .catalog:has(.products[data-view=producto]) { padding-top: 18px }
  .products[data-view=lista] .catalog-zoom { position: static; width: 62px }
  .product-back { margin-bottom: .4rem }
  .products[data-view=producto] .product { grid-template-columns: 1fr; grid-template-areas: "title" "media" "info"; grid-template-rows: auto; gap: .85rem }
  .products[data-view=producto] .product-visual { margin-inline: auto; width: min(100%, 43svh) }
  .product-body .product-description { margin: 0 0 .85rem; font-size: 1rem }
  .product-facts { padding-block: .55rem }
  .product-facts:has(> :nth-child(3)) dd { font-size: 1.05rem }
  .products[data-view=producto] .card-order { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .4rem .8rem }
  .products[data-view=producto] .card-order-action { align-self: flex-start; margin-top: 1.52rem; width: auto }
}
@media (max-width: 480px) and (max-height: 740px) {
  .products[data-view=producto] .product-visual { width: min(100%, 39svh) }
  .products[data-view=producto] .product-facts { order: -2 }
  .products[data-view=producto] .card-order { order: -1 }
  .product-body .product-description { margin-top: .8rem }
}
@media (max-width: 360px) {
  .product-facts:has(> :nth-child(3)) dd { font-size: .96rem }
  .product-facts dt { font-size: .8rem }
}

:root { --paper: #f8f6ef; --wine: #57252e; --bottle: #2d4236 }
.brand strong { font-size: 2.35rem }
#catalog-title, .products[data-view=producto] h1 { color: var(--wine) }
@media (max-width: 700px) {
  .brand strong { font-size: 1.78rem }
}

@media (max-width: 720px) {
  .catalog-controls #catalog-view button, .order-line .remove { min-height: 44px }
  .product-name-link, .help-link { display: inline-flex; align-items: center; min-height: 44px }
  .card-quantity .quantity-step, .card-quantity input, #order .quantity-step { width: 44px }
  .card-quantity { width: min-content }
  .card-order input, .yield-field input { font-size: 1rem }

  .products[data-view=lista] .product {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-areas: "photo name" "photo format" "photo pack" "order order";
    align-items: center;
    gap: 0 .9rem;
    padding-block: 1rem;
  }
  .products[data-view=lista] .product-body { display: contents }
  .products[data-view=lista] .catalog-product-media { grid-area: photo; align-self: start }
  .products[data-view=lista] .product-visual { width: 78px; height: 90px }
  .products[data-view=lista] .catalog-zoom { position: absolute; right: 0; bottom: 0; width: 44px }
  .products[data-view=lista] .product-body h2 { grid-area: name; align-self: end }
  .products[data-view=lista] .product-format { grid-area: format }
  .products[data-view=lista] .case-pack { grid-area: pack; align-self: start }
  .products[data-view=lista] .card-order,
  .products[data-view=producto] .card-order {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-area: order;
    align-items: start;
    gap: .35rem .75rem;
    margin-block: .65rem .2rem;
  }
  .products:is([data-view=lista], [data-view=producto]) .card-order-action {
    align-self: start;
    min-width: 0;
    margin: 1.5rem 0 0;
  }
  .products:is([data-view=lista], [data-view=producto]) .card-order-action:only-child {
    grid-column: 1 / -1;
    margin: 0;
  }
  #order .sheet-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--paper);
    padding-block: .8rem;
  }
  #order { scroll-padding-top: 6rem }
  #order .order-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name name" "quantity remove";
    row-gap: .65rem;
  }
  .order-line .order-product { grid-area: name }
  .order-line .quantity-field { grid-area: quantity }
  .order-line .remove { grid-area: remove; justify-self: end }
  #order .order-line.format-inquiry { grid-template-areas: "name remove" }
  #order .sheet-details { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)) }
}
@media (max-width: 359px) {
  .catalog.wrap { width: calc(100% - 2rem) }
}
@media (max-width: 430px) {
  #catalog-title { font-size: clamp(2.3rem, 12vw, 3.25rem) }
  .catalog-controls { column-gap: .35rem }
  .catalog-controls #catalog-view button { min-width: 44px; padding-inline: .28rem; font-size: .83rem }
  .catalog-controls :is(.grid-glyph, .list-glyph) { display: none }
}
