@media (min-width: 1440px) {
    .container{
        max-width: 1380px;
    }
}
/* Medium Devices (Laptops/Tablets, 992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .product-details-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* Small Devices (Tablets, 768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    .search-box input {
        width: 160px;
    }
    .hero-content h2 {
        font-size: 1.7rem;
    }
    .product-details-container {
        flex-direction: column;
        gap: 20px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .product-details-section .add-to-cart-btn,
    .product-details-section .buy-now-btn {
        width: 100%;
        justify-content: center;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Extra Small Devices (Mobiles, 480px - 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-box input {
        width: 120px;
    }
    .hero-content h2 {
        font-size: 1.2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .category-header h3 {
        font-size: 1rem;
    }
    .tabs-header {
        flex-wrap: wrap;
    }
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .product-details-section .add-to-cart-btn,
    .product-details-section .buy-now-btn {
        width: 100%;
        font-size: 1rem;
    }
}
@media (min-width: 768px) {
    .navbar-nav .has-submenu:hover > .submenu {
        display: block !important;
    }

    .navbar-nav .has-submenu:hover > .submenu-toggle .arrow i {
        transform: rotate(180deg); 
    }
}
@media (max-width: 767px) {
     .submenu-toggle {
        width: 100%;
    }
    .nav-menu li.sub.has-submenu {
        position: relative;
    }
    .has-submenu.open > .submenu {
        display: block !important;
    }
    .has-submenu.open > .submenu {
        display: block !important;
        position: relative !important;
        left: 0px !important;
        top: 0 !important;
    }
    sub.submenu {
        background: transparent;
    }
    .submenu-toggle .arrow {
        font-size: 14px;
        color: #ffffff !important;
        padding: 0 !important;
        width: 30px !important;
        height: 30px !important;
        background: #fc8303;
        text-align: center !important;
        display: inline-block !important;
        border-radius: 2px;
        line-height: 30px;
    }
    .sub.has-submenu .submenu-toggle {
        position: absolute;
        right: 6px;
        font-size: 17px;
        color: #ffffff !important;
        padding: 0 !important;
        width: 30px !important;
        height: 30px !important;
        background: #fc8303;
        text-align: center !important;
        display: inline-block !important;
        border-radius: 2px;
        top: 22px;
    }
        li.sub.has-submenu ul li a {
        border-bottom: 1px solid #dddddd;
        background: #fff;
    }
     .sub.has-submenu .arrow {
        color: #ffffff;
    }
    li.sub.has-submenu a {
        padding: 10px;
        font-size: 16px;
        border-bottom: 1px solid #dddddd91;
    }
    .navbar-nav a{
        border-bottom: 1px solid #eee;
    }
    .nav-menu a {
        padding: 7px 0px;
        width: 100%;
        display: block;
        font-size: 18px;
        font-weight: 500;
        color: #333333;
    }
    .nav-menu a:hover, .nav-menu a:focus{
         color: #e74c3c;
    }
    .submenu-toggle {
        font-size: 18px;
        color: #333333;
        padding: 7px 0px;
        border-bottom: 1px solid #eee;
    }
    .submenu li a {
        padding: 7px 15px;
        font-size: 18px;
        font-weight: 500;
    }
    ul.submenu {
        width: 100%;
        background: #eeeeeec4;
        border-radius: 0px;
        position: relative;
        top: 0;
    }
    ul.submenu li {
        border-bottom: 3px solid #fff;
    }
    .nav-menu ul li {
        padding: 0px;
        border-right: 0;
        border-bottom: 0;
    }
    .search-box input {
        width: 100%;
    }
    .toggleMenu {
        background: none;
        border: none;
        font-size: 21px;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }
    .nav-icons {
        justify-content: flex-end;
        gap: 25px;
    }
    .cart-icon {
        font-size: 18px;
    }
    .cart-count {
        top: -9px;
        right: -12px;
        font-size: 12px;
        font-weight: 500;
    }
    .user-btn {
        font-size: 18px !important;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        padding-top: 50px;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 10px;
    }
    .nav-menu.show {
        left: 0;
    }
    .closeMenu {
        font-size: 30px;
        color: #000;
        background: none;
        border: none;
        cursor: pointer;
    }
    .nav-menu ul {
        display: flex;
        list-style: none;
        flex-direction: column;
        margin-top: 0;
    }
    .nav-menu ul {
        gap: 0;
    }
    .mobile-logo-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
    }
    .thumbnail-container {
        gap: 6px;
    }
    #siteNavBar {
        position: fixed;
        height: 100vh;
        width: 100vw;
        background: #fff;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        padding: 20px;
        z-index: 999;
    }
    .navbar-nav {
        flex-direction: column !important;
    }
    .navbarToggler {
        background: transparent;
        border: 0;
        outline: none;
        box-shadow: none;
        font-size: 22px;
        cursor: pointer;
    }
    .header {
        position: relative;
    }
    .search-box {
        width: 100%;
    }
    /* Hero */
    .site-content {
        margin-top: 0;
    }
    .hero {
        height: auto;
        margin-top: 0;
    }
    .hero-content img {
        height: 230px !important;
        object-fit: cover;
    }
    .category-header h3 {
        font-size: 26px;
    }
    .category-header {
        margin-bottom: 20px;
    }
    /* Product Loop */
    .product-image {
        height: 200px;
    }
    .product-info {
        padding: 10px !important;
        min-height: auto;
    }
    .product-details-section .product-info {
        padding: 0px !important;
        justify-content: flex-start;
    }
    .products-section {
        padding: 40px 0px;
    }
    .product-title {
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 10px;
        min-height: 60px;
        line-height: 24px;
    }
    .price_wrapper {
        flex-wrap: wrap;
        font-size: 16px;
        font-weight: 500;
        gap: 0;
    }
    .add-to-cart-btn {
        font-size: 15px;
        padding: 5px 3px;
    }
    .product-card {
        height: 100%;
    }
    /* Newsletter */
    .newsletter-section {
        padding: 2rem 0;
    }
    .newsletter-title {
        font-size: 30px;
    }
    /* Footer */
    .footer-bottom p {
        margin: 0;
    }
    .footer-content {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
        gap: 20px;
    }
    /* Single Product Page */
    .breadcrumb {
        margin-bottom: 20px;
        font-size: 16px;
    }
    .product-details-container {
        gap: 10px;
        padding: 15px;
    }
    .main-image {
        height: 350px;
        object-fit: cover;
        object-position: center;
    }
    .thumbnail {
        width: 80px !important;
        height: 80px !important;
    }
    .slider-btn {
        width: 40px !important;
        height: 30px !important;
        display: inline-block !important;
        font-size: 17px !important;
    }
   .zoom-result {
        display: none !important; /* hide zoom */
    }

    .thumbnail {
        flex: 0 0 calc((100% - 80px)/3); /* 3 thumbnails per view */
        height: 70px;
    }

    .slider-btn {
        display: block;
    }
    .product-details-section .product-title {
        font-size: 22px;
        margin: 0 0 15px;
        min-height: auto;
    }
    .product-details-section .product-price {
        font-size: 20px;
        margin: 0px 0px 15px;
    }
    .product-details-section .add-to-cart-btn, .product-details-section .buy-now-btn {
        width: 100%;
        padding: 10px;
        flex-direction: row;
        font-size: 16px;
    }
    .product-tabs {
        margin-top: 40px;
        padding: 15px;
    }
    .tab-btn {
        font-size: 14px;
    }
    /* Related Products */
    .related-products {
        margin: 30px 0px;
    }
    .related-products .product-title {
        min-height: auto;
    }
    /* Checkout */
    #checkout {
        padding: 30px 0px;
    }
    .checkout-flex {
        margin: 25px 0px 0px;
    }
    .checkout-summary, .checkout-form {
        padding: 15px;

        min-height: auto;
    }
    .checkout-summary {
        gap: 15px;
    }

}

/* Tiny Devices (Small Mobiles, <=480px) */

@media (max-width: 480px) {
   
     .thumbnail {
        flex: 0 0 calc((100% - 80px)/3); /* maintain 3 thumbnails */
    }
    .main-image {
        max-width: 100%;
    }
    .thumbnail-container {
        gap: 4px;
    }
    .nav {
        flex-direction: row;
        gap: 0.3rem;
    }
    .search-box input {
        font-size: 0.85rem;
    }
    .hero-content h2 {
        font-size: 1rem;
    }
    .hero-content p {
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1rem;
        font-weight: 500;
    }
    .tabs-header {
        flex-wrap: wrap;
    }
    .tab-btn {
        padding: 0.3rem 0.5rem;
    }
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
}
