@font-face {
    font-family: 'Kudryashev Display';
    src: url('../font/KudryashevDisplay/KudryashevDisplay.woff2') format('woff2'),
        url('../font/KudryashevDisplay/KudryashevDisplay.woff') format('woff'),
        url('../font/KudryashevDisplay/KudryashevDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kudryashev Headline Sans';
    src: url('../font/KudryashevHeadline-Sans/KudryashevHeadline-Sans.woff2') format('woff2'),
        url('../font/KudryashevHeadline-Sans/KudryashevHeadline-Sans.woff') format('woff'),
        url('../font/KudryashevHeadline-Sans/KudryashevHeadline-Sans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'Kudryashev Headline Sans', Arial, sans-serif;
    background-color: #D9CBC2;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.menu-principal {
    background-color: #112250;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.menu-container {
    width: 100%;
    max-width: 1650px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.menu-esquerda,
.menu-direita {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2%;
}

.menu-esquerda {
    margin-left: 10px;
}

.menu-direita .social-icon {
    margin-left: 20px;
    color: #F5F0E9;
    text-decoration: none;
}

.menu-direita .social-icon i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.menu-direita .social-icon:hover i {
    transform: scale(1.2);
    color: #f0f0f0;
}

.container-pesquisa {
    display: flex;
    margin: 0 15px;
    flex: 0;
    /* Impede que o container estique */
    margin-left: 10%;
}

/* estilos.css */

.container-pesquisa form {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 50%;
    padding: 0;
    border: 1px solid #ddd;

    /* Forçamos o tamanho exato para não ovalar */
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;

    box-sizing: border-box;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s;
    flex-shrink: 0;
    /* Impede que o container esmague o círculo */
}

/* Quando expande, volta a ser uma pílula retangular */
.container-pesquisa form.ativo {
    width: 280px !important;
    border-radius: 25px;
}

.container-pesquisa input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    width: 0;
    opacity: 0;
    font-size: 15px;
    transition: opacity 0.2s;
}

.container-pesquisa form.ativo input {
    width: 100%;
    padding: 0 15px;
    /* Só ganha padding quando abre */
    opacity: 1;
}

.container-pesquisa button {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 45px;
    /* Tamanho igual ao container para centrar a lupa */
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Impede o botão de amassar */
}

.container-pesquisa button i {
    color: #555;
    font-size: 16px;
}

.container-pesquisa button:hover i {
    color: #007BFF;
}

.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: -250px;
    background-color: #112250;
    overflow-x: hidden;
    padding-top: 60px;
    transition: left 0.5s;
}

.sidebar.aberto {
    left: 0;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 22px;
    color: #EFF1F3;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

.sidebar .fechar-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    color: #EFF1F3;
    background: none;
    border: none;
    cursor: pointer;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.sidebar.aberto~#overlay {
    opacity: 1;
    visibility: visible;
}

.search-overlay,
.menu-overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 3000;
    top: -100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    transition: top 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.search-overlay {
    justify-content: flex-start;
}

.search-overlay.ativo,
.menu-overlay.ativo {
    top: 0;
}

.fechar-btn-overlay {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 50px;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.search-overlay-content {
    padding-top: 25vh;
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-overlay-content form {
    display: flex;
    width: 80%;
    max-width: 500px;
    border-bottom: 3px solid #305070;
}

.search-overlay-input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 1.5em;
    color: #333;
}

.search-overlay-button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #305070;
}

.menu-overlay-content a {
    color: #2c3e50;
    font-size: 1.8em;
    text-decoration: none;
    margin: 15px 0;
    display: block;
}

.dropdown-btn {
    background: none;
    border: none;
    text-align: left;
    outline: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .dropdown-btn {
    padding: 10px 15px;
    font-size: 22px;
    color: #EFF1F3;
    font-family: 'Kudryashev Headline Sans', Arial, sans-serif;
}

.menu-overlay .dropdown-btn {
    color: #2c3e50;
    font-size: 1.8em;
    margin: 15px 0;
    padding: 0;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown-btn.ativo .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.sidebar .dropdown-container {
    background-color: rgba(0, 0, 0, 0.2);
    padding-left: 15px;
}

.menu-overlay .dropdown-container {
    text-align: center;
}

.dropdown-container a {
    font-size: 0.9em;

}

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    justify-content: space-around;
    padding: 5px 0;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    color: #555;
    text-decoration: none;
    padding: 5px 0;
}

.bottom-nav-link:hover {
    color: #305070;
}

.bottom-nav-link i {
    font-size: 22px;
    margin-bottom: 4px;
}

.bottom-nav-link span {
    font-size: 10px;
    text-transform: uppercase;
}

main {
    margin-top: 80px;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.carousel-container {
    width: 90%;
    max-width: 1200px;
    /* Aumentamos a margem do topo para 130px para garantir 
       que o arredondamento não fique sob o header */
    margin: 130px auto 40px;
    position: relative;

    /* Arredondamento em todos os cantos */
    border-radius: 20px;
    overflow: hidden;

    /* Este comando força o navegador a respeitar o arredondamento 
       em todos os cantos, mesmo com transformações de slides */
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
    /* Garante que fique acima do fundo, mas abaixo do menu */
}

.carousel-slides {
    margin-top: 2%;
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    /* Reforçamos o arredondamento na própria imagem */
    border-radius: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 100;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #305070;
}

.category-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #D9CBC2;
}

.category-section h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #333;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    width: 45%;
    max-width: 500px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    text-align: left;
    transition: background 0.3s ease;
}

.product-section {
    padding: 10px 0;
    background-color: #D9CBC2;
}

.product-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #333;
}

.product-carousel {
    position: relative;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    align-items: stretch;
}

.product-grid::-webkit-scrollbar {
    display: none;
}

.product-card {
    position: relative;
    background-color: #F5F0E9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Responsividade: Ajusta para 2 colunas em tablets e 1 coluna em telemóveis */
@media (max-width: 992px) {
    .menu-esquerda {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    .logo {
        margin: 0 auto;
    }
}

.product-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #305070;
    margin-bottom: 20px;
}

.buy-btn {
    background-color: #305070;
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.buy-btn i {
    margin-right: 8px;
}

.buy-btn:hover {
    background-color: #1F3449;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, color 0.3s;
}

.carousel-nav-btn:hover {
    background-color: #305070;
    color: white;
}

.prev-product-btn {
    left: 20px;
}

.next-product-btn {
    right: 20px;
}

.site-footer {
    background-color: #112250;
    color: #F5F0E9;
    padding: 40px 0 0 0;
    font-size: 15px;
}

.footer-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: #305070;
}

.footer-column.sobre {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column .footer-logo {
    max-width: 220px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.footer-column.sobre p {
    line-height: 1.6;
    margin: 0;
    flex: 1;
    min-width: 180px;
}

.footer-column.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column.links li a {
    color: #F5F0E9;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column.links li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-socials {
    margin-top: 20px;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #112250;
    color: #ffffff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    background-color: #305070;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(245, 240, 233, 0.2);
}

@media (max-width: 992px) {
    .container-pesquisa {
        display: none;
    }

    .menu-esquerda,
    .menu-direita {
        flex: none;
    }

    .menu-direita {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;

    }

    .nav-categorias {
        display: none !important;
    }

    /* Garante que o menu overlay tenha links visíveis */
    .menu-overlay-content a {
        color: #112250;
        font-size: 1.8em;
        text-decoration: none;
        margin: 15px 0;
        display: block;
        text-align: center;
    }

    /* Ajusta o logo para ficar centralizado no mobile */
    .menu-esquerda .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .menu-direita {
        display: none;
    }

    .menu-principal {
        min-height: 80px;
    }

    .menu-esquerda .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .search-overlay-input,
    .search-overlay-button {
        font-size: 1.2em;
    }

    .category-grid {
        flex-direction: column;
        gap: 20px;
    }

    .category-card {
        width: 95%;
        max-width: none;
    }

    .card-title {
        font-size: 1.5em;
    }

    .carousel-nav-btn {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column.sobre {
        justify-content: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.login-wrapper {
    margin-top: 80px;
    display: flex;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    background-color: #D9CBC2;
}

.login-card {
    background-color: #F5F0E9;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5%;
}

.login-header h2 {
    color: #3C507D;

    margin: 0;
    font-weight: normal;
}

.input-field {
    margin-bottom: 10px;
}

.input-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    outline-color: #3C507D;
}

.btn-entrar {
    width: 100%;
    padding: 12px;
    background-color: #112250;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-entrar:hover {
    background-color: #3C507D;

}

.icon-login {
    width: 100px !important;
    height: 100px !important;
    color: #112250;
    stroke-width: 0.4px;
    border: 2px solid #112250;
    border-radius: 50%;
    padding: 25px;
    display: block;
    margin: 0 auto 15px auto;
    transition: all 0.4s ease;
}

.login-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-links a {
    color: #112250;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #305070;
    text-decoration: underline;
}

.login-links span {
    color: #112250;
    opacity: 0.5;
}

.area-utilizador {
    display: flex;
    align-items: center;
}

/* Container principal do utilizador */
.user-menu-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-left: 15px;
}

/* Texto "Olá, Nome" abaixo do ícone */
.user-name-text {
    color: #F5F0E9;
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
    text-transform: uppercase;
}

/* O Menu que fica escondido */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: none;
    /* Escondido por padrão */
    z-index: 2000;
    margin-top: 10px;
    overflow: hidden;
}

/* Mostrar o menu quando adicionarmos a classe 'ativo' via JS */
.user-dropdown-menu.ativo {
    display: block;
}

/* Itens dentro do menu */
.user-dropdown-item {
    color: #112250;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background 0.3s;
}

.user-dropdown-item:hover {
    background-color: #f1f1f1;
}

.user-dropdown-item i {
    font-size: 16px;
    color: #305070;
}

/* Estilo da Nova Barra de Navegação */
.nav-categorias {
    background-color: #112250;
    /* Um tom levemente diferente para destacar */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    padding: 10px 0;
    transition: all 0.4s ease-in-out;
    max-height: 100px;
    opacity: 1;
    overflow: visible;
}

/* 2. Classe que o JavaScript vai adicionar ao rolar para baixo */
.header-scrolled .nav-categorias {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    /* Impede cliques enquanto estiver invisível */
}

/* 3. Ajuste opcional: Diminuir um pouco o padding do header principal ao rolar */
.header-scrolled .menu-principal {
    padding-bottom: 5px;
}

.nav-lista {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    margin-top: 1%;
    margin-left: 0%;
}

.nav-lista li a {
    color: #F5F0E9;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-lista li a:hover {
    color: #ffffff;
}

/* ===== Dropdown Horizontal (Submenu) — estilizado na paleta do site ===== */
.dropdown-horizontal {
    position: relative;
}

.dropdown-horizontal>a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dropdown-horizontal>a .fa-chevron-down {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.dropdown-horizontal:hover>a .fa-chevron-down,
.dropdown-horizontal:focus-within>a .fa-chevron-down {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 215px;
    background-color: #F5F0E9;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(17, 34, 80, 0.30);
    list-style: none;
    padding: 8px;
    margin: 0;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transition-delay: 0.4s;
    /* atraso ao esconder: dá tempo de levar o mouse até o menu */
}

/* Ponte invisível que cobre o espaço entre "Véus" e o menu, evitando que feche ao atravessar */
.submenu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -22px;
    height: 22px;
}

/* Setinha apontando para o item "Véus" */
.submenu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background-color: #F5F0E9;
    border-radius: 3px;
}

.dropdown-horizontal:hover .submenu,
.dropdown-horizontal:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
    /* aparece imediatamente */
}

.submenu li {
    margin: 0;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #112250 !important;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.submenu li a:hover {
    background-color: #112250;
    color: #F5F0E9 !important;
    padding-left: 22px;
}

/* Bolinha indicando a cor da categoria */
.cat-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    border: 1px solid rgba(17, 34, 80, 0.25);
}

.cat-dot-branco {
    background: #ffffff;
}

.cat-dot-preto {
    background: #111111;
}

.cat-dot-coloridos {
    background: linear-gradient(135deg, #E896A2, #305070, #E1A95F);
}

/* ====================== LOJA DINÂMICA (cards via Firestore) ====================== */
.product-card {
    position: relative;
}

.product-card a.buy-btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #E896A2;
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.preco-antigo {
    color: #999;
    text-decoration: line-through;
    font-size: 0.65em;
    font-weight: normal;
    margin-right: 6px;
}

.preco-novo {
    color: #305070;
}

.preco-a-partir {
    display: block;
    color: #777;
    font-size: 0.5em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.loja-aviso {
    grid-column: 1 / -1;
    text-align: center;
    color: #555;
    font-size: 1.1em;
    padding: 40px 20px;
}

/* spinner de carregamento */
.loja-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #112250;
}

.loja-loading .spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(17, 34, 80, 0.15);
    border-top-color: #305070;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: girar 0.9s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

/* ====================== PAINEL MASTER (admin.html) ====================== */
.admin-body {
    background-color: #D9CBC2;
}

.admin-wrapper {
    max-width: 1150px;
    margin: 110px auto 60px;
    padding: 0 20px;
}

.admin-title {
    color: #112250;
    font-size: 2em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-subtitle {
    color: #555;
    margin: 0 0 28px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(17, 34, 80, 0.15);
}

.admin-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 600;
    color: #112250;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: border-color 0.2s, color 0.2s;
}

.admin-tab:hover {
    color: #305070;
}

.admin-tab.ativo {
    border-bottom-color: #305070;
    color: #305070;
}

.admin-panel {
    display: none;
}

.admin-panel.ativo {
    display: block;
}

.admin-card {
    background-color: #F5F0E9;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(17, 34, 80, 0.12);
    padding: 26px;
    margin-bottom: 26px;
}

.admin-card h3 {
    color: #112250;
    margin: 0 0 18px;
    font-size: 1.3em;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.admin-field {
    display: flex;
    flex-direction: column;
}

.admin-field.full {
    grid-column: 1 / -1;
}

.admin-field label {
    font-size: 0.85em;
    font-weight: 600;
    color: #112250;
    margin-bottom: 6px;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    padding: 11px 12px;
    border: 1px solid #c9bcae;
    border-radius: 8px;
    font-size: 1em;
    background: #fff;
    font-family: inherit;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    outline: none;
    border-color: #305070;
    box-shadow: 0 0 0 3px rgba(49, 142, 173, 0.15);
}

.admin-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.admin-check input {
    width: auto;
}

.btn-primario {
    background-color: #112250;
    color: #F5F0E9;
    border: none;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.25s;
}

.btn-primario:hover {
    background-color: #1c326e;
}

.btn-secundario {
    background-color: transparent;
    color: #112250;
    border: 1px solid #112250;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secundario:hover {
    background-color: rgba(17, 34, 80, 0.08);
}

.btn-perigo {
    background-color: #c0392b;
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-perigo:hover {
    background-color: #a93226;
}

.admin-actions {
    margin-top: 4px;
}

/* Lista de véus no admin */
.admin-lista {
    display: grid;
    gap: 12px;
}

.admin-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.admin-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
    background: #eee;
}

.admin-item .info {
    flex: 1;
    min-width: 0;
}

.admin-item .info strong {
    color: #112250;
    display: block;
}

.admin-item .info span {
    color: #666;
    font-size: 0.9em;
}

.admin-item .tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.admin-tag {
    font-size: 0.72em;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-branco {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.tag-preto {
    background: #111;
    color: #fff;
}

.tag-coloridos {
    background: linear-gradient(135deg, #E896A2, #305070);
    color: #fff;
}

.tag-promo {
    background: #E896A2;
    color: #fff;
}

.tag-destaque {
    background: #E1A95F;
    color: #fff;
}

.tag-inativo {
    background: #bbb;
    color: #fff;
}

.admin-item .botoes {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.admin-gate {
    max-width: 460px;
    margin: 140px auto;
    background: #F5F0E9;
    border-radius: 14px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(17, 34, 80, 0.12);
}

.admin-gate i {
    font-size: 3em;
    color: #112250;
    margin-bottom: 14px;
}

.admin-gate h2 {
    color: #112250;
    margin: 0 0 10px;
}

.admin-gate p {
    color: #555;
    margin: 0 0 22px;
}

.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #112250;
    color: #F5F0E9;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 5000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.admin-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.admin-toast.erro {
    background: #c0392b;
}

@media (max-width: 700px) {
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-item {
        flex-wrap: wrap;
    }
}

/* Link do painel master no menu do utilizador */
.user-dropdown-item.master {
    color: #305070;
    font-weight: 700;
}

/* ====================== REFINO DA VERSÃO MOBILE ====================== */
@media (max-width: 768px) {

    /* Conteúdo nunca fica escondido atrás da barra inferior fixa */
    body {
        padding-bottom: 74px;
    }

    /* Barra inferior: respeita o "notch" e fica mais tocável */
    .bottom-nav {
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
        padding-top: 6px;
    }

    .bottom-nav-link {
        padding: 8px 0;
    }

    .bottom-nav-link:active,
    .bottom-nav-link.ativo {
        color: #305070;
    }

    /* Header compacto com logo centralizado */
    .menu-principal {
        padding: 8px 0;
    }

    .menu-principal .logo img {
        height: 48px;
    }

    main {
        margin-top: 78px;
    }

    /* Carrossel da home proporcional ao celular */
    .carousel-container {
        width: 94%;
        margin: 16px auto 24px;
        border-radius: 14px;
    }

    /* Seções e títulos */
    .product-section {
        padding: 26px 0;
    }

    .product-section h2 {
        font-size: 1.6em;
        margin-bottom: 22px;
        padding: 0 16px;
    }

    /* Grade e cards de produto */
    .product-grid {
        gap: 16px;
        padding: 10px 16px;
    }

    .product-price {
        font-size: 1.3em;
        margin-bottom: 14px;
    }

    .buy-btn {
        padding: 13px 16px;
    }

    .promo-badge {
        font-size: 0.8em;
        padding: 4px 9px;
    }

    /* Menu fullscreen mais organizado (lista com divisórias) */
    .menu-overlay-content {
        width: 86%;
        max-width: 420px;
    }

    .menu-overlay-content h2 {
        color: #112250;
        margin-bottom: 8px;
        text-align: center;
    }

    .menu-overlay-content>a {
        text-align: left;
        font-size: 1.35em !important;
        margin: 0 !important;
        padding: 15px 4px !important;
        border-bottom: 1px solid rgba(17, 34, 80, 0.12);
    }

    .menu-overlay .dropdown-btn {
        font-size: 1.35em !important;
        margin: 0 !important;
        padding: 15px 4px !important;
        border-bottom: 1px solid rgba(17, 34, 80, 0.12);
    }

    .menu-overlay .dropdown-container a {
        font-size: 0.8em !important;
        color: #305070;
        padding: 12px 0 12px 16px;
        border-bottom: 1px dashed rgba(17, 34, 80, 0.12);
    }

    /* Botão de fechar dos overlays */
    .fechar-btn-overlay {
        top: 16px;
        right: 24px;
        font-size: 42px;
    }

    /* Rodapé */
    .footer-container {
        padding-bottom: 10px;
    }
}

@media (max-width: 430px) {
    .product-section h2 {
        font-size: 1.4em;
    }

    .menu-principal .logo img {
        height: 44px;
    }
}

/* Layout Principal: Barra à esquerda e Produtos à direita */
.layout-produtos-barra {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    /* Espaçamento generoso entre a barra e os produtos */
    max-width: 1300px;
    /* impede esticar: os cards param de crescer ao dar zoom out */
    margin: 20px auto 0;
    /* centraliza o conteúdo na página */
    padding: 0 24px;
    /* afasta os cards das bordas (inclusive a direita) */
    box-sizing: border-box;
}

/* --- Barra Vertical de Filtros (painel em cartão) --- */
.barra-filtros-vertical {
    flex: 0 0 280px;
    /* Deixa a barra um pouco maior/mais larga */
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
    background-color: #F5F0E9;
    border: 1px solid rgba(17, 34, 80, 0.07);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(17, 34, 80, 0.08);
    box-sizing: border-box;
}

.filtros-cabecalho {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(17, 34, 80, 0.10);
}

.titulo-filtros {
    font-size: 0.95rem;
    font-weight: 600;
    color: #112250;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.titulo-filtros i {
    margin-right: 8px;
    color: #a88532;
}

/* Botão "Limpar" (só aparece quando algum filtro está ativo) */
.filtros-limpar {
    margin-left: auto;
    background: none;
    border: none;
    padding: 4px 0;
    font-family: inherit;
    font-size: 0.78rem;
    color: #a88532;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.filtros-limpar:hover {
    color: #8a6c24;
    border-bottom-color: #a88532;
}

.filtros-limpar i {
    font-size: 0.72rem;
    margin-right: 4px;
}

.filtros-limpar[hidden] {
    display: none;
}

/* Só existe no celular */
.filtros-toggle {
    display: none;
}

.filtros-contagem {
    margin: -6px 0 0;
    font-size: 0.78rem;
    color: #7a7065;
}

.filtros-contagem:empty {
    display: none;
}

/* --- Grupos de chips --- */
.filtros-corpo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filtro-grupo+.filtro-grupo {
    padding-top: 16px;
    border-top: 1px solid rgba(17, 34, 80, 0.08);
}

.filtro-legenda {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a7065;
}

.filtro-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filtro-chip {
    display: inline-flex;
    position: relative;
    cursor: pointer;
}

/* O radio some visualmente, mas continua acessível pelo teclado */
.filtro-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.filtro-chip span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid rgba(17, 34, 80, 0.16);
    border-radius: 999px;
    background-color: #fff;
    color: #4a4a4a;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.filtro-chip:hover span {
    border-color: #a88532;
    color: #112250;
    transform: translateY(-1px);
}

.filtro-chip input:checked+span {
    background-color: #112250;
    border-color: #112250;
    color: #F5F0E9;
    box-shadow: 0 3px 8px rgba(17, 34, 80, 0.22);
}

.filtro-chip input:focus-visible+span {
    box-shadow: 0 0 0 3px rgba(168, 133, 50, 0.35);
}

/* Tamanhos ficam em pastilhas quadradinhas e alinhadas */
.filtro-grupo[data-filtro="tamanho"] .filtro-chip span {
    min-width: 38px;
    justify-content: center;
    font-weight: 600;
}

/* Bolinhas de cor */
.chip-cor {
    flex: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.22);
}

.chip-cor-branco {
    background-color: #fff;
}

.chip-cor-preto {
    background-color: #1c1c1c;
}

.chip-cor-coloridos {
    background: conic-gradient(#E896A2, #f0cf85, #8fc9a8, #8fb0e0, #b99ede, #E896A2);
    border-color: rgba(0, 0, 0, 0.15);
}

/* --- Dropdowns (páginas antigas de categoria) --- */
.filtro-item {
    width: 100%;
}

.filtro-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: transparent;
    /* Fundo transparente para ficar minimalista */
    font-family: inherit;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filtro-dropdown:hover {
    border-color: #999;
}

.filtro-dropdown:focus {
    outline: none;
    border-color: #a88532;
    box-shadow: 0 0 0 3px rgba(168, 133, 50, 0.1);
}

/* --- Área dos Produtos --- */
.area-produtos-grade {
    flex: 1;
    min-width: 0;
}

/* --- Responsividade (Celular) --- */
@media (max-width: 992px) {
    .layout-produtos-barra {
        flex-direction: column;
        gap: 20px;
    }

    .barra-filtros-vertical {
        flex: none;
        width: 100%;
        padding: 16px 18px;
        gap: 12px;
    }

    /* No celular o painel abre/fecha para não empurrar os produtos para baixo */
    .filtros-cabecalho {
        padding-bottom: 0;
        border-bottom: none;
    }

    .filtros-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid rgba(17, 34, 80, 0.18);
        border-radius: 50%;
        background-color: #fff;
        color: #112250;
        cursor: pointer;
        transition: transform 0.25s ease;
    }

    .filtros-toggle[aria-expanded="true"] {
        transform: rotate(180deg);
    }

    .filtros-corpo {
        display: none;
    }

    .filtros-corpo.aberto {
        display: flex;
        padding-top: 14px;
        border-top: 1px solid rgba(17, 34, 80, 0.10);
    }
}

/* 2. RESOLVENDO A ALTURA DIFERENTE DO CONTEÚDO (Títulos longos vs curtos) */
/* Estou assumindo que os detalhes (nome, preço) estão em uma div dentro do card */
/* Se não estiverem, você precisará adicionar essa div no HTML gerado pelo seu JS. */
.product-grid-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Faz esta div ocupar todo o espaço restante do card */
}

/* Opcional: Se o título do produto for muito longo, limitamos a 2 linhas */
.product-grid h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    color: #333;
    /* Truque para limitar texto a 2 linhas e adicionar "..." */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em;
    /* Aproximadamente 2 linhas de altura */
}

/* Alinhando preço e botão no final */
.product-grid .preco-wrapper {
    margin-top: auto;
    /* Empurra tudo abaixo para o final do card */
    padding-top: 10px;
}

/* --- Responsividade (Mantendo proteção) --- */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* 1 coluna no celular */
    }
}

/* ============ CORREÇÃO FINAL DOS CARDS (estrutura gerada pelo loja.js) ============ */
/* loja.js gera: <article class="product-card"> <img>
   <div class="product-grid-details"> <h3> <div class="preco-wrapper"> <preço> <botão> </div></div></article> */

/* Dentro do layout com filtros, a grade ocupa toda a largura disponível */
.area-produtos-grade .product-grid {
    padding: 0;
    max-width: none;
    margin: 0;
}

/* Card como coluna de altura total (linhas com cards iguais) */
.product-grid .product-card {
    height: 100%;
    text-align: left;
}

/* Imagem em proporção retrato 4/5, anulando as alturas fixas antigas */
.product-grid .product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

/* h3 sem o flex-grow/margens antigos (agora vive dentro de .product-grid-details) */
.product-grid .product-card h3 {
    flex-grow: 0;
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #333;
}

.product-grid .product-card .product-price {
    margin-bottom: 12px;
}

.product-grid .product-card .buy-btn {
    width: 100%;
    box-sizing: border-box;
}

/* Estado: esgotado */
.product-card.esgotado img {
    filter: grayscale(0.55);
    opacity: 0.85;
}

.promo-badge.badge-esgotado {
    background-color: #777;
}

.buy-btn.buy-btn-esgotado {
    background-color: #bbb;
    cursor: not-allowed;
    pointer-events: none;
}

/* No celular, imagem quadrada fica melhor que 4/5 */
@media (max-width: 576px) {
    .product-grid .product-card img {
        aspect-ratio: 1 / 1;
    }
}

/* ============ 4 COLUNAS (MÁX) + PAGINAÇÃO DOS VÉUS ============ */
/* Faixa intermediária: 3 colunas entre 993px e 1200px (não sobrepõe os <=992px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Numerinhos de paginação */
.paginacao {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.paginacao button {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #112250;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.paginacao button:hover:not(:disabled):not(.ativa) {
    border-color: #305070;
    color: #305070;
}

.paginacao button.ativa {
    background-color: #112250;
    border-color: #112250;
    color: #F5F0E9;
    cursor: default;
}

.paginacao button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.paginacao .reticencias {
    min-width: auto;
    padding: 0 4px;
    color: #999;
    align-self: center;
}

/* ====================== PÁGINA ÚNICA DO PRODUTO ====================== */
.produto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 20px;
    align-items: flex-start;
}

/* Esquerda: Detalhes */
.breadcrumb {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
}

.prod-titulo {
    font-size: 2.2em;
    font-family: "Times New Roman", Times, serif;
    font-weight: normal;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.prod-tamanhos {
    margin-bottom: 30px;
}

.prod-tamanhos p {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 10px;
}

.tamanho-opts {
    display: flex;
    gap: 8px;
}

.btn-tamanho {
    background: #f8f8f8;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    color: #777;
    font-weight: bold;
    border-radius: 2px;
    transition: 0.3s;
}

.btn-tamanho:hover,
.btn-tamanho.ativo {
    background: #e2e2e2;
    color: #333;
}

.prod-preco {
    font-size: 2.2em;
    color: #A07873;
    /* Tom vinho claro da foto */
    margin-bottom: 5px;
}

.prod-pix {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 40px;
}

.prod-pix strong {
    color: #333;
}

.prod-acoes {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-comprar,
.btn-frete {
    flex: 1;
    background-color: #A3B18A;
    color: white;
    border: none;
    padding: 16px 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    opacity: 0.9;
}

.btn-comprar:hover {
    background-color: #8C9975;
}

.prod-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prod-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Centro: Galeria */
.produto-centro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.img-principal {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.img-thumbs {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.img-thumbs img {
    width: 31%;
    aspect-ratio: 3/4;
    object-fit: cover;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s;
}

.img-thumbs img:hover,
.img-thumbs img.ativo {
    opacity: 1;
}

/* Direita: Informações */
.prod-info h3 {
    font-size: 1.3em;
    color: #000;
    margin-bottom: 25px;
}

.prod-info p {
    color: #777;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Responsividade Produto */
@media (max-width: 992px) {
    .produto-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .produto-dir {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .produto-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .produto-centro {
        order: -1;
        /* Coloca a foto em cima no celular */
    }
}

/* remove a linha branca acima das opções */
.nav-categorias { border-top: none; }

/* sublinhado azul na categoria ativa (como o "Navegação" do rodapé) */
.nav-lista li.ativo > a { position: relative; }
.nav-lista li.ativo > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: #305070;
}

/* ============ FEEDBACK NA PÁGINA (no lugar de alert/confirm) ============ */

/* --- Toast (avisos passageiros) --- */
.toast-container {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    cursor: pointer;
    background: #112250;
    color: #F5F0E9;
    padding: 13px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(17, 34, 80, .25);
    font-size: .92rem;
    line-height: 1.4;
    max-width: 460px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    border-left: 4px solid #a88532;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-erro { border-left-color: #e8737f; }
.toast-ok { border-left-color: #4fbf82; }
.toast-aviso { border-left-color: #e6b800; }

/* --- Modal de confirmação --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 34, 80, .45);
    opacity: 0;
    transition: opacity .2s ease;
}

.modal-overlay.show { opacity: 1; }

.modal-caixa {
    background: #F5F0E9;
    border-radius: 14px;
    padding: 26px 24px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 18px 50px rgba(17, 34, 80, .3);
    transform: translateY(10px) scale(.98);
    transition: transform .2s ease;
}

.modal-overlay.show .modal-caixa { transform: translateY(0) scale(1); }

.modal-msg {
    margin: 0 0 22px;
    color: #112250;
    font-size: 1.02rem;
    line-height: 1.5;
}

.modal-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-btn {
    border: none;
    border-radius: 999px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.modal-cancelar {
    background: transparent;
    color: #112250;
    border: 1px solid rgba(17, 34, 80, .28);
}

.modal-cancelar:hover { border-color: #112250; }

.modal-confirmar {
    background: #112250;
    color: #F5F0E9;
}

.modal-confirmar:hover { background: #1c326e; }

.modal-confirmar.perigo { background: #c0392b; }
.modal-confirmar.perigo:hover { background: #a5311f; }

.modal-btn:focus-visible { outline: 3px solid rgba(168, 133, 50, .4); outline-offset: 2px; }

/* --- Campos com erro (validação inline) --- */
.input-erro,
.input-field input.input-erro {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .14);
    outline-color: #c0392b;
}

.campo-erro-msg {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: .8rem;
    text-align: left;
    line-height: 1.35;
}

/* =====================================================================
   CABEÇALHO MOBILE — topo com hambúrguer · logo · carrinho, barra de busca
   abaixo, e menu lateral (drawer) no lugar da barra inferior.
   Tudo aqui é mobile-only; a versão de computador não muda.
   ===================================================================== */

/* Escondidos no desktop */
.hdr-menu-btn,
.hdr-mobile-acoes,
.hdr-busca-mobile {
    display: none;
}

@media (max-width: 768px) {

    /* --- Fora a barra inferior --- */
    .bottom-nav { display: none; }
    body { padding-bottom: 0; }

    /* --- Cabeçalho de 2 linhas (ícones + busca), fixo no topo --- */
    .menu-principal { padding: 8px 0 6px; }

    .menu-container {
        justify-content: space-between;
        padding: 0 12px;
    }

    .menu-esquerda {
        flex: 1;
        justify-content: center;
        margin-left: 0;
        min-width: 0;
    }

    /* logo volta ao fluxo (deixa de ser absoluto) para não sobrepor os ícones */
    .menu-esquerda .logo {
        position: static;
        left: auto;
        transform: none;
    }

    /* Botões dourados arredondados (hambúrguer e carrinho) */
    .hdr-menu-btn,
    .hdr-mobile-acoes .hdr-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 12px;
        background: #a88532;
        color: #112250;
        font-size: 20px;
        cursor: pointer;
        text-decoration: none;
        position: relative;
    }

    .hdr-mobile-acoes {
        display: inline-flex;
        align-items: center;
    }

    .hdr-menu-btn:active,
    .hdr-mobile-acoes .hdr-icon:active {
        background: #8f6f2a;
    }

    /* --- Barra de busca (segunda linha) --- */
    .hdr-busca-mobile {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 8px 12px 0;
        background: #fff;
        border-radius: 12px;
        padding: 5px 5px 5px 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    }

    .hdr-busca-mobile input {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        background: none;
        font-family: inherit;
        font-size: 15px;
        color: #333;
        padding: 9px 0;
    }

    .hdr-busca-mobile input::placeholder { color: #9a9a9a; }

    .hdr-busca-mobile button {
        flex: none;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 9px;
        background: #112250;
        color: #F5F0E9;
        font-size: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Conteúdo começa abaixo do cabeçalho de 2 linhas */
    main { margin-top: 128px !important; }
    .carousel-container { margin-top: 12px; }

    /* --- Menu lateral (drawer) no lugar do overlay que descia --- */
    .menu-overlay {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        background: rgba(17, 34, 80, .5);
        backdrop-filter: none;
        transform: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .menu-overlay.ativo {
        top: 0;
        visibility: visible;
        opacity: 1;
    }

    .menu-overlay-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 82%;
        max-width: 320px;
        height: 100%;
        margin: 0;
        /* topo reservado para o botão fechar */
        padding: 58px 0 18px;
        background: #112250;
        box-shadow: 4px 0 24px rgba(0, 0, 0, .3);
        transform: translateX(-100%);
        transition: transform .3s ease;
        overflow-y: auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .menu-overlay.ativo .menu-overlay-content {
        transform: translateX(0);
    }

    /* "Categorias" vira um rótulo discreto acima da lista */
    .menu-overlay-content h2 {
        color: #a88532;
        text-align: left;
        margin: 6px 0 4px;
        padding: 0 22px;
        font-size: .74rem;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
    }

    /* Ícone de conta (sem texto) no topo do painel, ao lado do fechar.
       Seletor forte + !important para vencer a regra antiga .menu-overlay-content>a */
    .menu-overlay-content > a.drawer-conta {
        position: absolute;
        top: 12px;
        left: 16px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid rgba(168, 133, 50, .5) !important;
        border-radius: 10px;
        background: rgba(168, 133, 50, .18);
        color: #F5F0E9 !important;
        font-size: 1.15rem !important;
        text-align: center !important;
        text-decoration: none;
        z-index: 2;
    }

    .menu-overlay-content > a.drawer-conta i {
        font-size: 1.15rem;
        color: #F5F0E9;
    }

    .menu-overlay-content > a.drawer-conta:active {
        background: rgba(168, 133, 50, .32);
    }

    /* Links de categoria (exclui o cartão da conta) */
    .menu-overlay-content > a:not(.drawer-conta) {
        color: #F5F0E9 !important;
        text-align: left !important;
        font-size: 1.05rem !important;
        margin: 0 !important;
        padding: 14px 22px !important;
        border-bottom: 1px solid rgba(245, 240, 233, .1) !important;
        display: block !important;
    }

    .menu-overlay-content > a:not(.drawer-conta):active {
        background: rgba(245, 240, 233, .08);
    }

    /* Dropdown "Véus" dentro do drawer (páginas de categoria) legível no fundo escuro */
    .menu-overlay .dropdown-btn {
        color: #F5F0E9 !important;
        text-align: left;
        padding: 14px 22px !important;
        border-bottom: 1px solid rgba(245, 240, 233, .1) !important;
    }
    .menu-overlay .dropdown-container a {
        color: #cdbf8f !important;
        padding-left: 34px;
    }

    /* Botão fechar no canto superior direito do painel */
    .menu-overlay .fechar-btn-menu {
        top: 12px;
        left: min(82vw, 320px);
        margin-left: -48px;
        right: auto;
        width: 38px;
        height: 38px;
        font-size: 30px;
        line-height: 1;
        color: #F5F0E9;
        opacity: .85;
        z-index: 2;
    }

    /* Redes no rodapé do painel (empurradas para baixo) */
    .drawer-redes {
        margin-top: auto;
        display: flex;
        gap: 12px;
        padding: 18px 22px 4px;
        margin-left: 6px;
        margin-right: 6px;
        border-top: 1px solid rgba(245, 240, 233, .12);
    }

    .drawer-redes a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        border-radius: 11px;
        background: rgba(245, 240, 233, .08);
        color: #F5F0E9;
        font-size: 1.3rem;
        text-decoration: none;
    }

    .drawer-redes a:active {
        background: rgba(245, 240, 233, .16);
    }

    /* --- Carrossel: mantém a proporção (não estica nem corta em retrato) --- */
    .carousel-slide img {
        height: auto;
        aspect-ratio: 12 / 5;
    }
}