/* Mobile CSS for Cyure Health - Mobile-First SEO & CWV Optimization */

/* Mobile Search Form */
.mobile-search-form {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.mobile-search-form .input-group {
    max-width: 100%;
}

.mobile-search-form .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
    font-size: 14px;
}

.mobile-search-form .btn-theme-round {
    border-radius: 0 25px 25px 0;
    padding: 8px 15px;
    background: var(--teal, #0FA3A3);
    border-color: var(--teal, #0FA3A3);
    color: white;
}

.mobile-search-form .btn-theme-round:hover {
    background: var(--teal-dark, #0d8a8a);
    border-color: var(--teal-dark, #0d8a8a);
}

/* Mobile Menu Improvements */
#mobileNavbar {
    background: white;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mobileNavbar .navbar-nav {
    padding: 10px 0;
}

#mobileNavbar .nav-item {
    border-bottom: 1px solid #f8f9fa;
}

#mobileNavbar .nav-item:last-child {
    border-bottom: none;
}

#mobileNavbar .nav-link {
    padding: 12px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

#mobileNavbar .nav-link:hover {
    background: var(--teal, #0FA3A3);
    color: white;
    padding-left: 30px;
}

/* Category Hero Banner Desktop defaults */
.category-hero-banner {
    background: #041d22;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-hero-img {
    position: relative;
    z-index: 3;
    max-height: 320px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.55));
}

/* Category horizontal touch scroll pills */
.category-pills-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.category-pills-scroll::-webkit-scrollbar {
    display: none;
}

/* Cluster city tags horizontal track on mobile */
.cyure-cluster-box .d-flex {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.cyure-cluster-box .d-flex::-webkit-scrollbar {
    display: none;
}

/* PDP Mobile Sticky Order Bar */
.cyure-pdp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    z-index: 9996;
    padding: 8px 14px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

.cyure-pdp-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

.cyure-pdp-sticky-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cyure-pdp-sticky-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.cyure-pdp-sticky-meta {
    min-width: 0;
    overflow: hidden;
}

.cyure-pdp-sticky-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
}

.cyure-pdp-cur-price {
    font-size: 15px;
    font-weight: 700;
    color: #087b70;
}

.cyure-pdp-del-price {
    font-size: 12px;
}

.cyure-pdp-sticky-badge {
    line-height: 1;
    margin-top: 2px;
}

.cyure-pdp-sticky-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cyure-pdp-sticky-buy-btn {
    background: #087b70;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cyure-pdp-sticky-buy-btn:hover,
.cyure-pdp-sticky-buy-btn:focus {
    background: #065e56;
    color: #fff;
}

.cyure-pdp-sticky-wa-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 20px;
}

@media (max-width: 768px) {
    /* Prevent iOS Safari 16px auto-zoom layout shift (CLS) */
    input[type="text"],
    input[type="tel"],
    input[type="number"],
    input[type="email"],
    input[type="search"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Google Mobile-Friendly Touch Targets (>= 44px) */
    .btn,
    .pagination .page-link,
    .cyure-m-nav-item {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Responsive category hero banner to keep products above the fold */
    .category-hero-banner {
        height: 190px !important;
        margin-bottom: 16px !important;
    }

    .category-hero-img {
        max-height: 180px !important;
    }

    /* Horizontal scroll for city cluster tags on mobile */
    .cyure-cluster-box .d-flex {
        flex-wrap: nowrap !important;
        overflow-x: auto;
    }

    .cyure-cluster-box .d-flex .badge {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .navbar-top {
        text-align: center;
        padding: 5px 0;
    }
    
    .navbar-top .col-lg-6 {
        margin-bottom: 5px;
    }
    
    .top-categories-search {
        margin: 15px 0;
    }
    
    .top-categories-search .input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .categories-dropdown select {
        border-radius: 15px 15px 0 0;
        margin-bottom: 1px;
    }
    
    .top-categories-search .form-control {
        border-radius: 0;
        margin-bottom: 1px;
    }
    
    .top-categories-search .btn-theme-round {
        border-radius: 0 0 15px 15px;
    }
    
    .product-item-image img {
        height: 150px;
    }
    
    .carousel-item img:not(.cyure-hero__image) {
        height: 250px;
    }
    
    .product-item {
        margin-bottom: 20px;
    }
    
    .heading-design-h5 {
        font-size: 20px;
    }
    
    .categories-list {
        padding: 20px 0;
    }
    
    .footer-Content {
        padding: 20px 0;
    }
    
    .footer-widget {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-width: 150px;
    }
    
    .product-item-image img {
        height: 120px;
    }
    
    .carousel-item img:not(.cyure-hero__image) {
        height: 200px;
    }
    
    .product-item-body {
        padding: 10px;
    }
    
    /* Ensure font sizes meet Google Mobile Usability standard (>= 12px) */
    .card-title {
        font-size: 14px;
        line-height: 1.35;
    }
    
    .product-price {
        font-size: 15px;
        font-weight: 700;
    }
    
    .product-desc-price {
        font-size: 12px;
    }
    
    .product-discount {
        font-size: 12px;
        font-weight: 700;
    }
}
