:root {
    --red: #ed1c24;
    --yellow: #fdb831;
    --cyan: #49c3f1;
    --blue: #61a2d8;
    --indigo: #464fa1;
    --ink: #24253a;
    --muted: #696b7b;
    --surface: #ffffff;
    --background: #f7fbff;
    --border: #dce9f4;
    --success: #169b62;
    --shadow: 0 14px 36px rgba(70, 79, 161, .12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(73, 195, 241, .12), transparent 30%),
        var(--background);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    touch-action: manipulation;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 104px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 4px solid var(--yellow);
    box-shadow: 0 5px 18px rgba(70, 79, 161, .08);
    backdrop-filter: blur(10px);
}

.logo-link {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: min(390px, 48vw);
    height: 76px;
    object-fit: contain;
    object-position: left center;
}

.cart {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--indigo);
    color: white;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.cart b {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
}

.cart-icon {
    font-size: 21px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 34px;
    align-items: center;
    padding: 40px;
    margin-bottom: 28px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, var(--indigo), var(--blue) 58%, var(--cyan));
    color: white;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    right: -65px;
    top: -80px;
    width: 250px;
    height: 250px;
    border: 28px solid rgba(253, 184, 49, .85);
    border-radius: 50%;
}

.hero-copy,
.search {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: .14em;
}

.hero h1 {
    margin: 0 0 10px;
    max-width: 680px;
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.02;
}

.hero p {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

.search {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .18);
}

.search input,
.panel input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 2px solid var(--border);
    border-radius: 15px;
    background: white;
    color: var(--ink);
    outline: none;
}

.search input:focus,
.panel input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(73, 195, 241, .18);
}

.search button,
.btn {
    border: 0;
    border-radius: 15px;
    padding: 15px 24px;
    background: var(--red);
    color: white;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(237, 28, 36, .2);
}

.btn:hover,
.search button:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.btn:disabled,
.search button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn-blue {
    background: var(--indigo);
    box-shadow: 0 8px 18px rgba(70, 79, 161, .2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 22px;
}

.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(70, 79, 161, .17);
}

.photo {
    display: block;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #f6fbff);
}

.photo img,
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eef7fd;
    color: var(--muted);
}

.card-body {
    display: grid;
    gap: 10px;
    height: 100%;
    padding: 18px;
    border-top: 5px solid var(--yellow);
}

.card-body small {
    color: var(--indigo);
    font-weight: 800;
}

.title {
    min-height: 48px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.product-description {
    min-height: 54px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.stock {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(73, 195, 241, .15);
    color: var(--indigo);
    font-size: 13px;
    font-weight: 900;
}

.price {
    margin-top: auto;
    color: var(--red);
    font-size: 27px;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 32px 0;
}

.pager button {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    background: var(--indigo);
    color: white;
    font-weight: 800;
}

.detail {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
}

.main-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 22px;
}

.thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 14px;
}

.thumbs button {
    width: 88px;
    height: 88px;
    padding: 5px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: white;
}

.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.big-price {
    display: block;
    margin: 22px 0;
    color: var(--red);
    font-size: 40px;
}

.store {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.store b {
    color: var(--indigo);
}

.large {
    width: 100%;
    min-height: 60px;
    margin-top: 18px;
    font-size: 18px;
}

.cart-layout,
.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 26px;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 17px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

.cart-item img,
.cart-item > .placeholder {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty button {
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 12px;
    background: var(--cyan);
    color: var(--ink);
    font-size: 23px;
    font-weight: 900;
}

.summary,
.panel {
    align-self: start;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
}

.summary h2,
.panel h2 {
    margin-top: 0;
}

.summary > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
}

.summary-item {
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.total {
    margin-top: 8px;
    border-top: 3px solid var(--yellow);
    color: var(--red);
    font-size: 22px;
}

.customer-panel {
    display: grid;
    gap: 11px;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.step-title > span {
    display: grid;
    place-items: center;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    font-size: 21px;
    font-weight: 900;
}

.step-title h2,
.step-title p {
    margin: 0;
}

.step-title p {
    margin-top: 3px;
    color: var(--muted);
}

.delivery-title {
    margin-top: 22px;
}

.cpf-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.customer-found {
    display: flex;
    gap: 15px;
    padding: 18px;
    margin-top: 8px;
    border: 2px solid rgba(22, 155, 98, .25);
    border-radius: 17px;
    background: rgba(22, 155, 98, .08);
}

.customer-found .check {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 23px;
    font-weight: 900;
}

.customer-found h3,
.customer-found p {
    margin: 4px 0 0;
}

.new-customer {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.notice,
.message {
    padding: 14px;
    border-radius: 13px;
    background: rgba(253, 184, 49, .18);
    color: var(--ink);
}

.empty {
    padding: 75px 20px;
    text-align: center;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 980px) {
    .header {
        min-height: 86px;
        padding: 10px 16px;
    }

    .brand-logo {
        width: min(280px, 58vw);
        height: 62px;
    }

    .container {
        padding: 18px;
    }

    .hero,
    .detail,
    .cart-layout,
    .checkout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 28px;
    }

    .cart-item {
        grid-template-columns: 90px 1fr;
    }

    .qty {
        grid-column: 2;
    }
}

@media (max-width: 620px) {
    .cart span:not(.cart-icon) {
        display: none;
    }

    .search,
    .cpf-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-body {
        padding: 13px;
    }

    .price {
        font-size: 22px;
    }
}

/* Fluxo completo do totem */
.start-screen {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 40px;
    text-align: center;
    border-radius: 30px;
    background: radial-gradient(circle at 20% 20%, rgba(73,195,241,.25), transparent 28%),
                radial-gradient(circle at 80% 20%, rgba(253,184,49,.25), transparent 25%),
                linear-gradient(135deg,#fff,#f4fbff);
}
.start-screen > img { width: min(980px,88vw); max-height: 330px; object-fit: contain; }
.start-card { padding: 35px 60px; border-radius: 28px; background: white; box-shadow: var(--shadow); border: 3px solid var(--yellow); }
.start-card h1 { margin: 10px 0; font-size: clamp(42px,6vw,76px); color: var(--red); }
.start-card p { font-size: 22px; color: var(--muted); }
.start-icon { font-size: 64px; }

.single-panel { max-width: 720px; margin: 0 auto; padding: 24px; background: white; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.single-panel label { display: block; margin: 12px 0 6px; font-weight: 800; }
.big-input { font-size: 28px !important; text-align: center; letter-spacing: .08em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cpf-row { display: flex; gap: 12px; }
.customer-found { display: flex; gap: 15px; padding: 18px; border: 2px solid rgba(22,155,98,.25); border-radius: 17px; background: rgba(22,155,98,.08); }
.check { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--success); color: white; font-size: 25px; font-weight: 900; }

.receiving-options { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 25px; }
.option-card { display: grid; gap: 8px; padding: 30px; border: 3px solid var(--border); border-radius: 24px; background: white; text-align: left; box-shadow: var(--shadow); }
.option-card.selected { border-color: var(--yellow); background: #fffaf0; }
.option-card > span { font-size: 42px; }
.option-card strong { font-size: 23px; }
.option-card small { color: var(--muted); }
.store-option { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }
.store-option span { display: grid; gap: 4px; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.review-grid .summary { grid-column: 2; }
.review-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); }

.pix-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; }
.pix-card { padding: 24px; background: white; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.qr-placeholder { min-height: 320px; display: grid; place-items: center; align-content: center; gap: 12px; border: 8px solid var(--ink); background: repeating-conic-gradient(#000 0 25%,#fff 0 50%) 50%/24px 24px; }
.qr-placeholder span, .qr-placeholder small { padding: 10px; background: white; }
.waiting { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.pulse { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }
.payment-wait, .success-screen { max-width: 760px; margin: 0 auto; padding: 45px; text-align: center; background: white; border-radius: 28px; box-shadow: var(--shadow); }
.spinner { width: 80px; height: 80px; margin: 0 auto 25px; border: 10px solid #e8eef5; border-top-color: var(--indigo); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-icon { display: grid; place-items: center; width: 100px; height: 100px; margin: 0 auto 20px; border-radius: 50%; background: var(--success); color: white; font-size: 62px; }
.success-card { display: grid; gap: 10px; margin: 25px 0; padding: 20px; border-radius: 18px; background: #f5fbf8; }

.receipt { width: 76mm; margin: 0 auto; padding: 4mm; background: white; color: #000; font-family: "Courier New", monospace; font-size: 11px; }
.receipt > img { display: block; width: 68mm; max-height: 25mm; object-fit: contain; margin: 0 auto 4mm; }
.receipt h1 { font-size: 14px; text-align: center; }
.receipt h2 { margin: 0 0 2mm; font-size: 12px; }
.receipt-section { padding: 3mm 0; border-top: 1px dashed #000; }
.receipt-section p { margin: 1mm 0; }
.receipt-row { display: flex; justify-content: space-between; gap: 3mm; margin: 1.5mm 0; }
.receipt-total { padding: 4mm 0; border-top: 2px solid #000; border-bottom: 2px solid #000; font-size: 15px; font-weight: 900; text-align: center; }
.receipt-footer { text-align: center; }
.print-actions { display: flex; gap: 12px; max-width: 650px; margin: 20px auto; }

@media print {
    body { background: white; }
    .no-print, .print-actions { display: none !important; }
    .container { padding: 0; max-width: none; }
    .receipt { width: 76mm; margin: 0; }
    @page { size: 80mm auto; margin: 0; }
}

@media (max-width: 980px) {
    .form-grid, .review-grid, .pix-layout { grid-template-columns: 1fr; }
    .review-grid .summary { grid-column: auto; }
}

@media (max-width: 620px) {
    .cpf-row, .receiving-options { display: grid; grid-template-columns: 1fr; }
}


/* Ajustes específicos para totem vertical */
.container {
    max-width: 900px;
}

.hero {
    grid-template-columns: 1fr;
    padding: 28px;
}

.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    min-height: 640px;
}

.photo {
    aspect-ratio: 1 / 1;
}

.card-body {
    min-height: 320px;
}

.add-cart-button {
    min-height: 70px;
    font-size: 18px;
}

.search-display {
    flex: 1;
    min-height: 62px;
    padding: 0 18px;
    border: 2px solid white;
    border-radius: 15px;
    background: white !important;
    color: var(--ink) !important;
    text-align: left;
    box-shadow: none !important;
}

.cart-toast {
    position: fixed;
    top: 115px;
    left: 50%;
    z-index: 120;
    width: min(760px, 90vw);
    transform: translateX(-50%);
    padding: 18px 24px;
    border: 3px solid var(--yellow);
    border-radius: 18px;
    background: white;
    color: var(--indigo);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    box-shadow: var(--shadow);
}

.touch-input {
    display: grid;
    place-items: center;
    min-height: 82px;
    border: 3px solid var(--cyan);
    background: white;
    color: var(--ink);
}

.keyboard-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 22, 45, .55);
}

.virtual-keyboard {
    width: min(850px, 100%);
    padding: 18px;
    border-radius: 24px 24px 0 0;
    background: white;
    box-shadow: 0 -18px 40px rgba(0,0,0,.25);
}

.keyboard-preview {
    min-height: 64px;
    margin-bottom: 14px;
    padding: 15px;
    overflow-wrap: anywhere;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #f7fbff;
    font-size: 23px;
    font-weight: 800;
}

.keyboard-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}

.keyboard-grid.numeric {
    grid-template-columns: repeat(3, 1fr);
}

.keyboard-key {
    min-height: 62px;
    border: 0;
    border-radius: 12px;
    background: #eef7fd;
    color: var(--indigo);
    font-size: 20px;
    font-weight: 900;
}

.keyboard-key.action {
    background: var(--yellow);
    color: var(--ink);
}

.keyboard-key.confirm {
    background: var(--success);
    color: white;
}

.keyboard-key.space {
    grid-column: span 4;
}

.admin-tabs,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-settings {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.admin-sync {
    margin-top: 24px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-row input {
    width: 28px;
    height: 28px;
}

@media (orientation: portrait) {
    .container {
        max-width: 900px;
        padding: 22px;
    }

    .header {
        min-height: 92px;
    }

    .brand-logo {
        width: 330px;
        height: 68px;
    }

    .hero h1 {
        font-size: 46px;
    }
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }

    .keyboard-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}


.price-unavailable {
    display: block;
    margin-top: auto;
    min-height: 34px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 900;
}

.clear-search {
    width: auto;
    margin: 0;
    white-space: nowrap;
}

.catalog-empty p {
    max-width: 620px;
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 18px;
}


.admin-help {
    padding: 14px;
    border-radius: 14px;
    background: rgba(73, 195, 241, .12);
    color: var(--indigo);
    line-height: 1.5;
}


.checkout-pro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
    gap: 24px;
    align-items: stretch;
}

.checkout-pro-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(34, 41, 74, .12);
}

.checkout-pro-qr {
    width: min(420px, 74vw);
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    border: 3px solid rgba(63, 98, 18, .18);
}

.checkout-pro-value {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    margin: 16px 0 8px;
}

.checkout-pro-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-pro-order {
    margin-top: 20px;
}

.payment-error {
    max-width: 760px;
    margin: 40px auto;
}

.receipt-product {
    padding: 7px 0;
    border-bottom: 1px dashed #777;
}

.receipt-product-description {
    display: block;
    margin: 3px 0;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .checkout-pro-layout {
        grid-template-columns: 1fr;
    }
}


.admin-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-title-row h1 {
    margin: 0;
}

.admin-login-page {
    min-height: calc(100vh - 190px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-login-card {
    width: min(520px, 100%);
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.admin-login-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.admin-login-form input {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1.05rem;
}

.alert-error {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}


.category-section {
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.category-header h2 {
    margin: 2px 0 0;
    font-size: clamp(24px, 2.4vw, 34px);
}

.category-eyebrow {
    margin-bottom: 2px;
    color: var(--indigo);
}

.category-buttons {
    display: grid;
    grid-template-rows: repeat(4, minmax(54px, auto));
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    align-items: stretch;
}

.category-button {
    min-width: 150px;
    min-height: 54px;
    padding: 10px 22px;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
    scroll-snap-align: start;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.category-button:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.category-button.active {
    border-color: var(--indigo);
    background: var(--indigo);
    color: #fff;
    box-shadow: 0 8px 20px rgba(70, 79, 161, .22);
}

.category-clear {
    flex: 0 0 auto;
}

@media (max-width: 620px) {
    .category-section {
        padding: 18px 14px;
        margin-bottom: 18px;
    }

    .category-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-button {
        min-height: 50px;
        padding: 9px 18px;
    }
}


.form-grid .touch-input {
    width: 100%;
    min-height: 58px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 15px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.form-grid .touch-input:focus,
.form-grid .touch-input:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(73, 195, 241, .18);
}

.cpf-row .touch-input {
    flex: 1;
}


.required-notice {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-left: 5px solid var(--yellow);
    border-radius: 12px;
    background: rgba(253, 184, 49, .15);
    font-weight: 700;
}

.panel label {
    display: block;
    margin-top: 12px;
    font-weight: 800;
}

.panel label::first-letter {
    text-transform: uppercase;
}


/* Impressão térmica com maior contraste */
.receipt {
    width: 76mm;
    margin: 0 auto;
    padding: 3mm;
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.28;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    text-rendering: geometricPrecision;
}

.receipt,
.receipt * {
    color: #000 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none;
}

.receipt > img {
    display: block;
    width: 64mm;
    max-height: 22mm;
    margin: 0 auto 3mm;
    object-fit: contain;
    filter: grayscale(1) contrast(220%);
}

.receipt h1 {
    margin: 0 0 3mm;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.receipt h2 {
    margin: 0 0 1.5mm;
    font-size: 13px;
    font-weight: 900;
}

.receipt p,
.receipt small,
.receipt span,
.receipt b,
.receipt strong {
    font-weight: 700;
}

.receipt small {
    display: block;
    font-size: 11px;
    line-height: 1.25;
}

.receipt-section {
    padding: 2.5mm 0;
    border-top: 2px dashed #000;
}

.receipt-section p {
    margin: 1mm 0;
}

.receipt-product {
    padding: 1.8mm 0;
    border-bottom: 1px solid #000;
}

.receipt-product:last-child {
    border-bottom: 0;
}

.receipt-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2mm;
    margin: 1mm 0;
}

.receipt-product-name {
    flex: 1;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.receipt-row b {
    flex: 0 0 auto;
    font-weight: 900;
    white-space: nowrap;
}

.receipt-total {
    padding: 3mm 0;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.receipt-footer {
    margin-top: 3mm;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

@media print {
    html,
    body {
        width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body * {
        visibility: hidden;
    }

    .receipt,
    .receipt * {
        visibility: visible;
    }

    .receipt {
        position: absolute;
        top: 0;
        left: 0;
        width: 76mm !important;
        margin: 0 !important;
        padding: 2mm !important;
    }

    .no-print,
    .print-actions,
    header,
    nav,
    footer {
        display: none !important;
    }

    @page {
        size: 80mm auto;
        margin: 0;
    }
}


.admin-store-selection {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}

.admin-store-selection h3 {
    margin: 0 0 6px;
}

.admin-store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.admin-store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
}

.admin-store-item {
    align-items: flex-start;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
}

.admin-store-item span {
    display: grid;
    gap: 3px;
}

.admin-store-item small {
    color: var(--muted);
}

@media (max-width: 760px) {
    .admin-store-grid {
        grid-template-columns: 1fr;
    }
}


.btn-danger {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    background: #b91c1c;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.btn-danger:hover {
    background: #991b1b;
}

.alert-warning {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    background: #fffbeb;
    color: #78350f;
    font-weight: 800;
}


/* Seleção de forma de pagamento */
.payment-choice-total {
    margin: 0 0 24px;
    font-size: 28px;
    text-align: center;
}

.payment-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.payment-choice-card {
    min-height: 300px;
    padding: 28px;
    border: 4px solid var(--border);
    border-radius: 26px;
    background: #fff;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.payment-choice-card:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
}

.payment-choice-card strong {
    font-size: 30px;
}

.payment-choice-card small {
    font-size: 18px;
    color: var(--muted);
}

.payment-choice-icon {
    font-size: 72px;
}

.payment-choice-card.debit {
    border-color: #2563eb;
}

.payment-choice-card.credit {
    border-color: #7c3aed;
}

.payment-choice-card.mercado-pago {
    border-color: #009ee3;
}

.tef-bridge-status {
    display: grid;
    gap: 4px;
    margin: 20px 0;
    padding: 15px 18px;
    border-radius: 14px;
}

.tef-bridge-status.online {
    background: #ecfdf5;
    color: #065f46;
}

.tef-bridge-status.offline {
    background: #fff7ed;
    color: #9a3412;
}

.tef-payment-screen {
    max-width: 720px;
    margin: 0 auto;
    padding: 42px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.tef-card-icon {
    font-size: 96px;
}

.tef-payment-value {
    margin: 16px 0;
    font-size: 52px;
    font-weight: 900;
}

.tef-payment-message {
    min-height: 60px;
    font-size: 21px;
    font-weight: 700;
}

@media (max-width: 850px) {
    .payment-choice-grid {
        grid-template-columns: 1fr;
    }

    .payment-choice-card {
        min-height: 210px;
    }
}


.tef-official-receipt pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: "Courier New", monospace;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}


.store-address {
    display: block;
    line-height: 1.45;
    color: var(--muted);
}

.product-detail-description {
    margin: 12px 0 20px;
    white-space: pre-line;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
}

.product-availability {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-availability span {
    color: var(--indigo);
    font-weight: 900;
}


.cep-first-panel {
    margin-bottom: 24px;
    border: 2px solid var(--cyan);
}

.cep-first-panel .touch-input {
    width: 100%;
    min-height: 64px;
    font-size: 1.15rem;
}

.cep-status {
    margin: 12px 0 0;
    color: var(--indigo);
    font-weight: 800;
}


.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin: 0 0 22px;
    padding: 11px 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.back-button:hover,
.back-button:focus-visible {
    border-color: var(--cyan);
    background: rgba(73, 195, 241, .08);
    transform: translateY(-1px);
}

.back-button > span:first-child {
    font-size: 1.35rem;
    line-height: 1;
}

@media print {
    .back-button {
        display: none !important;
    }
}


/* v35.11 - Tela inicial centralizada com mídia */
.start-screen {
    min-height: calc(100dvh - 170px);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    place-items: center;
    align-content: center;
    gap: 34px;
    padding: 34px;
    text-align: center;
    border-radius: 34px;
    background:
        radial-gradient(circle at 16% 18%, rgba(73, 195, 241, .25), transparent 32%),
        radial-gradient(circle at 86% 20%, rgba(253, 184, 49, .25), transparent 28%),
        linear-gradient(135deg, #fff, #f4fbff);
}

.start-media-panel {
    position: relative;
    overflow: hidden;
    width: min(100%, 820px);
    min-height: clamp(420px, 58vh, 720px);
    border: 6px solid #fff;
    border-radius: 34px;
    background:
        url("../images/tela-inicial.svg") center / cover no-repeat,
        linear-gradient(135deg, rgba(73,195,241,.18), rgba(253,184,49,.18));
    box-shadow: 0 24px 60px rgba(70, 79, 161, .18);
}

.start-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
}

.start-media-overlay {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: flex;
    justify-content: center;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}

.start-media-overlay img {
    width: min(520px, 86%);
    max-height: 130px;
    object-fit: contain;
}

.start-card {
    width: min(100%, 560px);
    padding: clamp(32px, 5vw, 58px);
    border-radius: 32px;
    background: white;
    border: 4px solid var(--yellow);
    box-shadow: 0 24px 60px rgba(70, 79, 161, .18);
}

.start-card h1 {
    margin: 12px 0;
    font-size: clamp(44px, 5.4vw, 78px);
    line-height: .98;
    color: var(--red);
}

.start-card p {
    margin: 0 0 24px;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.35;
    color: var(--muted);
}

.start-icon {
    font-size: clamp(58px, 6vw, 84px);
}

.start-button {
    width: 100%;
    min-height: 76px;
    font-size: 24px;
}

/* v35.11 - Catálogo com categorias em coluna lateral */
.catalog-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 126px;
    z-index: 5;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow);
}

.catalog-sidebar .category-header {
    display: block;
    margin: 0 0 14px;
}

.catalog-sidebar .category-header h2 {
    margin: 0;
    font-size: 30px;
}

.catalog-sidebar .category-buttons {
    display: grid;
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
}

.catalog-sidebar .category-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 12px 15px;
    border-radius: 16px;
    text-align: left;
    white-space: normal;
    line-height: 1.2;
}

.catalog-sidebar .category-clear {
    width: 100%;
    margin-top: 14px;
}

.catalog-main {
    min-width: 0;
}

/* v35.11 - Botão secundário padronizado */
.btn-secondary {
    min-height: 54px;
    padding: 13px 22px;
    border: 2px solid var(--indigo);
    border-radius: 15px;
    background: #fff;
    color: var(--indigo);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(70, 79, 161, .12);
}

.btn-secondary:hover {
    background: rgba(70, 79, 161, .08);
    transform: translateY(-1px);
}

.update-data-button {
    width: 100%;
    margin-top: 12px;
    font-size: 18px;
}

@media (max-width: 980px) {
    .start-screen {
        grid-template-columns: 1fr;
        min-height: calc(100dvh - 140px);
        padding: 24px;
    }

    .start-media-panel {
        min-height: 360px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
        max-height: none;
    }

    .catalog-sidebar .category-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .catalog-sidebar .category-buttons {
        grid-template-columns: 1fr;
    }
}


/* v35.12 - Ajustes de layout para totem */
.container {
    max-width: min(1480px, 100vw);
    padding-left: clamp(10px, 1.6vw, 24px);
    padding-right: clamp(10px, 1.6vw, 24px);
}

.catalog-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
}

.catalog-sidebar {
    top: 112px;
    padding: 14px;
}

.catalog-sidebar .category-button {
    min-height: 46px;
    padding: 9px 12px;
    font-size: 13px;
}

.catalog-main .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.catalog-main .card {
    min-height: auto;
    border-radius: 18px;
}

.catalog-main .photo {
    padding: 10px;
}

.catalog-main .card-body {
    min-height: 245px;
    padding: 12px;
    gap: 7px;
}

.catalog-main .title {
    min-height: 42px;
    font-size: 14px;
}

.catalog-main .product-description {
    min-height: 42px;
    font-size: 12px;
}

.catalog-main .price {
    font-size: 22px;
}

.catalog-main .add-cart-button {
    min-height: 58px;
    font-size: 14px;
}

/* v35.12 - Produto: descrição embaixo das imagens e compra ao lado */
.product-detail-v2 {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
}

.detail-media {
    min-width: 0;
}

.detail-buy-box {
    position: sticky;
    top: 126px;
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-buy-box h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.1;
}

.detail-buy-box small {
    color: var(--indigo);
    font-weight: 900;
}

.detail-description-panel {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-description-panel .product-detail-description {
    max-width: none;
    margin: 8px 0 0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
}

/* v35.12 - Carrinho: botões sem sobreposição */
.cart-summary-actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.cart-summary-actions .btn,
.cart-summary-actions .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin: 0;
    text-align: center;
}

/* v35.12 - Retirada: ações acompanhando a rolagem e seleção à esquerda */
.receiving-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 25;
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 0 16px;
    background:
        linear-gradient(to top, var(--background) 72%, rgba(247, 251, 255, 0));
}

.receiving-sticky-actions .btn {
    margin-top: 0;
}

.store-option {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.store-radio {
    grid-column: 1;
    width: 28px;
    height: 28px;
    margin: 0;
    justify-self: start;
    accent-color: var(--indigo);
}

.store-option-text {
    grid-column: 2;
    display: grid;
    gap: 4px;
    min-width: 0;
}

@media (max-width: 780px) {
    .catalog-layout {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 10px;
    }

    .catalog-sidebar {
        padding: 10px;
    }

    .catalog-sidebar .category-header h2 {
        font-size: 20px;
    }

    .catalog-sidebar .category-button {
        min-height: 40px;
        padding: 7px 8px;
        font-size: 11px;
    }

    .catalog-main .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .catalog-main .card-body {
        padding: 8px;
        min-height: 205px;
    }

    .catalog-main .title {
        min-height: 38px;
        font-size: 11px;
    }

    .catalog-main .product-description {
        display: none;
    }

    .catalog-main .stock {
        font-size: 10px;
        padding: 4px 6px;
    }

    .catalog-main .price {
        font-size: 17px;
    }

    .catalog-main .add-cart-button {
        min-height: 48px;
        padding: 8px;
        font-size: 11px;
    }

    .product-detail-v2 {
        grid-template-columns: 1fr;
    }

    .detail-buy-box {
        position: static;
    }
}



/* v35.13 - Catálogo configurável e imagens protegidas no card */
.catalog-products-grid {
    grid-template-columns:
        repeat(var(--catalog-columns, 3), minmax(0, 1fr)) !important;
    align-items: start;
}

.catalog-main .card {
    overflow: hidden;
    contain: layout paint;
}

.catalog-main .photo {
    display: grid;
    place-items: center;
    height: var(--catalog-image-height, 170px);
    aspect-ratio: auto !important;
    overflow: hidden;
    padding: 8px;
}

.catalog-main .photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.catalog-main .placeholder {
    width: 100%;
    height: 100%;
}

@media (max-width: 780px) {
    .catalog-products-grid {
        grid-template-columns:
            repeat(var(--catalog-columns, 3), minmax(0, 1fr)) !important;
    }

    .catalog-main .photo {
        height: min(var(--catalog-image-height, 170px), 128px);
    }
}


/* v35.14 - Catálogo com topo fixo e rolagem somente em categorias/produtos */
.catalog-page-fixed {
    height: calc(100dvh - 104px - 60px);
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.catalog-fixed-top {
    position: relative;
    z-index: 12;
    background:
        radial-gradient(circle at top left, rgba(73, 195, 241, .08), transparent 34%),
        var(--background);
    padding-bottom: 8px;
}

.catalog-fixed-top .back-button {
    margin-bottom: 10px;
}

.catalog-fixed-top .catalog-hero {
    margin-bottom: 0;
}

.catalog-page-fixed .catalog-layout {
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.catalog-page-fixed .catalog-sidebar {
    position: static;
    top: auto;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.catalog-page-fixed .catalog-main {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 4px;
    padding-bottom: 26px;
    scrollbar-gutter: stable;
}

.catalog-page-fixed .pager {
    margin-bottom: 12px;
}

@media (orientation: portrait) {
    .catalog-page-fixed {
        height: calc(100dvh - 92px - 44px);
    }
}

@media (max-width: 780px) {
    .catalog-page-fixed {
        height: calc(100dvh - 92px - 36px);
    }

    .catalog-fixed-top .catalog-hero {
        padding: 18px;
    }

    .catalog-fixed-top .catalog-hero h1 {
        font-size: 30px;
    }

    .catalog-fixed-top .catalog-hero p {
        display: none;
    }
}


/* v35.15 - Tela inicial fullscreen com faixa inferior */
.start-container {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.start-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 999;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.start-fullscreen-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.start-bottom-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    min-height: clamp(92px, 11vh, 150px);
    display: grid;
    place-items: center;
    padding: 18px 28px;
    background: linear-gradient(90deg, rgba(237, 28, 36, .96), rgba(253, 184, 49, .96));
    color: #fff;
    text-align: center;
    box-shadow: 0 -12px 38px rgba(0, 0, 0, .28);
}

.start-bottom-strip strong {
    font-size: clamp(34px, 5.5vw, 74px);
    font-weight: 1000;
    line-height: 1;
    letter-spacing: .04em;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

.start-bottom-strip::before {
    content: "👆";
    margin-right: 18px;
    font-size: clamp(34px, 5vw, 68px);
}

@media (max-width: 700px) {
    .start-bottom-strip {
        min-height: 86px;
    }

    .start-bottom-strip strong {
        font-size: clamp(28px, 8vw, 46px);
    }
}


/* v35.16 - Reforço de fullscreen e topo fixo após atualização/cache */
html,
body {
    width: 100%;
    overflow-x: hidden;
}

.start-container {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.start-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    background: #000 !important;
}

.start-fullscreen-media {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.start-bottom-strip {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
    min-height: clamp(92px, 11vh, 150px) !important;
    display: grid !important;
    place-items: center !important;
}

.start-bottom-strip::before {
    content: none !important;
}

.catalog-page-fixed {
    height: calc(100dvh - 104px - 60px) !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
}

.catalog-fixed-top {
    position: relative !important;
    z-index: 12 !important;
    background: var(--background) !important;
    padding-bottom: 8px !important;
}

.catalog-fixed-top .catalog-hero {
    margin-bottom: 0 !important;
}

.catalog-page-fixed .catalog-layout {
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.catalog-page-fixed .catalog-sidebar {
    position: static !important;
    top: auto !important;
    height: 100% !important;
    max-height: none !important;
    overflow-y: auto !important;
}

.catalog-page-fixed .catalog-main {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

@media (orientation: portrait) {
    .catalog-page-fixed {
        height: calc(100dvh - 92px - 44px) !important;
    }
}


/* v35.17 - Parcelamento no crédito */
.installment-panel {
    margin: 22px 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.installment-panel h2 {
    margin: 0 0 14px;
}

.installment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.installment-option {
    min-height: 98px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(70, 79, 161, .08);
}

.installment-option strong {
    color: var(--indigo);
    font-size: 24px;
}

.installment-option span {
    color: var(--red);
    font-size: 20px;
    font-weight: 900;
}

.installment-option small {
    color: var(--muted);
    font-weight: 700;
}

.installment-option:hover {
    border-color: var(--cyan);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .installment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* v35.32 - Retirada: botão continuar sempre visível durante rolagem */
.receiving-page {
    padding-bottom: 118px;
}

.receiving-page .receiving-sticky-actions {
    position: fixed !important;
    left: clamp(16px, 4vw, 64px);
    right: clamp(16px, 4vw, 64px);
    bottom: 14px;
    z-index: 2000;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(70, 79, 161, .12);
    border-radius: 22px;
    background: rgba(247, 251, 255, .96);
    box-shadow: 0 18px 45px rgba(18, 38, 63, .20);
    backdrop-filter: blur(10px);
}

.receiving-page .receiving-sticky-actions .btn {
    width: 100%;
    min-height: 60px;
}


/* v35.34 - destaque de parcelamento sem juros nos cards */
.installment-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: -4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 155, 98, .12);
    color: var(--success);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .01em;
}

.detail-installment-badge {
    margin-top: -12px;
    margin-bottom: 14px;
    font-size: 17px;
    padding: 9px 14px;
}


/* v35.35 - parcelamento com valor da parcela */
.installment-badge {
    background: transparent !important;
    color: #00a650 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.detail-installment-badge {
    display: block;
    margin-top: -10px;
    margin-bottom: 14px;
    font-size: 18px;
}
