/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header */
header {
    background-color: #4a2c17; /* Tom de chocolate mais escuro */
    color: #fff;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav h1 {
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #d4af37; /* Ouro para destaque */
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Hero */
.hero {
    background-color: #4a2c17;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 80px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-in;
}

.hero h2 {
    color: #ffffff;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
    max-width: 600px;
}

.cta-button {
    background-color: #d4af37;
    color: #2b1a10;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #b8860b;
    transform: scale(1.05);
}

/* Seções */
section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #8B4513;
    font-size: 2rem;
}

/* Sobre Nós */
.sobre-nos {
    background-color: #fff;
    text-align: center;
}

/* Catálogo */
.catalogo {
    background-color: #f0f0f0;
}

.filtros {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filtros button {
    background-color: #8B4513;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.filtros button:hover,
.filtros button:focus {
    background-color: #D2691E;
    transform: translateY(-2px);
    outline: 2px solid #8B4513;
    outline-offset: 2px;
}

.produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.produto {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    animation: slideUp 0.5s ease-out;
}

.produto:hover,
.produto:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    outline: 2px solid #8B4513;
}

.produto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.produto h3 {
    padding: 1rem;
    text-align: center;
    color: #333;
    font-size: 1.2rem;
}

.produto p {
    text-align: center;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 1rem;
}

.produto button {
    width: 100%;
    background-color: #D2691E;
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.produto button:hover {
    background-color: #8B4513;
}

/* Galeria */
.galeria {
    background-color: #fff;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.galeria-item {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
    overflow: hidden;
}

.galeria-item:hover,
.galeria-item:focus {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: 2px solid #8B4513;
    outline-offset: 2px;
}

.galeria-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Modais */
.lightbox,
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.lightbox .close,
.modal .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox .close:hover,
.modal .close:hover,
.lightbox .close:focus,
.modal .close:focus {
    color: #d4af37;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.modal-content h3 {
    margin: 1rem 0;
    color: #8B4513;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.modal-content button {
    background-color: #D2691E;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.modal-content button:hover,
.modal-content button:focus {
    background-color: #8B4513;
    transform: translateY(-2px);
    outline: 2px solid #D2691E;
    outline-offset: 2px;
}

/* Carrinho */
.carrinho {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #8B4513;
    color: #fff;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s;
}

.carrinho:hover,
.carrinho:focus {
    background-color: #D2691E;
    transform: scale(1.1);
    outline: 2px solid #8B4513;
    outline-offset: 2px;
}

.carrinho-count {
    background-color: #d4af37;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

#carrinho-modal .modal-content {
    max-width: 600px;
    text-align: left;
}

#carrinho-itens {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1rem;
}

.carrinho-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.carrinho-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.carrinho-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.carrinho-item-info {
    flex-grow: 1;
}

.carrinho-item-info h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.carrinho-item-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.carrinho-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carrinho-item-actions button {
    background-color: #8B4513;
    color: #fff;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
    margin-top: 0;
}

.carrinho-item-actions button:hover,
.carrinho-item-actions button:focus {
    background-color: #D2691E;
    transform: translateY(-1px);
    outline: 2px solid #8B4513;
    outline-offset: 2px;
}

.carrinho-item-actions span {
    font-weight: bold;
    margin: 0 0.5rem;
}

.carrinho-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
    color: #8B4513;
}

.checkout-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Contato */
.contato {
    background-color: #f0f0f0;
}

.contato form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contato input,
.contato textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contato input:focus,
.contato textarea:focus {
    border-color: #8B4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
    outline: none;
}

.contato button {
    background-color: #D2691E;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.contato button:hover,
.contato button:focus {
    background-color: #8B4513;
    transform: translateY(-2px);
    outline: 2px solid #D2691E;
    outline-offset: 2px;
}

/* Footer */
footer {
    background-color: #4a2c17;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer a {
    color: #d4af37;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover,
footer a:focus {
    color: #fff;
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
        margin-top: 100px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 1rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .produtos {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .modal-content {
        padding: 1rem;
        max-width: 90%;
    }
    
    .modal-content img {
        height: 150px;
    }
    
    .lightbox .close, .modal .close {
        font-size: 1.5rem;
    }
    
    .carrinho {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .carrinho-count {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    #carrinho-modal .modal-content {
        max-width: 90%;
    }
    
    .carrinho-item img {
        width: 50px;
        height: 50px;
    }
    
    .carrinho-item-info h4 {
        font-size: 0.9rem;
    }
    
    .carrinho-item-actions button {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .carrinho-total {
        font-size: 1.2rem;
    }
    
    .checkout-button {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .contato form {
        padding: 1rem;
    }
    
    footer {
        padding: 0.5rem;
    }
    
    footer a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
    }
    
    .hero {
        padding: 1rem;
    }
    
    .filtros {
        flex-direction: column;
        align-items: center;
    }
    
    .filtros button {
        width: 100%;
        max-width: 200px;
    }
}