/* ============================================================
   OmniMart Storefront — Responsive Breakpoints
   ============================================================ */

@media (max-width: 1399px) {
    .product-grid-5{grid-template-columns:repeat(4,1fr)}
}

@media (max-width: 1050px) {
    .left-category-area .category-list .navi-link img{display:none}
    .left-category-area .category-list .navi-link{padding:14px 12px}
}

@media (max-width: 991px) {
    .hero-slider .item-inner{max-width:80%;inset-inline-start:20px}
    .hero-slider .item-inner .title{font-size:28px}
    .search-box-wrap{display:none!important}
    .search-box-wrap.mobile-open{display:flex!important;position:absolute;left:0;right:0;top:0;height:100%;background:#fff;z-index:999;padding:0 10px;margin:0!important;align-items:center;gap:8px}
    .search-box-wrap.mobile-open .search-box{flex:1;height:42px;border-radius:8px}
    .search-box-wrap.mobile-open .categoris{display:none}
    .close-m-serch{display:none;cursor:pointer;flex-shrink:0}
    .search-box-wrap.mobile-open .close-m-serch{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#f5f5f5;color:var(--c-entity)}
    .menu-top-area{display:none}
    .topbar{position:relative}
    .col-lg-3,.col-lg-4,.col-lg-8,.col-lg-9{width:100%}
    .site-header .navbar{display:none}
    .mobile-menu-toggle{display:flex!important}
    .hidden-on-mobile{display:none!important}
    .visible-on-mobile{display:flex!important}
    .d-lg-none{display:flex!important}
    .d-none.d-lg-block{display:none!important}
    .product-grid-5,.product-grid-4{grid-template-columns:repeat(3,1fr)}
    .section-title{display:block;text-align:center}
    .section-title h2{display:inline-block;margin-bottom:12px}
    .section-title .links{display:flex;justify-content:center;padding-bottom:10px}
    .section-title .links a::before{display:none}
    /* Shop filter panel */
    .sidebar-header{display:flex!important}
    .sidebar-footer{display:flex!important}
    .shop-coll-chips{flex-direction:row!important;flex-wrap:wrap;gap:10px!important}
    .coll-chip{padding:10px 16px!important;background:#f5f5f5;border:1.5px solid var(--c-border);border-radius:20px!important;font-size:13px!important}
    .coll-chip.active{background:var(--c-primary)!important;border-color:var(--c-primary)!important;color:#fff!important}
    .chip-check{display:inline-block!important}
    /* Mobile bottom nav */
    .mobile-bottom-nav{display:flex}
    body{padding-bottom:64px}
    .side-banners-col{display:none!important}
    .scroll-to-top-btn{bottom:76px}
    .shop-filter-fab{bottom:80px}
}

@media (max-width: 767px) {
    .hero-slider .item-inner{inset-inline-start:16px;max-width:60%}
    .hero-slider .item-inner .title{font-size:20px}
    .hero-slider .item-inner .subtitle{font-size:13px;margin-bottom:12px}
    .hero-slider .item-inner .btn{padding:8px 18px;font-size:12px}
    .hero-slider{border-radius:8px}
    .slider-area-wrapper{padding:12px 0 0!important}
    .slider-area-wrapper.slider-full-width{padding:0!important}
    .col-md-4,.col-md-6,.col-sm-6{width:100%}
    .product-grid-5,.product-grid-4,.product-grid-3{grid-template-columns:repeat(2,1fr)}
    .product-grid{gap:10px}
    .bannner-section .genius-banner{margin-bottom:10px;border-radius:8px}
    .menu-top-area{display:none}
    .topbar{padding:6px 0}
    .site-branding .site-logo img{height:36px;max-width:140px!important}
    .toolbar-item .text-label{display:none}
    .toolbar-item > a{padding:6px 6px}
    .service-section .col-lg-3{width:50%}
    .single-service2{padding:12px 8px}
    .single-service img{width:32px;height:32px}
    .single-service .content h6{font-size:13px}
    .card{padding:20px}
    .steps .step-line{width:20px}
    .steps{font-size:11px}
    .item-img{width:52px;height:52px}
    .site-footer .row > [class*="col-"]{width:100%;margin-bottom:24px}
    .ft-grid{grid-template-columns:1fr!important;gap:24px!important}
    .co-wrap{grid-template-columns:1fr!important}
    .co-summary-wrap .card{position:static!important}
    #cartCouponInput{width:100%!important}

    /* Inline grid overrides — force single/2-col on tablet */
    .promo-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
    .promo-2-grid{grid-template-columns:1fr!important;gap:10px!important}
    .cat-grid{grid-template-columns:repeat(3,1fr)!important;gap:10px!important}
    .service-grid{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}
    .contact-wrap{grid-template-columns:1fr!important;gap:24px!important}
    .pd{flex-direction:column!important;gap:20px!important}
    .pd-gallery{max-width:100%!important}
    .od-grid{grid-template-columns:1fr!important}
    .cf-row{grid-template-columns:1fr!important}
    .auth-row,.acc-row,.co-row{grid-template-columns:1fr!important}

    /* Theme2 specific inline grids */
    .t2-ft-grid{grid-template-columns:1fr!important;gap:24px!important;text-align:center}
    .t2-trust-bar{grid-template-columns:1fr 1fr!important;gap:16px!important}
    .t2-section{padding:28px 0!important}

    /* Cart table mobile */
    .cart-tbl{min-width:0!important}
    .cart-tbl thead{display:none}
    .cart-tbl tbody tr{display:flex;flex-wrap:wrap;align-items:center;padding:16px;gap:10px;border-bottom:1px solid var(--c-border-l)!important;position:relative}
    .cart-tbl tbody td{padding:0!important;border:none!important;text-align:start!important}
    .cart-tbl tbody td:first-child{width:100%}
    .cart-tbl tbody td:first-child > div{gap:12px!important}
    .cart-tbl tbody td:first-child img{width:60px!important;height:60px!important;border-radius:6px}
    .cart-tbl tbody td:nth-child(2){font-size:14px!important}
    .cart-tbl tbody td:nth-child(4){font-size:14px!important;margin-inline-start:auto}
    .cart-tbl tbody td:last-child{position:absolute;top:12px;inset-inline-end:12px}
    /* Section spacing */
    .section-title{margin-bottom:16px;padding-bottom:10px}
    .section-title h2{font-size:16px;padding-inline-start:12px}
    .section-title h2::before{width:3px}
    .container{padding:0 12px}
    .cat-card-img{max-width:80px;border-width:2px}
    .cat-card-name{font-size:11px}
    .countdown span{padding:4px 6px;font-size:12px;min-width:40px;border-radius:3px}
    .countdown span small{font-size:8px}
    .flash-deal-title h2{font-size:16px}
    .site-footer{padding-bottom:20px}
    .mt-50{margin-top:24px!important}
    .mt-60{margin-top:28px!important}
    .mt-30{margin-top:16px!important}
    .bannner-section .row{margin:0 -4px}
    .bannner-section .row > [class*="col-"]{padding:0 4px}
}

/* ===== MOBILE: Single column + action buttons visible ===== */
@media (max-width: 576px) {
    .hero-slider .item-inner .title{font-size:18px}
    .hero-slider .item-inner .subtitle{font-size:12px;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
    .hero-slider .item-inner .btn{padding:6px 14px;font-size:11px}

    /* ---- SINGLE COLUMN: all product grids become 1 per row ---- */
    .product-grid-5,
    .product-grid-4,
    .product-grid-3,
    .product-grid-2,
    .product-grid,
    .shop-grid,
    .shop-grid-3,
    .shop-grid-4,
    .shop-grid-5{
        grid-template-columns:1fr!important;
        gap:12px!important
    }

    /* ---- PRODUCT CARD: same vertical style as desktop, full width ---- */
    .product-card{
        display:block!important;
        border-radius:10px;
        border:1px solid var(--c-border-l)
    }
    .product-card:hover{border-color:var(--c-border-l);box-shadow:none}
    .product-card .product-thumb{width:100%!important}
    .product-card .product-thumb::before{padding-top:100%}
    .product-card .product-card-body{padding:12px}
    .product-title a{font-size:14px!important;-webkit-line-clamp:2;min-height:auto!important;line-height:1.4!important}
    .product-price{font-size:15px;margin-top:4px}
    .product-price del{font-size:13px}
    .rating-stars{font-size:12px;margin-bottom:4px}
    .product-category a{font-size:11px}

    /* ---- ACTION BUTTONS: always visible on mobile, no hover needed ---- */
    .product-button-group{
        opacity:1!important;
        transform:translateY(0)!important;
        bottom:0!important;
        padding:10px!important;
        background:rgba(0,0,0,.35)!important;
        gap:8px!important
    }
    .product-card:hover .product-button-group{
        opacity:1!important;
        transform:translateY(0)!important
    }
    .product-button{
        background:var(--c-primary)!important;
        border:none!important;
        color:#fff!important;
        box-shadow:none!important
    }
    .product-button svg{
        stroke:#fff!important
    }
    .product-button:active{
        opacity:.8
    }

    /* All inline grids — single column on small mobile */
    .promo-grid{grid-template-columns:1fr!important}
    .promo-2-grid{grid-template-columns:1fr!important}
    .cat-grid{grid-template-columns:repeat(2,1fr)!important;gap:8px!important}
    .service-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
    .t2-trust-bar{grid-template-columns:1fr 1fr!important;gap:12px!important}
    .t2-ft-grid{grid-template-columns:1fr!important;gap:20px!important;text-align:center}

    /* Theme2 product cards — 2 col on small mobile */
    [style*="minmax(220px"]{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}
    [style*="minmax(200px"]{grid-template-columns:1fr 1fr!important;gap:12px!important}
    [style*="minmax(140px"]{grid-template-columns:repeat(3,1fr)!important;gap:10px!important}

    /* Theme2 product card mobile tweaks */
    .t2-product-card .t2-pc-actions{opacity:1!important;transform:translateY(0)!important}
    .t2-pc-body{padding:10px 12px 14px!important}
    .t2-pc-body .t2-pc-name{font-size:13px!important}
    .t2-pc-body .t2-pc-price{font-size:14px!important}
    .t2-discount{font-size:10px!important;padding:3px 8px!important}

    /* Shop page toolbar */
    .shop-toolbar{flex-direction:column;gap:10px;align-items:stretch;padding:10px 12px;border-radius:8px}
    .shop-toolbar > div{justify-content:space-between;flex-wrap:wrap;gap:8px}
    .shop-toolbar select{flex:1;min-width:0;padding:10px 12px;border-radius:6px}
    .shop-toolbar .showing{font-size:12px;text-align:center}
    .view-toggle{display:none}
    .shop-toolbar .quick-filter{padding:10px 14px;border-radius:6px;font-weight:600}

    /* Product detail page */
    .pd{flex-direction:column!important;gap:16px!important}
    .pd-gallery{max-width:100%!important;overflow:hidden}
    .pd-zoom-wrap{cursor:default;border:none;background:transparent}
    .pd-main-img{aspect-ratio:auto!important;max-height:350px!important;width:100%!important;object-fit:contain!important;background:#f9f9f9;border:1px solid var(--c-border);border-radius:8px}
    .pd-cart-row{flex-wrap:wrap!important;gap:8px!important}
    .pd-cart-row .btn{flex:1!important;min-width:120px!important}
    .pd-name{font-size:20px!important}
    .pd-price{font-size:22px!important}

    /* Track page */
    .track-search{flex-direction:column;border-radius:6px}
    .track-search input{border-bottom:1px solid var(--c-border)}
    .track-search button{padding:12px}

    /* Carousel arrows */
    .owl-carousel .owl-prev,.owl-carousel .owl-next{width:28px;height:28px}
    .owl-carousel .owl-prev{margin-left:-6px}
    .owl-carousel .owl-next{margin-right:-6px}
    .owl-carousel .owl-prev svg,.owl-carousel .owl-next svg{width:12px;height:12px}
    /* Scrollbar hide */
    .pd-thumbs,.special-tabs,.acc-nav{-webkit-overflow-scrolling:touch;scrollbar-width:none}
    .pd-thumbs::-webkit-scrollbar,.special-tabs::-webkit-scrollbar,.acc-nav::-webkit-scrollbar{display:none}

    /* Checkout page mobile */
    .co-wrap{gap:12px!important}
    .co-section .card{padding:16px!important}
    .co-pay svg{width:18px;height:18px;flex-shrink:0}
    .co-pay div{min-width:0}
    .co-pay div .text-sm{display:block;line-height:1.3}
    .co-summary-wrap .card{padding:16px!important}
    .item-row{padding:10px 0;gap:10px}
    .item-img{width:48px!important;height:48px!important;border-radius:6px}
    .item-name{font-size:13px!important}
    .item-meta{font-size:11px}
    .item-price{font-size:13px!important}
    .sum-row{font-size:13px;padding:6px 0}
    .sum-total{font-size:16px!important}
    .co-secure{font-size:11px}
    .steps{flex-wrap:nowrap;overflow-x:auto;justify-content:center;padding:12px 0}
    .step{white-space:nowrap;font-size:10px;gap:3px}
    .step-num{width:22px;height:22px;font-size:10px}
    .step-line{width:16px;margin:0 3px}
    /* Select2 mobile */
    .select2-container{width:100%!important}
    .select2-container--default .select2-selection--single{height:42px;font-size:13px;padding:0 10px}
    .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:42px;font-size:13px}
    .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px}
    .sf-input{font-size:14px!important;padding:10px 12px!important}
    .sf-label{font-size:12px!important}
    /* Checkout button full width touch-friendly */
    #placeBtn{padding:16px!important;font-size:15px!important;border-radius:8px}
}

@media (max-width: 414px) {
    .toolbar-item{margin:0 2px}
    .section-title h2{font-size:15px}
    .product-card .product-button{width:32px;height:32px}
    .product-card .product-button svg{width:14px;height:14px}
    .product-card .product-button-group{gap:8px;padding:8px}
    .pd-main-img{max-height:300px!important}
    .product-card .compare-btn{display:none}
    .topbar .container > div{gap:10px!important;padding:8px 0!important}
    .site-branding .site-logo img{height:32px;max-width:120px!important}
    .mobile-bottom-nav .bottom-nav-item{font-size:9px}
    .mobile-bottom-nav .bottom-nav-item svg{width:18px;height:18px}
    /* Checkout 414px */
    .card{padding:14px!important}
    .co-section h3{font-size:14px!important;margin-bottom:10px}
    .co-section h3 .co-num{width:22px;height:22px;font-size:10px}
    .co-pay{padding:10px;gap:8px;border-width:1.5px}
    .coupon-box{gap:6px}
    .coupon-box input{padding:8px 10px;font-size:12px;letter-spacing:.5px}
    .coupon-box button{padding:8px 12px;font-size:12px}
    .coupon-applied{font-size:11px;padding:8px 10px}
}

@media (max-width: 360px) {
    .product-title a{font-size:13px!important}
    .product-card-body{padding:10px}
    .pd-main-img{max-height:260px!important}
    .product-price{font-size:14px}
    .hero-slider .item-inner .title{font-size:16px}
    .hero-slider .item-inner .subtitle{display:none}
    .hero-slider .item-inner .btn{padding:5px 12px;font-size:10px}
    .product-card .product-button{width:30px;height:30px}
    .product-card .product-button svg{width:13px;height:13px}
}
