.main {
    display: flex;
}

.logo {
    display: flex;
    width: auto;
    height: 10vh;
    margin-top: 13px;
    margin-left: 5px;
}

.logo img {
    height: 100%;
    width: auto;
}

.shopname {
    margin-top: 3px;
    margin-left: -5px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;

}

.search {
    position: relative;
    margin-top: 8px;
    margin-left: 15px;
    width: 58%;
    padding: 10px;
    border-color: rgb(3, 3, 3);
    border-radius: 10px;
    outline: none;
}

.suggestions-box {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: 0.2s;
}

.suggestion-item:hover {
    background: #f9f9f9;
}

.suggestion-item img {
    width: 30px;
    height: 40px;
    margin-right: 12px;
    border-radius: 3px;
    object-fit: cover;
}

.suggestion-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}



.menu {
    position: relative;
    z-index: 100;
    display: flex;
    margin-top: 2.4%;
    margin-left: -20%;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    font-size: 18px;
    color: rgb(29, 29, 29);
    font-family: "Poppins", sans-serif;
    font-weight: bold;

}

.line {
    border: none;
    height: 3px;
    width: 10%;
    background-color: rgb(240, 84, 110);
    margin-left: 5%;
    margin-top: -1.6%
}

.dropdown-content a {
    display: block;
    color: rgb(83, 83, 83);
    padding: 12px 20px;
    text-decoration: none;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
    text-align: center;


}

.dropdown-content A:last-child {
    border-bottom: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 140px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid #eee;
    z-index: 9999 !important;
    border-radius: 8px;
    margin-top: 5px;
}

.list:hover .dropdown-content {
    display: block;
}

.list:hover .dropdown-content a {
    color: rgb(63, 2, 38);

}

.list:hover a {
    color: rgb(228, 74, 99);

}

button {
    background-color: rgb(228, 74, 99);
    color: rgb(14, 13, 13);
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    width: 80px;
    height: 5vh;
    border-radius: 10px;
    border-color: rgb(228, 74, 99);


}

h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 500, bold;
    color: rgb(24, 0, 22);
    font-size: 30px;
    margin-left: 5%;
    margin-top: 2%;
}

h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: black;
    font-size: 15px;
    margin-left: 5%;
    margin-top: 4%;
}

.image {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 20px;
    justify-items: center;
    margin: 5%;

}

.book span {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    color: black;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;

}

.book {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 160px;
    justify-content: flex-start;
}

.book span:first-of-type {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    color: black;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;

    line-height: 1.3;
    height: 36px;
    overflow: hidden;
}

.book span:last-of-type {
    margin-top: 5px;
    color: rgb(228, 74, 99);
    font-weight: bold;
}

.img {
    transition: transform 0.3s ease, box-shadow 0.4s ease;
    border-radius: 10px;
}

.img,
.names,
.dd {
    display: inline-block;
    transition: transform 0.3s ease, ;
}

.img:hover,
.names:hover,
.dd:hover {
    transform: scale(1.05);
    transform-origin: center;
    cursor: pointer;
}

.img:hover {
    transform: perspective(1000px) rotateY(8deg) scale(1.07);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);

}

@media screen and (max-width: 768px) {

    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
    }

    .main {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 10px 15px;
        height: auto;
    }

    .logo {
        height: 35px !important;
        width: auto;
        margin: 0;
    }

    .shopname h1 {
        font-size: 18px !important;
        margin: 0;
    }

    .search {
        width: 100% !important;
        order: 2;
        margin-left: -10px;
        left: 0;
        position: relative;
    }


    .menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        order: 3;
        margin-left: -3px;
        gap: 16px;
    }

    .menu .list {
        margin: 0;
    }

    .menu a.names {
        margin-left: -10px;
        font-size: 10px !important;
        white-space: nowrap;
    }

    .book {

        width: 100% !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-content {
        min-width: 2%;
    }

    .dropdown-content a {
        font-size: 8px;
    }

    #Price a {
        text-align: start;
        font-size: 7px;
    }

    .menu button {
        display: block;
        width: 55px !important;
        height: 20px;
        order: 4;
        font-size: 8px;
        margin-left: -8px;
    }

    .image {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 10px !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    .img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 8px;
    }

    h2 {
        text-align: center;
        font-size: 20px;
    }

    h2 {
        text-align: center !important;
        margin-left: 0 !important;
        margin-top: 25px !important;
        width: 100%;
    }

    .line {
        width: 60px !important;
        height: 4px !important;
        background-color: rgb(228, 74, 99) !important;
        margin: 8px auto 20px auto !important;
        border-radius: 10px;
    }
}