@media (max-width: 768px) {

    nav {
        width: 100%;
        padding: .2rem .6rem;
        height: 30px;
        box-sizing: border-box;
        margin: 1px 1px;
        justify-content: space-evenly;
    }

    .logo img {
        height: 30px;
    }

    .nav-menu {
        display: none;
    }

    .menuicon {
        display: block;
        font-size: 20px;
        cursor: pointer;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        width: 30%;
        position: absolute;
        top: 35px;
        height: fit-content;
        background-color: white;
        right: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px;
        border-radius: 5px;
        text-align: start;
        align-items: start;
    }

    .nav-menu a {
        text-decoration: none;
        color: black;
        font-size: 80%;
        font-weight: 500;

    }

    .nav-menu a:hover {
        color: #7c3971;
        /* font-weight: bold; */
        transition: all 0.3s ease-in;
    }

    .search-bar {
        display: flex;
        width: auto;
        justify-content: center;
        align-items: baseline;
    }

    .search-bar #search {
        width: 80%;
        font-size: small;
        border: none;
        border-bottom: 1px solid #7c3971;
        outline: none;
        padding: 0 8%;
    }

    .search-bar #search-icon {
        position: relative;
        left: 6%;
        font-size: 60%;
    }

    .search-bar button {
        width: 20%;
        font-size: xx-small;
        border: none;
        outline: none;
        background-color: #7c3971;
        color: white;
        padding: 2.4px 0;
    }

    main .slider {
        width: 90%;
        margin: 1rem 5%;
        height: auto;
    }

    main .slider .images {
        height: auto;
        overflow: hidden;
    }

    main .slider .images img {
        width: 100vw;
        height: auto;
        object-fit: cover;
    }

    .hero {
        width: 90%;
        height: auto;
        margin: .2rem 5%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        /* border: 1px solid black; */
    }

    .hero section {
        width: auto;
        height: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero :first-child {
        width: 70%;
        height: 100%;
    }

    .hero .hero-img img {
        width: 200%;
        height: 200%;
        box-sizing: border-box;
    }

    .hero .hero-img {
        width: 30vw;
        height: 100%;
        align-items: baseline;
    }

    .hero section h1 {
        width: 100%;
        font-size: 100%;
        margin: 1rem 0 0 1rem;
        text-transform: capitalize;
        white-space: nowrap;
    }

    .hero #off {
        width: 50%;
        margin: .3rem 0 0 1rem;
        font-size: 54%;
    }

    .hero section p {
        font-size: 50%;
        margin: .3rem 0 0 1rem;
    }

    .hero section button {
        margin: 1rem;
        width: 30%;
        height: 20%;
        font-size: 10%;
        margin: 0.3rem 0 0 1rem;
        border: none;
        outline: none;
        background-color: #7c3971;
        color: white;
        border-radius: 2px;
        padding: 0;
    }

    /* cart styling none */
    .cart,
    .cart.active {
        width: 0%;
    }

    /* cart for mobile */

    .cart-mobile {
        display: flex;
        flex-direction: column;
        position: absolute;
        width: 0;
        white-space: nowrap;
        overflow: hidden;
        transition: 0.8s;
        height: calc(100vh - 10vh);
        z-index: 1;
        background-color: #7c3971;
        color: white;
        top: 0;

    }

    .cart-mobile>* {
        margin: 10px;
    }

    .cart-mobile.active {
        width: 100vw;
    }

    .cart-mobile .cart-heading h1 {
        font-size: larger;
        text-align: center;
    }

    /* cart items mobile */

    .cart-mobile .cart-mobile-items {
        height: 80vh;
    }

    /* cart close styling */

    .cart-mobile .close-mobile {
        width: 100%;
        position: relative;
        height: 5%;
        display: flex;
        flex-direction: row;
        text-align: center;
        justify-content: space-between;
        align-items: center;
    }

    .cart-mobile .close-mobile>:first-child {
        background-color: #388E3C;
        margin: 5px 0;
    }

    .cart-mobile .close-mobile a {
        background-color: red;
        width: 40%;
        text-decoration: none;
        color: white;
        font-size: 10 0%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .cart-mobile .close-mobile a:hover {
        color: greenyellow;
    }

    section {
        margin-bottom: 1rem;
    }


    /* product styling */

    /* product styling */

    .products,
    .products-2 {
        width: 90%;
        margin: 0 5%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .heading {
        width: 100%;
        font-size: 2vw;
    }

    /* product styling */

    .produtcs {
        width: 100vw;
        margin: 5vw;
        display: flex;
        flex-direction: row;
    }

    .heading {
        width: 100%;
        color: black;
    }

    .product {
        display: flex;
        flex-direction: row;
        width: 48%;
        box-sizing: border-box;
        padding: 1%;
    }

    .product .name {
        width: 20%;
        background-color: black;
        text-orientation: upright;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .product .name h4 {
        text-orientation: upright;
        rotate: calc(270deg);
        width: auto;
        height: auto;
        white-space: nowrap;
        max-width: 140px;
        text-overflow: ellipsis;
    }

    .product .description {
        display: flex;
        background-color: #E3F8FF;
        flex-direction: column;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        box-sizing: border-box;
        padding: 5% 2% 0 2%;
    }

    .product .description:hover {
        background-color: #FFE8DF;
    }

    .product .description .image img {
        width: 100%;
        height: auto;
    }

    .product .description .image {
        width: 100%;
        height: 100%;
        margin: 1%;
        box-sizing: border-box;
        padding: 1%;
    }

    .product .description .image img:hover {
        scale: calc(1.05);
        filter: drop-shadow(1px 1px 2.5px black);
    }

    .product .description .price {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: auto;
        margin-bottom: 7%;
    }

    .product .description .price>svg {
        height: 14px;
    }

    .product .description .price h4 {
        font-size: x-small;
        margin: 0;
    }

    .product .description .price h6 {
        font-size: xx-small;
        text-decoration: line-through;
    }

    .product .description .price .pricing {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }


    /* Category page styling */

    .category-body {
        overflow: auto;
    }

    .category-heading {
        display: flex;
        height: 15vh;
        width: 100vw;
        align-items: center;
        justify-content: center;
    }

    .category-heading img {
        height: 100%;
    }

    .category {
        background-color: rgba(0, 0, 255, 0.758);
        color: white;
        width: 100vw;
        /* margin:0 5vw; */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        overflow: scroll;
    }

    .category::-webkit-scrollbar {
        display: none;
    }

    .category h4 {
        cursor: pointer;
        white-space: nowrap;
        margin: 0 5px;
        text-shadow: 1px 1px 1px black;
        /* font-size: auto; */
        font-size: 10px;
        /* height: 10px; */
    }

    .category h4:hover {
        /* background-color: aliceblue; */
        /* color: red; */
        letter-spacing: 1px;
    }

    footer {
        width: 100%;
        background-color: #1f1f1f;
        height: 30vh;
        box-sizing: border-box;
        padding: 5%;
    }

    .footer {
        display: flex;
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
        height: auto;
        gap: 5%;
    }

    .footer div {
        height: auto;
        width: 30%;
        color: white;
        font-weight: bold;
    }

    .footer div a {
        text-decoration: none;
        color: white;
        font-size: xx-small;
        white-space: wrap;
    }

    .footer div a:hover {
        text-decoration: underline;
        text-decoration-color: red;
    }

    .footer div .transparent {
        color: rgba(255, 255, 255, 0.507);
        height: 8px;
    }

    .footer div li {
        list-style: none;
        margin-bottom: .4rem;
        font-size: small;
        height: 8px;
        width: max-content;
    }

    .footer hr {
        display: none;
        margin: 0 .4rem;
        rotate: calc(90deg)
    }

    .footer .social {
        margin-left: 40px;
    }

    .footer .social svg {
        height: 10px;
        margin-right: .8rem;
    }


    /* product page styling */

    .product-page {
        width: 90%;
        margin: auto;
        overflow: auto;
    }

    .product-page nav h2 a {
        font-family: 'great vibes', cursive;
        text-decoration: none;
        color: black;
    }

    .product-main {
        width: 100%;
        box-sizing: border-box;
        padding: 5% 1%;
        display: flex;
        flex-direction: column;
        height: auto;
        /* overflow: hidden; */
    }

    .product-main .product-needs {
        width: 100%;
        display: flex;
        flex-direction: row;
        height: auto;
        flex-wrap: wrap;
    }

    .product-main .image {
        position: relative;
        box-sizing: border-box;
        padding: 1% 1%;
        border-radius: 20px;
        height: auto;
        /* max-height: 50vh; */
        width: 100%;
    }

    .product-main .image img {
        width: 100%;
        border-radius: 20px;
    }

    .product-main .image img:hover {
        scale: calc(1.01);
        filter: drop-shadow(1px 5px 5px black);
    }

    .product-main .arrow-button {
        position: absolute;
        width: 95%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        top: 0;
        z-index: 100;
    }

    .product-main .arrow-button svg {
        height: 10px;
        border: 6px solid #e6e6e6;
        border-radius: 50%;
        padding: 10px;
    }

    .product-main .product-needs .product-information {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 1%;
        overflow: scroll;
        width: 100%;
        height: auto;
    }

    .product-main .product-information .description {
        display: flex;
        flex-direction: column;
    }

    .product-main .product-information .description .product-price {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        row-gap: 10px;
        margin-bottom: 10px;
    }

    .product-price del {
        margin: 0 10px;
        opacity: .3;
        color: #000;
        font-size: 12px;
    }

    .product-price h1 pre {
        font-size: 12px;
        color: #388E3C;
        text-transform: lowercase;
    }

    .product-price h1,
    .product-price h2 {
        font-size: 20px;
    }

    .product-rating {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 10px;
        row-gap: 10px;
    }

    .product-rating>:first-child {
        background-color: #388E3C;
        color: #ffffff;
        padding: 2px 4px;
        font-weight: bolder;
    }

    .product-rating>:last-child {
        color: black;
        opacity: .5;
        font-weight: bolder;
        padding: 2px 0;
        font-size: larger;
    }

    .product-rating .icon {
        color: white;
        font-size: 12px;
        opacity: 1;
        fill: white;
        margin: 0 1px;
        align-items: center;
    }

    .product-main .descr {
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: capitalize;
        /* letter-spacing: 1px; */
        word-spacing: 5px;
    }

    .product-main .descr p {
        font-size: medium;
        font-weight: 800;
    }

    .product-main .buynow {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin: 20px 0 0 0;
    }

    .product-main .buynow button {
        width: 50%;
        height: 30px;
        font-size: 12px;
        border: none;
        outline: none;
        display: flex;
        gap: 5px;
        align-items: center;
        justify-content: center;
        color: white;
        background-color: #7c3971;
        font-weight: bold;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .product-main .buynow>:first-child {
        background-color: #FB641B;
        border-top-right-radius: 0;
        border-bottom-left-radius: 10px;
        border-top-left-radius: 10px;
        border-bottom-right-radius: 0;
    }

    .product-main .reviews {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        row-gap: 5px;
        margin-top: 20px;
    }

    .reviews p {
        font-weight: 700;
        color: black;
        font-size: larger;
        margin-right: 10px;
    }

    .reviews .star {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 10px 0 0 0;
    }

    .star>:first-child {
        background-color: #388E3C;
        color: #ffffff;
        padding: 2px 15px;
        font-weight: bolder;
        margin: 1px 10px 0 0;
    }

    .star>p {
        font-size: medium;
    }

    .star>:last-child {
        font-weight: bold;
        color: black;
    }

    .star .icon-small {
        fill: white;
        height: 13px;
        opacity: 1;
        color: white;
        padding: 0 3px;
        margin-bottom: 2px;
    }

    .reviews .username {
        display: flex;
        flex-direction: row;
        opacity: .6;
        flex-wrap: wrap;
        white-space: nowrap;
    }

    .product-page .product {
        min-width: 138px;
        margin-right: 10px;
    }

    .reviews .username p {
        width: fit-content;
        font-size: small;
    }

    .product-page .productcategory {
        display: flex;
        flex-direction: row;
        overflow: scroll;
    }

    #category {
        margin-top: 20px;
        font-size: medium;
    }



    /* checkout page*/
    .buy-page {
        overflow: auto;
    }

    .buy-page #main {
        width: 96%;
        margin: auto 2%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .buy-page .address {
        width: 96% !important;
        height: 70% !important;
        background-color: #ffffff;
        box-sizing: border-box;
        margin-top: 10px;
        box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.353);
        border-radius: 5px;
        padding: 5px;
        transition: all 2s ease;
    }



    .buy-page .payment {
        width: 96%;
    }

    form {
        border: 1px solid rgba(0, 0, 0, .1);
        box-sizing: border-box;
        padding: 5px;
    }

    legend {
        font-size: large;
        font-weight: bold;
        margin-bottom: 8px;
    }

    table {
        width: 100%;
    }

    th {
        width: 1%;
    }

    tbody {
        display: flex;
        flex-wrap: wrap;
    }

    tr {
        width: 50%;
        height: 10%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        margin: 2px 0;
    }

    td {
        width: 100%;
        margin: 4px 1px;
        font-size: small;
    }

    td input {
        width: 100%;
        height: 18px;
        padding: 5px;
        font-size: small;
        outline: none;
        border: 1px solid #e6e6e6;
        font-weight: 700;
    }

    td input:focus {
        border: 2px solid #7c3971;
    }

    .state {
        display: flex;
        flex-direction: row;
    }

    textarea {
        border: 1px solid #e6e6e6;
        outline: none;
        height: 30px;
        width: 200%;
        font-size: small;
        padding: 5px;
        font-weight: 700;
    }

    label {
        width: 80%;
        font-size: x-small;
        font-family: "Google Sans Flex", sans-serif;
        font-weight: bold;
    }

    .buy-page button {
        width: auto;
        padding: 1px 3px;
        font-size: small;
        font-family: "Google Sans Flex", sans-serif;
        font-weight: bold;
        border: none;
        background-color: #388E3C;
        color: white;
    }

    .buy-page .validate {
        padding: 1px 3px;
        text-align: center;
        font-size: x-small;
        width: 40%;
        font-family: "Google Sans Flex", sans-serif;
        font-weight: bold;
        border: none;
        background-color: #7c3971;
        color: white;
    }

    .buy-page td button {
        color: white;
    }

    .address-card {
        width: 100%;
        height: 50%;
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        font-size: small;
    }

    .address-card span {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin-top: 6px;
        height: 25px;
        font-size: x-small;
    }

    .address-card h4 {
        width: 40%;
        display: inline;
        font-size: x-small;
    }

    .address-card button {
        display: flex;
        margin-top: 5px;
        justify-content: center;
        align-items: center;
        width: 100%;
        font-size: small;
    }

    .address-card button svg {
        font-size: 8px;
    }

    .address-card p {
        font-weight: bold;
    }

    .buy-page .payment {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 1% 2%;
        width: 96%;
        transition: all 2s ease;
        height: auto;
    }

    .product-cart {
        height: 40%;
        justify-content: center;
        overflow-y: scroll;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cart-item {
        margin-top: 5px;
        width: 90%;
        /* height: 30%; */
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        font-size: small;
    }

    .cart-item img {
        width: 25%;
    }

    .cart-info {
        display: flex;
        flex-direction: column;
        font-size: x-small;
    }

    .product-quantity {
        position: absolute;
        top: 0;
        left: 20%;
        font-size: xx-small;
        border-radius: 50%;
        padding: 1px 3px;
        background-color: #060606;
        color: white;
    }

    .cart-item h3 {
        font-size: small;
    }

    .total {
        width: 100%;
        display: flex;
        font-size: small;
        flex-direction: column;
    }

    .total span {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .total hr {
        border: 1.6px dashed black;
        margin: 5px 0;
    }

    #qrcode {
        display: none;
        right: 12%;
        position: absolute;
        top: 10%;
    }

}

@media (min-width:426px) and (max-width: 768px) {

    .hero section h1 {
        width: 100%;
        font-size: 2.4rem;
        margin: 1rem 0 0 1rem;
        text-transform: capitalize;
        white-space: nowrap;
    }

    .hero #off {
        width: 50%;
        margin: .3rem 0 0 1rem;
        font-size: 1.7rem;
    }

    .hero section p {
        font-size: 1rem;
        margin: .3rem 0 0 1rem;
    }

    .hero section button {
        margin: 1rem;
        width: 50%;
        height: 50px;
        font-size: 20px;
        border: none;
        outline: none;
        background-color: #7c3971;
        color: white;
        border-radius: 4px;
        padding: .5rem 0;
    }

    /* product styling */

    .products,
    .products-2 {
        width: 90%;
        margin: 0 5%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .heading {
        width: 100%;
        font-size: 2vw;
    }

    /* product styling */

    .produtcs {
        width: 100vw;
        margin: 5vw;
        display: flex;
        flex-direction: row;
    }

    .heading {
        width: 100%;
        color: black;
    }

    .product {
        display: flex;
        flex-direction: row;
        width: 33%;
        box-sizing: border-box;
        padding: 1%;
    }

    .product .name {
        width: 15%;
        background-color: black;
        text-orientation: upright;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .product .name h4 {
        text-orientation: upright;
        rotate: calc(270deg);
        width: auto;
        height: auto;
        white-space: nowrap;
        max-width: 160px;
        text-overflow: ellipsis;
    }

    .product .description {
        display: flex;
        background-color: #E3F8FF;
        flex-direction: column;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        box-sizing: border-box;
        padding: 5% 2% 0 2%;
    }

    .product .description:hover {
        background-color: #FFE8DF;
    }

    .product .description .image img {
        width: 100%;
        height: auto;
    }

    .product .description .image img:hover {
        scale: calc(1.05);
        filter: drop-shadow(1px 1px 3px black);
    }

    .product .description .image {
        width: 100%;
        height: 100%;
        margin: 1%;
        box-sizing: border-box;
        padding: 1%;
    }

    .product .description .price {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: auto;
        margin-bottom: 7%;
    }

    .product .description .price>svg {
        height: 20px;
    }

    .product .description .price h4 {
        font-size: medium;
        margin: 0;
    }

    .product .description .price pre {
        font-size: small;
    }

    .product .description .price .pricing {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .product-main .image {
        position: relative;
        box-sizing: border-box;
        padding: 1% 1%;
        border-radius: 20px;
        height: auto;
        max-height: 90vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-page .product {
        min-width: 160px;
        margin-right: 5px;
    }

    .product-main .image img {
        width: 80%;
        /* height: 65vh; */
        border-radius: 20px;
    }

    .product-main .buynow button {
        height: 50px;
        font-size: large;
    }

    footer {
        width: 100%;
        background-color: #1f1f1f;
        height: 60vh;
        box-sizing: border-box;
        padding: 5%;
    }

    .footer {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .footer div {
        margin-bottom: 1rem;
        width: 30%;
        color: white;
        font-weight: bold;
    }

    .footer div a {
        text-decoration: none;
        color: white;
        font-size: medium;
    }

    .footer div a:hover {
        text-decoration: underline;
        text-decoration-color: red;
    }

    .footer div .transparent {
        color: rgba(255, 255, 255, 0.507);
    }

    .footer div li {
        list-style: none;
        margin-bottom: 1rem;
    }

    .footer hr {
        margin: 0 1rem;
    }

    .footer .social {
        margin: 0;
        width: 35%;
    }

    .footer .social svg {
        height: 30px;
        margin-right: 1rem;
    }
}