﻿:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ff8e8e;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

    .logo h1 span {
        color: var(--dark-color);
    }

.logo p {
    font-size: 12px;
    color: var(--gray-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .search-box input {
        border: none;
        padding: 8px 12px;
        width: 200px;
        outline: none;
    }

    .search-box button {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 0 15px;
        cursor: pointer;
        transition: var(--transition);
    }

        .search-box button:hover {
            background-color: var(--secondary-color);
        }

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--dark-color);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

nav {
    background-color: white;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.categories {
    display: flex;
    list-style: none;
    overflow-x: auto;
    padding: 15px 0;
    gap: 15px;
}

    .categories li {
        padding: 8px 15px;
        border-radius: var(--border-radius);
        cursor: pointer;
        white-space: nowrap;
        transition: var(--transition);
    }

        .categories li:hover {
            background-color: #f0f0f0;
        }

        .categories li.active {
            background-color: var(--primary-color);
            color: white;
        }

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.product-image {
    height: 180px;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-description {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .add-to-cart:hover {
        background-color: var(--secondary-color);
    }

.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: flex-end;
}

.cart-container {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    overflow-y: auto;
    padding: 20px;
 /*   display: flex;*/
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .cart-header h2 {
        font-size: 20px;
        font-weight: 600;
    }

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

    .close-cart:hover {
        color: var(--dark-color);
    }

.delivery-options {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

    .delivery-options h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .option-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

.address-form {
    margin-top: 15px;
    display: none;
}

    .address-form h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

.form-group {
    margin-bottom: 10px;
}

    .form-group input {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
        outline: none;
    }

        .form-group input:focus {
            border-color: var(--primary-color);
        }

#searchCep {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 5px;
}

    #searchCep:hover {
        background-color: var(--secondary-color);
    }

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

    .quantity-btn:hover {
        background-color: #f0f0f0;
    }

.cart-item-quantity {
    min-width: 20px;
    text-align: center;
}

.remove-item {
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
}

    .remove-item:hover {
        color: var(--primary-color);
    }

.empty-cart {
    text-align: center;
    color: var(--gray-color);
    margin-top: 50px;
}

.cart-summary {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .summary-row.total {
        font-weight: 600;
        font-size: 18px;
        margin-top: 10px;
    }

.checkout-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

    .checkout-btn:hover {
        background-color: var(--secondary-color);
    }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

    .whatsapp-float a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        background-color: #25D366;
        color: white;
        border-radius: 50%;
        font-size: 30px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
    }

        .whatsapp-float a:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-box input {
        width: 150px;
    }

    .cart-container {
        max-width: 100%;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

        .whatsapp-float a {
            width: 50px;
            height: 50px;
            font-size: 25px;
        }
}

.payment-methods {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

    .payment-methods h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .payment-options label {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        padding: 8px;
        border-radius: var(--border-radius);
        transition: var(--transition);
    }

        .payment-options label:hover {
            background-color: #f5f5f5;
        }

    .payment-options i {
        font-size: 18px;
        width: 20px;
        cart-items
    }

.change-field {
    margin-left: 15px;
    display: none;
    align-items: center;
    gap: 5px;
}

    .change-field input {
        width: 80px;
        padding: 5px;
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
    }

.payment-options input[type="radio"]:checked ~ .change-field {
    display: flex;
}

/* Adicione no final do seu CSS */
.whatsapp-message {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
    white-space: pre-line;
    line-height: 1.6;
}

/* Adicione no final do seu CSS */
.order-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .order-confirmation.show {
        opacity: 1;
    }

.confirmation-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

    .confirmation-content i {
        font-size: 50px;
        color: #28a745;
        margin-bottom: 15px;
    }

    .confirmation-content h3 {
        margin-bottom: 10px;
        color: #333;
    }

    .confirmation-content p {
        color: #666;
    }

/* Adicione para os campos de endereço */
#addressForm input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Estilo para os radio buttons selecionados */
input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

/* Adicione ao seu CSS */
#searchCep .fa-spinner {
    margin-right: 5px;
}

#cep:disabled {
    background-color: #f5f5f5;
    cursor: wait;
}


