:root {
    --primary: #FEE12B;
    /* Brasil Yellow */
    --primary-dim: rgba(254, 225, 43, 0.2);
    --secondary: #009c3b;
    /* Brasil Green */
    --secondary-dark: #007c2f;
    --blue: #002776;
    /* Brasil Blue */
    --light: #f4f6f8;
    --dark: #121c26;
    --darker: #0d151c;
    --card-bg: #ffffff;
    --card-border: #e0e6ed;
    --text-main: #333333;
    --text-muted: #6c757d;
    --whatsapp: #25D366;
    --gold: #d4af37;
    --silver: #c0c0c0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #F0F0F0;
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 50px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

.hero {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(254, 225, 43, 0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #FFF;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.hero-content h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.info-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--blue) 80%, var(--darker) 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    gap: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.info-banner .icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
}

.info-banner h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.info-banner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
}

.info-banner p strong {
    color: #FFF;
}

.section-title {
    font-size: 1.8rem;
    margin: 50px 0 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    text-shadow: none;
}

.section-title span {
    font-size: 0.8rem;
    background: var(--primary);
    color: var(--blue);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
    text-shadow: none;
}

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

.product-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--blue) 80%, var(--darker) 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.kit-card {
    border-top: 5px solid var(--secondary);
}

.kit-card.premium {
    border-top: 5px solid var(--gold);
}

.product-image {
    height: 240px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background: transparent;
    border-bottom: none;
    position: relative;
    overflow: visible;
}

.product-image img {
    height: 130%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-image img {
    transform: scale(1.15) translateY(-5px);
}

/* Stacked Kit images */
.stacked-img .main {
    position: relative;
    z-index: 1;
    height: 110%;
    transform: translateX(-20px);
}

.stacked-img .overlay {
    position: absolute;
    height: 80%;
    right: -10px;
    bottom: -10px;
    z-index: 2;
    transform: rotate(15deg);
    filter: drop-shadow(-8px 15px 20px rgba(0, 0, 0, 0.5));
}

.product-card:hover .stacked-img .main {
    transform: translateX(-20px) scale(1.15) translateY(-5px);
}

.product-card:hover .stacked-img .overlay {
    transform: rotate(20deg) scale(1.2) translateY(-5px);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Inline Eco Pill instead of overlaid badge */
.eco-pill {
    display: inline-block;
    background: var(--secondary);
    color: #FFF;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eco-pill.premium-pill {
    background: var(--gold);
    color: #000;
}

.eco-pill.muted-pill {
    background: var(--blue);
}

.product-info h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: #FFF;
    font-weight: 900;
}

.product-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.price-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.old-price {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    margin-bottom: -2px;
}

.price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 900;
}

.kit-card.premium .price {
    color: var(--gold);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    margin: 0 20px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.controls button {
    background: #FFF;
    border: 1px solid #d1d9e6;
    color: var(--blue);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.controls button:hover {
    background: var(--secondary);
    color: #FFF;
    border-color: var(--secondary);
}

.kit-card.premium .controls button:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.controls .qty {
    font-weight: 800;
    font-size: 1.2rem;
    width: 40px;
    text-align: center;
    color: var(--primary);
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 75px;
    height: 75px;
    background: var(--primary);
    color: var(--blue);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.floating-cart:hover {
    transform: scale(1.1);
    background: var(--secondary);
    color: #FFF;
}

.floating-cart svg {
    width: 32px;
    height: 32px;
}

.cart-counter {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #FFF;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 2px solid #FFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Floating WhatsApp Duvidas */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: #FFF;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
}

.floating-whatsapp:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Cart Sidebar Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 39, 118, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    display: flex;
    justify-content: flex-end;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: #FFF;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

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

.cart-header {
    background: var(--blue);
    color: #FFF;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 900;
}

.close-cart {
    background: none;
    border: none;
    color: #FFF;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
}

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
    font-size: 1.1rem;
}

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

.cart-item-info h5 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 800;
}

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

.cart-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f4f6f8;
    padding: 4px 8px;
    border-radius: 8px;
    width: max-content;
    border: 1px solid #e0e6ed;
}

.cart-controls button {
    background: #e0e6ed;
    border: none;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--darker);
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: 0.2s;
}

.cart-controls button:hover {
    background: var(--primary);
    color: #FFF;
}

.cart-controls span {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
    min-width: 15px;
    text-align: center;
}

.cart-item-price {
    font-weight: 900;
    color: var(--secondary-dark);
    font-size: 1.2rem;
}

.cart-summary {
    padding: 25px;
    background: #f4f6f8;
    border-top: 1px solid #e0e6ed;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.summary-row .banca-value {
    text-decoration: line-through;
}

.summary-row.aggressive-highlight {
    color: #FFF;
    font-weight: 900;
    font-size: 1.3rem;
    background: linear-gradient(90deg, #ff0000, #ff5e00);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-transform: uppercase;
    border: 2px solid #ffcc00;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    animation: pulse_economy 1.5s infinite;
}

@keyframes pulse_economy {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 25px rgba(255, 204, 0, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    }
}

.summary-row.total-row {
    border-top: 2px dashed #cbd5e1;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--blue);
    font-weight: 900;
    align-items: center;
}

.pix-area {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--blue) 80%, var(--darker) 100%);
    border: 2px solid var(--primary);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pix-title {
    font-size: 1rem;
    color: #FFF;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.pix-box {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pix-box strong {
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
    color: #FFF;
    font-family: monospace;
    word-break: break-all;
    text-align: center;
}

.pix-box .btn-copy {
    flex-shrink: 0;
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.pix-box .btn-copy:hover {
    background: #FFF;
    color: var(--blue);
}

.btn-whatsapp {
    width: 100%;
    background: var(--whatsapp);
    color: #FFF;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-checkout {
    width: 100%;
    padding: 20px;
    background: #00D345;
    color: #FFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 12px;
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0, 211, 69, 0.6);
    animation: pulse_btn 1.5s infinite;
}

.btn-checkout:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 211, 69, 0.8);
    background: #11EB5D;
}

@keyframes pulse_btn {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 211, 69, 0.7);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 15px rgba(0, 211, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 211, 69, 0);
    }
}

/* Checkout Overlay Modal */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-overlay.active {
    display: flex;
    opacity: 1;
}

.checkout-modal {
    background: #FFF;
    width: 96%;
    max-width: 700px;
    max-height: 98vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.checkout-overlay.active .checkout-modal {
    transform: scale(1);
}

.checkout-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--blue) 80%, var(--darker) 100%);
    color: #FFF;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
}

.checkout-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
}

.close-checkout {
    background: none;
    border: none;
    color: #FFF;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.checkout-content {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    background: #F8F9FA;
}

.checkout-summary-box {
    background: #FFF;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.checkout-summary-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--dark);
    text-transform: uppercase;
}

#checkoutSummaryList {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#checkoutSummaryList li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #555;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--darker);
}

.qr-code-section {
    text-align: center;
    margin-bottom: 25px;
}

.qr-instruction {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 15px;
}

.qr-image-wrapper {
    background: #FFF;
    padding: 15px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary);
}

.qr-image-wrapper img {
    width: 320px;
    height: 320px;
    display: block;
}

.btn-copy-large {
    width: 100%;
    background: #E0E0E0;
    color: var(--darker);
    border: 2px dashed #999;
    padding: 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-copy-large:hover {
    background: var(--primary);
    color: var(--dark);
    border-style: solid;
}

.wpp-instruction {
    text-align: center;
    font-weight: 700;
    color: var(--dark);
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Animations */
.rei-banner-section {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 50px;
    padding: 50px 30px;
    position: relative;
    background-image: url('assets/stadium.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    border: 2px solid var(--secondary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rei-banner-section.top-banner {
    margin-top: 0;
    margin-bottom: 50px;
    border-radius: 0 0 40px 40px;
    border: none;
    border-bottom: 5px solid var(--primary);
    padding-bottom: 70px;
}

.rei-banner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%);
}

.rei-banner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 950px;
    width: 100%;
}

.rei-image-wrapper {
    width: 320px;
    height: auto;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(254, 225, 43, 0.4);
    border: 4px solid var(--yellow);
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rei-image-wrapper:hover {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 0 50px rgba(254, 225, 43, 0.7);
}

.rei-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.rei-text {
    color: #FFF;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    max-width: 500px;
}

.rei-text h3 {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 15px;
}

.rei-text p {
    font-size: 1.2rem;
    color: #FFF;
    font-weight: 500;
}

@media(max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: auto;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .info-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-top: 20px;
    }

    .info-banner .icon {
        justify-content: center;
    }

    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        padding: 10px 18px;
        border-radius: 50px;
        gap: 8px;
    }

    .floating-whatsapp span { 
        display: block; 
        font-size: 0.95rem; 
    }

    .floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }

    .floating-cart {
        bottom: 20px;
        right: 20px;
        width: 65px;
        height: 65px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .rei-banner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 10px 0;
    }

    .rei-image-wrapper {
        transform: rotate(0deg);
        width: 290px;
        height: 360px;
        margin: 0 auto;
    }

    .rei-text h3 {
        font-size: 2.3rem;
    }

    .rei-text p {
        font-size: 1.1rem;
    }
}