/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn-primary {
    background-color: #9d8675;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #876f5c;
}

.btn-secondary {
    background-color: transparent;
    color: #9d8675;
    padding: 10px 22px;
    border: 2px solid #9d8675;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #9d8675;
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #4a4a4a;
}

.section-header p {
    font-size: 18px;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

section {
    padding: 80px 20px;
}

/* Header e navegação */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 28px;
    color: #333;
    font-weight: 500;
}

.menu ul {
    display: flex;
    gap: 30px;
}

.menu li a {
    font-size: 16px;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: #9d8675;
}

.cart a {
    font-size: 18px;
    position: relative;
}

.cart span {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #9d8675;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.menu-mobile {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero section */
#hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://thumbs.dreamstime.com/b/perfume-bottle-smoky-backdrop-elegant-glass-gold-black-cap-surrounded-soft-smoke-swirls-dark-background-perfect-350722784.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Produtos */
#produtos {
    background-color: #fff;
}

.produtos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.produto-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.produto-imagem {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.05);
}

.produto-info {
    padding: 20px;
    text-align: center;
}

.produto-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.produto-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    height: 80px;
    overflow: hidden;
}

.produto-preco {
    font-size: 20px;
    font-weight: bold;
    color: #9d8675;
    margin-bottom: 15px;
}

.btn-add-cart {
    background-color: #9d8675;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-size: 16px;
}

.btn-add-cart:hover {
    background-color: #876f5c;
}

/* Nossa História */
#historia {
    background-color: #f9f9f9;
}

.historia-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.historia-imagem {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.historia-texto {
    flex: 1;
    min-width: 300px;
}

.historia-texto p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* Contato */
#contato {
    background-color: #fff;
}

.contato-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contato-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contato-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 20px;
    color: #9d8675;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.social-media {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #9d8675;
    color: white;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-media a:hover {
    transform: translateY(-5px);
    background-color: #876f5c;
}

/* Modal do Carrinho */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 24px;
    color: #333;
}

.close {
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #9d8675;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 10px;
}

.cart-item-remove {
    color: #e74c3c;
    cursor: pointer;
}

.cart-total {
    text-align: right;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #9d8675;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #9d8675;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
    font-size: 14px;
}

.newsletter-form button {
    background-color: #9d8675;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #876f5c;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #999;
}

/* Responsividade */
@media (max-width: 992px) {
    nav {
        padding: 15px 30px;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .menu-mobile {
        display: block;
    }

    nav {
        padding: 15px 20px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .section-header p {
        font-size: 16px;
    }

    section {
        padding: 60px 15px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .modal-content {
        width: 95%;
        margin: 30% auto;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .produto-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .produto-imagem {
        height: 250px;
    }
}
