/* ==========================================================================
   APP
   ========================================================================== */

.app{

    min-height:100dvh;

    display:flex;

    flex-direction:column;

    background:var(--background);

    color:var(--text);

}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.container{

    width:min(calc(100% - 32px),var(--container));

    margin-inline:auto;

}

/* ==========================================================================
   SEÇÕES
   ========================================================================== */

section{

    position:relative;

    width:100%;

    padding:var(--space-8) 0;

}

/* ==========================================================================
   MAIN
   ========================================================================== */

main{

    flex:1;

    min-height:400px;

}

/* ==========================================================================
   GRID DE PRODUTOS
   ========================================================================== */

.products{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));

    gap:24px;

    align-items:start;

}

/* ==========================================================================
   SCROLL HORIZONTAL
   ========================================================================== */

.horizontal-scroll{

    display:flex;

    gap:16px;

    overflow-x:auto;

    overflow-y:hidden;

    scroll-behavior:smooth;

    scroll-snap-type:x proximity;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;

}

.horizontal-scroll::-webkit-scrollbar{

    display:none;

}

.horizontal-scroll>*{

    scroll-snap-align:start;

    flex-shrink:0;

}

/* ==========================================================================
   BOTÃO PADRÃO
   ========================================================================== */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    min-height:48px;

    padding:0 24px;

    border:none;

    border-radius:var(--radius-pill);

    background:var(--primary);

    color:#fff;

    font-size:.95rem;

    font-weight:600;

    text-decoration:none;

    cursor:pointer;

    user-select:none;

    transition:

        background .2s,

        transform .15s,

        box-shadow .2s;

}

.btn:hover{

    background:var(--primary-hover);

    box-shadow:var(--shadow-sm);

}

.btn:active{

    transform:scale(.98);

}

.btn:disabled{

    opacity:.6;

    cursor:not-allowed;

    pointer-events:none;

}

/* ==========================================================================
   BOTÃO SECUNDÁRIO
   ========================================================================== */

.btn-outline{

    background:transparent;

    border:2px solid var(--primary);

    color:var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}

.btn-outline:active{

    transform:scale(.98);

}

/* ==========================================================================
   CARD
   ========================================================================== */

.card{

    display:flex;

    flex-direction:column;

    overflow:hidden;

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow-sm);

    transition:

        transform .25s,

        box-shadow .25s,

        border-color .25s;

}

.card:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow-lg);

    border-color:rgba(0,0,0,.05);

}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width:768px){

    section{

        padding:var(--space-6) 0;

    }

    .products{

        grid-template-columns:1fr;

        gap:20px;

    }

    .container{

        width:min(calc(100% - 24px),var(--container));

    }

}