/* css/style.css - Atualizado com prompts */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #F5F7FA;
    color: #1A1A1A;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 520px;
    margin: 0 50px; /* mais espaço lateral para equilíbrio */
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 18px;
    border: 1px solid #E1E4E8;
    border-radius: 10px;
    font-size: 16px;
    height: 50px; /* altura fixa para alinhamento perfeito */
}

.search-icon.modern {
    position: absolute;
    right: 16px;
    top: 35%;
    transform: translateY(-50%);
    pointer-events: none;
    stroke: #1F3C88;
    transition: stroke 0.2s;
}


.search-bar input:focus + .search-icon.modern {
    stroke: #2F5BEA;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #1F3C88;
    pointer-events: none;
}

.search-results {
    position: absolute;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.search-result-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #E1E4E8;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #F5F7FA;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #1F3C88;
    font-size: 18px;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-btn {
    background: #F5F7FA;
    border: 2px solid #E1E4E8;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-btn:hover {
    border-color: #1F3C88;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(31,60,136,0.15);
}

.payment-btn.pix { border-left: 6px solid #00BFA5; }
.payment-btn.vale { border-left: 6px solid #7AC943; }


.success-content {
    max-width: 700px;
    margin: 80px auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 120px;
    color: #7AC943;
    animation: bounce 0.6s ease-in-out;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}


.order-details {
    background: white;
    border: 1px solid #E1E4E8;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    text-align: left;
}

.header-actions button {
    background: #1F3C88;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.header-actions button:hover {
    background: #2F5BEA;
}

.header-actions button:active {
    transform: scale(0.98);
}

.cart-icon {
    font-size: 26px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #1F3C88;
    padding: 8px;           /* ← espaço interno extra */
}

#cart-count {
    background: #7AC943;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -8px;
    padding: 0 6px;
}

/* Banner Carousel */
.banner-carousel {
    margin-top: 80px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-container {
    position: relative;
    padding: 0 90px;          /* espaço amplo nas laterais para setas ficarem bem afastadas */
    margin: 0 -20px;          /* compensa o padding para manter centralização */
}

.carousel-track.horizontal {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 0 20px;
    scrollbar-width: none;
    scroll-behavior: smooth; /* ← importante para o scrollBy smooth */
}

.carousel-track.horizontal::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-slide {
    flex: 0 0 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 60, 136, 0.6);
    color: white;
    border: none;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* Promo Cards – centralizados */
.promo-section {
    padding: 40px 0;
}

.prev, .next {
    position: absolute;
    top: 50%;
    background: rgba(31, 60, 136, 0.5);
    color: #FFFFFF;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.prev:hover, .next:hover {
    background: #1F3C88;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Promo Cards */
.promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    justify-items: center;
}

.promo-card {
    background: white;
    border: 1px solid #E1E4E8;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-section {
    padding: 50px 0;
}

.promo-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.promo-card h3 {
    font-weight: 600;
    color: #1F3C88;
}

/* Product Carousel */
.product-carousel h2 {
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 20px;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
}

.product-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-width: 220px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.carousel-arrow.left { left: -20px; }
.carousel-arrow.right { right: -20px; }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-80%);
    background: rgba(67, 77, 104, 0.7);
    color: white;
    border: none;
    font-size: 35px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    line-height: 1;            /* ← remove espaçamento extra da linha */
    font-weight: bold;         /* deixa o símbolo mais firme */
    padding-bottom: 4px;       /* pequeno ajuste fino para centralizar visualmente */
}


.product-card h3 {
    font-weight: 600;
    color: #1A1A1A;
}

.product-card .price {
    font-weight: 700;
    color: #7AC943;
}

.product-card button {
    background: #1F3C88;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.product-card button:hover {
    background: #2F5BEA;
}

/* Newsletter */
.newsletter {
    background: #1F3C88;
    color: white;
    padding: 60px 0;
}

.newsletter .container {
    text-align: center;
}

.newsletter h2 {
    font-weight: 700;
}

.newsletter p {
    font-weight: 400;
    margin-bottom: 20px;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter input {
    padding: 12px;
    border: none;
    border-radius: 6px;
    width: 200px;
    font-size: 16px;
}

.newsletter button {
    background: #7AC943;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;           /* ← mais espaço entre botão e carrinho */
}

.consult-btn {
    background: #1F3C88;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.consult-btn:hover {
    background: #2F5BEA;
}


.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 24px auto 0;
}

.newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter button:hover {
    background: #5A9A32;
}

.newsletter-form button {
    background: #7AC943;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.newsletter button:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    background: #F5F7FA;
    padding: 40px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
}

.footer h4 {
    font-weight: 700;
    color: #1A1A1A;
}

.footer p {
    color: #6B7280;
}

.footer-payments img, .footer-seals img {
    height: 30px;
    margin-right: 10px;
}

.footer-bottom {
    background: #1F3C88;
    color: #FFFFFF;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Modal da Cesta */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    z-index: 2000;
    overflow-y: auto;
}

.cart-modal.open {
    right: 0;
}

.cart-modal-content {
    padding: 30px;
    position: relative;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    cursor: pointer;
    color: #6B7280;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #E1E4E8;
}

.cart-total {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

.cart-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}


.cart-buttons button {
    background: #1F3C88;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.2s;
}

.cart-buttons button:hover {
    background: #2F5BEA;
}

.cart-buttons button:first-child {
    background: #F5F7FA;
    border: 1px solid #E1E4E8;
    color: #1F3C88;
}

.cart-buttons button:last-child {
    background: #7AC943;
    border: none;
    color: white;
}

/* Página de Produto */
.product-page {
    margin-top: 120px; /* Aumentado para acomodar header + espaço de respiro */
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 para desktop */
    gap: 60px;
    padding: 40px 0;
}

.product-gallery {
    display: flex;
    gap: 20px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100px;
}

.thumbnails img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.thumbnails img:hover {
    border-color: #2F5BEA;
}

.thumbnails img.active,
.thumbnails img:hover {
    border-color: #1F3C88;
    transform: scale(1.05);
}


.main-image img {
    width: 100%;
    border-radius: 12px;
    cursor: zoom-in;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.zoom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.zoom-modal.active {
    display: flex;
}


#zoom-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}


.zoom-modal.active #zoom-img {
    transform: scale(1);
}


.zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 48px;
    cursor: pointer;
    opacity: 0.8;
}

/* Seleção de tamanho (botões pill) */
.product-sizes h3 {
    margin-bottom: 12px;
    color: #1A1A1A;
    font-weight: 600;
}

#size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.size-btn {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: #2F5BEA;
    background: #F5F7FA;
}

.size-btn.active {
    background: #1F3C88;
    color: white;
    border-color: #1F3C88;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-controls button {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-controls button:hover {
    background: #F5F7FA;
}

.quantity-controls input {
    width: 70px;
    text-align: center;
    border: 1px solid #E1E4E8;
    border-radius: 8px;
    padding: 10px;
    font-size: 18px;
}



.product-info h1 {
    font-weight: 700;
    color: #1F3C88;
    font-size: 28px;
}

.product-rating {
    color: #FFD700;
    font-size: 16px;
    margin: 10px 0;
}

.product-price {
    font-weight: 700;
    font-size: 24px;
    color: #1A1A1A;
}

.product-sizes label {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 20px;
    padding: 8px 16px;
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.product-sizes input:checked + span {
    background: #1F3C88;
    color: #FFFFFF;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.product-quantity button {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-quantity button:hover {
    background: #F5F7FA;
}

.product-quantity input {
    width: 60px;
    text-align: center;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    padding: 8px;
}

.add-to-cart {
    background: #7AC943;
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin: 24px 0;
    transition: background 0.2s, transform 0.1s;
}

.add-to-cart:hover {
    background: #5A9A32;
}

.add-to-cart:active {
    transform: scale(0.98);
}

.product-description, .product-features {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.product-description h3, .product-features h3 {
    font-weight: 600;
    color: #1F3C88;
}

.product-features ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #6B7280;
}

/* Página de Carrinho */
.cart-page {
    display: flex;
    gap: 40px;
    margin-top: 160px;
    margin-bottom: 40px;
    padding-bottom: 60px;
}

.cart-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; /* Responsivo: empilha em telas menores */
}


.checkout-layout, .payment-layout {
    display: flex;
    gap: 40px;
}

.checkout-forms, .payment-main {
    flex: 2;
}


.cart-list {
    flex: 2;
    min-width: 300px;
}

.cart-item-full {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}

.cart-item-full:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


.cart-item-full img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-full h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F5F7FA;
    border-radius: 8px;
    padding: 8px 12px;
}

.cart-quantity button {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #1F3C88;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity span {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Botão Remover */
.cart-item-full button[onclick^="removeItem"] {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    color: #ff4d4f;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item-full button[onclick^="removeItem"]:hover {
    background: #fff1f0;
    border-color: #ff4d4f;
}

.cart-summary {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 120px; /* Fica fixo ao rolar */
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    color: #6B7280;
}

.summary-item.total {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    border-top: 1px solid #E1E4E8;
    padding-top: 12px;
    margin-top: 12px;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-continue,
.btn-finalize {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue {
    background: #FFFFFF;
    border: 1px solid #1F3C88;
    color: #1F3C88;
}

.btn-continue:hover {
    background: #F5F7FA;
}

.btn-finalize:hover {
    background: #5A9A32;
    transform: translateY(-2px);
}



.cart-summary div {
    margin-bottom: 10px;
    font-weight: 500;
}

.cart-summary .total {
    font-weight: 700;
    font-size: 20px;
}

.finalize {
    background: #7AC943;
    color: #FFFFFF;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.finalize:hover {
    background: #5A9A32;
}

/* Checkout Page */
.checkout-page {
    display: flex;
    gap: 40px;
    margin-top: 100px;
}

.checkout-sections {
    flex: 2;
}

.checkout-sections section {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.checkout-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 40px;
    margin-bottom: 32px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.checkout-section:not(.active) {
    opacity: 0.6;
    transform: translateY(10px);
}


.checkout-section.hidden {
    display: none;
}



.checkout-sections h2 {
    font-weight: 600;
    color: #1F3C88;
    margin-bottom: 15px;
}

.checkout-sections label {
    display: block;
    margin-bottom: 5px;
    color: #6B7280;
}

.checkout-sections input {
    width: 100%;
    padding: 10px;
    border: 1px solid #E1E4E8;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.checkout-sections input:focus {
    border-color: #1F3C88;
}

.order-summary {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 90px;
    align-self: flex-start;

}

.order-summary h2 {
    font-weight: 600;
    color: #1F3C88;
}

/* Payment Page - Similar to Checkout */

.payment-page {
    display: flex;
    gap: 40px;
    margin-top: 100px;
}

.payment-options button {
    background: #F5F7FA;
    border: 1px solid #E1E4E8;
    padding: 15px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.payment-options button:hover {
    background: #E1E4E8;
}

/* Success Page */
.success-page {
    text-align: center;
    margin-top: 100px;
}

.success-page h1 {
    font-weight: 700;
    color: #7AC943;
    font-size: 32px;
}

.success-page p {
    color: #6B7280;
}

/* Consult Page - Similar styling */

.consult-page form {
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    margin: 100px auto 40px;
}

@media (max-width: 768px) {
    .product-page, .cart-page, .checkout-page, .payment-page {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .cart-modal {
        width: 100%;
        right: -100%;
    }
}

.consult-link {
    color: #1F3C88;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s, transform 0.1s;
    padding: 8px 12px;
    border-radius: 6px;
}

.consult-link:hover {
    color: #2F5BEA;
    background: rgba(31, 60, 136, 0.08);
    transform: translateY(-1px);
}

.consult-link:active {
    transform: translateY(0);
}

.spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 6px solid #1F3C88;
    border-top: 6px solid #7AC943;
    border-radius: 50%;
    animation: spin 1.1s linear infinite;
    margin-bottom: 20px;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-overlay p {
    color: #1F3C88;
    font-weight: 600;
    font-size: 18px;
}

.btn-primary {
    background: #1F3C88;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #2F5BEA;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31,60,136,0.25);
}


.arrow {
    font-size: 20px;
}


.hidden {
    display: none !important;
}

.floating-label-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 16px 8px;
    border: none;
    border-bottom: 2px solid #E1E4E8;
    background: transparent;
    font-size: 16px;
    transition: border-bottom-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: #1F3C88;
    outline: none;
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #6B7280;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
    top: 4px;
    left: 12px;
    font-size: 12px;
    color: #1F3C88;
}


.payment-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    padding: 40px;
    min-height: 400px;
    position: relative;
}

.payment-fieldset {
    border: 1px solid #E1E4E8;
    border-radius: 12px;
    padding: 32px;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    min-height: 300px;
}


.loading-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.loading-state p {
    margin-top: 16px;
    color: #1F3C88;
    font-weight: 500;
    font-size: 16px;
}

.loading-state:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.pix-success, .vale-success {
    text-align: center;
}

.vale-success {
    text-align: center;
    padding: 40px;
}


.pix-success {
    text-align: center;
}


.qr-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: inline-block;
    margin: 0 auto 24px;
}

#qr-code {
    max-width: 280px;
    border-radius: 8px;
}

.pix-text {
    margin: 12px 0;
    color: #4B5563;
    font-size: 15px;
}


.pix-code-box {
    background: #F8FAFC;
    border: 1px solid #E1E4E8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    margin: 16px 0;
}

#pix-code {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 15px;
}

.copy-btn {
    background: #1F3C88;
    color: white;
    border: none;
    padding: 0 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #2F5BEA;
}


.success-check {
    font-size: 80px;
    color: #7AC943;
    margin-bottom: 16px;
}


.success-text {
    font-size: 22px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 24px;
}


.btn-primary.large {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 12px;
}

.security-info {
    margin-top: 40px;
    padding: 24px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E1E4E8;
}

.error {
    color: #ff4d4f;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    background: #fff1f0;
    border-radius: 10px;
    margin: 20px 0;
}

.security-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1F3C88;
}

.security-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-info li {
    margin-bottom: 12px;
    color: #4B5563;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.security-info li:before {
    content: "✓";
    color: #7AC943;
    font-weight: bold;
}

.pix-fieldset {
    padding: 32px;
}

.pix-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pix-icon {
    background: #00BFA5;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.pix-info {
    color: #4B5563;
    font-size: 14px;
    text-align: center;
}


.pix-amount {
    font-size: 20px;
    margin-bottom: 24px;
}

.pix-amount strong {
    color: #7AC943;
    font-size: 28px;
}


/* Vale Presente - Fieldset */
.vale-fieldset {
    padding: 32px 40px;
    background: #FFFFFF;
    border: 1px solid #E1E4E8;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* Formulário Vale */
.vale-form {
    display: flex;
    flex-direction: column;
    gap: 28px; /* espaçamento maior entre campos */
}

.vale-form .form-group {
    position: relative;
}

.vale-form input {
    width: 100%;
    padding: 18px 16px 6px;
    font-size: 16px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vale-form input:focus {
    border-color: #1F3C88;
    box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.1);
    outline: none;
}

.vale-form label {
    position: absolute;
    top: 18px;
    left: 16px;
    color: #6B7280;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.vale-form input:focus + label,
.vale-form input:not(:placeholder-shown) + label {
    top: 6px;
    left: 12px;
    font-size: 12px;
    color: #1F3C88;
    background: white;
    padding: 0 6px;
}

/* Botão Validar */
.validate-btn {
    margin-top: 12px;
    padding: 18px;
    font-size: 17px;
}

/* Loading e Sucesso */
.vale-success {
    text-align: center;
    padding: 40px 20px;
}

@keyframes pop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.success-message {
    font-size: 18px;
    color: #4B5563;
    margin-bottom: 32px;
}

.finish-btn {
    padding: 18px 48px;
    font-size: 18px;
    border-radius: 12px;
}

.btn-secondary {
    background: #F5F7FA;
    color: #1F3C88;
    border: 1px solid #1F3C88;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #E1E4E8;
    transform: translateY(-2px);
}

