* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis de Cor Mantidas do logo 'Bella Maria' */
:root {
    /* Cores ajustadas para o logo BELLA MARIA (Marrom Escuro e Branco) */
    --primary-color: #6C4E44;
    /* Marrom escuro da tipografia/símbolo */
    --secondary-color: #4A352F;
    /* Marrom mais escuro para hover/contraste */
    --accent-color: #B8860B;
    /* Dourado/Bronze para destaque sofisticado */
    --dark-color: #382823;
    /* Tom de fundo escuro para seções específicas */
    --light-bg: #F5F5F5;
    /* Cinza claro suave, quase branco */
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner de Desconto */
.discount-banner {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--primary-color);
}

.cart-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
}

.cart-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 53, 47, 0.3);
}

.cart-count {
    background: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    /* Imagem de Fundo atualizada para tema de Moda */
    background-image: url("image/bnner1.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Fundo um pouco mais claro para destacar o texto */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-title {
    font-size: 72px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Categorias */
.categories {
    padding: 80px 0;
    background: var(--dark-color);
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.category-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 25px 20px 10px;
    font-size: 24px;
    color: var(--text-dark);
}

.category-link {
    display: block;
    padding: 0 20px 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--accent-color);
}

/* Produtos */
.products {
    padding: 80px 0;
    background: var(--light-bg);
}

.products .section-title {
    color: var(--text-dark);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-controls label {
    font-weight: 500;
    color: var(--text-dark);
}

.sort-select {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.newsletter-title {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.newsletter-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 25px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-input {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
}

.footer-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-input:focus {
    outline: none;
    border-color: var(--white);
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 0px;
    /* Removido margin-bottom para melhor alinhamento no footer */
}

.footer-social a {
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* MODAL DO CARRINHO (Manter Responsividade) */

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.cart-modal.active {
    display: flex;
}

.cart-modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.main-modal {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 2px solid var(--border-color);
}

.cart-modal-header h2 {
    font-size: 28px;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 36px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

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

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: var(--light-bg);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.cart-item-price {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.quantity-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.cart-item-quantity {
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item-btn {
    background: #dc3545;
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.remove-item-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty-text {
    font-size: 18px;
}

.cart-footer {
    padding: 5px 30px;
    border-top: 2px solid var(--border-color);
    background: var(--light-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--secondary-color);
    color: white;
}

/* Informações de Entrega */
.cart-delivery-info {
    padding: 30px;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    background: var(--light-bg);
}

.delivery-title {
    font-size: 20px;
    margin-bottom: 0px;
    color: var(--text-dark);
    font-weight: 600;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row:has(.form-group-large) {
    grid-template-columns: 2fr 1fr;
}

.form-row:has(.form-group-small) {
    grid-template-columns: 1fr 100px 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 78, 68, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.form-group select {
    cursor: pointer;
}

/* RESPONSIVIDADE */

@media (max-width: 992px) {

    /* Ajustes para tablets e telas médias */
    .hero-title {
        font-size: 56px;
    }

    /* Modal: permitir que o formulário de entrega ocupe toda a largura */
    .main-modal {
        flex-direction: column;
    }

    .cart-items,
    .cart-delivery-info {
        flex-basis: auto;
        /* Reseta a base flexível para coluna */
    }

    .cart-delivery-info {
        border-top: none;
        /* Remove a borda superior quando vira coluna */
    }
}


@media (max-width: 768px) {
    /* Ajustes para celulares e tablets pequenos */

    /* Header */
    .header .container {
        padding: 15px 20px;
    }

    .nav {
        display: none;
        /* Oculta a navegação principal */
    }

    /* Hero */
    .hero {
        height: 450px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Títulos de Seção */
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    /* Produtos e Filtros */
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input {
        width: 100%;
        min-width: unset;
    }

    /* Modal do Carrinho */
    .cart-modal-content {
        max-height: 90vh;
        border-radius: 10px;
    }

    .cart-item {
        flex-direction: column;
        /* Empilha os detalhes do produto */
        align-items: flex-start;
        padding: 15px;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }

    .cart-item-info {
        width: 100%;
    }

    .cart-item-controls {
        justify-content: space-between;
        width: 100%;
        margin-top: 10px;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-footer {
        padding: 15px;
    }

    .cart-total {
        font-size: 20px;
    }

    /* Formulário de Entrega */
    .form-row,
    .form-row:has(.form-group-large),
    .form-row:has(.form-group-small) {
        grid-template-columns: 1fr;
        /* Todas as colunas viram linha única */
    }

    .cart-delivery-info {
        padding: 20px;
    }
}

@media (max-width: 500px) {

    /* Ajustes adicionais para celulares muito pequenos */
    .hero {
        height: 350px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .main-modal {
        flex-direction: column;
       
    }

}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}