/* ==========================================
   HOMEPAGE
========================================== */

/* HERO */

.hero{

    text-align:center;
    padding:70px 20px;

}

.hero h1{

    font-size:42px;
    margin-bottom:20px;

}

.hero p{

    font-size:20px;
    color:#666;
    margin-bottom:30px;

}

.button{

    display:inline-block;
    padding:14px 28px;
    background:#8c5cff;
    color:white;
    border-radius:10px;
    transition:.25s;

}

.button:hover{

    background:#7441ff;

}

/* SEZIONE PRODOTTI */

.products{

    max-width:1400px;
    margin:50px auto;
    padding:0 20px;

}

.products h2{

    text-align:center;
    margin-bottom:40px;
    font-size:32px;

}

/* GRIGLIA */

.cards{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,320px));
    gap:35px;
    justify-content:center;
    padding:40px 20px;

}

/* CARD */

.card{

    background:white;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 8px 30px rgba(0,0,0,.08);

    transition:.30s;

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:0 16px 40px rgba(0,0,0,.14);

}

.card img{

    width:100%;
    height:240px;
    object-fit:cover;

}

.card-body{

    padding:20px;

}

.card h3{

    margin-bottom:10px;

}

.card p{

    color:#666;
    margin-bottom:15px;

}

.price{

    font-size:22px;
    font-weight:bold;
    color:#8c5cff;

}

body{

    background:#F4ECFA;

}

.hero{

    background:#F4ECFA;

}

.products-section{

    background:#F4ECFA;

}

.hero{

    background:#F4ECFA;

}

/* ===================================================
   MENU CATEGORIE DCGCOLLECTION
=================================================== */

.category-bar{

    display:flex;

    align-items:center;

    gap:12px;

    flex-wrap:wrap;

    margin:35px 0;

}

.category-item{

    position:relative;

}

.category-item>a{

    display:block;

    padding:10px 18px;

    border-radius:12px;

    background:#f5f5f5;

    color:#333;

    text-decoration:none;

    font-weight:600;

    transition:.25s;

}

.category-item>a:hover{

    background:#7B4BFF;

    color:white;

}

.category-item>a.active{

    background:#7B4BFF;

    color:white;

}

.arrow{

    margin-left:6px;

    font-size:.8rem;

}

.dropdown-menu{

    position:absolute;

    top:110%;

    left:0;

    min-width:220px;

    background:white;

    border-radius:14px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.15);

    opacity:0;

    visibility:hidden;

    transform:translateY(8px);

    transition:.25s;

    z-index:1000;

}

.dropdown:hover .dropdown-menu{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.dropdown-menu a{

    display:block;

    padding:14px 18px;

    text-decoration:none;

    color:#444;

    transition:.2s;

}

.dropdown-menu a:hover{

    background:#7B4BFF;

    color:white;

}

/* ===========================
   FILTRI
=========================== */

.filters-panel{

    margin:25px 0 35px;

    padding:20px;

    background:#ffffff;

    border:1px solid #e5e5e5;

    border-radius:14px;

    box-shadow:0 5px 15px rgba(0,0,0,.05);

}

.filters-grid{

    display:grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr
        1fr;

    gap:15px;

}

.filters-grid input,
.filters-grid select{

    width:100%;

    padding:12px 14px;

    border:1px solid #d7d7d7;

    border-radius:10px;

    font-size:15px;

    background:white;

}

.filters-grid input:focus,
.filters-grid select:focus{

    outline:none;

    border-color:#7d4cff;

}

@media (max-width:768px){

.filters-grid{

    grid-template-columns:1fr;

}

}

.filters-actions{

    margin-top:18px;

    display:flex;

    justify-content:flex-end;

}

.reset-filters{

    text-decoration:none;

    background:#ececec;

    color:#333;

    padding:10px 18px;

    border-radius:10px;

    font-weight:600;

    transition:.25s;

}

.reset-filters:hover{

    background:#7d4cff;

    color:white;

}

/* ===== PULSANTE CERCA FILTRI ===== */

.filter-search-button{

    display:inline-block;
    margin-top:20px;
    padding:12px 28px;

    background:#8c5cff;
    color:white;

    border:none;
    border-radius:25px;

    font-size:16px;
    font-weight:bold;

    cursor:pointer;

    transition:.25s;

}

.filter-search-button:hover{

    background:#7441ff;
    transform:translateY(-2px);

    box-shadow:0 6px 15px rgba(116,65,255,.25);

}

/* ===== WISHLIST ===== */

.wishlist-btn{

    float:right;

    width:42px;
    height:42px;

    margin:8px 10px 0 0;

    border:none;
    border-radius:50%;

    background:white;

    color:#8c5cff;

    font-size:28px;
    line-height:42px;

    cursor:pointer;

    box-shadow:0 4px 12px rgba(0,0,0,.10);

    transition:.25s;

}

.wishlist-btn:hover{

    transform:scale(1.1);

    box-shadow:0 6px 16px rgba(0,0,0,.15);

}

.wishlist-btn.active{

    background:#8c5cff;

    color:white;

}
