@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap');

:root{
    --green:#27ae60;
    --black:#192a56;
    --light-color:#666;
    --box-shadow:0 .5rem 1.5rem rgba(0,0,0,.1);
}

*{
    font-family: 'Nunito', sans-serif;
    margin:0; padding:0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none; border:none;
    transition: all .2s linear;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 5.5rem;
    scroll-behavior: smooth;
}

section {
    padding: 2rem 4%;
}

section:nth-child(even){
    background:#eee;
}

.sub-heading{
    text-align: center;
    color:var(--green);
    font-size: 2rem;
    padding-top: 1rem;
}

.heading{
    text-align: center;
    color:var(--green);
    font-size: 3rem;
    padding-bottom: 2rem;
    text-transform: uppercase;
}

.btn{
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
    font-size: 1.8rem;
    color:#fff;
    background: var(--black);
    border-radius: .5rem;
    cursor: pointer;
    padding:.9rem 4.2rem;
    margin-left: 1.4%;
}

.btn:hover{
    background: var(--green);
}

header {
    position: fixed;
    top:0; left: 0; right:0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}

header .logo{
    color:var(--black);
    font-size: 3.5rem;
    font-weight: bolder;
}

header .logo i{
    color:var(--green);
}

header .logo img {
    max-width: 100px;
    height: auto;
}

header .navbar a{
    font-size: 1.7rem;
    border-radius: .5rem;
    padding:.5rem 1.5rem;
    color:var(--light-color);
    left: 10px;
}

header .navbar a.active,
header .navbar a:hover{
    color:#fff;
    background: var(--green);
}

header .icons i,
header .icons a{
    cursor: pointer;
    margin-left: .5rem;
    height:4.5rem;
    line-height: 4.5rem;
    width:4.5rem;
    text-align: center;
    font-size: 1.7rem;
    color:var(--black);
    border-radius: 50%;
    background: #eee;
}

header .icons i:hover,
header .icons a:hover{
    color:#fff;
    background: var(--green);
    transform: rotate(360deg);
}

header .icons #menu-bars{
    display: none;
}


/* start menu */
.menu {
    display: flex;
    gap: 8px;
}

.menu a {
    text-decoration: none;
    color: #0366d6;
}

.menu a:hover {
    text-decoration: underline;
}

.toggle-button {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.toggle-button div {
    width: 25px;
    height: 3px;
    background: #00000091;
    margin: 4px 0;
}

/* end menu */

/* msg product indisponible start */

.no-products-message {
    color: #ff0000;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    margin: 20px;
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    padding: 10px;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* msg product indisponible end */

/* home section start */

.home .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, 30rem);
    justify-content: center;
    /* gap: 1.5rem;
    max-width: 1200px; */
    margin: 0 auto;
    align-items: flex-start;
}

.home {
    padding-top: 0;
}

.home .product-list .product {
    padding: 2rem;
    border-radius: .5rem;
    border: var(--border);
    box-shadow: var(--box-shadow);
    background-color: var(--white);
}

.home .product-list .product img {
    height: 25rem;
}

.home .product-list .product h3 {
    color: var(--green);
    font-size: 2.5rem;
    padding-left: .5rem;
}

.product p {
    color: var(--light-color);
    font-size: 1.6rem;
    padding: .5rem 0;
    line-height: 1.5rem;
    padding-left: .5rem;
}

/* home section end */

/* edit product start */

.edit-product-form{
    min-height: 100vh;
    background-color: rgba(0,0,0,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding:2rem;
    overflow-y: scroll;
    position: fixed;
    top:0; left:0; 
    z-index: 1200;
    width: 100%;
 }

 .edit-product-form form{
    width: 50rem;
    padding: 2rem;
    text-align: center;
    border-radius: .5rem;
    background-color: var(--white);
 }

 .edit-product-form form img{
    height: 25rem;
    margin-bottom: 1rem;
 }

 .edit-product-form form .box{
    margin:.5rem 0;
    padding:1.2rem 1.4rem;
    border:var(--border);
    border-radius: .5rem;
    background-color: var(--light-bg);
    font-size: 1.8rem;
    color:var(--black);
    width: 100%;
 }
 
/* edit product end */

/* show details start */

.home .product-list .product .holy p {
    padding: .3rem .5rem;
    display: none;
}

.home .product-list .product .holy.active p {
    display: inline-block;
}

.home .product-list .product .holy button {
    padding: .3rem .5rem;
    display: none;
}

.home .product-list .product .holy.active button {
    display: inline-block;
}

/* show details end */



/* footer section start */

.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.5rem;
}

.footer .box-container .box h3{
    padding: .5rem 0;
    font-size: 2.5rem;
    color: var(--black);
}

.footer .box-container .box a{
    display: block;
    padding: .5rem 0;
    font-size: 1.5rem;
    color: var(--light-color);
}

.footer .box-container .box a:hover{
    color: var(--green);
    text-decoration: underline;
}

.footer .credit{
    text-align: center;
    border-top: .1rem solid rgba(0,0,0,.1);
    font-size: 2rem;
    color:var(--black);
    padding:.5rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.footer .credit span{
    color: var(--green);
}

.footer .cabinet{
    text-align: center;
    font-size: 2rem;
}

.searchbouton {
        background: transparent;
        border-radius: 20px;
        width: 40rem;
        display: flex;
        align-items: center;
        padding: 0 10px;
        /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    }

    .searchbouton img {
        width: 18px;
    }

    .searchbouton input {
        width: 100%;
        background: transparent;
        padding: 10px;
        outline: none;
        border: 0;
        font-size: 1.8rem;
    }

    /* for the size of img start */
    .product {
        /* width: 150px;
        height: 100%; */
        flex-shrink: 0;
        background-color: #e9ecef;
        overflow: hidden;
    }

    .product img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .product img:hover {
        transform: scale(1.05);
    }

    /* for the size of img end */



























@media (max-width: 752px) {
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
        background: #f8f9fa;
        border: 1px solid #ccc;
    }

    .menu.active {
        display: flex;
    }

    .toggle-button {
        display: flex;
    }

}

@media (max-width: 579px) {
    .footer .credit {
        font-size: 1.8rem;
    }

    .footer .cabinet {
        font-size: 1.2rem;
    }

    .heading {
        font-size: 1.7rem;
    }

    /* .navsearch {
        padding: 7px 23%;
    } */
}

@media (max-width: 442px) {
    .search-box img {
        width: 14px;
    }

    .navsearch {
        padding: 7px 0%;
    }
}

@media (max-width: 427px) {
    .home .box-container .box .content h2{
        color: #27ae60;
        font-size: 1.5rem;
    }
}

@media (max-width: 420px) {
    .search-box img {
        width: 15px;
    }
}

@media (max-width: 350px) {
    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
        gap: 1.3rem;
    }

    .footer .credit {
        font-size: 1.7rem;
        padding: .5rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .footer .cabinet {
        text-align: center;
        font-size: 1.5rem;
    }
}

@media (max-width: 310px) {
    .footer .credit {
        font-size: 1.7rem;
        padding: .5rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .footer .cabinet {
        text-align: center;
        font-size: 1.5rem;
    }

    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
        gap: 1.5rem;
    }

    .search-box {
        width: 22.5rem;
        margin-right: 20%;
    }
}

@media (max-width: 302px) {

    .no-products-message {
        font-size: 10px;
        margin: 0px;
        background-color: #ffe6e6;
        border: 1px solid #ffcccc;
        padding: 5px;
        border-radius: 5px;
        box-shadow: 0 2px rgba(0, 0, 0, 0.1);
    }

}

@media (max-width: 281px) {

    .heading {
        text-align: center;
        font-size: 1.7rem;
        padding-bottom: 2rem;
        text-transform: uppercase;
    }

}

@media (max-width: 287px) {
    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
        gap: 1.5rem;
    }
}