:root {
            --primary: #E5B25D;
            --primary-hover: #d4a14c;
            --bg-body: #0d0d0d;
            --bg-card: #1a1a1a;
            --text-main: #ffffff;
            --text-muted: #a0a0a0;
            --border-color: rgba(229, 178, 93, 0.2);
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            --radius: 16px;
            --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --glass: rgba(26, 26, 26, 0.8);
        }

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

        body {
            font-family: 'Outfit', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            letter-spacing: -0.01em;
        }

        .sticky-store-topbar {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(13, 13, 13, 0.95);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            width: 100%;
            overflow-x: hidden;
        }

        /* Header Styles */
        .header {
            background: transparent;
        }

        .banner-desktop {
            width: 100%;
            height: 220px;
            background-color: #0b0b0b;
            background-image: url("logo_automovel.png");
            background-size: auto 280%; /* Prioriza a altura para nÃ£o cortar o texto, ocupando quase todo o banner */
            background-position: center;
            background-repeat: no-repeat;
            display: block;
        }

        @media (max-width: 768px) {
            .banner-desktop {
                display: none;
                /* Oculta apenas no mobile/tablet */
            }
        }

        .top-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.8rem 1rem;
            max-width: 1200px;
            margin: 0 auto;
            gap: 1rem;
        }

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

        .logo-main {
            height: 100px;
            width: 100px;
            border-radius: 50%;
            background-color: #0b0b0b;
            background-image: url("logo_automovel.png");
            background-size:135%; /* Mantendo o mesmo ajuste que vocÃª fez no banner */
            background-position: center;
            background-repeat: no-repeat;
        }

        .brand-text {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }


        .brand-name {
            font-size: 1.3rem;
            font-weight: 800;
            color: white;
            letter-spacing: -0.02em;
            text-transform: uppercase;
        }

        .brand-subtitle {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--primary);
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }


        .search-bar-container {
            padding: 0 1rem 0.8rem 1rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        @media (max-width: 480px) {
            
.brand-name {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }

            .logo-main {
                height: 50px;
                width: 50px;
            }

            .top-nav {
                padding: 0.6rem 0.8rem;
                gap: 0.5rem;
            }
            .search-bar-container {
                padding: 0 0.8rem 0.6rem 0.8rem;
            }

            .search-bar-container {
                padding-bottom: 0.6rem;
            }
        }

        @media (max-width: 360px) {
            .top-nav {
                padding: 0.5rem 0.6rem;
                gap: 0.4rem;
                justify-content: space-between;
            }
            .brand-name {
                font-size: 0.8rem;
                white-space: nowrap;
            }
            .brand-subtitle {
                display: none;
            }
            .cart-toggle {
                padding: 8px 10px;
                gap: 4px;
                font-size: 0.7rem;
            }
            .cart-label {
                display: none;
            }
            .brand-container {
                gap: 6px;
                flex-shrink: 1;
                min-width: 0;
            }
            .logo-main {
                height: 35px;
                width: 35px;
                flex-shrink: 0;
            }
            .main-content {
                padding: 1.2rem 0.5rem;
            }
            .section-title {
                font-size: 1.2rem;
            }
            .product-card {
                height: 110px;
                max-width: 100%;
            }
            .product-img-wrap, .product-card > img {
                width: 110px !important;
                min-width: 110px !important;
                height: 110px !important;
            }
            .product-info {
                padding: 0.5rem 0.6rem;
                gap: 4px;
            }
            .product-name {
                font-size: 0.85rem;
            }
            .product-price {
                font-size: 1rem;
            }
            .btn-add {
                padding: 6px 10px;
                font-size: 0.7rem;
            }
            .product-footer {
                margin-top: 4px;
                gap: 8px;
            }
        }

        .search-wrapper {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-icon {
            position: absolute;
            left: 12px;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        #busca {
            width: 100%;
            padding: 12px 12px 12px 38px;
            background: #1a1a1a;
            border: 1px solid var(--border-color);
            border-radius: 50px;
            font-size: 0.95rem;
            color: white;
            outline: none;
            transition: var(--transition);
        }

        #busca:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(229, 178, 93, 0.1);
            background: #222;
        }

        .cart-toggle {
            background: var(--primary);
            color: #000;
            border: none;
            padding: 10px 22px;
            border-radius: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(229, 178, 93, 0.3);
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.5px;
        }

        .cart-toggle:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(229, 178, 93, 0.4);
        }

        .cart-label {
            font-size: 0.9rem;
            font-weight: 700;
            letter-spacing: 0.2px;
        }

        .cart-count {
            background: #000;
            color: var(--primary);
            min-width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 800;
            border: 1px solid rgba(229, 178, 93, 0.3);
        }

        /* Categories */
        .categories-nav {
            display: flex;
            align-items: center;
            padding: 0.8rem 1rem;
            background: transparent;
            border-top: 1px solid var(--border-color);
            overflow-x: auto;
            scrollbar-width: none;
            gap: 1rem;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

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

        .logo-mini {
            height: 40px;
            object-fit: contain;
        }

        .categories-list {
            display: flex;
            gap: 10px;
        }

        .cat-btn {
            background: #1a1a1a;
            border: 1px solid var(--border-color);
            padding: 10px 22px;
            border-radius: 50px;
            cursor: pointer;
            white-space: nowrap;
            font-weight: 600;
            color: var(--text-muted);
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .cat-btn.active {
            background: var(--primary);
            color: #000;
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(229, 178, 93, 0.2);
        }

        /* Main Content */
        .main-content {
            padding: 2rem 1rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            font-weight: 700;
        }

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            animation: fadeInGrid 0.8s ease-out;
        }

        @keyframes fadeInGrid {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 480px) {
            .menu-grid {
                grid-template-columns: 1fr;
                gap: 0.8rem;
            }
        }

        /* Product Card */
        .product-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            display: flex;
            transition: var(--transition);
            border: 1px solid rgba(229, 178, 93, 0.05);
            cursor: pointer;
            height: 135px;
            align-items: stretch;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-4px);
            border-color: var(--primary);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
        }

        /* Wrapper da imagem do produto â€” tamanho fixo 135x135 em todos os cards */
        .product-img-wrap {
            position: relative;
            width: 135px;
            min-width: 135px;
            height: 135px;
            flex-shrink: 0;
            overflow: hidden;
        }

        .product-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Legado: garante retrocompat caso algum img direto no card */
        .product-card > img {
            width: 135px;
            height: 135px;
            object-fit: cover;
        }

        .product-info {
            padding: 0.8rem 1rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 8px;
        }

        @media (max-width: 480px) {
            .product-info {
                padding: 0.6rem 0.8rem;
            }

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

            .product-price {
                font-size: 1rem;
            }
        }

        .product-name {
            font-weight: 700;
            font-size: 1.05rem;
            margin-bottom: 2px;
            color: white;
            letter-spacing: -0.02em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .product-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 8px;
            gap: 12px;
        }

        .product-price {
            color: var(--primary);
            font-weight: 800;
            font-size: 1.2rem;
            white-space: nowrap;
            letter-spacing: -0.02em;
        }

        .btn-add {
            background: var(--primary);
            color: #000;
            border: none;
            padding: 8px 16px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 800;
            font-size: 0.8rem;
            transition: var(--transition);
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-add:hover {
            background: var(--primary-hover);
        }

        .btn-add:disabled {
            background: #B2BEC3;
            cursor: not-allowed;
            transform: none;
        }

        /* Produto Esgotado */
        .product-card.esgotado {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .badge-esgotado {
            position: absolute;
            top: 8px;
            left: 8px;
            background: #FF4757;
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 50px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 2;
        }

        .badge-promo {
            position: absolute;
            top: 8px;
            right: 8px;
            background: #FF4757;
            color: white;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
            z-index: 2;
        }

        .product-price-wrap {
            display: flex;
            flex-direction: column;
            line-height: 1.1;
        }

        .price-old {
            font-size: 0.75rem;
            color: #FF4757;
            text-decoration: line-through;
            font-weight: 600;
        }

        .product-price.promo {
            color: var(--primary); /* Amarelo/Dourado Premium */
            font-weight: 900;
            font-size: 1.2rem;
            text-shadow: 0 0 10px rgba(229, 178, 93, 0.2);
        }

        .price-old-modal {
            font-size: 1rem;
            color: #FF4757;
            text-decoration: line-through;
            margin-right: 8px;
            font-weight: 600;
        }

        /* Sidebar Cart */
        .cart-sidebar {
            position: fixed;
            right: -100%;
            top: 0;
            width: 100%;
            max-width: 450px;
            height: 100%;
            background: rgba(13, 13, 13, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 1000;
            transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
            border-left: 1px solid var(--border-color);
        }

        .cart-sidebar.open {
            right: 0;
        }

        .cart-header {
            padding: 1.8rem;
            border-bottom: 1px solid var(--border-color);
            background: transparent;
        }

        .cart-header-top h2 {
            color: var(--primary);
            font-weight: 800;
            letter-spacing: -0.02em;
        }

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

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

        .cart-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #f1f1f1;
        }

        .cart-item-info h4 {
            font-size: 0.95rem;
            margin-bottom: 4px;
        }

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

        .cart-item-actions {
            text-align: right;
        }

        .btn-remove {
            background: none;
            border: none;
            color: #FF4757;
            cursor: pointer;
            font-size: 1.1rem;
            margin-top: 8px;
        }

        .cart-footer {
            padding: 1.8rem;
            background: rgba(26, 26, 26, 0.5);
            border-top: 1px solid var(--border-color);
        }

        /* Address Section Styles */
        .address-section {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--border-color);
        }

        .address-section h3 {
            font-size: 1rem;
            margin-bottom: 1.2rem;
            color: var(--text-main);
            font-weight: 700;
        }

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

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

        .form-group input {
            width: 100%;
            padding: 12px 15px;
            background: #1a1a1a;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            font-size: 0.95rem;
            color: white;
            outline: none;
            transition: var(--transition);
        }

        .form-group input:focus {
            border-color: var(--primary);
            background: #222;
            box-shadow: 0 0 0 3px rgba(229, 178, 93, 0.1);
        }

        .form-group input[readonly] {
            background-color: #f8f9fa;
            cursor: not-allowed;
            color: var(--text-muted);
        }

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

        .form-row .form-group {
            flex: 1;
        }

        .cep-input-wrapper {
            display: flex;
            gap: 8px;
        }

        .btn-search-cep {
            background: var(--text-main);
            color: white;
            border: none;
            padding: 0 15px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 600;
            transition: var(--transition);
        }

        .btn-search-cep:hover {
            background: black;
        }

        .error-message {
            color: #FF4757;
            font-size: 0.75rem;
            margin-top: 4px;
            display: none;
        }

        .coupon-section {
            display: flex;
            gap: 8px;
            margin-bottom: 1rem;
        }

        .coupon-section input {
            flex: 1;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            outline: none;
        }

        #btnCupom {
            background: var(--text-main);
            color: white;
            border: none;
            padding: 0 15px;
            border-radius: 8px;
            cursor: pointer;
        }

        .total-section {
            display: flex;
            justify-content: space-between;
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .btn-checkout {
            width: 100%;
            background: var(--primary);
            color: #000;
            border: none;
            padding: 18px;
            border-radius: 16px;
            font-weight: 800;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: var(--transition);
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(229, 178, 93, 0.3);
        }

        .btn-checkout:hover {
            transform: translateY(-2px);
            background: var(--primary-hover);
            box-shadow: 0 8px 25px rgba(229, 178, 93, 0.4);
        }

        /* Modal */
        .backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 900;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .backdrop.active {
            display: block;
            opacity: 1;
        }

        .modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            width: 90%;
            max-width: 500px;
            background: rgba(26, 26, 26, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            z-index: 1001;
            display: none;
            opacity: 0;
            transition: var(--transition);
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0,0,0,0.8);
        }

        .modal.active {
            display: flex; /* Changed to flex to support internal scrolling */
            flex-direction: column;
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
            max-height: 90vh; /* Constraint against screen height */
        }

        .modal-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0; /* allows shrinking in flex context */
        }

        .modal-image-wrapper {
            flex-shrink: 0;
        }

        .modal-image-wrapper img {
            width: 100%;
            height: clamp(120px, 35vh, 250px); /* Garante que a imagem nÃ£o esmague os botÃµes em telas pequenas */
            object-fit: cover;
        }

        .modal-body {
            padding: 1.5rem;
            position: relative;
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            background: white;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            z-index: 10;
        }

        .modal-info {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            margin-top: 1rem;
        }

        .modal-info h3 {
            font-size: 1.4rem;
            margin-bottom: 8px;
            flex-shrink: 0;
        }

        .product-description {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            overflow-y: auto; /* Key: allow scroll */
            flex: 1; /* Key: take available space */
            padding-right: 8px; /* For scrollbar breathing room */
        }

        .product-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-shrink: 0;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 15px;
            background: #1a1a1a;
            padding: 5px 15px;
            border-radius: 50px;
            border: 1px solid var(--border-color);
        }

        .qty-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary);
            font-weight: 800;
        }

        .qty-value {
            font-weight: 600;
            min-width: 20px;
            text-align: center;
        }

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

        .observation-wrapper label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .observation-wrapper textarea {
            width: 100%;
            height: 80px;
            padding: 12px;
            background: #1a1a1a;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            resize: none;
            font-family: inherit;
            color: white;
            margin-bottom: 1.5rem;
            outline: none;
        }

        .observation-wrapper textarea:focus {
            border-color: var(--primary);
            background: #222;
        }

        .observation-wrapper {
            flex-shrink: 0;
        }

        .modal-actions-container {
            flex-shrink: 0;
        }

        .btn-add-confirm {
            width: 100%;
            background: var(--primary);
            color: white;
            border: none;
            padding: 16px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-add-confirm:hover {
            background: var(--primary-hover);
        }

        .post-add-actions {
            display: flex;
            gap: 12px;
            width: 100%;
        }

        .btn-continue,
        .btn-go-cart {
            flex: 1;
            padding: 16px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
            border: none;
        }

        .btn-continue {
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border: 1px solid var(--border-color);
        }

        .btn-continue:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .btn-go-cart {
            background: var(--primary);
            color: #000;
        }

        .btn-go-cart:hover {
            background: var(--primary-hover);
        }

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

            .modal {
                width: 100%;
                height: auto;
                max-height: 90vh;
                top: auto;
                bottom: 0;
                transform: translate(-50%, 0) scale(1);
                border-radius: 20px 20px 0 0;
                animation: slideUp 0.3s ease-out;
            }

            .modal.active {
                transform: translate(-50%, 0) scale(1);
            }

            .modal-image-wrapper img {
                height: 200px;
            }
        }

        @keyframes slideUp {
            from {
                transform: translate(-50%, 100%);
            }

            to {
                transform: translate(-50%, 0);
            }
        }

        /* =============================================
           CHECKOUT WIZARD
        ============================================= */

        /* Cart Header â€” agora com step indicator */
        .cart-header {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            padding: 1.2rem 1.5rem 1rem;
            border-bottom: 1px solid var(--border-color);
            gap: 1rem;
            flex-shrink: 0;
        }

        .cart-header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-header-top h2 {
            font-size: 1.1rem;
            font-weight: 700;
        }

        /* Carrinho vazio */
        .empty-cart-msg {
            text-align: center;
            color: var(--text-muted);
            padding: 3rem 1rem;
            font-size: 0.95rem;
        }


        /* Step Indicator */
        .step-indicator {
            display: flex;
            align-items: center;
            gap: 0;
        }

        .step-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .step-dot {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #1a1a1a;
            color: var(--text-muted);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 800;
            transition: var(--transition);
        }

        .step-dot.active {
            background: var(--primary);
            color: #000;
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(229, 178, 93, 0.4);
        }

        .step-dot.done {
            background: #E5B25D;
            color: #000;
        }

        .step-label {
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        .step-line {
            flex: 1;
            height: 2px;
            background: var(--border-color);
            margin: 0 10px;
            margin-bottom: 16px;
            transition: background 0.4s ease;
        }

        /* Wizard Steps */
        .wizard-step {
            display: none;
            flex-direction: column;
            flex: 1;
            overflow: hidden;
            animation: none;
        }

        .wizard-step.active {
            display: flex;
            animation: fadeInStep 0.25s ease;
        }

        @keyframes fadeInStep {
            from { opacity: 0; transform: translateX(12px); }
            to   { opacity: 1; transform: translateX(0); }
        }

        /* Step body (scrollÃ¡vel) */
        .step-body {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem;
        }

        /* Step footer (fixo na base) */
        .step-footer {
            padding: 1.5rem 1.8rem 2rem;
            background: rgba(26, 26, 26, 0.5);
            border-top: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 15px;
            flex-shrink: 0;
        }

        /* Subtotal linha (etapa 1) */
        .subtotal-line {
            display: flex;
            justify-content: space-between;
            font-size: 1rem;
            font-weight: 700;
            padding: 4px 0;
        }

        .subtotal-value {
            color: var(--primary);
        }

        /* BotÃ£o Continuar */
        .btn-continue-step {
            width: 100%;
            background: var(--primary);
            color: #000;
            border: none;
            padding: 16px;
            border-radius: 14px;
            font-weight: 800;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: var(--transition);
        }

        .btn-continue-step:hover:not(:disabled) {
            background: var(--primary-hover);
            transform: translateY(-1px);
        }

        .btn-continue-step:disabled {
            background: #B2BEC3;
            cursor: not-allowed;
            transform: none;
        }

        .btn-arrow {
            font-size: 1.1rem;
        }

        /* BotÃ£o Voltar */
        .btn-back-step {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            padding: 0 0 1.2rem 0;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s;
        }

        .btn-back-step:hover {
            color: var(--primary);
        }

        /* SeÃ§Ãµes do formulÃ¡rio */
        .form-section {
            margin-bottom: 1.5rem;
        }

        .form-section-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-bottom: 1rem;
        }

        /* Radio Cards â€” Entrega/Retirada */
        .delivery-type-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .delivery-radio-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 16px 10px;
            border: 1px solid var(--border-color);
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            background: #1a1a1a;
            position: relative;
        }

        .delivery-radio-card input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .delivery-radio-card.selected {
            border-color: var(--primary);
            background: rgba(229, 178, 93, 0.1);
            box-shadow: 0 0 15px rgba(229, 178, 93, 0.2);
        }

        .delivery-radio-icon {
            font-size: 1.5rem;
            margin-bottom: 2px;
        }

        .delivery-radio-label {
            font-weight: 700;
            font-size: 0.9rem;
            color: var(--text-main);
        }

        .delivery-radio-sub {
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        /* Card de endereÃ§o da loja (retirada) */
        .store-address-card {
            background: #F0FDF4;
            border: 1.5px solid #A7F3D0;
            border-radius: 12px;
            padding: 1.2rem;
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }

        .store-address-icon {
            font-size: 1.4rem;
            flex-shrink: 0;
        }

        .store-address-text {
            font-size: 0.9rem;
            line-height: 1.7;
            color: #A7F3D0;
        }

        /* CEP wrapper (sem botÃ£o) */
        .cep-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .cep-wrapper input {
            flex: 1;
            padding-right: 36px;
        }

        .cep-status {
            position: absolute;
            right: 12px;
            font-size: 1rem;
            pointer-events: none;
        }

        /* Info de frete */
        .frete-info {
            background: #FFF8E1;
            border: 1.5px solid #FFE082;
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-top: 8px;
        }

        .frete-info.frete-ok {
            background: #F0FDF4;
            border-color: #A7F3D0;
            color: #065F46;
        }

        .frete-info.frete-erro {
            background: #FFF1F0;
            border-color: #FFA39E;
            color: #FF4757;
        }

        /* Total Breakdown (etapa 2) */
        .total-breakdown {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .breakdown-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .breakdown-row.total-row {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-main);
            padding-top: 10px;
            border-top: 1px solid var(--border-color);
            margin-top: 4px;
        }

        .discount-value {
            color: #00B894;
            font-weight: 600;
        }

        /* =============================================
           COUPON BREAKDOWN â€” Etapa 1
        ============================================= */
        .coupon-breakdown {
            background: rgba(229, 178, 93, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 12px 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            animation: fadeInStep 0.3s ease;
        }

        .cb-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .cb-desc {
            color: #00B894;
            font-weight: 600;
        }

        .cb-desc span:last-child {
            color: #00B894;
            font-weight: 700;
        }

        .cb-final {
            color: var(--text-main);
            font-weight: 700;
            font-size: 0.9rem;
            padding-top: 6px;
            border-top: 1px dashed var(--border-color);
            margin-top: 2px;
        }

        .cb-final strong {
            color: var(--primary);
            font-size: 1rem;
        }

        /* =============================================
           TOAST NOTIFICATION
        ============================================= */
        .toast-msg {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(80px);
            background: #2D3436;
            color: white;
            padding: 12px 22px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            z-index: 9999;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
            white-space: nowrap;
            opacity: 0;
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
            pointer-events: none;
        }

        .toast-msg.toast-visible {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .toast-msg.toast-success {
            background: linear-gradient(135deg, #00B894, #00CEC9);
        }

        .toast-msg.toast-error {
            background: linear-gradient(135deg, #FF4757, #FF6B81);
        }

        /* =============================================
           ORDER CONFIRMATION OVERLAY
        ============================================= */
        #orderConfirmOverlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(6px);
            z-index: 9990;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        #orderConfirmOverlay.order-confirm-visible {
            opacity: 1;
        }

        .order-confirm-box {
            background: #1a1a1a;
            border: 1px solid var(--border-color);
            border-radius: 28px;
            padding: 3rem 2rem;
            text-align: center;
            max-width: 360px;
            width: 90%;
            box-shadow: 0 30px 60px rgba(0,0,0,0.8);
            animation: confirmPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes confirmPop {
            from { transform: scale(0.7); opacity: 0; }
            to   { transform: scale(1);   opacity: 1; }
        }

        .order-confirm-emoji {
            font-size: 4rem;
            margin-bottom: 0.8rem;
            animation: wiggle 0.6s ease 0.3s both;
        }

        @keyframes wiggle {
            0%,100% { transform: rotate(0); }
            25%      { transform: rotate(-12deg); }
            75%      { transform: rotate(12deg); }
        }

        .order-confirm-title {
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .order-confirm-sub {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 0.6rem;
        }

        .order-confirm-detail {
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .order-confirm-btn {
            background: var(--primary);
            color: #000;
            border: none;
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 800;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(229, 178, 93, 0.3);
        }

        .order-confirm-btn:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 10px 28px rgba(232,93,28,0.4);
        }

        /* ===== OpÃ§Ãµes de Tipo de Entrega ===== */
        .delivery-options {
            display: flex;
            gap: 12px;
            margin-top: 8px;
        }

        .delivery-option {
            flex: 1 1 0;
            min-width: 0;
            cursor: pointer;
            display: flex;
        }

        .delivery-option input[type="radio"] {
            display: none;
        }

        .delivery-option-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 14px 12px;
            background: #1a1a1a;
            border: 2px solid var(--border-color);
            border-radius: 14px;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-muted);
            transition: all 0.25s ease;
            text-align: center;
            width: 100%;
            height: 100%;
        }

        .delivery-option input[type="radio"]:checked + .delivery-option-label {
            border-color: var(--primary);
            background: rgba(229, 178, 93, 0.1);
            color: var(--primary);
            box-shadow: 0 0 0 3px rgba(229, 178, 93, 0.15);
        }

        .delivery-option-icon {
            font-size: 1.5rem;
        }

        @media (max-width: 360px) {
            .delivery-options {
                flex-direction: column;
            }
        }
        
        .payment-options {
            gap: 8px;
        }

        /* ===== Custom Alert (Premium) ===== */
        .custom-alert-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(8px);
            display: flex; align-items: center; justify-content: center;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        .custom-alert-overlay.active { 
            opacity: 1; 
            pointer-events: auto;
        }
        .custom-alert-box {
            background: #1a1a1a;
            border: 1px solid var(--primary);
            padding: 2.5rem;
            border-radius: 24px;
            text-align: center;
            max-width: 90%;
            width: 380px;
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        }
        .custom-alert-overlay.active .custom-alert-box { 
            transform: scale(1); 
        }
        .custom-alert-icon { font-size: 3rem; margin-bottom: 1rem; }
        .custom-alert-title { color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem; font-weight: 800; }
        .custom-alert-text { color: var(--text-main); line-height: 1.6; margin-bottom: 2rem; font-size: 1rem; }
        .custom-alert-btn {
            background: var(--primary);
            color: #000;
            border: none;
            padding: 16px 30px;
            border-radius: 50px;
            font-weight: 800;
            cursor: pointer;
            width: 100%;
            font-size: 1.1rem;
            transition: all 0.2s ease;
        }
        .custom-alert-btn:active { transform: scale(0.96); }

        /* Btn buscar CEP no carrinho */
        .btn-sm.btn-edit {
            background: rgba(30, 144, 255, 0.1);
            color: #1E90FF;
            border: 1px solid rgba(30, 144, 255, 0.2);
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s ease;
            white-space: nowrap;
        }

        .btn-sm.btn-edit:hover {
            background: #1E90FF;
            color: #000;
        }


        /* =============================================
           MODAL PIX — Centralização
        ============================================= */

        #modalPix {
            max-width: 340px;
        }

        #modalPix .modal-content {
            padding: 28px 24px;
        }

        #modalPix .modal-body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            text-align: center;
            padding: 0;
            width: 100%;
        }

        #modalPix .modal-body h3 {
            width: 100%;
            text-align: center;
            color: var(--primary);
            margin-bottom: 10px;
        }

        #modalPix .modal-body p {
            width: 100%;
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 20px;
        }

        #pixQrContainer {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: #fff;
            padding: 15px;
            border-radius: 12px;
            min-height: 230px;
            width: 100%;
            margin-bottom: 20px;
        }

        #pixQrContainer img {
            display: block;
            width: 200px;
            height: 200px;
            border-radius: 8px;
            margin: 0 auto;
        }

        #pixQrContainer #pixLoading {
            text-align: center;
            color: #333;
            padding: 20px;
            width: 100%;
        }

        #modalPix .form-group {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        #btnCopiarPix {
            width: 100%;
            font-size: 0.85rem;
            padding: 12px;
            margin-bottom: 8px;
        }

        #copyPixFeedback {
            text-align: center;
            color: var(--success, #2ecc71);
            font-weight: 700;
            width: 100%;
        }

        #pixStatusMessage {
            margin-top: 15px;
            font-weight: 700;
            color: var(--primary);
            font-size: 1rem;
            width: 100%;
            text-align: center;
        }

        #closeModalPix {
            top: -10px;
            right: 0;
            font-size: 1.8rem;
            color: #999;
        }

        /* Ajuste Mobile para o Modal PIX (Centralizado e nÃ£o no rodapÃ©) */
        @media (max-width: 600px) {
            #modalPix {
                top: 50%;
                bottom: auto;
                transform: translate(-50%, -50%) scale(1);
                border-radius: 24px;
                width: 90%;
                max-width: 340px;
                animation: zoomIn 0.3s ease-out;
            }

            #modalPix.active {
                transform: translate(-50%, -50%) scale(1);
            }
        }

        @keyframes zoomIn {
            from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
            to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }