/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF; /* Branco */
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #FFFFFF;
    border-bottom: 2px solid #6AB18E; /* Verde Água para borda decorativa */
}

.logo-container {
    margin-right: 20px;
}

.logo {
    max-width: 200px; /* increased to harmonize size */
    height: auto;
}

.store-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #B54D81; /* Rosa para título */
    font-weight: 700;
}

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

/* Catalog Section */
.catalog {
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    justify-content: center;
    gap: 20px;
    align-items: start;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #B54D81; /* Rosa */
    margin-bottom: 30px;
}

.product-card {
    padding: 20px;
    border: 1px solid #6AB18E; /* Verde Água para borda */
    border-radius: 8px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #B54D81; /* Rosa */
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2em;
    color: #6AB18E; /* Verde Água */
    margin-bottom: 15px;
}

.selection-section {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    background-color: #fafafa;
}

.section-title-small {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: #B54D81; /* Rosa */
    margin-bottom: 10px;
    text-align: left;
}

.covering-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    background-color: #fff;
    min-height: 60px; /* Para list box */
}

.covering-select:focus {
    outline: none;
    border-color: #6AB18E; /* Verde Água ao focar */
    box-shadow: 0 0 5px rgba(106,177,142,0.5);
}

.covering-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.covering-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.covering-option:hover {
    background-color: #f9f9f9;
}

.covering-option input[type="radio"] {
    margin: 0;
}

.flavor-selection {
    margin-bottom: 10px;
}

.qty-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.qty-input,
.text-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.modalFlavorQty {
    width: 80px;
    padding: 8px 20px 8px 15px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    -moz-appearance: textfield;
}

.modalFlavorQty::-webkit-outer-spin-button,
.modalFlavorQty::-webkit-inner-spin-button {
    margin: 0;
}

.modalFlavorQty:focus,
.qty-input:focus,
.text-input:focus {
    outline: none;
    border-color: #6AB18E; /* Verde Água ao focar */
    box-shadow: 0 0 5px rgba(106,177,142,0.5);
}

/* Form */
.order-form {
    margin-top: 30px;
}


.buyer-info {
    max-width: 400px;
    margin: 0 auto 20px;
    text-align: left;
}

.buyer-info label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.buyer-info .text-input {
    margin-bottom: 15px;
}

.submit-btn {
    background-color: #B54D81; /* Rosa */
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #9A3D6A; /* Tom mais escuro do rosa */
}

/* Checkout Section */
.checkout {
    text-align: center;
}

/* .total-display {
    margin-bottom: 30px;
    opacity: 0.7;
} */

.total-display {
    width: fit-content;
    /* Centraliza o bloco na página/modal */
    margin: 20px auto;
    padding: 15px;
    /* Fundo branco com 70% de opacidade */
    background-color: rgba(128, 128, 128, 0.2); 
    border: none; /* Remove a borda anterior */
    border-radius: 10px;
    text-align: center;
    /* Opcional: um leve sombreamento para não "sumir" no fundo */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
}

.total-text {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #92295d; /* Rosa */
}

.buyer-summary {
    margin-bottom: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}

.pix-section {
    max-width: 600px;
    margin: 0 auto;
}

.pix-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #B54D81; /* Rosa */
    margin-bottom: 15px;
}

.pix-instruction {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.pix-code {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #6AB18E; /* Verde Água */
    border-radius: 4px;
    font-family: monospace;
    resize: none;
    margin-bottom: 15px;
}

.copy-btn {
    background-color: #6AB18E; /* Verde Água */
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #5A9B7A; /* Tom mais escuro do verde água */
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.review-modal {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: left;
    border: 1px solid rgba(181, 77, 129, 0.1);
}

.review-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    color: #B54D81;
}

.review-modal .summary {
    margin-bottom: 20px;
    font-size: 1em;
}

.review-modal .btn-group {
    display: flex;
    justify-content: space-between;
}

.review-modal .btn-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.review-modal .btn-back {
    background: #ccc;
}

.review-modal .btn-confirm {
    background: #B54D81;
    color: #fff;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #FFFFFF;
    border-top: 2px solid #6AB18E; /* Verde Água */
    margin-top: 40px;
}

.footer p {
    color: #666;
}

.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #B54D81 0%, #6AB18E 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    z-index: 999;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.15);
}

.cart-summary {
    font-weight: 600;
}

.cart-btn {
    background: #fff;
    color: #B54D81;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    background-color: #ffffff;
    border-left: 2px solid #6AB18E;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 20px;
    overflow-y: auto;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
}

.cart-items-list {
    margin-bottom: 20px;
}

.cart-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
}

.cart-item-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.cart-item-actions button {
    border: 1px solid #6AB18E;
    background: #fff;
    color: #6AB18E;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
}

.checkout-form label {
    display: block;
    margin-top: 8px;
    font-weight: 500;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    margin: 6px 0 12px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.cart-total,
.delivery-fee {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-overlay,.customize-modal {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay {
    display: none;
}

.modal-overlay[style*="display: flex"] {
    display: flex;
    opacity: 1;
}

.customize-modal {
    max-width: 450px;
    width: 90%;
    margin: auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    top: 0;
    opacity: 1;
    border: 1px solid rgba(181, 77, 129, 0.1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Checkout Styles */
.checkout-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(181, 77, 129, 0.1);
}

.checkout-card h3 {
    font-family: 'Playfair Display', serif;
    color: #B54D81;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.checkout-card .buyer-summary,
.checkout-card .delivery-summary {
    font-size: 1.1em;
    line-height: 1.6;
}

.checkout-card .order-items-summary ul {
    list-style: none;
    padding: 0;
}

.checkout-card .order-items-summary li {
    margin-bottom: 15px;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #6AB18E;
}

.checkout-card .order-items-summary li ul {
    margin-top: 10px;
    padding-left: 20px;
}

.checkout-card .order-items-summary li ul li {
    background: none;
    border-left: none;
    padding: 5px 0;
    margin-bottom: 5px;
}

.total-card {
    background: linear-gradient(135deg, #B54D81 0%, #6AB18E 100%);
    color: #fff;
    text-align: center;
}

.total-card .total-text {
    font-size: 2.2em;
    margin: 0;
    font-weight: 700;
}

.checkout-card .pix-section {
    text-align: center;
}

.checkout-card .pix-title {
    color: #B54D81;
    margin-bottom: 10px;
}

.checkout-card .pix-instruction {
    margin-bottom: 15px;
    font-size: 1em;
}

.checkout-card .pix-code {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: monospace;
    resize: none;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.checkout-card .copy-btn {
    background: #6AB18E;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-card .copy-btn:hover {
    background: #5A9B7A;
}

.flavor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .product-card {
        width: 100%;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

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

    .cart-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
}

