:root {
  color-scheme: light;
  --brand: #7e3029;
  --brand-dark: #5d211d;
  --cream: #fbf7ef;
  --ink: #302923;
  --muted: #756d63;
  --line: #e8dfd2;
  --surface: #fff;
  --green: #526747;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 8px max(18px, env(safe-area-inset-left)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.brand img { display: block; width: 148px; height: auto; max-height: 52px; object-fit: contain; }
.admin-link { color: var(--muted); font-size: .86rem; text-decoration: none; padding: 10px; }
main { width: min(980px, 100%); margin: 0 auto; padding: 20px 16px 34px; }
.welcome { padding: 20px 4px 22px; }
.eyebrow { margin: 0 0 7px; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.1; letter-spacing: -.04em; }
.welcome > p:last-child { max-width: 440px; margin-bottom: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 13px; }
.section-heading h2 { margin: 0; font-size: 1.18rem; }
.status { color: var(--muted); font-size: .78rem; }
.basket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.basket-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 3px 12px rgba(58, 40, 22, .045); }
.basket-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; background: #eee6d9; object-fit: cover; object-position: center; }
.basket-body { padding: 12px; }
.basket-title { min-height: 2.5em; margin: 0 0 6px; font-size: .96rem; line-height: 1.22; }
.basket-price { margin: 0 0 11px; color: var(--brand); font-weight: 850; font-size: 1.05rem; }
.basket-price small { display: block; margin-bottom: 2px; color: var(--muted); font-size: .68rem; font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; font-size: .9rem; font-weight: 750; text-align: center; transition: transform .12s ease, background .12s ease; }
.button:active { transform: scale(.985); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-outline { border-color: #d9c7b7; background: #fff; color: var(--brand); }
.card-button { width: 100%; min-height: 42px; }
.retry-button { margin-top: 16px; }
.privacy-note { margin: 23px 4px 0; padding: 12px 14px; border-radius: 12px; background: #f1ebdf; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 17px; color: var(--muted); font-size: .8rem; }
.site-footer img { width: 94px; height: auto; opacity: .85; }
.catalog-placeholder .basket-price span { color: var(--muted); font-size: .78rem; font-weight: 600; }

.sheet-backdrop { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-top: 40px; background: rgba(31, 24, 19, .46); }
.sheet-backdrop[hidden] { display: none; }
.sheet { display: flex; flex-direction: column; width: min(800px, 100%); max-height: min(92dvh, 850px); padding: 9px 18px max(16px, env(safe-area-inset-bottom)); overflow: hidden; border-radius: 22px 22px 0 0; background: var(--cream); box-shadow: 0 -8px 38px rgba(0,0,0,.18); animation: slide-up .2s ease-out; }
@keyframes slide-up { from { transform: translateY(22px); opacity: .75; } to { transform: translateY(0); opacity: 1; } }
.sheet-grabber { align-self: center; width: 42px; height: 4px; margin: 1px 0 14px; border-radius: 5px; background: #cfc4b7; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.sheet-header h2 { margin: 0; font-size: 1.28rem; }
.icon-button { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #efe7dc; color: var(--ink); font-size: 1.55rem; line-height: 1; }
.sheet-content { min-height: 0; flex: 1 1 auto; padding: 13px 0; overflow: auto; overflow-anchor: none; overscroll-behavior-y: auto; }
#detail-content { padding-right: 9px; padding-left: 9px; border-radius: 14px; background: #eee6da; }
.product-list { display: grid; gap: 16px; }
.product-row { display: grid; gap: 0; padding: 14px; border: 1px solid #ded0bf; border-radius: 15px; background: #fff; box-shadow: 0 3px 10px rgba(58, 40, 22, .065); }
.product-row-main { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 0; min-height: 0; }
.product-row-copy { display: grid; gap: 8px; min-width: 0; }
.product-quantity-line, .extra-quantity { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-quantity-line > strong, .extra-quantity > span { color: #54443a; font-size: .88rem; font-weight: 750; }
.quantity-stepper { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.quantity-button { display: inline-grid; place-items: center; width: 36px; height: 34px; padding: 0; border: 1px solid #d8c4ae; border-radius: 9px; background: #f8f1e8; color: var(--brand); font-size: 1.1rem; font-weight: 800; line-height: 1; }
.quantity-button:disabled { cursor: default; opacity: .43; }
.quantity-value { min-width: 25px; color: var(--ink); font-size: .95rem; font-weight: 800; text-align: center; }
.product-row img { width: 64px; height: 64px; border-radius: 9px; background: #f0e9de; object-fit: contain; }
.product-name { min-width: 0; margin: 0; color: var(--brand-dark); font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.product-quantity { margin: 0; color: var(--muted); font-size: .8rem; }
.product-option-picker { display: grid; gap: 8px; overflow: visible; padding: 0 2px; }
.product-option-picker[hidden] { display: none; }
.product-choice { position: relative; display: grid; grid-template-columns: clamp(76px, 20vw, 104px) minmax(0,1fr); align-items: center; gap: 10px; width: 100%; min-height: 120px; padding: 10px 12px; border: 1px solid #e2d6c7; border-radius: 11px; background: #fff; color: var(--ink); text-align: left; cursor: default; }
.product-choice-offer { position: absolute; top: 13px; left: 13px; z-index: 2; display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 5px; background: #c62828; color: #fff; font-size: .66rem; font-weight: 850; letter-spacing: .04em; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); pointer-events: none; }
.product-choice.is-selected { border: 2px solid var(--brand); background: #fbf4ee; box-shadow: inset 0 0 0 1px rgba(126, 48, 41, .16); }
.product-choice-selected-label { align-self: flex-start; max-width: 100%; padding: 3px 7px; border: 1px solid rgba(126, 48, 41, .2); border-radius: 999px; background: #f8e8e4; color: var(--brand); font-size: .64rem; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.product-choice-selected-label[hidden] { display: none !important; }
.product-choice-static { cursor: default; }
.product-choice:disabled { cursor: wait; opacity: 1; }
.product-choice img { grid-column: 1; grid-row: 1; width: clamp(76px, 20vw, 104px); height: clamp(76px, 20vw, 104px); border-radius: 8px; background: #f0e9de; object-fit: contain; }
.product-choice-copy { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 9px; min-width: 0; }
.product-choice-copy strong { display: -webkit-box; min-width: 0; margin: 0; overflow: hidden; font-size: .91rem; line-height: 1.28; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.product-choice-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.product-choice-copy small { color: var(--muted); font-size: .77rem; }
.product-choice-price { min-width: 0; flex: 0 1 auto; color: var(--muted); font-size: .83rem !important; white-space: nowrap; }
.product-choice-copy small.product-choice-stock { color: var(--brand); font-weight: 700; }
.product-option-stepper { position: relative; z-index: 2; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; white-space: nowrap; }
.option-quantity-button { flex: 0 0 38px; width: 38px; min-width: 38px; height: 38px; border-radius: 9px; }
.product-option-quantity { min-width: 22px; flex: 0 0 auto; color: var(--ink); font-size: .9rem; font-weight: 800; text-align: center; }
.product-choice-check { color: var(--brand); font-weight: 800; }
.variation-disclosure { display: grid; gap: 8px; min-width: 0; margin-top: 9px; padding-top: 10px; border-top: 1px solid var(--line); }
.variation-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #e2d6c7; border-radius: 11px; background: #f8f4ed; color: var(--brand); font: inherit; font-size: .8rem; font-weight: 750; text-align: left; }
.variation-toggle:disabled { cursor: wait; opacity: 1; }
.variation-toggle:focus-visible { outline: 3px solid rgba(126,48,41,.24); outline-offset: 2px; }
.variation-chevron { font-size: 1.1rem; line-height: 1; }
.variation-panel { display: grid; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f8f3eb; }
.variation-panel[hidden] { display: none; }
.variation-status { margin: 0; padding: 9px 10px; border-radius: 9px; background: #f8f3eb; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.extras-section { display: grid; gap: 12px; margin-top: 23px; padding-top: 20px; border-top: 1px solid #d8cbbb; }
.extras-section > h3 { margin: 0; color: var(--ink); font-size: 1.05rem; }
.extra-category-list { display: grid; gap: 11px; }
.extra-category { padding: 8px; border: 1px solid #dfd2c1; border-radius: 14px; background: #f8f2e9; box-shadow: 0 2px 7px rgba(58, 40, 22, .04); }
.extra-category-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #e3d5c4; border-radius: 11px; background: #fff; color: var(--brand); font: inherit; font-size: .88rem; font-weight: 800; text-align: left; }
.extra-category-toggle:focus-visible { outline: 3px solid rgba(126,48,41,.22); outline-offset: 2px; }
.extra-category-panel { display: grid; gap: 7px; padding-top: 9px; }
.extra-category-panel[hidden] { display: none; }
.extra-product-list { display: grid; align-content: start; gap: 8px; min-width: 0; }
.extra-product-status { margin: 0; padding: 4px 5px 2px; color: var(--muted); font-size: .77rem; line-height: 1.4; }


.sheet-actions { padding-top: 12px; border-top: 1px solid var(--line); background: var(--cream); }
.total-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: .9rem; }
.total-line strong { color: var(--brand); font-size: 1.18rem; }
.field-label { display: block; margin: 3px 0 7px; font-size: .83rem; font-weight: 750; }
.search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.search-row input { min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid #d8cfc3; border-radius: 11px; background: #fff; color: var(--ink); }
.delivery-date-field { margin: 13px 0 10px; }
.field-select { display: block; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #d8cfc3; border-radius: 11px; background: #fff; color: var(--ink); font: inherit; }
.field-select:disabled { background: #f5f0e8; color: var(--muted); cursor: wait; }
.helper { margin: 8px 0 12px; color: var(--muted); font-size: .77rem; line-height: 1.42; }
.customer-card { margin: 12px 0; padding: 12px; border: 1px solid #d8dfd0; border-radius: 12px; background: #f3f7ef; font-size: .86rem; line-height: 1.5; }
.customer-card strong { display: block; margin-bottom: 2px; }
.payment-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 5px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.payment-options:disabled { opacity: .48; }
.payment-options legend { padding: 0 5px; font-size: .82rem; font-weight: 750; }
.payment-options label { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: .82rem; }
.payment-options input { accent-color: var(--brand); }
.button-wide { width: 100%; min-height: 49px; }
.toast { position: fixed; z-index: 30; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; max-width: 500px; margin: auto; padding: 12px 15px; transform: translateY(20px); border-radius: 12px; background: #302923; color: white; font-size: .86rem; opacity: 0; pointer-events: none; transition: .18s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.empty-state { grid-column: 1 / -1; padding: 28px 18px; border: 1px dashed #d7c9b9; border-radius: 15px; background: #fff; color: var(--muted); text-align: center; line-height: 1.5; }
body.sheet-open { overflow: hidden; }

@media (min-width: 640px) {
  main { padding-top: 32px; }
  .basket-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .basket-body { padding: 14px; }
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; }
}
@media (min-width: 900px) { .basket-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.home-extras { display: grid; gap: 16px; margin: 28px 0 18px; min-width: 0; }
.home-extras-heading { padding: 0 2px; }
.home-extras-heading h2 { margin: 0 0 7px; font-size: 1.35rem; }
.home-extras-heading > p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.home-extra-summary { position: sticky; z-index: 3; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid #ddcbb7; border-radius: 15px; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(48,41,35,.14); }
.home-extra-summary[hidden] { display: none; }
.home-extra-summary-copy { display: grid; gap: 3px; min-width: 0; }
.home-extra-summary-copy strong { color: var(--ink); font-size: .9rem; }
.home-extra-summary-copy span { color: var(--muted); font-size: .79rem; line-height: 1.35; }
.home-extra-summary-copy span:nth-child(2) { color: var(--brand); font-weight: 800; }
.home-extra-summary > .button { flex: 0 0 auto; min-height: 42px; white-space: nowrap; }
.home-extra-categories { display: grid; gap: 14px; min-width: 0; }
#catalog { scroll-margin-top: 82px; }
.home-extra-category { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 3px 12px rgba(58,40,22,.04); }
.home-extra-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 1px 10px; }
.home-extra-category-heading h3 { margin: 0; color: var(--ink); font-size: 1rem; }
.home-extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; min-width: 0; align-items: stretch; }
.home-extra-skeleton { display: grid; grid-template-rows: 116px 34px 14px 18px 44px; align-content: start; gap: 7px; min-width: 0; min-height: 0; padding: 11px; border: 1px solid #e5dacd; border-radius: 15px; background: #fff; }
.home-extra-skeleton span, .home-extra-skeleton i, .home-extra-skeleton small, .home-extra-skeleton b, .home-extra-skeleton em { display: block; border-radius: 8px; background: #f1ece5; }
.home-extra-skeleton span { width: 100%; height: 116px; border-radius: 11px; }
.home-extra-skeleton i { width: 88%; height: 34px; }
.home-extra-skeleton small { width: 54%; height: 14px; }
.home-extra-skeleton b { width: 43%; height: 18px; }
.home-extra-skeleton em { width: 100%; height: 44px; }
.home-extra-card { display: grid; grid-template-rows: 1fr auto; align-content: stretch; gap: 11px; min-width: 0; min-height: 0; padding: 11px; border: 1px solid #e5dacd; border-radius: 15px; background: #fff; }
.home-extra-open { display: grid; grid-template-rows: 116px auto; align-content: start; justify-items: stretch; gap: 9px; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.home-extra-open:focus-visible { outline: 3px solid rgba(126,48,41,.28); outline-offset: 3px; }
.home-extra-photo-wrap { display: grid; place-items: center; width: 100%; height: 116px; overflow: hidden; border-radius: 11px; background: #f6f2ec; }
.home-extra-photo { display: block; width: 108px; height: 108px; border-radius: 9px; object-fit: contain; }
.home-extra-copy { display: grid; grid-template-rows: minmax(2.5em,auto) auto auto; align-content: start; gap: 4px; min-width: 0; }
.home-extra-copy strong { display: -webkit-box; min-height: 2.5em; overflow: hidden; color: var(--ink); font-size: .86rem; line-height: 1.25; text-overflow: ellipsis; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-extra-copy > span { overflow: hidden; color: var(--muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.home-extra-copy b { color: var(--brand); font-size: 1rem; line-height: 1.2; }
.home-extra-controls { min-width: 0; margin-top: auto; }
.home-extra-status { margin: 5px 2px 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.home-extra-more { min-height: 44px; justify-self: start; margin: 8px 2px 0; font-size: .82rem; }
.home-extra-review { display: grid; gap: 8px; margin: 18px 0; padding: 13px; border: 1px solid #dfd2c1; border-radius: 14px; background: #f8f2e9; }
.home-extra-review > h3 { margin: 0; color: var(--ink); font-size: .95rem; }
.home-extra-review-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px; border: 1px solid #e5dacd; border-radius: 11px; background: #fff; }
.home-extra-review-copy { display: grid; gap: 3px; min-width: 0; }
.home-extra-review-copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; }
.home-extra-review-copy span { color: var(--brand); font-size: .78rem; font-weight: 800; }
.home-extra-review-item .quantity-stepper { flex: 0 0 auto; }
.home-extra-review-item .quantity-button { width: 36px; height: 36px; }

body.home-extra-dialog-open { overflow: hidden; }

@media (min-width: 640px) {
  .home-extra-category { padding: 16px; }
}
@media (min-width: 760px) {
  .home-extra-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 639px) {
  .home-extras { gap: 13px; margin-top: 23px; }
  .home-extra-summary { align-items: stretch; padding: 11px; }
  .home-extra-summary > .button { min-height: 40px; padding: 0 11px; font-size: .83rem; }
  .home-extra-summary-copy span:last-child { display: none; }
  .home-extra-category { padding: 11px; }
  .home-extra-card, .home-extra-skeleton { padding: 9px; gap: 9px; }
  .home-extra-skeleton { grid-template-rows: 112px 34px 14px 18px 44px; }
  .home-extra-skeleton span { height: 112px; }
  .home-extra-skeleton em { height: 44px; }
  .home-extra-open { grid-template-rows: 112px auto; gap: 8px; }
  .home-extra-photo-wrap { height: 112px; }
  .home-extra-photo { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }


/* Customer registration in checkout */
.registration-panel { display: grid; gap: 10px; margin: 13px 0; padding: 14px; border: 1px solid #dfd2c1; border-radius: 14px; background: #fff; }
.registration-panel[hidden], .registration-document-note[hidden] { display: none; }
.registration-panel > h3 { margin: 0; color: var(--ink); font-size: 1rem; }
.registration-panel > .helper { margin: 0; }
.registration-message:empty { display: none; }
.registration-message[data-tone="error"] { padding: 10px 12px; border: 1px solid #e3b3aa; border-left: 4px solid #96372e; border-radius: 10px; background: #fff0ed; color: #702b24; font-size: .85rem; font-weight: 750; line-height: 1.4; }
.registration-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.registration-field { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--ink); font-size: .78rem; font-weight: 750; }
.registration-field-wide { grid-column: 1 / -1; }
.registration-field input, .registration-field select { display: block; width: 100%; min-width: 0; min-height: 43px; padding: 0 10px; border: 1px solid #d8cfc3; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 450; }
.registration-field input:focus, .registration-field select:focus { outline: 3px solid rgba(126,48,41,.16); border-color: var(--brand); }
.registration-document-note { margin: 0; color: var(--muted); font-size: .78rem; }
.registration-help { padding-top: 1px; }
.registration-panel .button { margin-top: 2px; }
#customer-phone-hint { margin-bottom: 3px; }
@media (max-width: 430px) {
  .registration-grid { grid-template-columns: minmax(0, 1fr); }
  .registration-field-wide { grid-column: auto; }
}


/* Lista completa do pedido no checkout, com valores somente no total. */
.order-review-panel { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.order-review-panel > h3 { margin: 0; font-size: 1.02rem; }
.order-review-kind { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.order-review-items { display: grid; gap: 10px; margin: 0; padding: 0; overflow: visible; list-style: none; }
.order-review-clear-cart { min-height: 48px; margin: 0 0 2px; border-color: var(--brand); background: #fff7f3; color: var(--brand); font-weight: 800; }
.order-review-clear-cart:hover:not(:disabled) { background: #f7e7e0; }
.order-review-clear-cart:focus-visible { outline: 3px solid rgba(126,48,41,.18); outline-offset: 2px; }
.order-review-clear-cart:disabled { cursor: default; opacity: .55; }
.order-review-clear-cart[hidden] { display: none; }
.order-review-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #dfd2c1; border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(58, 40, 22, .055); }
.order-review-item-photo { display: block; width: 72px; height: 72px; border-radius: 12px; background: #f8f4ee; object-fit: contain; }
.order-review-item-copy { display: grid; gap: 4px; min-width: 0; }
.order-review-item-copy strong { overflow-wrap: anywhere; font-size: .98rem; line-height: 1.3; }
.order-review-item-copy span { color: var(--muted); font-size: .78rem; }
.order-review-quantity { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.order-review-quantity button { display: grid; place-items: center; width: 42px; min-width: 42px; height: 44px; padding: 0; border: 1px solid #d8c8b6; border-radius: 11px; background: #fffaf4; color: var(--brand); font: inherit; font-size: 1.3rem; font-weight: 800; line-height: 1; }
.order-review-quantity button:focus-visible { outline: 3px solid rgba(126,48,41,.18); border-color: var(--brand); }
.order-review-quantity button:disabled { cursor: default; opacity: .45; }
.order-review-quantity output { min-width: 24px; color: var(--ink); font-size: .98rem; font-weight: 800; text-align: center; }
.order-review-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 2px; border-top: 1px solid var(--line); font-size: .95rem; }
.order-review-total strong { color: var(--brand); font-size: 1.12rem; }
.order-review-minimum-message { margin: 0; }

@media (max-width: 639px) {
  .order-review-item { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; padding: 9px; }
  .order-review-item-photo { width: 58px; height: 58px; }
  .order-review-item-copy strong { font-size: .9rem; }
  .order-review-quantity { gap: 2px; }
  .order-review-quantity button { width: 38px; min-width: 38px; height: 42px; }
  .order-review-quantity output { min-width: 20px; font-size: .9rem; }
  .home-extra-summary-copy span:last-child { display: block; font-size: .72rem; }
}

/* Product search */
.product-search { display: grid; gap: 8px; min-width: 0; }
.product-search-extra { margin: 8px 0 14px; }
.product-search-compact { margin: 10px 0 14px; padding: 12px; border: 1px solid #e2d5c5; border-radius: 14px; background: rgba(255,255,255,.72); }
.product-search-label { color: var(--ink); font-size: .92rem; font-weight: 800; }
.product-search-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.product-search-control input { width: 100%; min-width: 0; min-height: 48px; padding: 0 13px; border: 1px solid #d8c8b6; border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.product-search-control input:focus { outline: 3px solid rgba(126,48,41,.16); border-color: var(--brand); }
.product-search-clear { display: grid; place-items: center; width: 44px; min-width: 44px; min-height: 44px; aspect-ratio: 1; flex: 0 0 44px; padding: 0; border: 1px solid #dfcdb8; border-radius: 10px; background: #fff; color: var(--brand); font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.product-search-clear[hidden] { display: none; }
.product-search-status { min-height: 1.2em; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.product-search-results[hidden], .extra-category-list[hidden], #home-extra-categories[hidden] { display: none; }
.product-search-results { display: grid; gap: 10px; min-width: 0; }
.product-search-results-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.product-search-results-list { display: grid; gap: 8px; }
.product-search-more { justify-self: start; min-height: 42px; }
.home-extra-summary { position: fixed; z-index: 5; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 760px); margin: 0; transform: translateX(-50%); }
body.has-home-extra-selection main { padding-bottom: 112px; }
body.sheet-open.sheet-scroll-chain { overflow-x: hidden; overflow-y: auto; }
@media (min-width: 760px) {
  .product-search-results-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 639px) {
  .product-search-home { margin: 10px 0 20px; padding: 12px; }
  .product-search-label { font-size: .88rem; }
  .product-search-control input { min-height: 46px; font-size: .95rem; }
  .product-search-compact { padding: 10px; }
}

/* Extra lists stay in the basket sheet flow, so cards are never cut by a nested scroll area. */
.extra-product-list { min-width: 0; }
.extra-product-more {
  justify-self: start;
  min-height: 44px;
  padding-inline: 18px;
  border-color: #d2ad97;
  border-radius: 999px;
  background: #f6e9dc;
  color: var(--brand-dark);
  box-shadow: 0 2px 5px rgba(93, 33, 29, .08);
}
.extra-product-more:hover:not(:disabled) {
  border-color: #b98a72;
  background: #efddcc;
}
.extra-product-more:focus-visible {
  outline: 3px solid rgba(126, 48, 41, .24);
  outline-offset: 2px;
}
.extra-product-more[hidden] { display: none !important; }
@media (max-width: 639px) {
  .extra-product-more { width: 100%; justify-self: stretch; }
}

/* Aceite opcional de ofertas no checkout. Desmarcado por padrão. */
.customer-marketing-consent { display:flex; align-items:flex-start; gap:10px; padding:12px 2px; font-size:.84rem; line-height:1.48; color:var(--text, #292320); cursor:pointer; }
.customer-marketing-consent input[type="checkbox"] { display:block; flex:0 0 19px; width:19px; height:19px; margin:1px 0 0; accent-color:var(--brand-dark, #7e3029); }
.customer-marketing-consent span { flex:1; }

/* Checkout: show the reason the final button cannot be used (especially order minimum). */
.checkout-blocker-message { margin:0 0 10px; color:#854329; font-size:.9rem; line-height:1.42; font-weight:600; }
.checkout-blocker-message[hidden], #add-more-products[hidden] { display:none !important; }
#add-more-products { min-height:44px; margin-bottom:10px; }


.order-receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: start;
  gap: 20px;
  max-width: 1100px;
  margin: 14px auto 22px;
  padding: 20px;
  border: 1px solid #cfe3d2;
  border-radius: 18px;
  background: #f2faf3;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(38, 122, 68, .08);
}
.order-receipt-main { min-width: 0; }
.order-receipt-heading { display: flex; align-items: flex-start; gap: 14px; }
.order-receipt-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #267a44;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}
.order-receipt h2 { margin: 2px 0 6px; font-size: 1.35rem; line-height: 1.25; }
.order-receipt p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.order-receipt .eyebrow { margin: 0 0 3px; color: #267a44; font-size: .8rem; font-weight: 800; }
.order-receipt-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 16px 0 0;
  padding: 13px 15px;
  border: 1px solid #e0ece1;
  border-radius: 12px;
  background: #fff;
}
.order-receipt-facts > div { display: grid; gap: 3px; min-width: 100px; }
.order-receipt-facts dt { color: var(--muted); font-size: .76rem; font-weight: 700; }
.order-receipt-facts dd { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 800; }
.order-receipt .order-receipt-followup { margin-top: 10px; font-size: .86rem; }
.order-receipt-actions { display: grid; gap: 9px; min-width: 220px; }
.order-receipt-actions .button { width: 100%; text-align: center; }
.order-receipt-actions [hidden] { display: none; }
.order-receipt[hidden] { display: none; }

.order-submit-message {
  margin: 0 0 10px;
  padding: 11px 13px;
  border: 1px solid #e5c8b9;
  border-radius: 12px;
  background: #fff5f2;
  color: #7a3028;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.45;
}
.order-submit-message[data-tone="warning"] {
  border-color: #e7d29a;
  background: #fff9e9;
  color: #76510a;
}
.order-submit-message[hidden] { display: none !important; }

.order-stock-conflicts { margin: 0 0 10px; max-height: min(22vh, 180px); overflow-y: auto; overscroll-behavior: contain; }
.order-stock-conflict-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.order-stock-conflict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid #e5c8b9;
  border-radius: 12px;
  background: #fffaf8;
  color: #4a342d;
}
.order-stock-conflict-copy { display: grid; gap: 3px; min-width: 0; }
.order-stock-conflict-copy strong { overflow-wrap: anywhere; }
.order-stock-conflict-copy span,
.order-stock-conflict-note { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.order-stock-conflict-remove { min-height: 40px; white-space: nowrap; }
.order-stock-conflicts[hidden] { display: none !important; }

@media (max-width: 520px) {
  .order-stock-conflict { grid-template-columns: minmax(0, 1fr); }
  .order-stock-conflict-remove { width: 100%; }
}


@media (max-width: 650px) {
  .order-receipt { grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 12px; padding: 16px; }
  .order-receipt-actions { min-width: 0; }
  .order-receipt-facts { gap: 11px 16px; padding: 12px; }
  .order-receipt-facts > div { min-width: 84px; }
}

/* Ajustes mobile para a escolha de várias opções na cesta. */
@media (max-width: 639px) {
  #detail-content { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .product-name { font-size: 1.38rem; font-weight: 850; }
  .product-choice { grid-template-columns: clamp(60px, 20vw, 84px) minmax(0, 1fr); gap: 8px; min-height: 104px; padding: 8px; }
  .product-choice img { width: clamp(60px, 20vw, 84px); height: clamp(60px, 20vw, 84px); }
  .product-choice-copy { gap: 7px; }
  .product-choice-copy strong { font-size: .88rem; }
  .product-choice-offer { top: 10px; left: 10px; min-height: 20px; padding: 3px 6px; font-size: .62rem; }
  .product-choice-meta { gap: 4px; }
  .product-choice-price { font-size: .74rem !important; }
  .product-option-stepper { gap: 3px; }
  .option-quantity-button { flex-basis: 30px; width: 30px; min-width: 30px; height: 30px; }
  .product-option-quantity { min-width: 15px; font-size: .8rem; }
}
