/* ======================================================
   RESET
====================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}


body{
    background:#fff;
    color:#111;
}


/* ======================================================
   HEADER
====================================================== */

header{
    background:#000;
    color:#fff;
    padding:15px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:10000;
}






.logo{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}


.logo a{
    display:block;
}


.logo img{
    width:70px;
    height:80px;
    object-fit:cover;
    border-radius:10px;
}


.logo span{
    color:#fff;
    font-weight:600;
    font-size:30px;
}


.search{
    width:40%;
    position:relative;
}


.search input{
    width:100%;
    padding:13px 18px;
    border:none;
    border-radius:25px;
    outline:none;
    font-size:15px;
}


/* ======================================================
   MENU
====================================================== */

.menu{
    display:flex;
    align-items:center;
    gap:10px;
}


.menu a{
    color:#fff;
    text-decoration:none;
    padding:10px 12px;
}


.menu a:hover{
    color:goldenrod;
}


.btn-admin{
    background:goldenrod;
    color:#000 !important;
    padding:10px 15px !important;
    border-radius:10px;
    font-weight:bold;
}


/* ======================================================
   MENU MOBILE
====================================================== */

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:white;
    font-size:35px;
    cursor:pointer;
}


@media(max-width:768px){

    header{
        flex-wrap:wrap;
        padding:15px;
    }

    .logo span{
        font-size:24px;
    }

    .search{
        width:100%;
        order:3;
    }

    .menu-toggle{
        display:block;
    }

    .menu{
        display:none;
        flex-direction:column;
        width:100%;
        background:#111;
        border-radius:10px;
        overflow:hidden;
    }

    .menu.ativo{
        display:flex;
    }

    .menu a{
        width:100%;
        padding:15px;
        border-bottom:1px solid #333;
    }

}


/* ======================================================
   BANNER
====================================================== */

.banner{
    height:350px;
    background:url(
        'https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1200'
    );
    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;
}


.banner h1{
    color:goldenrod;
    font-size:50px;
    text-shadow:0 0 10px #000;
    text-align:center;
}


@media(max-width:600px){

    .banner{
        height:250px;
    }

    .banner h1{
        font-size:35px;
    }

}


/* ======================================================
   TITULOS
====================================================== */

.titulo-carrossel{
    text-align:center;
    margin:25px 0 20px;
}


/* ======================================================
   CATEGORIAS / LOJAS ANIMADAS
====================================================== */

.carrossel-container{
    width:100%;
    overflow:hidden;
    background:#fff;
    padding:10px 0;
}


.Atividades{
    width:100%;
    overflow:hidden;
}


.track{
    display:flex;
    width:max-content;
    animation:deslizar 20s linear infinite;
}


.track:hover{
    animation-play-state:paused;
}


.category{
    min-width:220px;
    margin-right:15px;
    padding:15px 25px;
    background:#fff;
    color:#000;
    border:1px solid #000;
    border-radius:8px;
    text-align:center;
    font-weight:600;
    white-space:nowrap;
    text-decoration:none;
}


.category:hover{
    background:goldenrod;
    border-radius:14px;
}


@keyframes deslizar{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }

}


/* ======================================================
   CARROSSEL DE LOJAS
====================================================== */

.carrossel-lojas{
    display:flex;
    align-items:center;
    gap:10px;
    padding:20px;
}


.lista-lojas{
    display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    flex:1;
    scrollbar-width:none;
}


.lista-lojas::-webkit-scrollbar{
    display:none;
}


.cards{
    min-width:250px;
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    text-decoration:none;
    overflow:hidden;
    border-radius:12px;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,.1);
}


.cards img{
    width:100%;
    height:250px;
    object-fit:cover;
    display:block;
}


.cards .btn{
    width:100%;
    padding:14px;
    border:none;
    background:goldenrod;
    color:#fff;
    font-weight:700;
    text-align:center;
}


.seta{
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    font-size:24px;
    cursor:pointer;
    background:goldenrod;
    color:#000;
    font-weight:bold;
    flex-shrink:0;
}


@media(max-width:600px){

    .carrossel-lojas{
        padding:10px;
    }

    .seta{
        width:40px;
        height:40px;
        font-size:18px;
    }

    .cards{
        min-width:210px;
    }

}


/* ======================================================
   CATEGORIAS DE PRODUTOS
====================================================== */

.categorias{
    display:flex;
    gap:15px;
    overflow:auto;
    padding:20px;
    background:#fff;
    justify-content:center;
}


.categoria{
    min-width:150px;
    text-align:center;
    background:#eee;
    padding:15px;
    border-radius:20px;
    cursor:pointer;
}


.categoria:hover{
    background:goldenrod;
}


/* ======================================================
   PRODUTOS
====================================================== */

#produtos{
    display:grid;
    grid-template-columns:
        repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
    padding:20px;
}


.card{
    background:#fff;
    overflow:hidden;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,.1);
    transition:.3s;
}


.card:hover{
    transform:translateY(-5px);
}


.card > img{
    width:100%;
    height:250px;
    object-fit:cover;
    display:block;
    cursor:pointer;
}


.info{
    padding:15px;
}


.info h3{
    margin-bottom:10px;
}


.preco{
    color:red;
    font-size:24px;
    font-weight:bold;
    margin-bottom:12px;
}


.btn{
    width:100%;
    border:none;
    background:goldenrod;
    color:white;
    padding:12px;
    cursor:pointer;
    border-radius:6px;
    font-weight:bold;
}


.btn:hover{
    opacity:.9;
}


/* ======================================================
   PESQUISA
====================================================== */

#results{
    position:absolute;
    top:50px;
    left:0;
    width:100%;
    background:#fff;
    border-radius:10px;
    box-shadow:0 5px 20px rgba(0,0,0,.2);
    z-index:9999;
    max-height:350px;
    overflow-y:auto;
    display:none;
}


.product{
    padding:12px;
    border-bottom:1px solid #ddd;
    cursor:pointer;
    min-height:80px;
}


.product:hover{
    background:#f7f7f7;
}


.product img{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:8px;
    float:left;
    margin-right:10px;
}


.product h3{
    margin-bottom:5px;
    color:#000;
}


.product p{
    color:#666;
    font-size:13px;
}


.product strong{
    color:red;
    font-size:18px;
}


/* ======================================================
   LIGHTBOX
====================================================== */

.lightbox{
    display:none;
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.92);
    z-index:99999;
}


.lightbox.ativo{
    display:block;
}


.lightbox-conteudo{
    width:100%;
    height:100%;
    display:flex;
}


/* ======================================================
   LADO ESQUERDO
====================================================== */

.lado-esquerdo{
    width:50%;
    height:100%;
    background:#111;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    position:relative;
    padding:40px;
    overflow-y:auto;
    scrollbar-width:none;
}


.lado-esquerdo::-webkit-scrollbar{
    display:none;
}


#imagemExpandida{
    width:90%;
    height:52%;
    object-fit:contain;
    border-radius:12px;
    display:block;
}


/* ======================================================
   SETAS DAS FOTOS
====================================================== */

.seta-foto{
    position:absolute;
    top:30%;
    transform:translateY(-50%);
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.9);
    color:#000;
    font-size:25px;
    font-weight:bold;
    cursor:pointer;
    z-index:5;
}


.seta-foto:hover{
    background:goldenrod;
}


.seta-anterior{
    left:20px;
}


.seta-proxima{
    right:20px;
}


/* ======================================================
   CONTADOR
====================================================== */

.contador-fotos{
    color:#fff;
    margin-top:8px;
    font-size:15px;
}


/* ======================================================
   MINIATURAS
====================================================== */

.miniaturas{
    display:flex;
    gap:10px;
    margin-top:12px;
    max-width:90%;
    overflow-x:auto;
    padding-bottom:5px;
    scrollbar-width:none;
}


.miniaturas::-webkit-scrollbar{
    display:none;
}


.miniaturas img{
    width:65px;
    height:65px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
    border:3px solid transparent;
    flex-shrink:0;
}


.miniaturas img:hover,
.miniaturas img.ativa{
    border-color:goldenrod;
}


/* ======================================================
   INFORMAÇÕES DO PRODUTO
====================================================== */

.info-produto-lightbox{
    width:90%;
    margin-top:15px;
    color:#fff;
}


#produtoNome{
    font-size:28px;
    margin-bottom:8px;
}


#produtoDescricao{
    line-height:1.5;
    margin-bottom:10px;
    max-height:90px;
    overflow:auto;
}


#produtoPreco{
    font-size:28px;
    font-weight:bold;
    color:#ff4d4d;
}


#produtoStock{
    color:#4ade80;
    margin:8px 0;
}


#quantidade{
    width:80px;
    padding:8px;
    margin-top:5px;
    border-radius:6px;
    border:1px solid #ccc;
}


/* ======================================================
   LADO DIREITO
====================================================== */

.lado-direito{
    width:50%;
    height:100%;
    background:#fff;
    padding:40px;
    overflow-y:auto;
    scrollbar-width:none;
}


.lado-direito::-webkit-scrollbar{
    display:none;
}


.lado-direito h2{
    color:#111;
    margin-bottom:25px;
    text-align:center;
}


.outros-produtos{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:20px;
}


.outro-produto{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 3px 15px rgba(0,0,0,.12);
    cursor:pointer;
    transition:.2s;
    border:1px solid #eee;
}


.outro-produto:hover{
    transform:translateY(-4px);
}


.outro-produto img{
    width:100%;
    height:170px;
    object-fit:cover;
    display:block;
}


.outro-produto-info{
    padding:12px;
}


.outro-produto-info h3{
    font-size:16px;
    margin-bottom:8px;
    color:#111;
}


.outro-produto-info strong{
    color:red;
    font-size:18px;
}


/* ======================================================
   FECHAR
====================================================== */

.fechar{
    position:fixed;
    top:15px;
    right:20px;
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    font-size:30px;
    cursor:pointer;
    background:#fff;
    color:#000;
    z-index:100000;
}


.fechar:hover{
    background:goldenrod;
}


/* ======================================================
   COMPUTADORES GRANDES - 1200px ou mais
====================================================== */

@media (min-width: 1200px){

    header{
        padding: 15px 50px;
    }

    .search{
        width: 40%;
    }

    #produtos{
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 30px 40px;
        gap: 25px;
    }

    .cards{
        min-width: 250px;
    }

}


/* ======================================================
   PORTÁTEIS E ECRÃS MÉDIOS - 1024px
====================================================== */

@media (max-width: 1024px){

    header{
        padding: 15px 25px;
        gap: 15px;
    }

    .logo img{
        width: 60px;
        height: 65px;
    }

    .logo span{
        font-size: 25px;
    }

    .search{
        width: 30%;
    }

    .menu{
        gap: 5px;
    }

    .menu a{
        padding: 10px 8px;
        font-size: 14px;
    }

    #produtos{
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .cards{
        min-width: 220px;
    }

    .lado-esquerdo,
    .lado-direito{
        padding: 25px;
    }

}


/* ======================================================
   TABLETS - 900px
====================================================== */

@media (max-width: 900px){

    .lightbox{
        overflow-y: auto;
    }

    .lightbox-conteudo{
        flex-direction: column;
        height: auto;
    }

    .lado-esquerdo,
    .lado-direito{
        width: 100%;
        min-height: 100vh;
        height: auto;
    }

    #imagemExpandida{
        height: 45vh;
    }

    .outros-produtos{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ======================================================
   TABLETS PEQUENOS - 768px
====================================================== */

@media (max-width: 768px){

    header{
        flex-wrap: wrap;
        padding: 15px;
    }

    .logo span{
        font-size: 24px;
    }

    .search{
        width: 100%;
        order: 3;
    }

    .menu-toggle{
        display: block;
    }

    .menu{
        display: none;
        flex-direction: column;
        width: 100%;
        background: #111;
        border-radius: 10px;
        overflow: hidden;
    }

    .menu.ativo{
        display: flex;
    }

    .menu a{
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid #333;
    }

    #produtos{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .cards{
        min-width: 210px;
    }

    .carrossel-lojas{
        padding: 10px;
    }

    .seta{
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

}


/* ======================================================
   TELEMÓVEIS - 600px
====================================================== */

@media (max-width: 600px){

    .banner{
        height: 250px;
    }

    .banner h1{
        font-size: 35px;
    }

    .categorias{
        justify-content: flex-start;
        padding: 15px;
    }

    .categoria{
        min-width: 130px;
        padding: 12px;
    }

    #produtos{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .card > img{
        height: 180px;
    }

    .info{
        padding: 10px;
    }

    .preco{
        font-size: 20px;
    }

    .cards{
        min-width: 200px;
    }

    .lado-esquerdo,
    .lado-direito{
        padding: 20px;
    }

}


/* ======================================================
   TELEMÓVEIS PEQUENOS - 500px
====================================================== */

@media (max-width: 500px){

    .logo img{
        width: 50px;
        height: 55px;
    }

    .logo span{
        font-size: 21px;
    }

    .banner{
        height: 220px;
    }

    .banner h1{
        font-size: 28px;
    }

    #produtos{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .card > img{
        height: 150px;
    }

    .info h3{
        font-size: 15px;
    }

    .preco{
        font-size: 18px;
    }

    .btn{
        padding: 10px 5px;
        font-size: 13px;
    }

    .outros-produtos{
        grid-template-columns: 1fr;
    }

    #produtoNome{
        font-size: 22px;
    }

    #produtoPreco{
        font-size: 24px;
    }

}


/* ======================================================
   TELEMÓVEIS MUITO PEQUENOS - 400px
====================================================== */

@media (max-width: 400px){

    header{
        padding: 10px;
        gap: 10px;
    }

    .logo img{
        width: 45px;
        height: 50px;
    }

    .logo span{
        font-size: 18px;
    }

    .menu-toggle{
        font-size: 30px;
    }

    .banner{
        height: 190px;
    }

    .banner h1{
        font-size: 24px;
    }

    #produtos{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .card > img{
        height: 130px;
    }

    .info{
        padding: 8px;
    }

    .info h3{
        font-size: 14px;
    }

    .preco{
        font-size: 16px;
    }

    .btn{
        font-size: 12px;
        padding: 10px 4px;
    }

    .category{
        min-width: 170px;
        padding: 12px 15px;
        font-size: 13px;
    }

    .miniaturas img{
        width: 50px;
        height: 50px;
    }

}


/* ======================================================
   ECRÃS EXTRA PEQUENOS - 350px
====================================================== */

@media (max-width: 350px){

    .logo span{
        font-size: 16px;
    }

    .banner h1{
        font-size: 21px;
    }

    #produtos{
        gap: 6px;
        padding: 6px;
    }

    .card > img{
        height: 110px;
    }

    .info h3{
        font-size: 13px;
    }

    .preco{
        font-size: 15px;
    }

    .btn{
        font-size: 11px;
        padding: 9px 3px;
    }

    .seta{
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

}


/* ======================================================
   ECRÃS DE 320px
====================================================== */

@media (max-width: 320px){

    header{
        padding: 8px;
    }

    .logo span{
        font-size: 16px;
    }

    .logo img{
        width: 40px;
        height: 45px;
    }

    .menu-toggle{
        font-size: 26px;
    }

    .search input{
        font-size: 13px;
        padding: 10px 12px;
    }

    .banner{
        height: 170px;
    }

    .banner h1{
        font-size: 21px;
    }

    #produtos{
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }

    .card > img{
        height: 180px;
    }

    .info h3{
        font-size: 15px;
    }

    .preco{
        font-size: 18px;
    }

    .btn{
        font-size: 13px;
        padding: 12px;
    }

}


/* ======================================================
   ECRÃS DE 280px
====================================================== */

@media (max-width: 280px){

    .logo span{
        font-size: 14px;
    }

    .logo img{
        width: 35px;
        height: 40px;
    }

    .banner h1{
        font-size: 18px;
    }

    .card > img{
        height: 150px;
    }

    .info{
        padding: 8px;
    }

    .info h3{
        font-size: 13px;
    }

    .preco{
        font-size: 16px;
    }

    .btn{
        font-size: 12px;
        padding: 10px 5px;
    }

    .lado-esquerdo,
    .lado-direito{
        padding: 12px;
    }

    #produtoNome{
        font-size: 19px;
    }

    #produtoPreco{
        font-size: 21px;
    }

}