@media (max-width:799px) {

    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    .sectionP1 {
        padding: 40px 40px;
    }

    .navbar ul {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background: white;
        backdrop-filter: blur(10px);
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 10px;
        transition: 0.3s ease;
        border-left: 1px solid rgba(0, 0, 0, 0.2);
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .navbar.active ul {
        right: 0px;
    }

    .navbar li {
        margin-bottom: 25px;
    }

    .navbar li:last-child {
        margin-bottom: 0;
    }

    .navbar li a {
        color: #000;
        transition: all 0.3s ease;
    }

    .navbar li a:hover {
        color: #333;
        padding-left: 10px;
    }

    .mobile-menu-link {
        display: block;
    }

    #mobile {
        display: flex;
        align-items: center;
    }

    #mobile {
        color: #38bdf8;
        font-size: 24px;
        padding-left: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    #mobile:hover {
        color: #0ea5e9;
        transform: scale(1.1);
    }

    #bar {
        transition: transform 0.3s ease;
    }

    #close {
        display: none;
        position: absolute;
        top: 30px;
        left: 30px;
        font-size: 20px;
        color: #38bdf8;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    #close:hover {
        color: #0ea5e9;
        transform: rotate(90deg);
    }

    #bag, #user-icon {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 40px 60px;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-3d-box {
        width: 100%;
        height: 400px;
        margin-top: 40px;
    }

    .card-3d {
        margin-left: 0;
    }

    h2 {
        font-size: 30px;
    }

    #feature {
        justify-content: center;
    }

    #feature .featureBox {
        margin: 15px 15px;
    }

    #product1 .Pcontainer {
        justify-content: center;
    }

    #product1 .pro {
        margin: 15px;
    }

    #banner {
        height: 20vh;
    }

    #subBanner .bannerBox {
        min-width: 100%;
        height: auto;
        min-height: 350px;
    }

    .filter-toggle-box {
        display: flex;
    }

    .filter-container {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .filter-container.active {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }

    #banner3 {
        padding: 0 40px;
    }

    #banner3 .bannerBox {
        /* min-width: 28%; */
        width: 100%;
    }

    .contact-box {
        flex-direction: column;
    }

    #email .form {
        width: 70%;
    }

    #cart {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 120px;
    }

    .mobile-user-icon {
        color: #38bdf8;
        font-size: 24px;
        padding-left: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .mobile-user-icon:hover {
        color: #0ea5e9;
        transform: scale(1.1);
    }
}

@media (max-width:477px) {

    .sectionP1 {
        padding: 20px;
    }

    .header{
        height: 70px;
    }

    .header .logo {
        font-size: 18px;
    }

    .header {
        padding: 0px 30px;
    }

    .hero {
        padding: 140px 20px 60px;
        height: auto;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .card-3d {
        transform: scale(0.9);
    }

    .hero button {
        padding: 14px 40px 14px 65px;
    }

    h2 {
        font-size: 25px;
    }

    h1 {
        font-size: 38px;
    }

    #feature .featureBox {
        width: 155px;
        margin: 0 0 15px 0;
    }

    #feature {
        justify-content: space-between;
    }

    #product1 h2 {
        font-size: 30px;
    }

    #product1 .pro {
        width: 48%;
        min-width: unset;
        margin: 0;
    }

    #product1 .Pcontainer {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    #banner {
        height: 40vh;
        background-size: cover;
        background-position: center;
    }

    #subBanner .bannerBox {
        height: auto;
        min-height: 350px;
    }

    #subBanner .bannerBox2 {
        margin-top: 20px;
    }

    #banner3 {
        padding: 0 20px;
    }

    #banner3 .bannerBox {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 30%;
        height: 40vh;
        background-size: cover;
        padding: 20px;
        background-position: center;
        margin-bottom: 20px;
    }

    #email .form {
        width: 100%;
    }

    #email {
        padding: 40px 20px;
        margin: 20px;
    }

    .container001 {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .card001 {
        width: 100%;
    }

    /* ------single product------  */
    #proDetails {
        display: flex;
        flex-direction: column;
        margin-top: 120px;
    }

    #proDetails .singleProImage {
        width: 100%;
        margin-right: 0px;
    }

    #proDetails .singleProDetails {
        width: 100%;
    }

    #proDetails .singleProDetails button {
        width: 100%;
    }

    #search-container {
        flex-direction: column;
        gap: 10px;
    }
    #search-input, #sort-select {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        text-align: center;
    }

    /* Profile Page Mobile */
    #profile {
        flex-direction: column;
        padding-top: 120px;
        padding-bottom: 0;
    }

    #profile-details, #profile-orders {
        width: 100%;
    }

    /* Order History Table as Cards */
    #orders-table, #orders-table thead, #orders-table tbody, #orders-table th, #orders-table td, #orders-table tr {
        display: block;
    }

    #orders-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #orders-table tr {
        border: 1px solid #e2e9e1;
        border-radius: 10px;
        margin-bottom: 20px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        padding: 10px;
    }

    #orders-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
        padding-top: 10px;
        padding-bottom: 10px;
        white-space: normal;
    }

    #orders-table td:last-child {
        border-bottom: none;
    }

    #orders-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: #088178;
    }

    .footer {
        padding: 20px 20px 10px;
    }

    .footer-card {
        margin-bottom: 15px;
    }

    .footer-bottom {
        margin-top: 10px;
    }
}