 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        :root {
            --primary-color: #FF6B35;
            --secondary-color: #2C3E50;
            --accent-color: #3498DB;
            --text-color: #2C3E50;
            --linght-gray: #F8F9FA;
            --border-color: #E9ECEF;
            --success-color: #2ecc71;
            --error-color: #e74c3c;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-color);
            background-color: var(--linght-gray);
            line-height: 1.6;
        }

        body.no-scroll {
            overflow: hidden;
        }

        /* --- ESTILOS DA LOJA (HEADER, PRODUTOS, ETC) --- */
        header {
            background-color: #fff;
            position: sticky;
            top: 0;
            z-index: 990;
            padding: 1rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
        }

        .logo i {
            font-size: 1.8rem;
        }

        .logo h1 {
            font-size: 1.8rem;
            color: var(--primary-color);
            font-weight: bold;
        }

        .search-container {
            width: 100%;
            max-width: 500px;
            margin: 0;
            display: flex;
            align-items: center;
            background-color: var(--linght-gray);
            border-radius: 1.5rem;
            padding: 0.5rem 1rem;
            order: 3;
            flex-basis: 100%;
        }

        .search-container input {
            width: 100%;
            border: none;
            background: none;
            outline: none;
            padding: 0.5rem;
            font-size: 1rem;
        }

        .search-container i {
            color: var(--primary-color);
            cursor: pointer;
        }

        .categories-container {
            background-color: var(--secondary-color);
            display: flex;
            overflow-x: auto;
        }

        .categories-bar {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding: 0.5rem 1rem;
            gap: 0.5rem;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .category-btn {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            border: none;
            color: #fff;
            border-radius: 1.5rem;
            padding: 0.5rem 1rem;
            cursor: pointer;
            background: none;
            white-space: nowrap;
            font-size: 0.9rem;
        }

        .category-btn.active {
            background-color: var(--primary-color);
        }

        .hero-section {
            background: linear-gradient(160deg, #FF4111 0%, #2d73bd 55%);
            color: #fff;
            text-align: center;
            padding: 2rem 1rem;
        }

        .hero-section h2 {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .hero-section p {
            font-size: 1.1rem;
        }

        footer {
            background-color: var(--secondary-color);
            color: #fff;
            text-align: center;
            padding: 2rem;
        }

        .products {
            width: 100%;
            max-width: 1200px;
            padding: 1rem;
            margin: 0 auto;
        }

        .products-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
        }

        .product-card {
            background-color: #fff;
            border-radius: 1rem;
            overflow: hidden;
            cursor: pointer;
            transition: 0.3s;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .product-card:hover {
            transform: translateY(-0.5rem);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .product-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .product-info {
            padding: 1rem;
        }

        .product-name {
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .product-description {
            font-size: 0.9rem;
            margin-bottom: 1rem;
            color: #6c757d;
        }

        .product-price {
            font-size: 1.4rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-weight: bold;
        }

        .product-button {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            ;
            color: #fff;
            border: none;
            padding: 0.7rem;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 0.3rem;
            cursor: pointer;
            transition: 0.3s;
        }

        .product-button:hover {
            background-color: #3aa9f3;
        }

        /* --- ESTILOS DO CARRINHO --- */
        .cart-icon {
            position: relative;
            cursor: pointer;
            padding: 0.5rem;
            order: 2;
        }

        .cart-icon i {
            font-size: 1.8rem;
            color: var(--secondary-color);
        }

        .cart-badge {
            position: absolute;
            top: 0;
            right: 0;
            background-color: var(--primary-color);
            color: #fff;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.8rem;
            font-weight: bold;
            transform: translate(25%, -25%);
        }

        .cart-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .cart-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .cart-sidebar {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            max-width: 420px;
            height: 100%;
            background-color: #fff;
            box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .cart-sidebar.show {
            transform: translateX(0);
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .cart-header h3 {
            font-size: 1.5rem;
            color: var(--secondary-color);
        }

        .close-cart-btn {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: var(--text-color);
        }

        .cart-body {
            padding: 1.5rem;
            overflow-y: auto;
            flex-shrink: 1;
        }

        .cart-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--border-color);
            background-color: var(--linght-gray);
            overflow-y: auto;
            flex-grow: 1;
        }

        .finish-order-btn-container {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--border-color);
            background-color: #fff;
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
        }

        .cart-body::-webkit-scrollbar,
        .cart-footer::-webkit-scrollbar {
            width: 6px;
        }

        .cart-body::-webkit-scrollbar-track,
        .cart-footer::-webkit-scrollbar-track {
            background: var(--linght-gray);
        }

        .cart-body::-webkit-scrollbar-thumb,
        .cart-footer::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 10px;
            border: 2px solid var(--linght-gray);
        }

        .cart-empty {
            text-align: center;
            padding-top: 4rem;
            color: #999;
        }

        .cart-empty i {
            font-size: 4rem;
            margin-bottom: 1rem;
            color: var(--border-color);
        }

        .cart-empty p {
            font-size: 1.2rem;
            font-weight: 600;
        }

        .cart-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .cart-item-img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 0.5rem;
            border: 1px solid var(--border-color);
        }

        .cart-item-info {
            flex-grow: 1;
        }

        .cart-item-name {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .cart-item-price {
            font-size: 0.9rem;
            color: var(--primary-color);
            font-weight: bold;
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .quantity-btn {
            background-color: var(--linght-gray);
            border: 1px solid var(--border-color);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.2s;
        }

        .quantity-btn:hover {
            background-color: #ddd;
        }

        .remove-item-btn {
            background: none;
            border: none;
            color: #f44336;
            font-size: 1.8rem;
            cursor: pointer;
            margin-left: auto;
            transition: color 0.2s;
        }

        .remove-item-btn:hover {
            color: #c23126;
        }

        .product-image-fly {
            position: fixed;
            z-index: 1001;
            border-radius: 50%;
            transition: all 0.7s cubic-bezier(0.55, 0.055, 0.675, 0.19);
            object-fit: cover;
        }

        .options-toggle {
            display: flex;
            border: 1px solid var(--border-color);
            border-radius: 1.5rem;
            overflow: hidden;
            margin-bottom: 1.5rem;
        }

        .delivery-btn {
            flex: 1;
            padding: 0.75rem;
            border: none;
            background-color: #fff;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-color);
            transition: background-color 0.3s;
        }

        .delivery-btn.active {
            background-color: var(--secondary-color);
            color: #fff;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
            outline: none;
        }

        .form-group input.error,
        .form-group textarea.error,
        .form-group select.error {
            border-color: var(--error-color) !important;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
        }

        .form-group input:read-only {
            background-color: #eee;
            cursor: not-allowed;
            opacity: 0.8;
        }

        .payment-options-container {
            border-top: 1px solid var(--border-color);
            margin-top: 1.5rem;
            padding-top: 1.5rem;
        }

        .payment-options-container h4 {
            font-size: 1rem;
            margin-top: 0;
            margin-bottom: 1rem;
        }

        .payment-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: border-color 0.2s, background-color 0.2s;
        }

        .payment-option:hover {
            background-color: #fff;
        }

        .payment-option input[type="radio"] {
            width: auto;
        }

        .payment-option.selected {
            border-color: var(--primary-color);
            background-color: #fff5f0;
        }

        #troco-container {
            display: none;
            margin-top: 1rem;
            padding: 1rem;
            background-color: #fff;
            border-radius: 0.5rem;
            border: 1px solid var(--border-color);
        }

        .delivery-fee-notice {
            font-size: 0.8rem;
            text-align: center;
            color: #777;
            background-color: #fff;
            padding: 0.5rem;
            border-radius: 0.5rem;
            margin: 1.5rem 0;
        }

        .date-time-row {
            display: flex;
            gap: 1rem;
        }

        .cart-summary {
            margin: 1.5rem 0;
            border-top: 1px solid var(--border-color);
            padding-top: 1.5rem;
        }

        .summary-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }

        .summary-line.total {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--primary-color);
            margin-top: 1rem;
        }

        .coupon-container {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        #coupon-input {
            flex-grow: 1;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            padding: 0.75rem;
            font-size: 1rem;
        }

        #apply-coupon-btn {
            border: none;
            background-color: var(--secondary-color);
            color: #fff;
            padding: 0 1.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.2s;
        }

        #apply-coupon-btn:hover {
            background-color: #3e5771;
        }

        .coupon-feedback {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 1rem;
            height: 1em;
        }

        .coupon-feedback.success {
            color: var(--success-color);
        }

        .coupon-feedback.error {
            color: var(--error-color);
        }

        .summary-line.discount-line {
            color: var(--success-color);
            font-weight: 600;
        }

        .finish-order-btn {
            width: 100%;
            padding: 1rem;
            font-size: 1.2rem;
            font-weight: bold;
            color: #fff;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            ;
            border: none;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .finish-order-btn:hover:not(:disabled) {
            background-color: #27ae60;
        }

        .finish-order-btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        .finish-order-btn .fa-whatsapp {
            margin-right: 0.5rem;
        }

        /* --- BARRA INFERIOR "VER CARRINHO" (RESTAURADA) --- */
        .view-cart-banner {
            position: fixed;
            bottom: -100px;
            /* Começa escondida */
            left: 0;
            width: 100%;
            background-color: var(--secondary-color);
            color: #fff;
            z-index: 980;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
            transition: bottom 0.4s ease-in-out;
        }

        .view-cart-banner.show {
            bottom: 0;
        }

        .view-cart-banner p {
            margin: 0;
            font-weight: 600;
        }

        .view-cart-banner-btn {
            background-color: var(--primary-color);
            color: #fff;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 1.5rem;
            font-weight: bold;
            cursor: pointer;
        }

        /* --- MEDIA QUERIES PARA RESPONSIVIDADE --- */
        @media (min-width: 768px) {
            .search-container {
                order: 2;
                flex-basis: auto;
                width: auto;
            }

            .cart-icon {
                order: 3;
            }

            .categories-bar {
                justify-content: center;
            }

            .category-btn {
                padding: 0.75rem 1.5rem;
                font-size: 1rem;
            }

            .products {
                padding: 2rem;
            }

            .products-container {
                gap: 2rem;
            }

            .product-img {
                height: 250px;
            }

            .product-info {
                padding: 1.5rem;
            }

            .product-name {
                font-size: 1.2rem;
            }

            .hero-section {
                padding: 3rem 2rem;
            }

            .hero-section h2 {
                font-size: 2.5rem;
            }
        }

        /* Esconde a barra "Ver Carrinho" em telas maiores */
        @media (min-width: 769px) {
            .view-cart-banner {
                display: none;
            }
        }