/* Quantidades, avisos e navegação da vitrine. */
.highlights-carousel { position: relative; }
.highlights-carousel .highlights-list { display: flex; gap: 16px; padding: 4px 2px 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.highlights-carousel .highlight-item { flex: 0 0 292px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 150px auto; gap: 14px 8px; padding: 0 16px 16px; overflow: hidden; border-radius: 20px; scroll-snap-align: start; }
.highlights-carousel .highlight-art { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; width: calc(100% + 32px); height: 150px; margin: 0 -16px; border-radius: 0; background-color: #fff; font-size: 3rem; }
html[data-theme] .highlights-carousel .highlight-art:not(.highlight-sprite) { background-color: #fff; }
.highlights-carousel .highlight-art img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; padding: 10px; object-fit: contain; object-position: center; }
.highlights-carousel .highlight-art.highlight-sprite { width: 150px; margin: 0 auto; }
.highlights-carousel .highlight-copy { min-width: 0; align-self: center; }
.highlights-carousel .highlight-copy strong { display: block; margin-bottom: 5px; line-height: 1.35; }
.highlights-carousel .highlight-copy small { display: block; font-size: .72rem; }
.highlights-carousel .highlight-price { display: block; margin-top: 6px; font-size: 1.12rem; }
.highlights-carousel .highlight-add { grid-column: 2; align-self: end; }
.highlights-arrow { position: absolute; z-index: 2; top: calc(50% - 7px); transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #cbd2db; border-radius: 50%; color: #263343; background: #fff; box-shadow: 0 4px 16px #10182633; cursor: pointer; touch-action: manipulation; }
.highlights-prev { left: 8px; }
.highlights-next { right: 8px; }
html[data-theme="dark"] .highlights-arrow { background: #263343; color: #f4f6fb; border-color: #526075; }
.highlights-arrow[hidden] { display: none; }
.highlights-arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.drawer .cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 10px 12px; align-items: center; padding: 18px 0; }
.drawer .cart-item .cart-illustration { grid-column: 1; grid-row: 1 / 3; align-self: start; width: 56px; height: 56px; padding: 0; border: 0; cursor: pointer; }
.drawer .cart-item .cart-item-main { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.cart-product-name { display: block; padding: 0; margin: 0 0 3px; border: 0; color: var(--ink); background: none; text-align: left; font: inherit; font-size: .9rem; font-weight: 800; line-height: 1.35; cursor: pointer; }
.cart-line-price { display: block; font-variant-numeric: tabular-nums; }
.cart-edit-quantity { display: block; padding: 5px 0 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.drawer .cart-item .qty-controls { grid-column: 2; grid-row: 2; justify-self: start; display: flex; gap: 0; padding: 3px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.drawer .qty-controls button { flex: 0 0 36px; width: 36px; height: 38px; border: 0; border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 1.1rem; touch-action: manipulation; }
.drawer .qty-controls button:disabled { opacity: .35; cursor: not-allowed; }
.drawer .qty-controls input { width: 66px; height: 38px; margin: 0; padding: 2px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.drawer .qty-controls input::-webkit-inner-spin-button, .drawer .qty-controls input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-unit { flex: none; padding-right: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.drawer .cart-item .cart-remove { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.drawer .cart-item button:focus-visible, .drawer .qty-controls input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.drawer .qty-controls input:invalid:not(:focus) { outline: 1px solid #dc3545; }
.product-modal-quantity-row { flex-wrap: wrap; gap: 12px; align-items: center; }
.product-modal-quantity-row label { flex: 1 1 180px; }
.product-modal-quantity-row .product-quantity { background: var(--soft); }
#product-modal-quantity { width: 85px; font-size: 17px; font-variant-numeric: tabular-nums; }
.gram-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gram-presets[hidden] { display: none; }
.gram-presets button { min-height: 38px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.gram-presets button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--soft); }
.product-modal-information .weight-confirmation { margin: 14px 0 0; font-size: .75rem; }
.drawer .pix-payment-notice { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; padding: 14px; border: 1px solid #efbdc3; border-radius: 13px; background: #fff0f1; color: #9a2330; font-size: .82rem; line-height: 1.5; }
.pix-payment-notice svg { flex: none; margin-top: 2px; }
.pix-payment-notice strong { display: block; margin-bottom: 3px; }
.drawer .pix-payment-notice[hidden] { display: none; }
html[data-theme="dark"] .drawer .pix-payment-notice { background: #3b222b; color: #ffc0c8; border-color: #6d3946; }

.location-request { width: min(440px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 90px #0005; overflow-y: auto; }
.location-request::backdrop { background: #080e19a6; backdrop-filter: blur(4px); }
.location-request-shell { position: relative; padding: 30px 26px 22px; }
.location-request-close { position: absolute; right: 12px; top: 12px; cursor: pointer; }
.location-request-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 19px; background: var(--soft); color: var(--accent); }
.location-request .eyebrow { display: block; font-size: .65rem; }
.location-request h2 { margin: 10px 0 14px; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.035em; }
.location-request p { color: var(--muted); font-size: .87rem; line-height: 1.6; }
.location-request .location-privacy { padding: 12px; border-radius: 12px; background: var(--soft); font-size: .78rem; }
.location-request .location-status { font-size: .78rem; }
.location-status:empty { display: none; }
.location-request .checkout-button { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
.location-request .checkout-button:disabled { opacity: .6; cursor: wait; }
.location-skip { width: 100%; min-height: 44px; margin-top: 9px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: .83rem; font-weight: 700; cursor: pointer; }
.location-request button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
    .highlights-arrow:hover { filter: brightness(.93); }
    .cart-edit-quantity:hover, .cart-product-name:hover { color: var(--accent-text, var(--accent)); }
    .drawer .qty-controls button:not(:disabled):hover, .location-skip:hover { background: var(--soft); filter: brightness(.93); }
}
@media (max-width: 520px) {
    .highlights-carousel .highlight-item { flex-basis: min(292px, 78vw); grid-template-columns: minmax(0, 1fr) auto; }
    .drawer .cart-item { grid-template-columns: 48px minmax(0, 1fr) 44px; column-gap: 8px; }
    .drawer .cart-item .cart-illustration { width: 48px; height: 48px; }
    .drawer .qty-controls button { width: 36px; height: 40px; }
    .location-request-shell { padding: 26px 20px 18px; }
}
@media (max-width: 350px) {
    .drawer .cart-item { grid-template-columns: 40px minmax(0, 1fr) 40px; column-gap: 6px; }
    .drawer .cart-item .cart-illustration { width: 40px; height: 40px; }
    .drawer .qty-controls input { width: 52px; }
    .drawer .qty-controls button { flex-basis: 32px; width: 32px; }
    .drawer .cart-item .cart-remove { width: 40px; }
}
@media (prefers-reduced-motion: reduce) { .highlights-list { scroll-behavior: auto; } }
