/* ===========================
   Basis
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Inter,Arial,sans-serif;
    /*
    Dark mode
    background:#0d1117;
    color:white;*/

    /*Light mode*/
    background:#f6f8fa;
    color:#24292f;
}


.container{
    width:min(1700px,95%);
    margin:40px auto;
}

.desktop-only{
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}

/* ===========================
   Header
=========================== */

.page-header{
    position:relative;
    margin-bottom:35px;
}


.page-header h1{
    font-size:34px;
    margin-bottom:8px;
}


.page-header p{
    /*
    Dark mode
    color:#8b949e;*/
    color:#57606a;
}


.upload-button{

    position:absolute;
    right:0;
    top:0;

    background:#2563eb;
    color:white;

    padding:12px 18px;

    border-radius:10px;

    text-decoration:none;

    font-size:14px;
    font-weight:600;

    transition:.2s;
}

.upload-button:hover{
    background:#1d4ed8;
}


.search{

    margin-top:25px;

    width:100%;
    max-width:500px;

    padding:14px 18px;

    /*Dark mode
    background:#161b22;

    border:1px solid #30363d;

    color:white;*/

    background:white;
    border:1px solid #d0d7de;
    color:#24292f;

    border-radius:10px;

    font-size:15px;
}


/* ===========================
   Product grid
=========================== */

.products{

    display:grid;

    grid-template-columns:repeat(5,minmax(260px,1fr));

    gap:20px;

}


@media(max-width:1600px){

    .products{
        grid-template-columns:repeat(4,1fr);
    }

}


@media(max-width:1250px){

    .products{
        grid-template-columns:repeat(3,1fr);
    }

}


@media(max-width:900px){

    .products{
        grid-template-columns:repeat(2,1fr);
    }

}


@media(max-width:600px){

    .products{
        grid-template-columns:1fr;
    }

}


/* ===========================
   Product cards
=========================== */

.product-card{

    /*Dark mode
    background:#161b22;
    border:1px solid #30363d;*/

    background:white;
    border:1px solid #d8dee4;

    border-radius:14px;

    overflow:hidden;

    transition:.2s;

}


.product-card:hover{

    border-color:#3b82f6;

    transform:translateY(-4px);

}



/* Product header */

.product-header{

    display:flex;

    align-items:center;

    gap:14px;

    padding:16px;

    /*Dark mode
    border-bottom:1px solid #30363d;*/

    border-bottom:1px solid #d8dee4;
}


.product-header img{

    width:60px;
    height:60px;

    object-fit:contain;

    background:white;

    border-radius:10px;

    padding:6px;

}


.product-header h2{

    font-size:17px;

}


.product-header span{

    /*
    Dark mode
    color:#8b949e;*/
    color:#57606a;

    font-size:13px;

}



/* ===========================
   Offers
=========================== */


.offers{

    padding:12px;

    display:flex;

    flex-direction:column;

    gap:10px;

}


.offer{

    display:grid;

    grid-template-columns:34px 1fr;

    gap:10px;

    /*Dark mode
    background:#0d1117;
    border:1px solid #30363d;*/

    background:#f6f8fa;
    border:1px solid #d0d7de;

    border-radius:10px;

    padding:10px;

}


.offer img{

    width:34px;

    height:34px;

    object-fit:contain;

    background:white;

    border-radius:6px;

    padding:3px;

}


.offer span{

    align-self:center;

    font-size:14px;

}



.offer a{

    grid-column:1 / -1;

    text-align:center;

    background:#2563eb;

    color:white;

    padding:9px;

    border-radius:8px;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

}



/* Beste aanbieding */

.offer.best{

    border-color:#22c55e;

    /*Dark mode
    background:#102417;*/

    background:#dcfce7;
}


.offer.best a{

    background:#22c55e;

}