/*
 * BizCircle — Mobile Responsive Styles
 * Covers all sections of the home page for screens < 1200px (xl breakpoint)
 * Breakpoints used:
 *   xs : < 576px
 *   sm : 576px – 767px
 *   md : 768px – 991px
 *   lg : 992px – 1199px
 *   xl : ≥ 1200px  (Electro template's primary desktop breakpoint)
 */

/* ==========================================================================
   1. GLOBAL / BASE RESETS
   ========================================================================== */

/* Prevent horizontal overflow on the whole page */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Make all images fluid by default */
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. HEADER — Mobile Nav Bar
   ========================================================================== */

/* ── 2a. Hide topbar (desktop-only register/login links) on mobile ── */
@media (max-width: 1199px) {
    .u-header-topbar {
        display: none !important;
    }

    /* Remove excessive padding on the main header row */
    .u-header__section .py-xl-5 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Make header background white on mobile */
    #header .bg-primary-down-lg {
        background-color: #fff;
    }

    /* Logo nav — lock width on mobile so auth buttons always have room */
    #mobile-logo-nav {
        min-width: auto !important;
        max-width: 160px !important;
        width: auto !important;
    }

    /* Logo SVG — CSS fallback (SVG width attr already reduced to 120px in HTML) */
    .u-header__navbar-brand svg {
        width: 120px !important;
        height: auto !important;
    }

    /* Auth buttons column — never shrink, always visible */
    .col-auto.text-right,
    .col-auto.text-xl-left {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
    }

    /* Auth buttons — ultra-compact on mobile */
    #header .btn-sm.d-flex.align-items-center {
        font-size: 11px !important;
        padding: 4px 8px !important;
        white-space: nowrap !important;
    }

    /* Auth button icons — tighten margin */
    #header .btn-sm .ec-user,
    #header .btn-sm .fa-sign-in-alt,
    #header .btn-sm .fa-sign-out-alt {
        margin-right: 3px !important;
        font-size: 11px;
    }

    /* Hide leftover Electro cart icon and fake "My Account" link on mobile */
    .col.d-xl-none.px-2.px-sm-3:has(> a[href*="transvelo"]),
    li.col.pr-xl-0.px-2.px-sm-3.d-xl-none:has(> a[href*="cart"]) {
        display: none !important;
    }

    /* General: hide the desktop cart dropdown */
    .cart-dropdown {
        display: none !important;
    }

    /* Header right col — keep auth buttons in one row always */
    .col-auto.text-right,
    .col-auto.text-xl-left {
        flex-shrink: 0;
    }

    /* Prevent auth button list from wrapping */
    #header ul.d-flex.align-items-center {
        flex-wrap: nowrap !important;
        gap: 4px;
    }

    /* Each auth li — no padding so buttons sit tight together */
    #header ul.d-flex.align-items-center li.col {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    /* Support phone block — hide on mobile (shown in footer) */
    .d-none.d-xl-block.col-md-auto {
        display: none !important;
    }
}

/* ── 2b. Mobile search bar — full width below header ── */
/* This is the mobile search bar added in header.php */
#mobile-search-bar {
    display: none;
    background: #fff;
    padding: 10px 15px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 2px solid var(--primary, #21c1f3);
    position: sticky;
    top: 0;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 1199px) {
    #mobile-search-bar {
        display: block;
    }
}

/* Mobile search input */
#mobile-search-bar .input-group {
    width: 100%;
}

#mobile-search-bar input[type="text"] {
    font-size: 14px;
    height: 44px;
    border-radius: 25px 0 0 25px !important;
    border: 2px solid #21c1f3;
    border-right: none;
    padding-left: 16px;
}

#mobile-search-bar .btn-search-mobile {
    height: 44px;
    width: 50px;
    border-radius: 0 25px 25px 0 !important;
    background: #21c1f3;
    border: 2px solid #21c1f3;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-search-bar .mobile-location-select {
    height: 44px;
    border: 2px solid #21c1f3;
    border-left: none;
    border-right: none;
    font-size: 13px;
    padding: 0 8px;
    background: #f8f9fa;
    color: #555;
    max-width: 130px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23555' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 22px;
    cursor: pointer;
}

/* ==========================================================================
   3. HERO SLIDER SECTION
   ========================================================================== */

@media (max-width: 1199px) {
    /* Reduce hero height */
    .bg-img-hero .container.min-height-420 {
        min-height: 280px !important;
    }

    /* Stack hero columns */
    .bg-img-hero .row.min-height-420 {
        min-height: 280px !important;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1rem !important;
    }

    /* Text column: full width */
    .bg-img-hero .offset-xl-2,
    .bg-img-hero .col-xl-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        padding-right: 1rem;
    }

    /* Hero H1 — bring font size down */
    .bg-img-hero h1.text-lh-57 {
        font-size: 22px !important;
        line-height: 1.35 !important;
        margin-bottom: 0.75rem;
    }

    /* Hero subtitle */
    .bg-img-hero h6 {
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
    }

    /* Hide the decorative image on mobile to save space */
    .bg-img-hero .col-xl-4.col-3 {
        display: none !important;
    }

    /* Reduce overall section bottom margin */
    .bg-img-hero + div,
    .mb-5:has(.bg-img-hero) {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 575px) {
    .bg-img-hero h1.text-lh-57 {
        font-size: 18px !important;
    }

    .bg-img-hero h6 {
        font-size: 12px !important;
    }

    .bg-img-hero .container.min-height-420 {
        min-height: 200px !important;
    }

    .bg-img-hero .row.min-height-420 {
        min-height: 200px !important;
    }
}

/* ==========================================================================
   4. REGISTRATION BANNER (Full Banner CTA)
   ========================================================================== */

@media (max-width: 1199px) {
    /* Full banner: reduce padding */
    .mb-6 > a.d-block > div {
        background-size: cover;
        background-position: center;
    }

    .mb-6 > a.d-block .space-top-2-md {
        padding: 1.25rem 1rem !important;
    }

    /* Stack the banner content */
    .mb-6 > a.d-block .flex-horizontal-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    /* Heading inside banner */
    .mb-6 > a.d-block h2 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    /* "At No Cost" badge — shrink */
    .mb-6 > a.d-block .bg-primary.rounded-lg {
        padding: 0.4rem 1rem !important;
        margin-left: 0 !important;
    }

    .mb-6 > a.d-block .font-size-30 {
        font-size: 20px !important;
    }
}

@media (max-width: 575px) {
    .mb-6 > a.d-block h2 {
        font-size: 15px !important;
    }

    .mb-6 > a.d-block .ml-5 {
        margin-left: 0 !important;
    }
}

/* ==========================================================================
   5. SERVICE PROVIDER 3-STEP STRIP
   ========================================================================== */

@media (max-width: 1199px) {
    /* The strip uses flex-nowrap which allows horizontal scroll.
       Keep that pattern but improve readability. */
    .mb-6.row.border.rounded-lg.mx-0.flex-nowrap {
        border-radius: 8px !important;
        padding: 0 !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    /* Each step card */
    .mb-6.row.border.rounded-lg.mx-0.flex-nowrap > .media.col {
        scroll-snap-align: start;
        min-width: 240px !important;
        padding: 12px 16px !important;
    }

    /* Icon size */
    .mb-6.row.border.rounded-lg.mx-0.flex-nowrap .u-avatar {
        flex-shrink: 0;
    }

    /* Step text */
    .mb-6.row.border.rounded-lg.mx-0.flex-nowrap .media-body span {
        font-size: 13px !important;
    }

    .mb-6.row.border.rounded-lg.mx-0.flex-nowrap .media-body div {
        font-size: 12px !important;
    }
}

/* Scroll hint shadow on mobile */
@media (max-width: 767px) {
    .mb-6.row.border.rounded-lg.mx-0.flex-nowrap {
        position: relative;
    }

    .mb-6.row.border.rounded-lg.mx-0.flex-nowrap::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
        border-radius: 0 8px 8px 0;
    }
}

/* ==========================================================================
   6. LATEST REGISTERED SERVICE PROVIDERS
   ========================================================================== */

@media (max-width: 1199px) {
    /* Section heading */
    .border-bottom.border-color-1.mb-2 h3 {
        font-size: 18px !important;
    }

    /* Provider cards row — allow horizontal scroll */
    .row.mb-6.flex-nowrap.flex-xl-wrap {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    /* Each provider card */
    .row.mb-6.flex-nowrap.flex-xl-wrap > .col-md-6 {
        scroll-snap-align: start;
        min-width: 280px !important;
        flex: 0 0 280px !important;
        max-width: 280px !important;
    }
}

@media (max-width: 575px) {
    .row.mb-6.flex-nowrap.flex-xl-wrap > .col-md-6 {
        min-width: 85vw !important;
        flex: 0 0 85vw !important;
        max-width: 85vw !important;
    }
}

/* Provider card inner */
@media (max-width: 1199px) {
    a.min-height-146.py-1 {
        min-height: 120px !important;
        border-radius: 8px;
        overflow: hidden;
    }

    /* Business name */
    a.min-height-146 .font-size-18 {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    /* Area text */
    a.min-height-146 .font-size-12 {
        font-size: 11px !important;
    }
}

/* ==========================================================================
   7. WHY BIZCIRCLE SECTION (Left sidebar + Right feature list)
   ========================================================================== */

@media (max-width: 1199px) {
    /* The left sidebar (Popular Services) is already d-none d-xl-block — correct */
    /* Right content: use full width */
    .col-xl-9.col-wd-auto.max-width-1130 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* "Why bizCircle" heading */
    h4.font-size-22 {
        font-size: 18px !important;
    }

    /* The bordered section wrapping the two columns */
    .p-xl-4.border.border-width-2.border-primary.borders-radius-20 {
        border: none !important;
        padding: 0 !important;
    }

    /* Feature section description text */
    .section-title.mb-4 p {
        font-size: 14px;
    }

    /* Feature list items */
    .why-bizcircle-list .h5 {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    .why-bizcircle-list p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .why-bizcircle-list li {
        margin-bottom: 16px !important;
    }

    /* Icon spans */
    .why-icon {
        min-width: 32px;
    }

    /* Two columns inside the why section — stack on small screens */
}

/* Stack the two feature columns on mobile */
@media (max-width: 767px) {
    .col-xl-9 .row > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Add divider between the two stacked sections */
    .col-xl-9 .row > .col-md-6:first-child {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #e5e5e5;
    }

    /* CTA Button — full width on mobile */
    .mt-4 .btn-lg {
        width: 100%;
        text-align: center;
        font-size: 15px !important;
        padding: 0.75rem 1rem !important;
    }
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

@media (max-width: 767px) {
    /* Footer bottom widgets padding */
    .pt-8.pb-4.bg-gray-13 {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Phone number size */
    .font-size-20.text-gray-90 {
        font-size: 16px !important;
    }

    /* Footer columns — stack */
    .col-lg-5,
    .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Footer Quick Links columns */
    .col-lg-7 .col-12.col-md {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0.5rem;
    }

    /* Copyright bar */
    .bg-gray-14.py-2 .flex-center-between {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}

@media (max-width: 575px) {
    .col-lg-7 .col-12.col-md {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   9. CONTAINER PADDING — tighten on mobile
   ========================================================================== */

@media (max-width: 575px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ==========================================================================
   10. SIDEBAR (Login/Register slide-out) — Mobile fix
   ========================================================================== */

@media (max-width: 575px) {
    .u-sidebar__lg {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   11. GENERAL TOUCH & TAP TARGETS
   ========================================================================== */

@media (max-width: 1199px) {
    /* Minimum touch target 44px for links and buttons */
    .list-group-item,
    .nav-link,
    .btn,
    select,
    input[type="text"],
    input[type="search"] {
        min-height: 44px;
    }

    /* Selectpicker buttons */
    .bootstrap-select .btn {
        min-height: 44px;
    }
}

/* ==========================================================================
   12. SECTION MARGIN RESETS — tighter on mobile
   ========================================================================== */

@media (max-width: 767px) {
    .mb-6 {
        margin-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .py-7 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-md-0 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* ==========================================================================
   13. REGISTRATION PAGE — Mobile Responsive Styles
   ========================================================================== */

@media (max-width: 575px) {
    .btn-block-down-sm {
        display: block !important;
        width: 100% !important;
    }

    .font-size-24-down-sm {
        font-size: 22px !important;
    }

    /* Input group mobile adjustment */
    .input-group-pill .input-group-text {
        font-size: 13px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Modal responsiveness */
    #otpModal .modal-dialog {
        margin: 0.5rem;
    }

    #otpModal .modal-content {
        border-radius: 12px;
    }
}

/* ==========================================================================
   14. MY ACCOUNT & DASHBOARD — Mobile Responsive Utilities
   ========================================================================== */

.bg-primary-soft {
    background-color: rgba(254, 215, 0, 0.15) !important;
}

.width-40 { width: 40px !important; }
.height-40 { height: 40px !important; }
.width-45 { width: 45px !important; }
.height-45 { height: 45px !important; }
.width-20 { width: 20px !important; }

.account-action-card {
    background-color: #fff;
    border-color: #e9ecef !important;
    transition: all 0.2s ease-in-out;
}

.account-action-card:hover,
.account-action-card:active {
    border-color: #fed700 !important;
    background-color: #fffdf5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   15. REGISTER TEMPLATE (WIZARD STEPS & UPLOAD) — Mobile Responsive Styles
   ========================================================================== */

.word-break-all {
    word-break: break-all !important;
}

/* Mobile-only responsive tab transformation for #checkoutSteps */
@media (max-width: 767px) {
    #checkoutSteps {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-bottom: none !important;
        padding-bottom: 6px;
        margin-bottom: 1.25rem !important;
        justify-content: flex-start !important;
        gap: 6px;
        scrollbar-width: none; /* Firefox */
    }

    #checkoutSteps::-webkit-scrollbar {
        display: none; /* Chrome / Safari */
    }

    #checkoutSteps .nav-item {
        flex: 0 0 auto !important;
    }

    #checkoutSteps .nav-link {
        padding: 6px 14px !important;
        border-radius: 30px !important;
        background-color: #f7f9fc;
        color: #4a5568;
        border: 1px solid #e2e8f0 !important;
        font-size: 13px !important;
        text-align: center;
        white-space: nowrap;
    }

    #checkoutSteps .nav-link strong {
        font-size: 13px;
    }

    #checkoutSteps .nav-link small {
        font-size: 11px;
        opacity: 0.85;
    }

    #checkoutSteps .nav-link.active {
        background-color: #fed700 !important;
        color: #333 !important;
        border-color: #fed700 !important;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(254, 215, 0, 0.3);
    }
}

@media (max-width: 575px) {
    .dropzone-area {
        padding: 24px 16px !important;
    }

    .dropzone-icon {
        font-size: 2.2rem !important;
    }

    .img-gallery-item {
        padding: 8px 10px !important;
    }

    .gallery-thumb {
        width: 50px !important;
        height: 42px !important;
    }

    .gallery-img-name {
        max-width: 100px !important;
        font-size: 0.75rem !important;
    }
}

/* ==========================================================================
   SERVICE PROVIDER DETAILS PAGE — MOBILE RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 767.98px) {
    /* Breadcrumb mobile wrapping */
    .breadcrumb {
        font-size: 0.8125rem;
        flex-wrap: wrap;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }
    .breadcrumb-item + .breadcrumb-item {
        padding-left: 0.25rem;
    }
    .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.25rem;
    }

    /* Section Spacing */
    .mb-14 {
        margin-bottom: 2rem !important;
    }

    /* Image Gallery & Thumbnails */
    #sliderSyncingNav .js-slide img {
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: contain !important;
        border-radius: 8px;
        margin: 0 auto;
        display: block;
    }
    #sliderSyncingThumb .js-slide img {
        height: 52px;
        object-fit: cover;
        border-radius: 4px;
    }

    /* Business Title */
    h1.font-size-25 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-top: 0.5rem;
    }

    /* Business Highlights Pills */
    .business-highlights {
        margin-top: 1rem;
    }
    .business-highlights-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .highlight-item {
        margin: 3px 2px;
        padding: 4px 10px;
        background: #f8f9fa;
        border-radius: 16px;
        border: 1px solid #e9ecef;
        display: inline-flex;
        align-items: center;
    }
    .highlight-icon i {
        font-size: 14px;
    }
    .highlight-text {
        font-size: 13px;
    }

    /* Contact Card Padding & Layout */
    .card.p-5 {
        padding: 1.25rem !important;
    }
    .card .font-size-14, 
    .card .font-size-15 {
        font-size: 0.875rem !important;
    }

    /* Distance & Direction Link */
    #direction_link {
        margin-top: 0.5rem;
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }

    /* Reviews Section Padding & Margins */
    .bg-gray-7.pt-6.pb-3.mb-6 {
        padding-top: 1.75rem !important;
        padding-bottom: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .bg-white.py-4.px-xl-11.px-md-5.px-4.mb-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    .nav.nav-classic.mb-6 {
        margin-bottom: 1.25rem !important;
    }
    .row.mb-8 {
        margin-bottom: 1.5rem !important;
    }

    /* Progress Bar in Review Breakdown */
    .progress.ml-xl-5 {
        width: 130px !important;
        margin-left: 0.5rem !important;
    }

    /* Submit Button */
    #submitReviewBtn {
        width: 100% !important;
        display: block;
    }
}

@media (max-width: 575.98px) {
    #sliderSyncingNav .js-slide img {
        max-height: 230px;
    }
    .progress.ml-xl-5 {
        width: 100px !important;
        margin-left: 0.25rem !important;
    }
    .font-size-30 {
        font-size: 1.65rem !important;
    }
    #interactiveStars {
        font-size: 1.4rem !important;
    }
}

/* ==========================================================================
   SEARCH RESULTS PAGE — MOBILE RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 767.98px) {
    /* Title heading on mobile */
    .font-size-18 {
        font-size: 1.15rem !important;
    }

    /* Filter button on shop control bar */
    #sidebarNavToggler1 {
        background-color: #fed700;
        color: #333;
        padding: 5px 14px !important;
        border-radius: 20px;
        font-weight: 600;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        border: none;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    /* Product Item Search Card Container */
    .product-item.remove-divider {
        padding: 14px !important;
        margin-bottom: 16px !important;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

    .product-item__inner.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    /* Stack card columns cleanly on mobile */
    .product-item__header.col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 12px;
    }

    .product-item__body.col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 12px;
    }

    .product-item__footer {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
    }

    /* Carousel image inside search card */
    .product-item__header #sliderSyncingNav .js-slide img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: contain !important;
        border-radius: 8px;
        margin: 0 auto;
        display: block;
    }

    /* Title & Category text */
    .product-item__title.font-size-20 {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
    }

    .pr-lg-10 {
        padding-right: 0 !important;
    }

    /* Highlights list on mobile */
    .product-item__body .highlight-item {
        display: inline-flex;
        align-items: center;
        margin: 3px 2px;
        padding: 4px 10px;
        background: #f8f9fa;
        border-radius: 16px;
        border: 1px solid #e9ecef;
    }

    .product-item__body .highlight-text {
        font-size: 12px;
        color: #495057;
    }

    /* Footer contact info sections */
    .product-item__footer .border-top {
        border-top: 1px solid #edf2f7 !important;
    }

    .product-item__footer .pt-3 {
        padding-top: 0.6rem !important;
    }

    .product-item__footer .mb-3 {
        margin-bottom: 0.6rem !important;
        font-size: 0.875rem;
    }

    /* Provider location box & direction link */
    .provider-location-box {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

    .provider-distance {
        font-size: 13px;
        padding: 5px 12px;
        border-radius: 20px;
        background: #eef8f0;
        color: #198754;
        font-weight: 600;
    }

    .direction-link {
        font-size: 12px;
        padding: 6px 14px;
        border-radius: 20px;
    }

    /* Action button */
    .product-item__footer .btn-primary-dark {
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        margin-top: 6px;
    }

    /* Justdial Mobile 3-Button Action Bar */
    .mobile-action-bar {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
        width: 100%;
    }

    .jd-btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 6px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        text-decoration: none !important;
        white-space: nowrap;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

    .jd-btn-call {
        background-color: #10b981;
        color: #ffffff !important;
        border: 1px solid #059669;
    }

    .jd-btn-call:hover, .jd-btn-call:active {
        background-color: #059669;
        color: #ffffff !important;
    }

    .jd-btn-direction {
        background-color: #3b82f6;
        color: #ffffff !important;
        border: 1px solid #2563eb;
    }

    .jd-btn-direction:hover, .jd-btn-direction:active {
        background-color: #2563eb;
        color: #ffffff !important;
    }

    .jd-btn-details {
        background-color: #fed700;
        color: #1f2937 !important;
        border: 1px solid #eab308;
    }

    .jd-btn-details:hover, .jd-btn-details:active {
        background-color: #eab308;
        color: #1f2937 !important;
    }
}

@media (max-width: 575.98px) {
    .product-item__header #sliderSyncingNav .js-slide img {
        max-height: 190px;
    }
    
    .provider-location-box {
        justify-content: flex-start !important;
    }
    
    .direction-link {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
    }
}



