/* Pedido assistido: os valores vêm do catálogo, sem checkout financeiro. */
body.cart-open { overflow: hidden; }
.cart-header-button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; padding: 12px 16px; min-height: 44px; color: var(--olive); border: 1px solid var(--line); background: var(--cream-light); font-size: 13px; flex-shrink: 0; }
.cart-header-button:hover { border-color: var(--olive); }
.cart-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.cart-badge { min-width: 24px; min-height: 24px; padding: 3px 5px; border-radius: 50%; font-size: 12px; background: var(--olive); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.wine-card-buy { position: relative; z-index: 2; padding: 0 23px 23px; }
.cart-add { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--olive); color: var(--cream-light); border-radius: 2px; font-size: 13px; padding: 14px 16px; min-height: 48px; width: 100%; text-align: left; transition: background 180ms; }
.cart-add:hover { background: var(--olive-soft); }
.cart-add > span { font-size: 20px; line-height: 1; }
.wine-card-summary { font-size: 13px; line-height: 1.7; color: var(--muted); min-height: 44px; margin: -8px 0 18px; }
.sheet-purchase { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 28px; padding: 18px 20px; background: var(--cream); }
.sheet-purchase > p { font-size: 14px; line-height: 1.7; color: var(--olive); }
.sheet-purchase .cart-add { width: auto; min-width: 230px; flex-shrink: 0; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
.hero-copy .hero-actions .button { margin-top: 0; }
.hero-secondary { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gold); }
.order-guidance { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--line); background: var(--cream-light); font-size: 14px; line-height: 1.8; color: var(--muted); }
.order-guidance strong { display: block; color: var(--olive); font-weight: 550; margin-bottom: 5px; }
.footer-contact { padding: 24px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-contact h3 { font-size: 31px; margin-bottom: 10px; }
.footer-contact p { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 610px; }
.footer-contact a { flex-shrink: 0; }

.cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: none; width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--cream-light); color: var(--ink); overflow: hidden; box-shadow: -12px 0 70px rgba(0,0,0,.16); }
.cart-dialog[open] { display: flex; flex-direction: column; animation: cart-in 220ms var(--ease); }
.cart-dialog::backdrop { background: rgba(25,31,24,.62); backdrop-filter: blur(3px); }
.cart-dialog-header { padding: 28px 30px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cart-dialog h2 { font-size: 45px; line-height: 1.1; margin-top: 8px; }
.cart-close { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; font-size: 28px; }
.cart-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 30px; }
.cart-empty { padding: 60px 0; }
.cart-empty h3 { font-size: 34px; margin-bottom: 14px; }
.cart-empty p { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 25px; }
.cart-item { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.cart-item-photo { width: 86px; height: auto; border: 1px solid var(--line); }
.cart-item h3 { font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.cart-unit-price { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.cart-quantity { display: flex; width: fit-content; margin-top: 15px; border: 1px solid var(--line); }
.quantity-button { width: 44px; height: 44px; background: var(--cream); font-size: 20px; }
.quantity-button:disabled { opacity: .4; cursor: default; }
.quantity-input { width: 60px; min-width: 0; height: 44px; padding: 5px; font: inherit; font-size: 15px; text-align: center; border: 0; border-inline: 1px solid var(--line); background: var(--cream-light); appearance: textfield; -moz-appearance: textfield; }
.quantity-input::-webkit-inner-spin-button, .quantity-input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.cart-line-total { font-size: 15px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.cart-remove { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--burgundy); text-decoration: underline; text-underline-offset: 4px; background: transparent; }
.cart-footer { padding: 22px 30px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); flex-shrink: 0; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 15px; }
.cart-total-row p { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.cart-total-row small { font-size: 12px; color: var(--muted); }
.cart-total-row strong { font-size: 24px; font-weight: 550; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-buy { width: 100%; gap: 14px; }
.cart-order-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 14px; }
.cart-continue { margin-top: 7px; min-height: 44px; width: 100%; background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.cart-storage-note { font-size: 12px; line-height: 1.7; margin-top: 10px; color: var(--burgundy); }
@keyframes cart-in { from { transform: translateX(22px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }

/* Ajustes de legibilidade: preservar a estética sem letras de 9px nas informações de escolha. */
.hero-footnote, .photo-caption span:first-child, .footer-brand span, .footer-bottom, .brand-descriptor { font-size: 12px; }
.hero-copy .eyebrow, .section-heading .eyebrow, .light-eyebrow { font-size: 11px; }
.hero-description, .section-heading p:not(.eyebrow), .catalog-heading > p, .category-grid .card-description, .guidance-item p, .dialog-intro, .principle p { font-size: 14px; }
.filter-count, .wine-type, .wine-card-hint, .catalog-sort, .catalog-count, .catalog-note, .dialog-note, .wine-identity dt, .wine-complements dt, .dna-help, .dna-value, .dna-note, .curation-label, .wine-profile-note, .sheet-disclosures summary { font-size: 12px; }
.wine-identity dd, .wine-complements dd, .wine-ease > span, .wine-ease > strong, .wine-ease > p, .wine-chip, .sheet-disclosures details > p, .sheet-disclosures details > ul { font-size: 13px; }
.dna-row dd { max-width: 55%; flex-shrink: 1; text-align: right; }
.serve-block p { font-size: clamp(24px, 2.8vw, 36px); overflow-wrap: anywhere; }
@media (max-width: 1120px) {
  .header-inner { gap: 18px; }
  .cart-header-button { padding: 10px 12px; }
  .wine-card-buy { padding: 0 18px 20px; }
  .cart-add { font-size: 12px; padding: 13px 12px; }
}
@media (max-width: 850px) {
  .cart-header-button { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .footer-contact { flex-direction: column; align-items: flex-start; }
  .wine-card-buy { padding: 0 23px 23px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 10px; padding-inline: 16px; }
  .brand-wordmark { width: 145px; }
  .brand-symbol { width: 23px; height: 52px; }
  .brand { gap: 8px; }
  .brand-descriptor { font-size: 10px; letter-spacing: 0; }
  .cart-header-button { gap: 6px; padding: 10px; }
  .cart-header-label { display: none; }
  .menu-toggle { width: 40px; padding: 9px; }
  .hero-actions { margin-top: 27px; gap: 16px; }
  .photo-caption span:first-child { font-size: 10px; letter-spacing: .08em; white-space: normal; }
  .photo-caption .caption-line { display: none; }
  .wine-card-buy { padding: 0 13px 17px; }
  .cart-add { font-size: 12px; line-height: 1.5; padding: 12px; }
  .cart-add > span { display: none; }
  .wine-card-summary { font-size: 12px; }
  .wine-card-hint { font-size: 11px; }
  .sheet-purchase { flex-direction: column; align-items: stretch; padding: 17px; gap: 16px; }
  .sheet-purchase .cart-add { min-width: 0; width: 100%; }
  .order-guidance { padding: 20px; }
  .footer-contact a { width: 100%; }
  .cart-dialog-header { padding: 24px 22px 20px; }
  .cart-dialog h2 { font-size: 40px; }
  .cart-body { padding-inline: 22px; }
  .cart-item { grid-template-columns: 64px minmax(0,1fr); gap: 16px; }
  .cart-item-photo { width: 64px; }
  .cart-item h3 { font-size: 26px; }
  .cart-footer { padding-inline: 22px; padding-top: 18px; }
  .cart-total-row { gap: 14px; }
  .cart-total-row strong { font-size: 21px; }
  .cart-buy { font-size: 13px; padding: 16px 18px; }
}
@media (max-height: 650px) {
  .cart-dialog-header { padding-block: 15px; }
  .cart-dialog h2 { font-size: 32px; }
  .cart-footer { padding-block: 12px; }
  .cart-order-note { font-size: 11px; line-height: 1.5; margin-top: 8px; }
}

@media (max-height: 650px) {
  .cart-dialog { overflow-y: auto; }
  .cart-body { flex: none; overflow: visible; min-height: 120px; }
}
