@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary-dark-brown: #4F3D32;
    --color-primary-white: #FFFFFF;
    --color-secondary-light-pink: #F0C9C9;
    --color-secondary-turquoise: #81D1E0;
    --color-secondary-light-brown: #987B6F;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-primary-dark-brown);
    background-color: var(--color-primary-white);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary-turquoise), #6abcc9);
    border: none;
    border-radius: 50px;
    color: var(--color-primary-dark-brown);
    padding: 12px 30px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(129, 209, 224, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 209, 224, 0.4);
    background: linear-gradient(135deg, #6abcc9, var(--color-secondary-turquoise));
    color: var(--color-primary-dark-brown);
}

.p-5.mb-4.bg-light.rounded-3.text-center p {
    color: var(--color-secondary-light-brown);
}

/* Estilos para a galeria de imagens do produto */
.product-thumbnail {
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-thumbnail.active, .product-thumbnail:hover {
    opacity: 1;
    border-color: var(--color-secondary-turquoise);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(129, 209, 224, 0.3);
}

/* Animações para o modal de marcas */
.brand-card {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: both;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brand-card:nth-child(1) { animation-delay: 0.1s; }
.brand-card:nth-child(2) { animation-delay: 0.2s; }
.brand-card:nth-child(3) { animation-delay: 0.3s; }
.brand-card:nth-child(4) { animation-delay: 0.4s; }
.brand-card:nth-child(5) { animation-delay: 0.5s; }
.brand-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efeito de pulso para o badge de produtos */
.product-count .badge {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(129, 209, 224, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(129, 209, 224, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(129, 209, 224, 0);
    }
}

/* Tema Escuro com Paleta Personalizada */
.theme-dark {
    --color-primary-dark-brown: #704214; /* Sépia */
    --color-primary-white: #FFFFFF;
    --color-secondary-light-pink: #D2A679; /* Nude */
    --color-secondary-turquoise: #C66B7A; /* Rosa Queimado */
    --color-secondary-light-brown: #D2B48C; /* Bege */
}

.theme-dark body {
    background-color: #2C1810; /* Fundo escuro sépia */
    color: var(--color-primary-white);
}

.theme-dark header {
    background: linear-gradient(135deg, #2C1810, #3D2B1F); /* Gradiente de marrons escuros */
    backdrop-filter: blur(10px);
}

.theme-dark .nav-link {
    color: #E0E0E0;
    transition: color 0.3s ease;
}

.theme-dark .nav-link:hover {
    color: var(--color-secondary-turquoise);
    text-decoration: underline;
}

.theme-dark footer {
    background: linear-gradient(135deg, #3D2B1F, #2C1810);
    color: var(--color-primary-white);
}

.theme-dark footer .nav-link {
    color: #E0E0E0 !important;
}

.theme-dark footer .text-muted {
    color: #F5DEB3 !important; /* Creme para texto muted */
}

.theme-dark footer h5 {
    color: var(--color-primary-white);
}

.theme-dark footer p {
    color: var(--color-primary-white);
}

.theme-dark footer a {
    color: var(--color-secondary-turquoise) !important;
    transition: color 0.3s ease;
}

.theme-dark footer a:hover {
    color: #6abcc9 !important;
}

.theme-dark .card {
    background-color: #3D2B1F; /* Marrom escuro */
    color: var(--color-primary-white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.theme-dark .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.theme-dark .list-group-item {
    background-color: #3D2B1F; /* Marrom escuro */
    color: var(--color-primary-white);
    border: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.theme-dark .list-group-item:hover {
    background-color: #4A3C2A; /* Marrom mais claro no hover */
    transform: translateX(5px);
}

.theme-dark .btn-primary {
    background: linear-gradient(135deg, var(--color-secondary-turquoise), var(--color-secondary-light-pink)); /* Rosa Queimado e Nude */
    border: none;
    color: var(--color-primary-white);
    box-shadow: 0 4px 15px rgba(198, 107, 122, 0.3); /* Sombra com rosa queimado */
}

.theme-dark .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-secondary-light-pink), var(--color-secondary-turquoise)); /* Nude e Rosa Queimado */
    color: var(--color-primary-white);
    box-shadow: 0 6px 20px rgba(198, 107, 122, 0.4);
    transform: translateY(-2px);
}

/* Tema Moderno Escuro - Mistura de Tema Moderno com Escuro */
.theme-modern-dark body {
    background-color: #121212;
    color: #E0E0E0;
}

.theme-modern-dark header {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(10px);
}

.theme-modern-dark .nav-link {
    color: #E0E0E0;
    transition: color 0.3s ease;
}

.theme-modern-dark .nav-link:hover {
    color: var(--color-secondary-turquoise);
    text-decoration: underline;
}

.theme-modern-dark footer {
    background: linear-gradient(135deg, #1a1a1a, #121212);
    color: #E0E0E0;
}

.theme-modern-dark footer .nav-link {
    color: #E0E0E0 !important;
}

.theme-modern-dark footer .text-muted {
    color: #B0B0B0 !important;
}

.theme-modern-dark footer h5 {
    color: #FFFFFF;
}

.theme-modern-dark footer p {
    color: #E0E0E0;
}

.theme-modern-dark footer a {
    color: var(--color-secondary-turquoise) !important;
    transition: color 0.3s ease;
}

.theme-modern-dark footer a:hover {
    color: #6abcc9 !important;
}

.theme-modern-dark .card {
    background-color: #1e1e1e;
    color: #E0E0E0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.theme-modern-dark .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.theme-modern-dark .list-group-item {
    background-color: #1e1e1e;
    color: #E0E0E0;
    border: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.theme-modern-dark .list-group-item:hover {
    background-color: #2a2a2a;
    transform: translateX(5px);
}

.theme-modern-dark .btn-primary {
    background: linear-gradient(135deg, var(--color-secondary-turquoise), #6abcc9);
    border: none;
    color: var(--color-primary-dark-brown);
    box-shadow: 0 4px 15px rgba(129, 209, 224, 0.3);
}

.theme-modern-dark .btn-primary:hover {
    background: linear-gradient(135deg, #6abcc9, var(--color-secondary-turquoise));
    color: var(--color-primary-dark-brown);
    box-shadow: 0 6px 20px rgba(129, 209, 224, 0.4);
    transform: translateY(-2px);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 10px;
    }

    .brand-card {
        margin-bottom: 20px;
    }

    .product-thumbnail {
        margin-bottom: 10px;
    }

    .nav-link {
        padding: 10px 0;
        font-size: 16px; /* Larger touch targets */
    }

    /* Header mobile adjustments */
    header .container > div {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }


    /* Hide nav links by default on mobile */
    #mobile-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-primary-white);
        position: absolute;
        top: 70px; /* height of header */
        left: 0;
        padding: 10px 0;
        border-top: 1px solid #ddd;
        z-index: 1050;
    }

    #mobile-nav.show {
        display: flex;
    }

    #mobile-nav li {
        text-align: center;
        margin: 5px 0;
    }

    #mobile-nav li a {
        font-size: 18px;
        padding: 10px 20px;
        display: block;
    }

    /* Hamburger button styles */
    #mobile-menu-toggle {
        border: none;
        background: transparent;
        color: var(--color-primary-dark-brown);
    }

    #mobile-menu-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px var(--color-secondary-turquoise);
    }

    /* Reorder icons and search on mobile */
    .order-icons {
        order: 1;
        margin-right: 10px;
    }

    .order-search {
        order: 2;
        flex-grow: 1;
    }
}
