:root {
    --primary: #ea1d2c;
    --bg: #f8f9fa;
    --text-main: #333;
    --text-muted: #666;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    padding-bottom: 100px;
    color: var(--text-main);
}

.container-desktop {
    width: 100%;
    margin: 0 auto;
}

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

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 12px 15px;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(234, 29, 44, 0.28);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255,5);
    padding: 4px;
}

.search-bar {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.banner {
    margin-top: 120px;
    padding: 0 15px;
}

@media (max-width: 520px) {
    .banner {
        margin-top: 140px;
    }
}

.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    aspect-ratio: var(--hero-aspect, 3);
    width: 100%;
    max-height: 420px;
    background: #0f172a;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    color: #fff;
}

/* Banner slides: melhorar legibilidade do texto */
.banner-slide {
    position: relative;
    border-radius: 20px;
    min-height: 140px;
    background-size: cover;
    background-position: center;
    padding: 20px;
    color: #fff;
}
.banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25));
    border-radius: inherit;
}
.banner-slide > * {
    position: relative;
    z-index: 1;
}

.hero-banner.is-clickable {
    cursor: pointer;
}

.hero-banner__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(0.92);
    pointer-events: none;
}

.hero-banner__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(18px, 6vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 20%, rgba(15, 23, 42, 0.68) 100%);
}

.hero-banner__content h3 {
    font-size: clamp(20px, 4vw, 34px);
    font-weight: 700;
    margin: 0;
}

.hero-banner__content p {
    font-size: clamp(14px, 2.6vw, 17px);
    margin: 0;
    max-width: 520px;
    opacity: 0.95;
}

.hero-banner__cta {
    align-self: flex-start;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-banner__cta:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.26);
}

.hero-banner__cta i {
    font-size: 16px;
}

@media (max-width: 520px) {
    .hero-banner__content {
        padding: 18px;
    }
    .hero-banner__content h3 {
        font-size: clamp(18px, 5vw, 24px);
    }
    .hero-banner__content p {
        font-size: 13px;
    }
    .hero-banner__cta {
        padding: 9px 14px;
        font-size: 13px;
    }
}

.status-bar {
    display: flex;
    justify-content: space-around;
    background: #fff;
    margin: 15px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    gap: 10px;
    width: 100%;
}

.status-item {
    text-align: center;
    flex: 1;
}

.status-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.status-label {
    font-size: 11px;
    color: #555;
}

.categories {
    padding: 10px 15px 5px;
}

.cat-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}

.cat-card {
    width: 80px;
    text-align: center;
    flex: 0 0 auto;
    scroll-snap-align: center;
    cursor: pointer;
}

.cat-card.active .cat-icon {
    border: 2px solid var(--primary);
}

.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.cat-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.cat-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.section {
    padding: 10px 15px;
}

.section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.product-grid {
    display: grid;
    gap: 16px;
}

.product-card.highlight {
    border: 2px solid rgba(234, 29, 44, 0.25);
}

.product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.product-image {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    background: #f2f2f2;
}

/* Categorias: melhorar rolagem e estado ativo */
.cat-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px; scroll-snap-type: x mandatory; }
.cat-scroll::-webkit-scrollbar { height: 6px; }
.cat-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 999px; }
.cat-card { transition: transform .15s ease; }
.cat-card:active { transform: scale(0.98); }
.cat-card.active .cat-name { color: var(--primary); font-weight: 700; }

.product-name {
    font-weight: 600;
    font-size: 16px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 13px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.add-btn:active {
    transform: scale(0.95);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.cart-float {
    position: fixed;
    bottom: 80px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-float:hover {
    transform: translateY(-3px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal {
    background: #fff;
    width: 100%;
    max-width: 420px;
    max-height: 90%;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.modal-body {
    padding: 0 15px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -10px 18px -16px rgba(15,23,42,0.35);
}

.modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    padding: 12px 0;
    gap: 10px;
}

.qtd-btn {
    border: none;
    background: #f2f2f2;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

.total {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.total-row-highlight {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.total-row-discount {
    color: #047857;
}

.total-row-discount span {
    color: inherit;
}

.btn-finalizar {
    background: #25d366;
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-limpar {
    background: #eee;
    color: #333;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.payment-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.payment-details {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.coupon-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coupon-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.coupon-row .checkout-input {
    flex: 1;
    min-width: 160px;
    text-transform: uppercase;
}

.btn-cupom {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cupom:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -12px rgba(234, 29, 44, 0.6);
}

.btn-cupom--remove {
    background: #e2e8f0;
    color: #0f172a;
}

.coupon-feedback {
    font-size: 12px;
    color: #0f172a;
    min-height: 16px;
}

.coupon-feedback--error {
    color: #b91c1c;
}

.coupon-feedback--success {
    color: #047857;
}

.checkout-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.checkout-input {
    width: 100%;
    border: 1px solid #dcdde1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-input:focus {
    border-color: rgba(234, 29, 44, 0.35);
    box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.12);
    outline: none;
}

.delivery-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.delivery-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.delivery-fields {
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 12px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-row .checkout-field {
    flex: 1;
}

.delivery-tax {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.delivery-tax strong {
    color: var(--primary);
    font-size: 14px;
}

.delivery-tax small {
    font-size: 12px;
    color: var(--text-muted);
}

.pix-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 8px 12px;
}

.pix-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pix-qrcode {
    margin-top: 10px;
    text-align: center;
}

.pix-qrcode img {
    max-width: 160px;
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    text-align: center;
    font-size: 12px;
    color: #555;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item[data-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.copy-btn {
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.copy-btn .bi {
    font-size: 14px;
}

.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(31, 41, 51, 0.9);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 4000;
}

.toast.is-visible {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .container-desktop {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 24px 60px;
    }

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

    .header {
        width: calc(100% - 48px);
        max-width: 720px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 0 0 20px 20px;
    }

    .status-bar {
        margin-left: 0;
        margin-right: 0;
    }

    .bottom-nav {
        width: calc(100% - 48px);
        max-width: 720px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }

    .checkout-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .container-desktop {
        max-width: 960px;
    }

    .header,
    .bottom-nav {
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    .container-desktop {
        max-width: 1100px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header,
    .bottom-nav {
        max-width: 1100px;
    }
}





