/* Estilos Globais */
:root {
    --primary-color: #5c4033; /* Marrom escuro principal */
    --secondary-color: #ebf3e7; /* Verde claro */
    --accent-color: #efe7da; /* Bege claro */
    --dark-color: #000000;
    --light-color: #ffffff;
    --success-color: #25D366; /* Verde WhatsApp */
    --instagram-color: #E1306C; /* Rosa Instagram */
    --google-color: #4285F4; /* Azul Google */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    padding-top: 80px;
}

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

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

a:hover {
    color: var(--dark-color);
}

/* Navbar */
.navbar {
    background-color: #d0ab7a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 60px;
}

.nav-link {
    color: var(--accent-color) !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    background-color: var(--accent-color);
    border: 1px solid var(--primary-color);
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item {
    color: var(--primary-color);
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Botões */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #4a3529;
    border-color: #4a3529;
    color: var(--accent-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

/* NOVOS ESTILOS PARA CARDS (354x265) */
.card {
    width: 354px;
    margin-bottom: 30px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.card-img-container {
    width: 354px;
    height: 265px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.card-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.card-body {
    padding: 15px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* NOVOS ESTILOS PARA PÁGINA DE PRODUTO (546x409) */
.product-gallery-container {
    width: 546px;
    height: 409px;
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    display: flex;
    gap: 5px;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.close-zoom {
    background: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
}

/* Lightbox */
.lb-outerContainer {
    max-width: 80vw !important;
    max-height: 80vh !important;
}

.lb-image {
    max-width: 546px !important;
    max-height: 409px !important;
}

/* Tabelas */
.table th {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Formulários */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(92, 64, 51, 0.25);
}

/* Responsividade */
@media (max-width: 992px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .card, 
    .card-img-container {
        width: 100%;
        height: auto;
    }
    
    .product-gallery-container {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .dropdown-menu {
        max-height: 300px;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--accent-color);
    padding: 30px 0;
    margin-top: 50px;
}

footer h5 {
    color: white !important;
}

footer a {
    color: var(--accent-color);
}

footer a:hover {
    color: var(--secondary-color);
}

/* CTA WhatsApp */
.cta-section {
    background-color: #d0ab7a;
    color: white;
    padding: 30px 0;
    border-radius: 5px;
}

.cta-section h2, 
.cta-section p {
    color: white !important;
}

.cta-btn {
    background-color: white;
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--success-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Efeitos para imagens */
.img-thumbnail {
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    padding: 5px;
}

/* Efeitos de transição */
.transition-all {
    transition: all 0.3s ease;
}

/* Espaçamentos adicionais */
.mt-6 {
    margin-top: 4rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

/* Text utilities */
.text-justify {
    text-align: justify;
}

/* Backgrounds */
.bg-accent {
    background-color: var(--accent-color);
}

/* Z-index */
.z-10 {
    z-index: 10;
}

/* Estilo para os cards de produtos relacionados */
.product-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em; /* Aproximadamente 2 linhas de texto */
    
    
    /* Estilo da Galeria de Imagens */
.product-gallery-container {
    position: relative;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
}

.product-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin-bottom: 15px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.product-main-image:hover {
    transform: scale(1.02);
}

.thumbnail-item {
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.thumbnail-item.active {
    border: 2px solid var(--primary-color);
}

/* Ajustes para o Lightbox */
.lb-outerContainer {
    max-width: 80vw !important;
    max-height: 80vh !important;
}

.lb-image {
    max-width: 546px !important;
    max-height: 409px !important;
}

.lb-close {
    color: white !important;
    font-size: 2rem !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.lb-close:hover {
    color: #d0ab7a !important;
}
}