@media screen and (max-width: 820px){
    .backto-top-btn{
        width: 25px;
        height: 25px;
    }
    .backto-top-btn .icon{
        font-size: 20px;
    }
    .left-side ul{
        position: absolute;
        width: 100%;
        height: 100vh;
        background: var(--body-color);
        top: 100%;
        left: -100%;
        flex-direction: column;
        padding-block: 50px;
        transition: var(--trns-01);
    }
    .navbar.active .left-side ul{
        left: 0;
    }
    .left-side .icon{
        padding: 0 0;
    }
    .hamburger{
        display: block;
        cursor: pointer;
    }
    .logo h3{
        font-size: 25px;
    }
    .logo p{
        font-size: 10px;
    }
    .icon{
        font-size: 25px;
    }
    .mode-switch-btn{
        flex-direction: column;
    }

    /* home page  */
    .left-part h2{
        font-size: 40px;
    }
    .left-part p{
        font-size: 14px;
        padding-right: 60px;
        padding-bottom: 15px;
    }
    .left-part .order-btn{
        font-size: 18px;
    }
    .right-part img{
        width: 100%;
    }

    /* products page  */
    .cards{
        height: 35vh;
        gap: 10px;
    }
    .card{
        width: 240px;
        height: 290px;
    }
    .card .image {
        width: 240px;
        height: 130px;
    }
    .card .name{
        font-size: 16px;
        padding: 10px 7px;
    }
    .card .description{
        font-size: 11px;
        padding: 3px 7px;
    }
    .card span{
        font-size: 14px;
        padding: 10px 7px;
    }
    .price {
        height: 20px;
    }
    .price .main-price{
        font-size: 17px;
    }
    .pricing{
        min-width: 43%;
    }
    .cut-price span{
        font-size: 12px;
        padding: 0;
    }
    .add-cart{
        font-size: 8px;
        padding: 7px 6px;
    }
    .card span.discount{
        font-size: 9px;
    }
    .delivery .image{
        width: 30px;
        height: 30px;
    }
    .delivery p{
        font-size: 14px;
    }

    /* services page  */
    .service-cards{
        gap: 10px;
    }
    .service-card{
        width: 240px;
        height: 370px;
    }
    .image-box{
        width: 220px;
        height: 130px;
    }
    .service-info{
        width: 220px;
        height: 220px;
        margin: auto;
    }
    .service-info h3{
        font-size: 18px;
    }
    .service-info .info{
        font-size: 14px;
    }
    .service-info .info .icon{
        font-size: 18px;
    }

    /* contact form */
    .contact-container{
        margin-block: 20px;
    }
    .contact-detail h2{
        font-size: 25px;
    }
    .contact-detail p{
        font-size: 14px;
    }
    .details{
        gap: 17px;
    }
    .details .detail .names .title{
        font-size: 14px;
    }
    .details .detail .names .attribute{
        font-size: 12px;
    }
    .contact-form h2{
        font-size: 25px;
    }
    .contact-form .form .first-input{
        gap: 5px;
    }
    .contact-form .form .first-input input{
        border: 1px solid var(--primary-color);
        height: 38px;
        font-size: 14px;
    }
    .contact-form .form input, textarea{
        border: 1px solid var(--primary-color);
        height: 38px;
        font-size: 14px;
    }
    .contact-form .form textarea{
        height: 110px;
    }
    .send-btn{
        font-size: 17px;
        padding: 5px 20px;
    }

    /* footer  */
    .lower-conatainer .first, .second{
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }
}

@media screen and (max-width: 700px){
    /* home page  */
    .left-part h2{
        font-size: 35px;
    }
    .left-part p{
        font-size: 13px;
        padding-right: 55px;
        padding-bottom: 13px;
    }
    .left-part .order-btn{
        font-size: 15px;
    }
    .right-part img{
        width: 100%;
    }
}

@media screen and (max-width: 550px){
    section .heading-text{
        font-size: 25px;
        margin: 20px 0;
        margin-bottom: 20px;
    }
    section .heading-text::before{
        height: 1px;
        width: 160px;
    }
    section .heading-text::after{
        font-size: 12px;
        padding: 0 8px;
        bottom: -15px;
    }
    .backto-top-btn{
        width: 20px;
        height: 20px;
    }
    .backto-top-btn .icon{
        font-size: 15px;
    }
    .logo h3{
        font-size: 20px;
    }
    .logo p{
        font-size: 9px;
    }
    .icon{
        font-size: 22px;
    }

    /* home page */
    .container{
        padding: 63px 0;
    }
    .home-container{
        flex-direction: column-reverse;
        /* transform: translateY(-20px); */
    }
    .left-part{
        width: 100%;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    .left-part h2{
        padding-top: 20px;
    }
    .left-part p{
        padding: 0;
    }
    .left-part .order-btn{
        width: 80%;
    }
    .right-part{
        width: 100%;
    }

    /* products page  */
    .card{
        width: 270px;
        height: 310px;
    }
    .card .image {
        width: 270px;
        height: 150px;
    }
    .product-conatiner h2{
        font-size: 17px;
        text-align: center;
        padding-top: 20px;
    }
    .cards{
        height: 120vh;
        flex-direction: column;
    }
  .add-cart{
        font-size: 9px;
        padding: 10px 12px;
    }
  .card span.discount{
        font-size: 11px;
    }
  .delivery .image{
        width: 30px;
        height: 30px;
    }

     /* services page  */
     .service-cards{
        gap: 10px;
        flex-direction: column;
    }

    /* contact page */
    .contact-container{
        flex-direction: column;
        gap: 40px;
    }

    /* footer  */
    .lower-conatainer .first, .second{
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .social-media-icon{
        gap: 10px;
    }
}