@media (max-width: 1399px) {
    .col-gd {
        width: 25%;
    }
    .hero-area3.hero-area4 .item {
        height: 450px;
    }
}
@media (max-width: 1366px) {
    .slider-area-wrapper .item-inner {
        max-width: 70%;
    }
    .flash-sell-area.three_column_product .section-title h2{
        font-size: 24px;
    }
    .flash-sell-area.three_column_product .section-title h2 {
        font-size: 20px;
    }
}

@media (max-width: 1050px) {
    .left-category-area .category-list .navi-link img{
        display: none;
    }
    .left-category-area .category-list .navi-link {
        padding: 17px 8px;
    }
    .left-category-area .category-list {
        padding: 14px 0px;
    }
    .left-category-area .category-list .navi-link i {
        top: 5px;
    }

}

@media (max-width: 991px) {
    .hero-area3 .right-img img {
        max-width: 220px;
        display: inline-block;
        margin-bottom: 20px;
    }
    .slider-area-wrapper .item-inner {
        max-width: 100%;
    }
  
    .hero-area3 .left-content .title {
        font-size: 24px;
        line-height: 34px;
    }
    .hero-area3 .left-content{
        text-align: center;
        width: 100%;
    }
    .owl-carousel .owl-prev, .owl-carousel .owl-next {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
    .hero-area3 .left-content .subtitle {
        font-size: 30px;
    }
    .service-section.mt-60.pt-0{
        margin-top: 30px !important;
    }
  
    .col-gd {
        width: 33.333%;
    }
    .newproduct-section .section-title,
    .sps-two .section-title
    {
        display: block;
        text-align: center;
    }
    .sps-two  .section-title h2,
    .newproduct-section  .section-title h2
    {
        display: inline-block;
        margin-bottom : 20px;
    }
    .newproduct-section .section-title .links,
    .sps-two .section-title .links
    {
        display : block;
    }
    .newproduct-section .section-title .links, 
    .sps-two .section-title .links 
    {
        padding-bottom: 10px;
    }
    .section-title .links a::before {
        display: none;
    }
    .widget.p-4 {
        padding: 0px !important;
        box-shadow: none !important;
    }
    .contact-page .card.widget.p-4,
    .checkut-page .card.widget.p-4
    {
        border-radius: 5px !important;
        padding: 1.5rem !important;
    }
    .topbar{
        position: relative;
    }
    .compare-mobile {
        margin-right: 0px;
        margin-left: 10px;
    }
    .site-header .search-box-wrap{
        position: absolute;
        left: 0px;
        width: 100%;
        background: #fff;
        width: 100%;
        height: 100%;
        top: 0px;
        z-index: 999;
    }
    .close-m-serch{
        font-size: 24px;
        margin-left: 20px;
        cursor: pointer;
    }
    .track-order-link.wishlist-mobile{
        margin-right: 10px;
    }
    .t-h-dropdown {
        margin-right: 10px;
    }
    .hero-slider .item {
        height: 430px;
    }
    .body_theme2 .hero-slider .item {
        height: 430px;
    }
}

@media (max-width: 767px) {
    .hero-area3.hero-area4 .item {
        height: 320px;
    }
    .body_theme2 .genius-banner{
        margin-bottom: 30px;
    }
    .body_theme3 .genius-banner{
        margin-bottom: 30px;
    }
    .body_theme4 .genius-banner{
        margin-bottom: 30px;
    }
    .shop-top-filter-wrapper .gd-text-sm-center{
        text-align: center;
    }
    .shop-top-filter-wrapper select.form-control:not([size]):not([multiple]) {
        height: 35px;
    }
    .quickFilter .quickFilter-title{
        height: 35px;
        line-height: 35px;
    }
    .shop-top-filter-wrapper .shop-sorting .form-control {
        max-width: 155px;
    }
    .shop-top-filter-wrapper .gd-text-sm-center .sptfl{
        justify-content: center;
        display: block;
    }
    .shop-top-filter-wrapper .shop-view{
        float: unset;
        margin-top: 15px;
    }
    .shop-top-filter-wrapper  .shop-sorting{
        display: block;
        flex: unset;
        margin-top: 15px;
        text-align: center;
    }

    .col-gd {
        width: 50%;
    }
    .hero-slider .owl-carousel .owl-nav div {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    .hero-slider .item {
        padding: 0px 20px;
    }
    .payment-methods .single-payment-method {
        width: 50%;
    }
    .details-page-top-right-content{
        margin-top: 30px;
    }
    .t-m-s-a{
        text-align: center;
    }
    a.genius-banner {
        margin-bottom: 30px;
    }
    .deal-of-day-section .section-title{
        display: block;
        text-align: center;
    }
    .deal-of-day-section .section-title h2{
        display: inline-block;
    }
    .deal-of-day-section .countdown{
        display: table;
        margin: 0 auto;
    }
    .deal-of-day-section .section-title .right-area{
        padding: 10px 0px 10px;
    }
    .flash-sell-area .section-title{
        text-align: left;
    }

}
@media (max-width: 576px) {
    .shop-top-filter-wrapper  .shop-sorting #sorting{
        display: block;
        margin: 0 auto;
    }
    .hero-slider .item {
        height: 340px;
    }
    .announcement-with-content .left-area {
        display: none;
    }
    .announcement-with-content .right-area {
        padding-left: 0px;
    }
    .announcement-with-content .right-area h3{
        font-size: 24px;
        font-weight: 600;
    }
}


@media (max-width: 500px) {
    .hero-area3.hero-area4 .item {
        height: 250px;
    }
    .slider-area-wrapper .item-inner .title {
        font-size: 30px;
    }
    .slider-area-wrapper .item-inner .subtitle {
        font-size: 15px;
        line-height: 24px;
    }
 
    .selected-product-section .features-slider .owl-nav div{
        top: 50% !important;
        transform: translateY(-50%);
    }
    .selected-product-section .features-slider .owl-nav div.owl-prev{
        left: -10px;
        right: auto;
    }
    .selected-product-section .features-slider .owl-nav div.owl-next{
        right: -10px;
    }
    .product-card .product-title > a {
        font-size: 13px !important;
        display: block;
    }
    .product-card .product-category>a{
        font-size: 12px;
    }
    .deal-of-day-section .section-title .h3::before{
        display: none;
    }
    .site-header .toolbar .toolbar-item {
        width: 34px;
        margin-left: 6px;
    }
    .flash-sell-new-section .product-card{
        display: block;
    }
    .flash-sell-new-section .product-card .product-thumb{
        width: 100%;
    }
    .flash-sell-area .section-title h2{
        font-size: 20px;
    }
    .p-action-button{
        display: block;
        margin-top: 12px;
    }
    .details-page-top-right-content .product-quantity{
        float: none;
    }
    .topbar .search-box-inner .search-box select {
        width: 80px;
    }
    .site-header .search-box-wrap .input-group{
        position: unset;
    }
    .site-header .search-box-wrap .search-box-inner{
        position: relative;
    }
}

@media (max-width: 414px) {
    .g-3, .gy-3 {
        --bs-gutter-y: 10px !important;
    }
    .g-3, .gx-3 {
        --bs-gutter-x: 10px !important;
    }
    .t-h-dropdown {
        margin-right: 8px;
    }
    .section-title h2 {
        font-size: 20px;
    }
    .details-page-top-right-content .p-title-main {
        font-size: 20px;
        line-height: 30px;
    }
   
}
@media (max-width: 390px) {
    .product-card .product-price > del{
        display: block;
    }
}
@media (max-width: 360px) {
    .product-card .product-title > a {
        font-size: 12px !important;
    }
    .product-card .product-card-body {
        padding: 10px 5px 0px;
    }
    .product-card.p-col .product-thumb {
        width: 100px;
        margin-right: 20px;
    }
    .genius-banner .inner-content h4 {
        font-size: 20px;
    }
}

.pagination {
    display: block; 
}
.pagination li {
    display: inline-block;
    margin: 3px 3px;
}

/* --- Mobile Horizontal Wobble & Section Alignment Fixes --- */
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

@media (max-width: 767px) {
    /* Prevent Deals of the Week title, timer, and view all from overlapping */
    .deal-of-day-section .section-title {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .deal-of-day-section .section-title .right-area {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .deal-of-day-section .countdown {
        margin: 5px 0 !important;
        display: inline-flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .deal-of-day-section .countdown span {
        margin: 2px 4px !important;
    }
    .deal-of-day-section .section-title h2 {
        margin-bottom: 0 !important;
    }

    /* Popular Categories tabs flex wrapping to prevent breaking/overlap */
    .newproduct-section.popular-category-sec .section-title,
    .sps-two .section-title {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: center !important;
    }
    .newproduct-section.popular-category-sec .section-title .links,
    .sps-two .section-title .links {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 5px 15px !important;
        scrollbar-width: none !important; /* Firefox */
    }
    .newproduct-section.popular-category-sec .section-title .links::-webkit-scrollbar,
    .sps-two .section-title .links::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
    }
    .newproduct-section.popular-category-sec .section-title .links a,
    .sps-two .section-title .links a {
        display: inline-block !important;
        flex: 0 0 auto !important;
        padding: 8px 16px !important;
        margin: 0 !important;
        font-size: 13px !important;
        border: 1px solid #e1e7ec !important;
        border-radius: 20px !important;
        background: #f5f5f5 !important;
        white-space: nowrap !important;
        color: #333 !important;
        transition: all 0.2s ease !important;
    }
    .newproduct-section.popular-category-sec .section-title .links a.active,
    .sps-two .section-title .links a.active {
        background: #ff0000 !important; /* using primary color accent fallback */
        color: #fff !important;
        border-color: #ff0000 !important;
    }
    .newproduct-section.popular-category-sec .section-title .links a::before,
    .sps-two .section-title .links a::before {
        display: none !important;
    }
}

/* --- Premium Tables and Dashboard Layout Customization --- */
.u-table-res {
    border-radius: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid #eef2f5 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}
.table th,
.table td {
    white-space: nowrap !important;
}
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}
.table-bordered {
    border: none !important;
}
.table-bordered th,
.table-bordered td,
.table td,
.table th {
    border: none !important;
    border-bottom: 1px solid #eef2f5 !important;
    padding: 14px 16px !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    color: #475569 !important;
}
.table thead th,
.table-dark th,
.table th {
    background-color: #f8fafc !important; /* light gray-blue header */
    color: #475569 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 12px 16px !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff !important;
}
.table-striped tbody tr:nth-of-type(even),
.table tbody tr:hover {
    background-color: #f8fafc !important;
}
.table-hover tbody tr:hover {
    background-color: #f1f5f9 !important;
}

/* Status badges customization */
.text-success.fw-bold, span.text-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    display: inline-block !important;
    font-weight: 600 !important;
}
.text-danger.fw-bold, span.text-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    display: inline-block !important;
    font-weight: 600 !important;
}
.text-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    display: inline-block !important;
    font-weight: 600 !important;
}
.text-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    display: inline-block !important;
    font-weight: 600 !important;
}

/* Action button customization */
.btn-sm {
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    transition: all 0.2s ease !important;
}
.btn-info {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
}
.btn-info:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}
.btn-primary {
    background-color: #1e293b !important;
    border-color: #1e293b !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
}
.remove-from-cart i {
    font-size: 16px !important;
    color: #94a3b8 !important;
    transition: color 0.2s ease !important;
}
.remove-from-cart:hover i {
    color: #ef4444 !important;
}

/* Wishlist item style overrides */
.product-item img {
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 2px !important;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
}
.product-item .product-info {
    padding-left: 15px !important;
}

/* Wallet Table Mobile Scale & Scroll Fix */
@media (max-width: 767px) {
    .wallet-table {
        min-width: 750px !important;
        width: 100% !important;
    }
}

/* Force Product Image to show in Cart on Mobile */
@media (max-width: 767px) {
    .shopping-cart .product-item {
        display: flex !important;
        align-items: center !important;
    }
    .shopping-cart .product-item .product-thumb {
        display: block !important;
        flex-shrink: 0 !important;
        width: 60px !important;
        height: 60px !important;
        margin-right: 12px !important;
    }
    .shopping-cart .product-item .product-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        border: 1px solid #eef2f5 !important;
    }
}
