/* ========================================================================
   BilMa / Storefront Responsive Override Layer
   Use AFTER style.css so these rules override fixed desktop dimensions.
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { width:100%; max-width:100%; overflow-x:hidden; }
img, svg, video, iframe { max-width:100%; height:auto; }
input, select, textarea, button { max-width:100%; }

/* Large desktop / small desktop */
@media (max-width:1199px) {
    .container { width:100%; max-width:100%; padding-left:15px; padding-right:15px; }
    .header-middle-right .header-middle-block { gap:8px; }
    .header-middle-right .header-middle-block .header-middle-searchbox { flex:1 1 auto; max-width:none; min-width:0; }
    .header-middle-right .header-middle-block .header-mini-cart { flex:0 0 150px; max-width:150px; }
    .main-header-inner .category-toggle-wrap nav.category-menu > ul > li .category-mega-menu { width:min(720px,calc(100vw - 250px)); max-width:calc(100vw - 250px); }
}

/* Tablet: 768px - 991px */
@media (min-width:768px) and (max-width:991px) {
    .container { padding-left:20px; padding-right:20px; }
    .header-top-area { text-align:center; }
    .header-top-area .header-top-right ul { justify-content:center; flex-wrap:wrap; gap:8px 20px; }
    .header-top-area .header-top-right ul li { margin-left:0; }
    .brand-logo img { width:auto; max-width:80%; max-height:80px; margin:0 auto; }
    .header-middle-right .header-middle-shipping { justify-content:center; gap:20px; margin-bottom:15px; }
    .header-middle-right .header-middle-block { width:100%; flex-wrap:nowrap; align-items:stretch; }
    .header-middle-right .header-middle-block .header-middle-searchbox { flex:1 1 auto; max-width:none; min-width:0; }
    .header-middle-right .header-middle-block .header-mini-cart { flex:0 0 150px; max-width:150px; }
    .main-header-inner .category-toggle-wrap { flex:0 0 218px; }
    .main-header-inner .category-toggle-wrap nav.category-menu > ul { max-height:60vh; overflow-y:auto; }
    .slider-wrapper-area .single-slider { background-position:center; background-size:cover; }
    .slider-wrapper-area .slider-text, .hero__2 .single-slider .slider-text, .hero__3 .single-slider .slider-text, .hero__4 .single-slider .slider-main-content { max-width:70%; }
    .product-details-des { margin-top:30px; }
    .shop-sidebar, .blog-sidebar, .sidebar-area { margin-bottom:30px; }
    .cart-main-wrapper .cart-table, .compare-table, .order-summary-table { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .cart-main-wrapper .cart-table table, .compare-table table { min-width:760px; }
    .checkout-billing-details-wrap, .order-summary-details { margin-bottom:30px; }
    .footer-top-wrapper { text-align:center; }
}

/* Mobile: <=767px */
@media (max-width:767px) {
    .container { width:100%; max-width:100%; padding-left:15px; padding-right:15px; }
    body { font-size:13px; line-height:21px; }
    p { font-size:13px; line-height:21px; }

    /* Header */
    .header-top-area { padding:8px 0; text-align:center; }
    .header-top-area .header-call-action { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 12px; }
    .header-top-area .header-call-action a { padding-right:0; margin-right:0; font-size:11px; }
    .header-top-area .header-top-right { width:100%; margin-top:8px; padding-top:8px; }
    .header-top-area .header-top-right ul { justify-content:center; flex-wrap:wrap; gap:5px 15px; }
    .header-top-area .header-top-right ul li { margin-left:0; }
    .brand-logo { text-align:center; margin-bottom:12px; }
    .brand-logo img { width:auto; max-width:80%; max-height:70px; margin:0 auto; }
    .header-middle-right .header-middle-shipping { display:none; }
    .header-middle-right .header-middle-block { width:100%; display:flex; flex-wrap:wrap; gap:10px; }
    .header-middle-right .header-middle-block .header-middle-searchbox { flex:1 1 calc(100% - 160px); max-width:none; min-width:0; }
    .header-middle-right .header-middle-block .header-middle-searchbox input { height:45px; padding:0 52px 0 10px; font-size:13px; }
    .header-middle-right .header-middle-block .header-middle-searchbox .search-all { height:45px; max-width:42%; font-size:12px; padding-left:7px; overflow:hidden; }
    .header-middle-right .header-middle-block .header-middle-searchbox button.search-btn { width:45px; height:45px; }
    .header-middle-right .header-middle-block .header-mini-cart { flex:0 0 150px; max-width:150px; height:45px; margin-top:0; }
    .header-middle-right .header-middle-block .header-mini-cart ul.cart-list { width:min(300px,calc(100vw - 30px)); max-width:calc(100vw - 30px); }

    /* Navigation */
    .main-header-inner { display:block; }
    .main-header-inner .category-toggle-wrap { width:100%; flex:0 0 100%; }
    .main-header-inner .category-toggle-wrap nav.category-menu { width:100%; max-height:70vh; overflow-y:auto; z-index:1000; }
    .main-header-inner .category-toggle-wrap nav.category-menu > ul { max-height:none; }
    .main-header-inner .category-toggle-wrap nav.category-menu > ul > li > a { font-size:13px; padding-left:12px; }
    .main-header-inner .category-toggle-wrap nav.category-menu > ul > li .category-mega-menu { position:static; width:100%; max-width:100%; margin:0; padding:15px; box-shadow:none; }

    /* Hero / sliders */
    .slider-wrapper-area .single-slider { min-height:300px; height:auto; background-position:center; background-size:cover; }
    .slider-wrapper-area .slider-text, .slider-wrapper-area .hero__1 .single-slider .slider-main-content .slider-text, .hero__2 .single-slider .slider-text, .hero__3 .single-slider .slider-text, .hero__4 .single-slider .slider-main-content { width:100%; max-width:90%; margin-left:auto; margin-right:auto; }
    .slider-wrapper-area .slider-text h1, .slider-wrapper-area .slider-text h2 { line-height:1.15; }
    .home-btn, .sqr-btn { min-height:38px; line-height:36px; font-size:13px; padding:0 14px; }
    .slick-arrow-style.slick-slider .slick-arrow { width:26px; height:26px; font-size:15px; line-height:22px; bottom:calc(100% + 20px); }
    .slick-arrow-style.slick-slider .slick-arrow.slick-prev { right:31px; }
    .slick-dot-style ul.slick-dots { bottom:-28px; }

    /* Product / shop */
    .section-title h3 { font-size:20px; line-height:24px; }
    .section-title .title-icon { width:34px; height:34px; line-height:34px; font-size:18px; }
    .product-list-item { margin-bottom:25px; }
    .product-list-item .product-list-content { padding-top:15px; }
    .product-list-item .product-list-content h3 { font-size:16px; line-height:22px; }
    .category-item .category-thumb img { width:100%; height:auto; }
    .top-bar-left, .top-bar-right { width:100%; float:none; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
    .top-bar-left { margin-bottom:12px; }
    .top-bar-right .product-short { width:100%; }
    .shop-sidebar, .blog-sidebar, .sidebar-area { width:100%; margin-bottom:30px; }

    /* Blog */
    .blog-item .blog-content .blog-details blockquote { margin-left:0; margin-right:0; padding:15px; }
    .blog-item .blog-content .blog-details h3 { font-size:20px; line-height:26px; }

    /* Product details / reviews */
    .product-details-des { margin-top:25px; width:100%; }
    .pro-large-img img { width:100%; height:auto; }
    .product-details-des .action_link { display:flex; flex-wrap:wrap; gap:8px; }
    .product-details-des .group-product-table { display:block; width:100%; overflow-x:auto; }
    .product-review-info .nav.review-tab { display:flex; flex-wrap:wrap; }
    .product-review-info .nav.review-tab li { flex:1 1 auto; }
    .product-review-info .nav.review-tab li a { width:100%; text-align:center; }
    .product-review-info .tab-content.reviews-tab { overflow-x:auto; }

    /* Checkout */
    .checkout-billing-details-wrap, .order-summary-details { width:100%; margin-bottom:25px; }
    .order-summary-table { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .order-summary-table table { min-width:520px; }
    .summary-footer-area .btn-brand { width:100%; }

    /* Cart / compare / account */
    .cart-main-wrapper .cart-table, .compare-table, .myaccount-table { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .cart-main-wrapper .cart-table table, .compare-table table, .myaccount-table table { min-width:700px; }
    .cart-update-option { flex-wrap:wrap; }
    .cart-update-option .apply-coupon-wrapper, .cart-update-option .cart-update { width:100%; max-width:100%; margin-bottom:10px; }
    .cart-update-option .apply-coupon-wrapper form { width:100%; display:flex; }
    .cart-update-option .apply-coupon-wrapper form input { min-width:0; flex:1 1 auto; }
    .cart-update-option .apply-coupon-wrapper button, .cart-update-option .btn-brand, .cart-update-option .cart-update .check-btn { width:100%; }
    .cart-calculator-wrapper { width:100%; margin-top:25px; }
    .login-reg-form-wrap { width:100%; max-width:100%; }
    #myaccountContent { margin-top:25px; }
    .myaccount-tab-menu { margin-bottom:25px; }
    .myaccount-tab-menu a { display:block; width:100%; }
    .myaccount-content { width:100%; overflow-x:hidden; }

    /* About / contact */
    .about-text-wrap { margin-top:25px; }
    .about-text-wrap h2 { font-size:28px; line-height:34px; }
    .about-image-wrap { margin-top:25px; }
    .contact-message h2, .contact-info h2 { font-size:24px; line-height:30px; }
    .contact-info { margin-top:30px; }
    #map_content { width:100%; min-height:300px; }
    .breadcrumb-wrap nav .breadcrumb { flex-wrap:wrap; gap:3px; }

    /* Footer / floating controls */
    .footer-top, .footer-widget, .footer-bottom-wrap { text-align:center; }
    .footer-top-wrapper { display:flex; flex-direction:column; align-items:center; gap:20px; }
    .footer-top-wrapper .newsletter__wrap, .footer-top-wrapper .social-icons { width:100%; justify-content:center; }
    .footer-widget { margin-bottom:30px; }
    .footer-bottom-wrap .copyright-text, .footer-bottom-wrap .payment-method-img { width:100%; justify-content:center; text-align:center; }
    .scroll-top { width:40px; height:40px; right:12px; bottom:15px; }
    .scroll-top i { line-height:40px; font-size:22px; }
    .color-switcher { max-width:calc(100vw - 20px); }
}

/* Small mobile: <=575px */
@media (max-width:575px) {
    .container { padding-left:12px; padding-right:12px; }
    .header-middle-right .header-middle-block .header-middle-searchbox { flex:1 1 100%; width:100%; }
    .header-middle-right .header-middle-block .header-middle-searchbox .search-all { max-width:45%; font-size:11px; }
    .header-middle-right .header-middle-block .header-mini-cart { flex:1 1 100%; max-width:100%; width:100%; }
    .header-middle-right .header-middle-block .header-mini-cart .mini-cart-btn, .header-middle-right .header-middle-block .header-mini-cart .cart-total-price { flex-basis:50%; }
    .header-middle-right .header-middle-block .header-mini-cart ul.cart-list { width:calc(100vw - 24px); max-width:calc(100vw - 24px); }
    .slider-wrapper-area .single-slider { min-height:250px; }
    .slider-wrapper-area .slider-text h1, .slider-wrapper-area .slider-text h2, .hero__2 .single-slider .slider-text h2, .hero__3 .single-slider .slider-text h1, .hero__4 .single-slider .slider-main-content h1 { font-size:clamp(22px,7vw,32px); line-height:1.12; }
    .slider-wrapper-area .slider-text p, .hero__2 .single-slider .slider-text p, .hero__3 .single-slider .slider-text p, .hero__4 .single-slider .slider-main-content p { font-size:12px; line-height:19px; }
    .single-input-item input, .single-input-item textarea, .contact-message form input, .contact-message form textarea { width:100%; max-width:100%; }
    .contact-message form textarea { min-height:150px; }
    .checkoutaccordion .card .card-body { padding:15px 10px; }
    .order-summary-table table { min-width:480px; }
    .about-text-wrap h2 { font-size:24px; line-height:30px; }
    .footer-top-wrapper .newsletter__wrap .newsletter__content h3 { font-size:20px; line-height:26px; }
    .footer-top-wrapper .newsletter__wrap .newsletter__box, .footer-top-wrapper .newsletter__wrap .newsletter__box form { width:100%; }
    .footer-top-wrapper .newsletter__wrap .newsletter__box form { display:flex; flex-wrap:wrap; gap:8px; }
    .footer-top-wrapper .newsletter__wrap .newsletter__box form input, .footer-top-wrapper .newsletter__wrap .newsletter__box form button { width:100%; max-width:100%; margin:0; }
}

/* Very small mobile: <=479px */
@media (max-width:479px) {
    body { font-size:12px; line-height:20px; }
    .container { padding-left:10px; padding-right:10px; }
    .header-top-area .header-call-action { flex-direction:column; align-items:center; }
    .brand-logo img { max-width:90%; max-height:60px; }
    .header-middle-right .header-middle-block .header-middle-searchbox .search-all { max-width:50%; padding-left:5px; padding-right:5px; }
    .header-middle-right .header-middle-block .header-middle-searchbox .custom-dropdown .options { width:min(280px,calc(100vw - 20px)); max-width:calc(100vw - 20px); }
    .header-middle-right .header-middle-block .header-mini-cart ul.cart-list { width:calc(100vw - 20px); max-width:calc(100vw - 20px); }
    .slider-wrapper-area .single-slider { min-height:220px; }
    .slider-wrapper-area .slider-text h1, .slider-wrapper-area .slider-text h2, .hero__2 .single-slider .slider-text h2, .hero__3 .single-slider .slider-text h1, .hero__4 .single-slider .slider-main-content h1 { font-size:22px; line-height:26px; }
    .slider-wrapper-area .slider-text p, .hero__2 .single-slider .slider-text p, .hero__3 .single-slider .slider-text p, .hero__4 .single-slider .slider-main-content p { display:none; }
    .home-btn, .sqr-btn { font-size:12px; line-height:32px; min-height:34px; padding:0 10px; }
    .section-title h3 { font-size:17px; line-height:22px; }
    .product-list-item .product-list-content h3 { font-size:14px; line-height:20px; }
    .product-details-des h3 { font-size:20px; line-height:26px; }
    .product-review-info .nav.review-tab li { width:100%; flex:0 0 100%; }
    .cart-main-wrapper .cart-table table { min-width:680px; }
    .compare-table table { min-width:700px; }
    .order-summary-table table { min-width:450px; }
    .login-reg-form-wrap h2 { font-size:22px; line-height:28px; }
    .login-reg-form-wrap h3 { font-size:18px; line-height:24px; }
    .contact-message h2, .contact-info h2 { font-size:21px; line-height:27px; }
    #map_content { min-height:240px; }
    .breadcrumb-wrap nav .breadcrumb .breadcrumb-item a, .breadcrumb-wrap nav .breadcrumb .breadcrumb-item.active { font-size:11px; }
    .footer-top-wrapper .newsletter__wrap .newsletter__content h3 { font-size:18px; line-height:24px; }
    .scroll-top { width:36px; height:36px; right:8px; bottom:10px; }
    .scroll-top i { line-height:36px; font-size:19px; }
    .color-switcher { right:5px; max-width:calc(100vw - 10px); }
}

/* Landscape phones */
@media (max-width:767px) and (orientation:landscape) {
    .slider-wrapper-area .single-slider { min-height:260px; }
    .main-header-inner .category-toggle-wrap nav.category-menu { max-height:65vh; }
    .header-middle-right .header-middle-block .header-mini-cart ul.cart-list { max-height:70vh; overflow-y:auto; }
}

/* Touch devices: avoid hover-only interactions */
@media (hover:none) and (pointer:coarse) {
    .slick-arrow-style_2.slick-slider .slick-arrow { opacity:1; visibility:visible; }
    .img-container:hover img { transform:none; }
    .img-container:hover a:before, .img-container:hover a:after { transform:scale(0); }
}

/* Mobile overflow protection */
@media (max-width:991px) {
    .blog-content-wrap, .blog-main-content, .product-details-des, .product-review-info, .checkout-main-wrapper, .cart-main-wrapper, .myaccount-content, .about-text-wrap, .contact-message, .contact-info, .footer-widget { min-width:0; max-width:100%; }
    .table-responsive, .cart-table, .compare-table, .order-summary-table, .myaccount-table { -webkit-overflow-scrolling:touch; }
}




/* Product filter dropdown */
.product-filter-dropdown {
    position: relative;
    min-width: 190px;
}

.product-filter-dropdown-toggle {
    width: 100%;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
}

.product-filter-dropdown-toggle:hover {
    border-color: #aaa;
}

.product-filter-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    width: 100%;
    min-width: 240px;
    max-height: 350px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.product-filter-dropdown-menu.show {
    display: block;
}

.product-filter-search {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.product-filter-search-input {
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    outline: none;
}

.product-filter-search-input:focus {
    border-color: #999;
}

.product-filter-options {
    max-height: 280px;
    overflow-y: auto;
}

.product-filter-option-link {
    display: block;
    padding: 9px 12px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.product-filter-option-link:hover {
    background: #f5f5f5;
}

.product-filter-option.hidden {
    display: none;
}

