/* ================= ANIMAÇÕES DE ENTRADA ================= */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sidebar {
    animation: fadeInLeft 0.8s ease both;
}

.topo {
    animation: fadeInDown 0.8s ease 0.2s both;
}

.banner {
    animation: fadeIn 1s ease 0.4s both;
}

.categorias-container {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.produtos {
    animation: fadeIn 0.8s ease 0.6s both;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: url('fundo-fumaca.png') no-repeat center fixed;
    background-size: cover;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Camada escura de fundo */
body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    display: flex;
}

@keyframes fadeInBtn {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

/* ================= BOTÃO TOGGLE (dentro da sidebar) ================= */
.toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: rgba(77,166,255,0.2);
    border-color: rgba(77,166,255,0.4);
}

/* ================= BOTÃO REABRIR (aparece quando sidebar fechada) ================= */
.reopen-btn {
    position: fixed;
    left: 15px;
    top: 15px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10, 25, 50, 0.95);
    color: white;
    cursor: pointer;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeInBtn 0.25s ease both;
    transition: background 0.3s;
}

.reopen-btn:hover {
    background: rgba(77,166,255,0.25);
    border-color: rgba(77,166,255,0.4);
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 280px;
    height: 100vh;
    padding: 80px 20px 40px;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #050d1a, #0d0d0d);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: 10px 0 40px rgba(0,0,0,0.8);
    z-index: 1000;
    overflow: hidden;
}

.sidebar.fechada {
    left: -280px;
    visibility: hidden;
}

.main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 30px;
}

.main.cheia {
    margin-left: 0;
    width: 100%;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9)),
        url('fundo-fumaca.png') no-repeat center;
    background-size: cover;
    opacity: 0.9;
    z-index: -1;
}

.logo-box {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.logo {
    width: 280px;
    max-width: 100%;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.4));
}

.menu {
    list-style: none;
    width: 100%;
}

/* ================= SIDEBAR CARDS PREMIUM ================= */

/* ================= SIDEBAR CARDS + EFEITO METÁLICO ================= */

.menu li {
    padding: 18px 20px;
    margin-bottom: 12px;
    border-radius: 15px;
    cursor: pointer;

    background: linear-gradient(145deg, rgba(10, 37, 64, 0.25), rgba(0,0,0,0.7));
    border: 1px solid rgba(10, 37, 64, 0.5);

    color: #ccc;

    backdrop-filter: blur(10px);

    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* efeito metálico */
.menu li::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;

    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);

    transform: rotate(25deg);
    opacity: 0;
}

.menu li:hover::before {
    animation: metal 0.8s linear;
    opacity: 1;
}

.menu li:hover {
    background: linear-gradient(90deg, rgba(77,166,255,0.2), transparent);
    border-color: rgba(77,166,255,0.6);
    color: white;
    transform: translateX(8px);
}

.menu li.active {
    background: linear-gradient(90deg, #0a2540, #020c1b);
    border-color: rgba(77,166,255,0.8);
    color: white;
}

/* ================= SOCIAL ================= */
.social {
    margin-top: auto;
    display: flex;
    gap: 25px;
}

.fa-instagram {
    font-size: 26px;
    background: radial-gradient(circle at 30% 107%, #fdf497, #fd5949, #d6249f, #285AEB);
    -webkit-background-clip: text;
    background-clip: text; /* Adicione esta linha */
    -webkit-text-fill-color: transparent;
}

.fa-tiktok {
    font-size: 26px;
    color: #fff;
    text-shadow: 2px 0 #25f4ee, -2px 0 #fe2c55;
}

.social a:hover {
    transform: scale(1.15);
}

/* ================= MAIN CONTENT ================= */
.main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 30px;
    transition: 0.5s;
}

.main.expanded {
    margin-left: 0;
    width: 100%;
}

.topo {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
    z-index: 500;  /* fica acima do banner e seções */
}

.topo::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 200px;
    background: url('fundo-fumaca.png') no-repeat center;
    background-size: cover;
    opacity: 0.25;
    top: -40px;
    z-index: 0;
    filter: blur(10px);
}

/* ================= BARRA DE BUSCA PROFISSIONAL ================= */

.search-wrapper {
    position: relative;
    width: 60%;
    z-index: 500;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #4da6ff;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s;
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.search-clear:hover {
    color: #4da6ff;
}

/* ================= AUTOCOMPLETE DROPDOWN ================= */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(5, 13, 26, 0.97);
    border: 1px solid rgba(77,166,255,0.3);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(77,166,255,0.1);
    z-index: 9999;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.search-dropdown.active {
    max-height: 320px;
    opacity: 1;
    pointer-events: all;
}

.dropdown-item {
    padding: 13px 20px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: 0.2s;
}

.dropdown-item i {
    color: rgba(77,166,255,0.5);
    font-size: 0.75rem;
}

.dropdown-item:hover {
    background: rgba(77,166,255,0.1);
    color: white;
    padding-left: 26px;
}

.dropdown-item:hover i {
    color: #4da6ff;
}

.dropdown-item mark {
    background: none;
    color: #4da6ff;
    font-weight: 700;
}


.dropdown-more {
    padding: 11px 20px;
    cursor: pointer;
    color: #4da6ff;
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid rgba(77,166,255,0.15);
    transition: background 0.2s;
    font-style: italic;
}

.dropdown-more:hover {
    background: rgba(77,166,255,0.08);
}

.dropdown-empty {
    padding: 16px 20px;
    color: #555;
    font-size: 0.9rem;
    text-align: center;
}

.topo input {
    width: 100%;
    padding: 16px 45px 16px 48px;
    border-radius: 40px;
    border: 1px solid rgba(77,166,255,0.2);
    outline: none;
    background: rgba(5, 13, 26, 0.85);
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(77,166,255,0.03);
    backdrop-filter: blur(12px);
    transition: 0.3s;
    font-size: 0.95rem;
}

.topo input:focus {
    border: 1px solid rgba(77,166,255,0.8);
    box-shadow: 
        0 0 20px rgba(77,166,255,0.3),
        0 10px 40px rgba(0,0,0,0.6);
    background: rgba(5, 13, 26, 0.95);
}

.topo input:hover {
    border-color: rgba(77,166,255,0.4);
}

.topo input::placeholder {
    color: #555;
    font-weight: 400;
}

.banner {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.banner:hover {
    border-color: rgba(77,166,255,0.6);
    box-shadow: 0 0 30px rgba(77,166,255,0.2);
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* ================= CATEGORIAS ================= */
.categorias-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.titulo-categorias {
    min-width: 220px;
    text-align: center;
}

.titulo-categorias h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 8px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #4da6ff, transparent) 1;
}

.categorias {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.cat img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(77,166,255,0.4);
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.cat:hover img {
    transform: scale(1.12);
    border-color: rgba(77,166,255,1);
    box-shadow: 
        0 0 20px rgba(77,166,255,0.5),
        0 0 40px rgba(77,166,255,0.2);
}

.cat p {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #a0cfff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.3s;
}

.cat:hover p {
    background: linear-gradient(90deg, #ffffff, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= PRODUTOS ================= */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
}

.grid::-webkit-scrollbar {
    display: none;
}

/* ================= CARD NOVO (MESMA ESTRUTURA) ================= */

/* ================= CARD COM EFEITO METÁLICO ================= */

.card {
    min-width: 280px;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;

   background: linear-gradient(145deg, rgba(10, 37, 64, 0.25), rgba(0,0,0,0.8));
    border: 1px solid rgba(10, 37, 64, 0.6);

    backdrop-filter: blur(10px);

    box-shadow: 
        0 10px 30px rgba(0,0,0,0.8),
        inset 0 0 15px rgba(255,255,255,0.05);

    transition: 0.4s ease;
}

/* efeito metálico */
.card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;

    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);

    transform: rotate(25deg);
    opacity: 0;
}

.card:hover::before {
    animation: metal 0.8s linear;
    opacity: 1;
}

@keyframes metal {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0,0,0,1),
        0 0 20px rgba(10, 37, 64, 0.6);

    border: 1px solid rgba(77, 166, 255, 0.8);
}

/* ================= TEXTO + PREÇO PROFISSIONAL ================= */

/* hover mais alinhado com sua paleta */
.card:hover h3 {
    background: linear-gradient(90deg, #ffffff, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text; /* Adicione esta linha */
    -webkit-text-fill-color: transparent;
}

/* PREÇO */
.card p {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 10px 0;

    background: linear-gradient(90deg, #ffffff, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 6px rgba(107,184,255,0.4));
}

/* ================= TÍTULOS DE SEÇÃO ================= */
.produtos h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    display: inline-block;
    position: relative;
}

.produtos h2 span {
    background: linear-gradient(90deg, #ffffff, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.produtos h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4da6ff, transparent);
    border-radius: 2px;
}

.card-img-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.1);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.card-img-container.tenis-fit {
    height: 380px;
}

.card-img-container.tenis-fit img {
    object-fit: cover;
    object-position: center;
}

.card-img-container.tenis img {
    object-fit: cover;
    object-position: center;
}

.card h3 {
    font-size: 1.05rem;
    height: 3rem;
    overflow: hidden;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    background: linear-gradient(90deg, #ffffff, #cfcfcf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.img-verso {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.has-hover:hover .img-frente {
    opacity: 0;
}

.has-hover:hover .img-verso {
    opacity: 1;
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;

    background: linear-gradient(90deg, #0a2540, #020c1b);
    color: white;

    text-decoration: none;
    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* brilho passando (combina com o card) */
.buy-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    opacity: 0;
    transition: 0.4s;
}

.buy-btn:hover::before {
    opacity: 1;
    animation: brilhoBtn 0.6s linear;
}

@keyframes brilhoBtn {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* hover */
.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(77,166,255,0.6);
}

/* clique */
.buy-btn:active {
    transform: scale(0.96);
}

.slider-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: white;
    color: black;
}

.slider-btn.prev { left: -15px; }
.slider-btn.next { right: -15px; }

/* ================= BANNERS CATEGORIAS (AJUSTE FINAL) ================= */
.sessao-banners-categorias {
    display: flex;
    gap: 20px;
    padding: 30px 0;
    width: 100%;
    justify-content: center;
}

.sessao-banners-categorias .banner-categoria:only-child {
    max-width: calc(50% - 10px);
}

.banner-categoria {
    flex: 1;
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.banner-categoria:hover {
    border-color: rgba(77,166,255,0.7);
    box-shadow: 0 0 25px rgba(77,166,255,0.3);
}

.banner-categoria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.banner-categoria:hover img {
    transform: scale(1.05);
}

.overlay-banner {
    position: absolute;
    inset: 0;
    background: transparent; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay-banner h2, 
.overlay-banner .btn-comprar {
    display: none; 
}

/* ================= ZOOM CAMISAS DE TIMES ================= */
#timesSlider .card-img-container img {
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

#timesSlider .card-img-container:hover img {
    transform: scale(1.05);
}
.preco-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin: 10px 0;
}

.preco-desconto {
    background: #e03131;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.preco-riscado {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}

.preco-principal {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, #6bb8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(107,184,255,0.4));
}

.preco-parcela {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* ================= PÁGINA DE RESULTADOS ================= */
.search-results-page {
    display: none;
    padding: 20px 0;
}

.search-results-page.active {
    display: block;
}

.content-main.hidden {
    display: none;
}

.search-results-header {
    margin-bottom: 30px;
}

.search-results-back {
    background: none;
    border: 1px solid rgba(77,166,255,0.4);
    color: #4da6ff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-results-back:hover {
    background: rgba(77,166,255,0.1);
}

.search-results-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.search-results-header h2 span {
    background: linear-gradient(90deg, #ffffff, #4da6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-results-header p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.search-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.search-results-grid .card {
    min-width: 0;
    width: calc(25% - 20px);
}

@media (max-width: 900px) {
    .search-results-grid .card {
        width: calc(50% - 10px);
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* ================= BANNERS PIRÂMIDE ================= */
.sessao-banners-trio {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
}

.banner-piramide-topo {
    display: flex;
    justify-content: center;
}

.banner-piramide-base {
    display: flex;
    gap: 15px;
}

.banner-piramide-item {
    display: block;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.banner-piramide-topo .banner-piramide-item {
    width: 70%;
    height: 280px;
}

.banner-piramide-base .banner-piramide-item {
    flex: 1;
    height: 220px;
}

.banner-piramide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.banner-piramide-item:hover img {
    transform: scale(1.05);
}

.banner-piramide-item:hover {
    border-color: rgba(77,166,255,0.7);
    box-shadow: 0 0 25px rgba(77,166,255,0.3);
}

/* ================= SEÇÃO OCULTA ================= */
.sec-hidden {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* ================= OVERLAY MOBILE (desativado — sidebar igual ao desktop) ================= */
.sidebar-overlay {
    display: none !important;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 900px) {
    .sessao-banners-categorias {
        flex-direction: column;
    }
    .sessao-banners-categorias .banner-categoria:only-child {
        max-width: 100% !important;
    }
    .banner-categoria {
        height: 300px;
    }
}

@media (max-width: 600px) {
    /* busca */
    .search-wrapper {
        width: 100%;
    }

    .topo input {
        font-size: 0.88rem;
        padding: 14px 42px 14px 44px;
    }

    .search-icon {
        left: 14px;
        font-size: 0.9rem;
    }

    .search-dropdown {
        border-radius: 12px;
        font-size: 0.88rem;
    }

    .dropdown-item {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    /* sidebar menor no mobile */
    .sidebar {
        width: 230px;
        padding: 70px 15px 35px;
    }

    .logo {
        width: 210px;
    }

    .menu li {
        padding: 15px 14px;
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .main {
        margin-left: 230px;
        width: calc(100% - 230px);
        padding: 20px 12px;
    }

    /* categorias em 2 linhas de 4, última linha centralizada */
    .categorias-container {
        gap: 18px;
        margin-bottom: 35px;
    }
    .categorias {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        justify-items: center;
    }
    .cat:nth-child(5) { grid-column: 1; }
    .cat:nth-child(6) { grid-column: 2; }
    .cat:nth-child(7) { grid-column: 3; }
    .cat img {
        width: 62px;
        height: 62px;
    }
    .cat p {
        font-size: 0.62rem;
        text-align: center;
    }
    .titulo-categorias h2 {
        font-size: 1.1rem;
    }

    /* redes sociais mais acima */
    .social {
        margin-top: auto;
        margin-bottom: 30px;
    }

    /* cards — 2 visíveis por vez */
    .card {
        min-width: 260px;
        max-width: 260px;
    }

    /* página de resultados no mobile */
    .search-results-page {
        padding-top: 10px;
    }

    .search-results-back {
        position: relative;
        z-index: 600;
        pointer-events: all;
    }

    /* cards nos resultados de busca — 2 por linha */
    .search-results-grid {
        gap: 12px;
    }

    .search-results-grid .card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: calc(50% - 6px) !important;
    }

    .search-results-grid .card-img-container {
        height: 180px !important;
    }
    .card-img-container {
        height: 220px;
    }
    .card h3 {
        font-size: 0.92rem;
        height: 3rem;
    }
    .card p {
        font-size: 1.15rem;
    }
    .buy-btn {
        padding: 12px;
        font-size: 0.85rem;
    }

    /* slider botões */
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .slider-btn.prev { left: -6px; }
    .slider-btn.next { right: -6px; }

    /* títulos seções */
    .produtos h2 {
        font-size: 1.1rem;
    }

    /* banners categorias */
    .banner-categoria {
        height: 220px;
    }

    /* banner principal */
    .banner {
        margin-bottom: 25px;
    }

    /* grid scroll */
    .grid {
        gap: 10px;
        padding: 12px 3px;
    }

    /* banners pirâmide */
    .banner-piramide-topo .banner-piramide-item {
        width: 100%;
        height: 220px;
    }
    .banner-piramide-base .banner-piramide-item {
        height: 160px;
    }
}/* =====================================================
   PATCH DE PERFORMANCE — adicionar ao FINAL do dashboard.css
   ===================================================== */

/* 1. Reduz delay das animações de entrada para não parecer lento */
.sidebar    { animation-duration: 0.4s; }
.topo       { animation-duration: 0.4s; animation-delay: 0.05s; }
.banner     { animation-duration: 0.5s; animation-delay: 0.1s; }
.categorias-container { animation-duration: 0.4s; animation-delay: 0.15s; }
.produtos   { animation-duration: 0.4s; animation-delay: 0.2s; }

/* 2. Reserva espaço para imagens dos cards antes de carregar (evita CLS) */
.card-img-container img {
    /* O browser já vai usar os atributos width/height do HTML para calcular
       o aspect-ratio, mas isso garante que nenhuma imagem "empurre" o layout */
    content-visibility: auto;
}

/* 3. Placeholder cinza enquanto imagem carrega — elimina o "flash branco" */
.card-img-container {
    background: rgba(255,255,255,0.04);
}

/* 4. Skeleton loader sutil nas imagens de frente durante carregamento */
.img-frente:not([complete]) {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.2s ease infinite;
}

@keyframes skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 5. Imagens de categorias — reserva espaço circular antes de carregar */
.cat img {
    background: rgba(255,255,255,0.05);
}/* =====================================================
   MOBILE FIX — adicionar ao FINAL do dashboard.css
   (substitui o bloco .sidebar-overlay que estava com display:none !important)
   ===================================================== */

/* Overlay mobile — reativado */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 900px) {
    /* Sidebar fica escondida fora da tela por padrão no mobile */
    .sidebar {
        left: -280px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    /* Quando aberta, desliza para dentro */
    .sidebar.aberta {
        left: 0;
    }

    /* Conteúdo principal ocupa tela toda no mobile */
    .main {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .sidebar {
        left: -230px;
        transition: left 0.3s ease;
    }

    .sidebar.aberta {
        left: 0;
    }
}/* =====================================================
   FIX CARDS ESPORTIVOS MOBILE — adicionar ao FINAL do dashboard.css
   ===================================================== */

@media (max-width: 900px) {
    #esportivoSlider .card-img-container,
    #esportivoSlider .card-img-container.tenis-fit,
    #esportivoSlider .card-img-container.tenis {
        height: 220px;
    }

    #esportivoSlider .card {
        min-width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 600px) {
    #esportivoSlider .card-img-container,
    #esportivoSlider .card-img-container.tenis-fit,
    #esportivoSlider .card-img-container.tenis {
        height: 220px;
    }

    #esportivoSlider .card {
        min-width: 260px;
        max-width: 260px;
    }
}