    :root {
        --primary-color: #e67e22;
        --dark-bg: #121212;
        --light-bg: #fdfdfd;
        --text-main: #2d3436;
        --text-muted: #636e72;
        --success: #27ae60;
        --border-color: #f0f0f0;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', sans-serif;
        scroll-behavior: smooth;
    }


    body {
        background-color: #f0f2f5;
        color: var(--text-main);
        padding-bottom: 100px;
    }

    /* --- HEADER & MENU (MANTIDOS) --- */
    .header {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?q=80&w=1200&auto=format&fit=crop');
        background-size: cover;
        background-position: center;
        color: white;
        padding: 50px 20px;
        text-align: center;
    }

    .btn-hamburguer img {
        width: 20px;
        height: 20px;
    }

    .btn-hamburguer:active {
        transform: scale(0.9);
    }




    /* Animação suave para o dropdown */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* MODAL DE ESCOLHA INICIAL */
    .fluxo-selecionado-bar {
        max-width: 600px;
        margin: 10px auto;
        padding: 10px 20px;
        background: #fffaf5;
        border: 1px solid #ffeaa7;
        border-radius: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
    }

    .btn-trocar-modo {
        background: none;
        border: none;
        color: var(--primary-color);
        font-weight: bold;
        text-decoration: underline;
        cursor: pointer;
    }

    .modal-inicial {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .modal-conteudo {
        padding: 30px;
        max-width: 450px;
        width: 90%;
    }

    .modal-conteudo .brand-logo {
        margin-bottom: 20px;
    }

    .opcoes-fluxo {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .btn-fluxo {
        background: white;
        border: 2px solid var(--border-color);
        padding: 20px;
        border-radius: 15px;
        cursor: pointer;
        transition: 0.3s;
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .btn-fluxo:hover {
        border-color: var(--primary-color);
        background: #fffaf5;
    }

    .btn-fluxo .icon {
        font-size: 2rem;
    }

    .btn-fluxo strong {
        display: block;
        font-size: 1.1rem;
        color: var(--text-main);
    }

    .btn-fluxo p {
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .hidden {
        display: none !important;
    }

    .brand-logo {
        width: 65px;
        height: 65px;
        background: var(--primary-color);
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 12px;
        font-weight: bold;
        font-size: 1.6rem;
        box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    }

    .status-badge {
        display: inline-flex;
        align-items: center;
        background: rgba(39, 174, 96, 0.2);
        color: #55efc4;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.85rem;
        margin-top: 15px;
        border: 1px solid rgba(85, 239, 196, 0.3);
    }

    .dot {
        height: 8px;
        width: 8px;
        background-color: var(--success);
        border-radius: 50%;
        display: inline-block;
        margin-right: 8px;
        box-shadow: 0 0 8px var(--success);
    }

    .nav-container-wrapper {
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 998;
        display: flex;
        justify-content: center;
    }

    .nav-content {
        width: 100%;
        max-width: 600px;
        padding: 10px 0;
        display: flex;
        align-items: center;
    }

    .categories-nav {
        display: flex;
        gap: 10px;
        width: 100%;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 5px 15px;
        -webkit-overflow-scrolling: touch;
    }

    .categories-nav::-webkit-scrollbar {
        display: none;
    }

    .categories-nav a {
        text-decoration: none;
    }

    .categories-nav button {
        background: #f1f2f6;
        color: var(--text-muted);
        border: none;
        padding: 10px 20px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s ease-in-out;
    }

    .categories-nav button.active {
        background: var(--primary-color) !important;
        color: white !important;
        font-weight: 700;
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(230, 126, 34, 0.25);
    }

    /* Cursor padrão para a nav em telas menores */
    @media (max-width: 530px) {
        .categories-nav {
            cursor: grab;
            user-select: none;
        }

        .categories-nav.dragging {
            cursor: grabbing;
            scroll-behavior: auto !important
        }

        .categories-nav.dragging a {
            pointer-events: none !important;
        }
    }


    .menu-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 25px 20px;
    }

    .menu-category {
        scroll-margin-top: 80px;
        margin-bottom: 45px;
    }

    .menu-category h2 {
        font-size: 1.2rem;
        color: var(--text-main);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    .menu-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        padding: 18px;
        border-radius: 18px;
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .menu-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        border-color: var(--primary-color);
    }

    .item-details {
        flex: 1;
        padding-right: 15px;
    }

    .item-details h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .item-details p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .item-price {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.1rem;
    }

    .item-image img {
        width: 100px;
        height: 100px;
        border-radius: 15px;
        object-fit: cover;
    }

    /* --- DETALHES DO PRODUTO --- */
    .product-header {
        width: 100%;
        max-width: 600px;
        padding: 15px;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }

    .product-detail-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        background: white;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .back-button {
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        padding: 10px 20px;
        border-radius: 25px;
        text-decoration: none;
        color: var(--text-main);
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: fit-content;
    }

    .adicionar{
        margin: auto;
    }

    .detail-img {
        width: 100%;
        max-width: 600px;
        height: 380px;
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }

    .product-headline {
        padding: 20px;
        background: white;
        border-bottom: 8px solid #f0f2f5;
    }

    .product-headline h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .detail-price {
        color: var(--primary-color);
        font-size: 1.3rem;
        font-weight: bold;
        display: block;
        margin-bottom: 10px;
    }

    .option-group {
        background: white;
        padding: 20px;
        border-bottom: 8px solid #f0f2f5;
    }

    .group-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .group-header h3 {
        font-size: 1rem;
    }

    .group-header p {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .required {
        background: #333;
        color: white;
        font-size: 0.7rem;
        padding: 4px 8px;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .option-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-top: 1px solid var(--border-color);
        cursor: pointer;
    }

    textarea {
        width: 100%;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
        resize: none;
    }

    /* Bebidas Detalhes */
    .bebida-item {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .bebida-item img {
        width: 50px;
        height: 50px;
        border-radius: 6px;
        margin-right: 15px;
        object-fit: cover;
    }

    .bebida-info {
        flex: 1;
    }

    .bebida-info span {
        font-weight: 600;
        display: block;
    }

    .bebida-info p {
        font-size: 0.85rem;
        color: var(--success);
    }

    .bebida-controle {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #f8f9fa;
        padding: 5px 12px;
        border-radius: 25px;
        border: 1px solid var(--border-color);
    }

    .btn-qtd {
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 1.5rem;
        font-weight: bold;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qtd-numero {
        font-weight: bold;
        font-size: 1.1rem;
        min-width: 20px;
        text-align: center;
    }

    /* --- CARRINHO --- */
    .header-carrinho {
        max-width: 600px;
        margin: 0 auto;
        background: white;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .header-carrinho h1 {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    .carrinho-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        background: white;
        min-height: 80vh;
    }

    /* ========================= */
    /* CARD ENDEREÇO */
    /* ========================= */

    .card-endereco {
        width: 100%;
        background: white;
        border-radius: 18px;
        padding: 18px;
        margin-bottom: 18px;
        display: block;
        text-decoration: none;
        color: var(--text-main);
        border: 1px solid #ededed;
        transition: 0.2s;
    }

    .card-endereco:hover {
        border-color: #dcdcdc;
    }

    .endereco-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .endereco-info h3 {
        font-size: 1.02rem;
        margin-bottom: 4px;
        font-weight: 700;
    }

    .endereco-info p {
        font-size: 0.92rem;
        color: var(--text-muted);
    }

    .endereco-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        color: #666;
        flex-shrink: 0;
    }

    /* ========================= */
    /* ENDEREÇO VAZIO */
    /* ========================= */

    .endereco-vazio {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .endereco-vazio strong {
        display: block;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .endereco-vazio p {
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .endereco-vazio span {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #fff4ea;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        font-weight: bold;
        flex-shrink: 0;
    }

    .icone-burger-map {
        width: 36px;
        height: 36px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 28px;

        background: white;
        border-radius: 50%;

        box-shadow:
            0 4px 10px rgba(0, 0, 0, 0.25);

        border: 3px solid #ff7a00;
    }

    .item-carrinho {
        position: relative;
        background: white;
        padding: 15px;
        border-radius: 18px;
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid var(--border-color);
    }

    .cart-product-wrapper {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .cart-item-img {
        width: 65px;
        height: 65px;
        border-radius: 12px;
        object-fit: cover;
    }

    .info-item-cart strong {
        display: block;
        font-size: 1rem;
    }

    .info-item-cart p {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .obs-cart {
        font-style: italic;
        color: var(--primary-color) !important;
        font-weight: 600;
    }

    .preco-cart {
        font-weight: bold;
        color: var(--text-main);
        margin-top: 4px;
        display: block;
    }

    .btn-remover {
        background: none;
        border: none;
        color: #e74c3c;
        font-weight: bold;
        cursor: pointer;
        font-size: 0.85rem;
        padding: 10px;
    }

    .resumo-valores {
        background: #fdfdfd;
        padding: 20px;
        border-radius: 12px;
        margin-top: 20px;
        border: 1px solid var(--border-color);
    }

    .linha-resumo {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        color: var(--text-muted);
    }

    .linha-resumo.total {
        border-top: 1px dashed #ccc;
        padding-top: 10px;
        font-weight: bold;
        color: var(--text-main);
        font-size: 1.1rem;
    }

    .form-endereco {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
    }

    /* ========================= */
    /* NOVO MAPA MODERNO */
    /* ========================= */

    .mapa-box {
        margin-top: 18px;
        border: 1px solid var(--border-color);
        border-radius: 20px;
        overflow: hidden;
        background: #fff;
    }

    .mapa-topo {
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        background: #fffaf5;
    }

    .mapa-topo h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .mapa-topo p {
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    #mapa-entrega {
        width: 100%;
        height: 350px;
        border-radius: 24px;
        overflow: hidden;
    }

    .mapa-legenda {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        background: white;
        border-top: 1px solid var(--border-color);
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .ponto-loja {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #e74c3c;
    }

    .ponto-cliente {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #3498db;
    }

    /* Leaflet */
    .leaflet-control-zoom {
        border: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
        overflow: hidden;
        border-radius: 12px !important;
    }

    .leaflet-control-zoom a {
        background: white !important;
        color: var(--text-main) !important;
        border: none !important;
    }

    .leaflet-popup-content-wrapper {
        border-radius: 14px;
    }

    .input-row {
        width: 100%;
    }

    .input-row.inline {
        display: flex;
        gap: 10px;
    }

    .input-field {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        font-size: 0.95rem;
        outline: none;
    }

    .input-field:focus {
        border-color: var(--primary-color);
    }

    .input-field.small {
        width: 100px;
    }

    .btn-calcular-frete {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 15px;
        border-radius: 12px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 5px;
        transition: 0.2s;
    }

    .btn-calcular-frete:hover {
        filter: brightness(1.1);
    }

    .status-msg {
        font-size: 0.9rem;
        color: var(--success);
        margin-top: 14px;
        text-align: center;
        font-weight: 600;
    }

    /* --- FOOTER --- */
    .footer-action {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        background: linear-gradient(transparent, white 20%);
        display: flex;
        justify-content: center;
        z-index: 1000;
    }

    .btn-cart {
        width: 100%;
        max-width: 560px;
        display: flex;
        justify-content: space-between;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 18px 25px;
        border-radius: 15px;
        font-weight: bold;
        font-size: 1.1rem;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
        transition: 0.3s;
    }

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

    .btn-editar-item {
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-decoration: underline;
        cursor: pointer;
        margin-top: 5px;
        padding: 0;
        display: block;
    }

    .btn-editar-item:hover {
        color: var(--primary-color);
    }

    /* ========================================= */
    /* LOCALIZAÇÃO - ESTILO GOURMET CLICK */
    /* ========================================= */

    .pagina-localizacao {
        background: var(--light-bg);
        padding-bottom: 120px;
    }

    .topo-localizacao {
        max-width: 700px;
        margin: 0 auto;
        height: 85px;
        background: var(--light-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 0 20px;
    }

    .topo-localizacao h1 {
        font-size: 1rem;
        /* Diminuído levemente para caber melhor em telas pequenas */
        font-weight: 700;
        color: var(--text-main);
        margin: 0;
        text-align: center;
        flex: 1;

        /* O SEGREDO: Adiciona um respiro nas laterais para o texto não encostar no botão */
        padding-left: 50px;
        padding-right: 50px;

        /* Garante que o texto quebre linha se for muito grande ou use reticências */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-transform: uppercase;
    }

    .btn-voltar {
        position: absolute;
        left: 20px;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: 1px solid var(--border-color);
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        z-index: 1001;
        /* Garante que o botão fique sempre clicável acima do texto */
    }

    .btn-voltar:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .mapa-container {
        max-width: 700px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
    }

    #mapa-entrega {
        width: 100%;
        height: 280px;
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        z-index: 1;
    }

    .btn-ajustar-mapa {
        position: absolute;
        left: 50%;
        top: 18px;
        transform: translateX(-50%);
        border: none;
        background: white;
        color: var(--text-main);
        padding: 14px 22px;
        border-radius: 999px;
        font-size: 0.92rem;
        font-weight: 700;
        cursor: pointer;
        z-index: 999;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
        transition: 0.2s;
    }

    #referencia-endereco {
        display: none;
        font-size: 0.85rem;
        color: #888;
        margin: 5px 0px 0px 0px;
    }

    .btn-ajustar-mapa:hover {
        transform: translateX(-50%) translateY(-2px);
    }

    .conteudo-localizacao {
        max-width: 700px;
        margin: 25px auto 0;
        padding: 0 20px;
    }

    .endereco-preview {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 22px;
        padding: 22px;
        margin-bottom: 22px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    }

    .endereco-preview h2 {
        font-size: 1.25rem;
        color: var(--text-main);
        margin-bottom: 6px;
    }

    .endereco-preview p {
        color: var(--text-muted);
        font-size: 0.95rem;
    }

    .form-localizacao {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .campo-group {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 14px 18px;
        transition: 0.2s;
    }

    .campo-group:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.08);
    }

    .campo-group label {
        display: block;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--text-muted);
        margin-bottom: 8px;
    }

    .campo-group input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        font-size: 1.05rem;
        color: var(--text-main);
    }

    .campo-group input::placeholder {
        color: #b2bec3;
    }

    .footer-localizacao {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        background: linear-gradient(transparent, white 25%);
        display: flex;
        justify-content: center;
        z-index: 1000;
    }

    .btn-salvar-endereco {
        width: 100%;
        max-width: 660px;
        border: none;
        background: var(--primary-color);
        color: white;
        height: 62px;
        border-radius: 18px;
        font-size: 1.05rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.35);
        transition: 0.2s;
    }

    .btn-salvar-endereco:hover {
        filter: brightness(1.05);
    }

    .btn-salvar-endereco:active {
        transform: scale(0.98);
    }

    /* LEAFLET */

    .leaflet-control-zoom {
        border: none !important;
        border-radius: 14px !important;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    }

    .leaflet-control-zoom a {
        background: white !important;
        color: var(--text-main) !important;
        border: none !important;
    }

    .leaflet-popup-content-wrapper {
        border-radius: 14px;
    }

    /* RESPONSIVO */

    @media (max-width: 580px) {

        .topo-localizacao {
            height: 78px;
        }

        #mapa-entrega {
            height: 240px;
            border-radius: 20px;
        }

        .btn-ajustar-mapa {
            padding: 12px 18px;
            font-size: 0.85rem;
        }

        .campo-group {
            border-radius: 18px;
        }

        .endereco-preview {
            border-radius: 18px;
        }

        .btn-salvar-endereco {
            height: 58px;
            border-radius: 16px;
        }
    }

    /* WRAPPER CEP */
    .cep-wrapper {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    /* INPUT CEP */
    .cep-wrapper input {
        flex: 1;
    }

    /* BOTÃO BUSCAR */
    .btn-buscar-cep {
        height: 48px;
        padding: 0 18px;

        border: 1px solid #dcdcdc;
        border-radius: 14px;

        background: #f5f5f5;
        color: #555;

        font-size: 0.92rem;
        font-weight: 600;
        font-family: 'Inter', sans-serif;

        cursor: pointer;

        transition:
            background 0.2s ease,
            transform 0.15s ease,
            border-color 0.2s ease;
    }

    /* HOVER */
    .btn-buscar-cep:hover {
        background: #ebebeb;
        border-color: #cfcfcf;
    }

    /* CLICK */
    .btn-buscar-cep:active {
        transform: scale(0.97);
    }

    /* MOBILE */
    @media (max-width: 480px) {

        .btn-buscar-cep {
            padding: 0 14px;
            font-size: 0.88rem;
        }
    }

    /* Container fixo na base da tela */
    .footer-action-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        /* No celular ele ocupa as bordas inteiras da tela */
        background: white;
        padding: 15px 20px;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);
        z-index: 1000;

        /* Mantém o contador e o botão alinhados internamente */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Limitador de largura centralizado que alinha com o corpo do site */
    .footer-content {
        width: 100%;
        max-width: 600px;
        display: flex;
        align-items: center;
        gap: 12px;
        /* Espaço entre o contador e o botão */
    }

    .seletor-quantidade-principal {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f1f2f6;
        border-radius: 12px;
        height: 54px;
        min-width: 100px;
        padding: 0 5px;
    }

    .seletor-quantidade-principal button {
        background: none;
        border: none;
        width: 40px;
        height: 100%;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        font-weight: bold;
    }

    .seletor-quantidade-principal span {
        width: 30px;
        text-align: center;
        font-weight: bold;
        font-size: 1.1rem;
        color: var(--text-main);
    }

    .btn-adicionar-final {
    flex: 1;

    height: 54px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    gap: 8px;
}

    .btn-adicionar-final strong {
        font-weight: 700;
    }

    .btn-adicionar-final:active {
        transform: scale(0.98);
    }

    .btn-adicionar-final #btn-preco-dinamico {
        font-variant-numeric: tabular-nums;
        /* Mantém os números alinhados */
    }

    /* Responsividade para telas MUITO pequenas (ex: iPhone SE) */
    @media (max-width: 360px) {
        .footer-content {
            gap: 8px;
        }

        .btn-adicionar-final {
            padding: 0 12px;
        }

        /* Esconde a palavra "Pedido" se não houver espaço, mantendo apenas "Adicionar" */
        .btn-adicionar-final span:first-child {
            display: inline-block;
            max-width: 70px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    .controle-qtd-carrinho {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .btn-qtd-cart {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 8px;
        background: var(--primary-color);
        color: #fff;
        font-size: 1.2rem;
        font-weight: 700;
        cursor: pointer;
    }

    .numero-qtd-cart {
        min-width: 20px;
        text-align: center;
        font-weight: 600;
    }

    .badge-qtd-item {
        position: absolute;
        top: 10px;
        left: 10px;

        width: 28px;
        height: 28px;

        border-radius: 50%;

        background: var(--primary-color);

        color: #fff;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 0.9rem;
        font-weight: 700;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

        z-index: 2;
    }

    .btn-minha-localizacao {

        width: 100%;

        height: 56px;

        border-radius: 18px;

        border: 2px solid var(--primary-color);

        background: #fff;

        color: var(--primary-color);

        font-size: 1rem;

        font-weight: 700;

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 10px;

        margin-top: 16px;

        cursor: pointer;

        transition: 0.2s;
    }

    .btn-minha-localizacao:hover {
        background: var(--primary-color);
        color: #fff;
    }

    .btn-minha-localizacao span {
        font-size: 1.1rem;
    }

    /* ===================================== */
    /* LOADING LOCALIZAÇÃO */
    /* ===================================== */

    .loading-localizacao {

        position: fixed;

        inset: 0;

        background: rgba(0, 0, 0, 0.45);

        backdrop-filter: blur(4px);

        z-index: 99999;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 20px;
    }

    .loading-localizacao.hidden {

        display: none;
    }

    .loading-box {

        width: 100%;

        max-width: 320px;

        background: #fff;

        border-radius: 24px;

        padding: 32px 24px;

        text-align: center;

        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    .spinner-localizacao {

        width: 60px;

        height: 60px;

        border-radius: 50%;

        border: 5px solid #eee;

        border-top: 5px solid var(--primary-color);

        margin: 0 auto 20px;

        animation: girarSpinner 0.8s linear infinite;
    }

    .loading-box h3 {

        font-size: 1.1rem;

        margin-bottom: 8px;

        color: var(--dark);
    }

    .loading-box p {

        color: var(--text-muted);

        font-size: 0.95rem;
    }

    @keyframes girarSpinner {

        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }