/* =========================================
   SUBSERVICE DETAIL PAGE
   MOBILE VIEW
   ========================================= */
.mobile-service-scroll {
    display: none;
}
@media (max-width: 768px) {
    .breadcrumb-area {
        display: none !important;
    }
    .service-page {
        width: 100%;
        padding: 5px;
        margin-top: 60px;
        box-sizing: border-box;
    }
    .service-page > .service-sidebar {
        display: none !important;
    }
    .service-page > .center-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        box-sizing: border-box;
    }
    /* =========================================
       VIDEO
       ========================================= */
    #serviceVideo {
        width: 100% !important;
        height: auto !important;
        max-height: 220px;
        display: block;
        border-radius: 8px;
        margin-bottom: 2px;
    }
    /* =========================================
       SECTION TITLE
       ========================================= */
    .section-title {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 3px 0 4px;
        box-sizing: border-box;
    }
    .section-title .line {
        flex: 1;
        min-width: 15px;
        max-width: 80px;
        height: 2px;
    }
    .section-title .dot {
        width: 6px;
        height: 6px;
        flex: 0 0 6px;
    }
    .section-title h2 {
        margin: 0;
        padding: 0 3px;
        font-size: 18px !important;
        line-height: 1.2;
        text-align: center;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    /* =========================================
       HORIZONTAL SERVICE IMAGE MENU
       ========================================= */
    .mobile-service-scroll {
        display: flex;
        width: 100%;
        gap: 8px;
        height: 165px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 5px;
        margin: 5px 0 15px;
        box-sizing: border-box;
        background: #8e6590;
        border-radius: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .mobile-service-item {
        flex: 0 0 calc((100% - 15px) / 2.5);
        width: calc((100% - 15px) / 2.5);
        min-width: 0;
        display: block;
        text-decoration: none;
        text-align: center;
        color: whitesmoke;
        box-sizing: border-box;
    }
    .mobile-service-item img {
        width: 100%;
        height: 130px;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: 8px;
        margin: 0;
        padding: 0;
    }
    .mobile-service-item span {
        display: block;
        margin-top: 4px;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* =========================================
       MINI SERVICE HEADING
       ========================================= */
    .center-panel > h4 {
        font-size: 17px !important;
        line-height: 1.3;
        margin-top: 15px !important;
        margin-bottom: 8px !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    /* =========================================
       SERVICE CARDS
       ========================================= */
    .center-panel .card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    .center-panel .card .row {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    .center-panel .card .col-md-4,
    .center-panel .card .col-md-8,
    .center-panel .card .col-md-7 {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    /* =========================================
       SUBSERVICE / MINI SERVICE IMAGE
       ========================================= */
    .center-panel .card .col-md-4 img,
    .center-panel .card .col-md-8 img,
    .center-panel .card .col-md-7 img,
    .center-panel .card .service-image {
        width: 100% !important;
        height: 150px;
        max-height: 150px;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    /* =========================================
       CARD TEXT
       ========================================= */
    .center-panel .service-title {
        font-size: 17px !important;
        line-height: 1.3;
        font-weight: 700;
        margin: 12px 10px 6px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .center-panel .service-short {
        font-size: 12px !important;
        line-height: 1.5;
        margin: 0 10px 10px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    /* =========================================
       INFO GRID
       ========================================= */
    .center-panel .info-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 5px 10px;
        box-sizing: border-box;
    }
    .center-panel .info-box {
        min-width: 0;
        padding: 6px 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        box-sizing: border-box;
    }
    .center-panel .info-box i {
        font-size: 14px;
        flex: 0 0 auto;
    }
    .center-panel .info-box span {
        display: block;
        font-size: 9px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .center-panel .info-box strong {
        display: block;
        font-size: 11px;
        line-height: 1.3;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .center-panel .info-box .view-details {
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
        padding: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    /* =========================================
       BUTTONS
       ========================================= */
    .center-panel .button-group {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px !important;
        padding: 0 10px 12px;
        box-sizing: border-box;
    }
    .center-panel .button-group a,
    .center-panel .button-group button {
        width: auto !important;
        min-width: 0 !important;
        flex: 1;
        min-height: 36px;
        padding: 7px 5px !important;
        font-size: 11px !important;
        line-height: 1.2;
        white-space: normal;
        box-sizing: border-box;
    }
    .center-panel .button-group i {
        font-size: 11px;
    }
    /* =========================================
       DETAIL CARD SCROLL POSITION
       ========================================= */
    [id^="sub-"],
    [id^="mini-"] {
        scroll-margin-top: 75px;
    }
}
/* =========================================
   VERY SMALL MOBILE
   320px - 400px
   ========================================= */
@media (max-width: 400px) {
    .service-page > .center-panel {
        padding: 5px !important;
    }
    #serviceVideo {
        max-height: 190px;
    }
    .section-title {
        margin: 2px 0 3px;
    }
    .section-title h2 {
        font-size: 16px !important;
    }
    .mobile-service-scroll {
        height: 105px;
        padding: 4px;
    }
    .mobile-service-item img {
        height: 72px;
    }
    .mobile-service-item span {
        margin-top: 3px;
        font-size: 9px;
    }
    .center-panel > h4 {
        font-size: 16px !important;
        margin-top: 12px !important;
    }
    .center-panel .card .col-md-4 img,
    .center-panel .card .col-md-8 img,
    .center-panel .card .col-md-7 img,
    .center-panel .card .service-image {
        width: 100% !important;
        height: 135px;
        max-height: 135px;
        object-fit: contain;
        object-position: center;
    }
    .center-panel .service-title {
        font-size: 16px !important;
    }
    .center-panel .service-short {
        font-size: 11px !important;
    }
    .center-panel .info-grid {
        gap: 2px;
        padding-left: 6px;
        padding-right: 6px;
    }
    .center-panel .info-box {
        padding: 5px 2px;
        gap: 2px;
    }
    .center-panel .info-box i {
        font-size: 12px;
    }
    .center-panel .info-box span {
        font-size: 8px;
    }
    .center-panel .info-box strong {
        font-size: 10px;
    }
    .center-panel .info-box .view-details {
        font-size: 9px;
    }
    .center-panel .button-group {
        padding-left: 6px;
        padding-right: 6px;
        gap: 4px;
    }
    .center-panel .button-group a,
    .center-panel .button-group button {
        font-size: 10px !important;
        padding: 6px 3px !important;
    }
    /* =========================================
       GO TO CART BUTTON
       ========================================= */
    .add-to-cart.go-to-cart {
        background-color: #ffd8a8 !important;
        border-color: #ffb347 !important;
        color: #7a4500 !important;
    }
    .add-to-cart.go-to-cart:hover {
        background-color: #ffc078 !important;
        border-color: #ff9f1c !important;
        color: #5c3500 !important;
    }
}
@media (max-width: 768px) {
    .bottom-nav,
    .bottom-navbar,
    .mobile-bottom-nav,
    #bottomNav {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
    }
}