@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f7f9fa;
    color: #1a1c23;
    padding-top: 75px;
}

/* Hide floating WhatsApp and Phone icons globally */
.sticky-contact-icons {
    display: none !important;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10000 !important;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-left: 35px;
}

.logo-icon {
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 32px;
    font-weight: 700;
    color: #f39c12;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.logo-sub {
    font-size: 9px;
    color: #7f8c8d;
    margin-top: 2px;
    font-weight: 500;
}

.search-container {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 10px 18px;
    width: 40%;
    min-height: 48px;
    gap: 12px;
}

.search-icon {
    color: #95a5a6;
    margin: 0;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #333;
    padding: 0;
    margin: 0;
    background: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.location-btn {
    background-color: #eaf2fc;
    color: #3498db;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    line-height: 1;
    transition: background 0.2s;
}
.location-btn:hover { background-color: #d6e8fa; }

.partner-btn {
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    line-height: 1;
    transition: background 0.2s;
}
.partner-btn:hover { background-color: #219653; }

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: #f5f5f5;
}

.user-btn i { color: #555; }
.cart-btn i { color: #f39c12; }
.cart-btn { border-color: #fae5c3; background-color: #fdf8f0; }
.cart-btn:hover { background-color: #faebd7; }

/* Main Content */
.main-content {
    max-width: 1220px;
    margin: 30px auto;
    padding: 0 75px;
    box-sizing: border-box;
}

/* Carousel */
.home-services {
    position: relative;
}

.home-services h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.carousel-container {
    position: relative;
    margin-bottom: 40px;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    min-width: calc(33.333% - 13.33px);
    scroll-snap-align: start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #1a1a1a;
    border: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s, color 0.2s;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.nav-btn:hover {
    color: #4a3aff;
    transform: translateY(-50%) scale(1.2);
}

.nav-btn.prev { left: -10px; }
.nav-btn.next { right: -10px; }
/* True Sliding Slider for Carousel Item */
.mini-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.mini-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.mini-slider-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #1a1a1a;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s, color 0.2s;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.mini-nav-btn.mini-prev { left: 5px; }
.mini-nav-btn.mini-next { right: 5px; }

.mini-nav-btn:hover {
    color: #4a3aff;
    transform: translateY(-50%) scale(1.2);
}

/* Grid Container */
.services-grid-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px 75px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.services-grid-container h3 {
    font-size: 20px;
    color: #444;
    margin-bottom: 15px;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 15px;
    text-align: center;
    margin-bottom: 40px;
}

.service-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 15px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#main-services-grid .service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
}

.service-item p {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    line-height: 1.4;
}

/* Stats */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 42px;
    padding: 14px 0 12px;
    border-top: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.25;
}

.stat-value i {
    font-size: 16px;
    color: #2c3e50;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Spotlight Section */
.spotlight-section {
    margin-top: 50px;
}

.spotlight-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.spotlight-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
}
.spotlight-container::-webkit-scrollbar {
    display: none;
}

.spotlight-card {
    min-width: 400px;
    height: 220px;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.spotlight-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    z-index: 2;
    max-width: 60%;
}

.spotlight-card p {
    font-size: 15px;
    margin-bottom: 20px;
    z-index: 2;
    max-width: 60%;
}

.badge {
    position: absolute;
    top: 0;
    left: 30px;
    background-color: #c9184a;
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    z-index: 2;
}

.btn-dark {
    background-color: #3b5998;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

.btn-black {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

.arrow-btn {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 1px solid #ddd;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.card-dark {
    background: linear-gradient(135deg, #000000 40%, #0d2a52 100%);
    color: white;
}
.card-dark p {
    color: #b0c4de;
}

.card-beige {
    background-color: #e5d8cf;
    color: #1a1a1a;
}
.card-beige p {
    color: #555;
}

.card-grey {
    background-color: #eeebe6;
    color: #1a1a1a;
}
.card-grey p {
    color: #555;
}

.card-blue {
    background: linear-gradient(90deg, #006ebc 65%, #e0e0e0 65%);
    color: white;
}
.card-blue p {
    color: #e0f2fe;
}
.btn-blue {
    background-color: #005696;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

.card-pest {
    background-color: #e0ddd8;
    color: #1a1a1a;
}
.card-pest p {
    color: #555;
}

.card-olive {
    background: linear-gradient(90deg, #8a9a3b 65%, #e0e0e0 65%);
    color: white;
}
.card-olive p {
    color: #f0f4e3;
}
.btn-olive {
    background-color: #6c7a2c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

/* New and Noteworthy */
.noteworthy-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.noteworthy-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.noteworthy-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.noteworthy-container::-webkit-scrollbar {
    display: none;
}

.noteworthy-item {
    min-width: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    scroll-snap-align: start;
}

.noteworthy-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.noteworthy-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noteworthy-item:hover .noteworthy-img-wrapper img {
    transform: scale(1.05);
}

.noteworthy-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #a81c51;
    color: white;
    padding: 4px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    z-index: 2;
}

.delivery-time {
    font-size: 13px;
    color: #1a9e52;
    margin-top: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Most Booked Services */
.most-booked-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.most-booked-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.most-booked-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.most-booked-container::-webkit-scrollbar {
    display: none;
}

.most-booked-item {
    min-width: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    scroll-snap-align: start;
}

.most-booked-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.most-booked-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.most-booked-item:hover .most-booked-img-wrapper img {
    transform: scale(1.05);
}

.most-booked-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 5px;
}

.service-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.service-meta .fa-star {
    color: #1a1a1a;
}

.service-meta .instant {
    color: #27ae60;
    font-weight: 600;
}

.service-price {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Salon Section */
.salon-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}

.section-title-group h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 14px;
    color: #555;
}

.see-all-btn {
    background-color: transparent;
    color: #6366f1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 2px;
}
.see-all-btn:hover {
    background-color: #f3f4f6;
}

.salon-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.salon-container::-webkit-scrollbar {
    display: none;
}

@media (min-width: 769px) {
    .salon-container > .most-booked-item {
        flex: 0 0 260px;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modal Content */
.modal-content {
    background: #fff;
    width: 600px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #f5f5f5;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
}

.modal-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
}

.modal-item {
    width: 22%;
    margin-bottom: 20px;
    cursor: pointer;
}

.modal-item img {
    width: 80px;
    height: 80px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    object-fit: contain;
    transition: transform 0.2s;
}

.modal-item:hover img {
    transform: scale(1.05);
}

.modal-item p {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.modal-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.modal-item .img-wrapper {
    position: relative;
    display: inline-block;
}

.modal-item .img-wrapper img {
    margin-bottom: 0;
}

.delivery-badge-small {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #07794c;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

/* AC Service Page Layout */
.ac-service-layout {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
    gap: 40px;
    align-items: stretch;
}

.ac-left-col {
    flex: 1;
    max-width: 400px;
}

.ac-right-col {
    flex: 2;
}

.ac-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ac-page-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    word-break: break-word;
}

.ac-instant-badge {
    background: #00875a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.ac-instant-time {
    background: #fff;
    color: #00875a;
    font-size: 11px;
    margin-top: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid #00875a;
}

.ac-rating {
    font-size: 15px;
    color: #000;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ac-rating i {
    color: #000;
}

.ac-rating span {
    color: #666;
    font-weight: 400;
    font-size: 14px;
}

.ac-select-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 100;
}

.ac-select-service-card h3 {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ac-service-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ac-service-grid .ac-service-card-item {
    flex: 0 0 calc((100% - 45px) / 4);
}

.ac-service-card-item {
    text-align: center;
    cursor: pointer;
}

@media (max-width: 768px) {
    .ac-service-grid .ac-service-card-item {
        flex-basis: 72px;
    }
}

.ac-service-card-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 5px;
    margin-bottom: 8px;
}

.ac-service-card-item p {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.ac-discount-badge {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    color: #07794c;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 8px;
    font-size: 10px;
    line-height: 1.1;
}

.ac-discount-badge strong {
    font-size: 18px;
}

.ac-banner-container {
    background: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 400px;
    display: flex;
}

.ac-banner-text {
    flex: 1;
    padding: 50px 40px;
    z-index: 2;
}

.ac-banner-text h2 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #000;
    word-break: break-word;
}

.ac-banner-text p {
    font-size: clamp(16px, 2vw, 20px);
    color: #555;
}

.ac-banner-img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%;
    object-fit: cover;
    border-radius: 16px;
}

/* 3-Column Details Section */
.ac-details-section {
    display: flex;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
    gap: 40px;
    align-items: flex-start;
}

.ac-sidebar {
    flex: 1;
    max-width: 320px;
}

.ac-main-content {
    flex: 2;
    max-width: 550px;
}

.ac-right-sidebar {
    flex: 1;
    max-width: 300px;
}

.section-heading {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    scroll-margin-top: 100px;
}

.annual-promo-card {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.promo-tag {
    position: absolute;
    top: 15px;
    left: 20px;
    background: #00875a;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.promo-content {
    flex: 1;
    padding-top: 30px;
}

.promo-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-price {
    font-size: 16px;
    margin-bottom: 5px;
}

.promo-price strike {
    color: #999;
    margin-right: 5px;
}

.promo-price strong {
    color: #00875a;
    font-size: 20px;
}

.promo-content p {
    font-size: 12px;
    color: #666;
}

.annual-promo-card img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.plan-details-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.plan-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.plan-rating {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-rating i {
    color: #7d33ff;
}

.plan-rating span {
    color: #666;
    font-weight: 400;
}

.plan-price {
    font-size: 15px;
    font-weight: 600;
}

.plan-price strike {
    color: #999;
    font-weight: 400;
    font-size: 13px;
    margin-left: 5px;
}

.add-btn-container {
    text-align: center;
}

.add-btn {
    background: #fff;
    color: #7d33ff;
    border: 1px solid #e0e0e0;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 5px;
}

.add-btn-container span {
    font-size: 11px;
    color: #666;
}

.save-tag {
    color: #00875a;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.plan-features {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.plan-features li {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.4;
}

.view-details {
    color: #7d33ff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.uc-promise-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.uc-promise-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.uc-promise-card ul {
    list-style: none;
    padding: 0;
}

.uc-promise-card li {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uc-promise-card li i {
    color: #000;
}

.promise-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.cart-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
}

.cart-icon {
    font-size: 32px;
    color: #ccc;
    margin-bottom: 15px;
}

.cart-card p {
    font-size: 14px;
    color: #666;
}

/* Options Modal Specifics */
.options-modal-content {
    padding: 0;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.options-modal-banner {
    position: relative;
    height: 180px;
    background: #f8f8f8;
    display: flex;
}

.options-banner-text {
    flex: 1;
    padding: 30px;
    z-index: 2;
}

.options-banner-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.options-banner-text p {
    font-size: 14px;
    color: #555;
}

.options-modal-banner img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45%;
    object-fit: cover;
}

.options-modal-body {
    padding: 25px 30px;
}

.options-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.options-rating {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.options-rating i {
    color: #000;
}

.options-rating span {
    color: #666;
    font-weight: 400;
}

.options-discount {
    color: #00875a;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
}

.options-card-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.option-card {
    min-width: 150px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    background: #fff;
}

.option-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.option-rating {
    font-size: 11px;
    margin-bottom: 8px;
    color: #666;
}

.option-price {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.option-price strike {
    color: #999;
    font-weight: 400;
    font-size: 12px;
}

.option-add-btn {
    width: 100%;
    background: #fff;
    color: #7d33ff;
    border: 1px solid #e0e0e0;
    padding: 8px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* ------------------------------------- */
/* Mobile Responsiveness & Layout Refactor */
/* ------------------------------------- */

/* Page Layout */
.page-wrapper { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.top-section { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; position: -webkit-sticky; position: sticky; top: 75px; z-index: 90; background-color: #f7f9fa; padding-top: 20px; padding-bottom: 20px; margin-top: -20px; border-bottom: 1px solid #eaeaea; }
.page-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 8px 0; }
.page-rating { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #333; }
.page-rating i { color: #f39c12; }
.page-rating span { color: #666; }

/* 3-column layout */
.three-col-layout { display: grid; grid-template-columns: 260px 1fr 220px; gap: 24px; align-items: start; }

/* Left sidebar */
.left-sidebar { position: -webkit-sticky; position: sticky; top: 190px; max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: none; }
.left-sidebar::-webkit-scrollbar { display: none; }
.select-service-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; background: white; }
.select-service-card h3 { font-size: 13px; color: #64748b; font-weight: 500; margin: 0 0 14px 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-item-sidebar { text-align: center; cursor: pointer; text-decoration: none; color: inherit; }
.service-item-img { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; margin: 0 auto 6px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }
.service-item-img img { width: 100%; height: 100%; object-fit: cover; }
.service-item-sidebar span { font-size: 11px; font-weight: 500; line-height: 1.3; display: block; }

/* Center content */
.center-content {}

/* Banner */
.uc-difference-banner { background: #e8e8e8; border-radius: 14px; padding: 30px; margin-bottom: 30px; position: relative; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; min-height: 250px; background-size: cover; background-position: center; color: white;}
.uc-difference-banner::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%); z-index: 1;
}
.banner-text { position: relative; z-index: 2; width: 60%; text-align: left; padding-left: 20px; }
.banner-text h2 { font-size: 34px; font-weight: 700; margin: 0; line-height: 1.2; text-shadow: 1px 1px 4px rgba(0,0,0,0.3); }

/* Service sections */
.section-heading { font-size: 22px; font-weight: 700; margin: 0 0 16px 0; }
.service-card { border: 1px solid #eee; border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; background: white; }
.service-card-info { flex: 1; }
.service-card-info h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px 0; }
.service-rating { font-size: 13px; color: #666; margin-bottom: 4px; }
.service-rating i { color: #1a1a1a; }
.service-rating a { color: #6366f1; text-decoration: underline dotted; }
.service-price { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #111; }
.service-price span { font-size: 13px; font-weight: 400; color: #666; }
.service-features { list-style: none; padding: 0; margin: 0 0 12px 0; }
.service-features li { font-size: 13px; color: #666; padding: 3px 0; padding-left: 14px; position: relative; }
.service-features li::before { content: '•'; position: absolute; left: 0; color: #999; }
.view-details { color: #6366f1; font-size: 13px; font-weight: 600; text-decoration: none; }
.service-img-wrap { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; margin-bottom: -15px; position: relative; z-index: 1; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.add-btn { padding: 8px 28px; background: white; border: 1px solid #ddd; color: #6366f1; font-weight: 700; border-radius: 8px; cursor: pointer; font-size: 14px; position: relative; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,0.08); width: 100%; transition: background 0.2s; }
.add-btn:hover { background: #f3f4f6; }

/* Right sidebar */
.right-sidebar { position: -webkit-sticky; position: sticky; top: 190px; max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: none; }
.right-sidebar::-webkit-scrollbar { display: none; }
.uc-promise-card { border: 1px solid #eee; border-radius: 10px; padding: 18px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: flex-start; background: white; }
.uc-promise-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px 0; }
.uc-promise-card ul { list-style: none; padding: 0; margin: 0; }
.uc-promise-card ul li { font-size: 13px; color: #555; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.uc-promise-card ul li i { color: #00875a; font-size: 12px; }

/* ------------------------------------- */
/* Mobile Responsiveness & Layout Refactor */
/* ------------------------------------- */

/* Page Layout */
.page-wrapper { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.top-section { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; position: -webkit-sticky; position: sticky; top: 75px; z-index: 90; background-color: #f7f9fa; padding-top: 20px; padding-bottom: 20px; margin-top: -20px; border-bottom: 1px solid #eaeaea; }
.page-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 8px 0; }
.page-rating { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #333; }
.page-rating i { color: #f39c12; }
.page-rating span { color: #666; }

/* 3-column layout */
.three-col-layout { display: grid; grid-template-columns: 260px 1fr 220px; gap: 24px; align-items: start; }

/* Left sidebar */
.left-sidebar { position: -webkit-sticky; position: sticky; top: 190px; max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: none; }
.left-sidebar::-webkit-scrollbar { display: none; }
.select-service-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; background: white; }
.select-service-card h3 { font-size: 13px; color: #64748b; font-weight: 500; margin: 0 0 14px 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-item-sidebar { text-align: center; cursor: pointer; text-decoration: none; color: inherit; }
.service-item-img { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; margin: 0 auto 6px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }
.service-item-img img { width: 100%; height: 100%; object-fit: cover; }
.service-item-sidebar span { font-size: 11px; font-weight: 500; line-height: 1.3; display: block; }

/* Center content */
.center-content {}

/* Banner */
.uc-difference-banner { background: #e8e8e8; border-radius: 14px; padding: 30px; margin-bottom: 30px; position: relative; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; min-height: 250px; background-size: cover; background-position: center; color: white;}
.uc-difference-banner::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%); z-index: 1;
}
.banner-text { position: relative; z-index: 2; width: 60%; text-align: left; padding-left: 20px; }
.banner-text h2 { font-size: 34px; font-weight: 700; margin: 0; line-height: 1.2; text-shadow: 1px 1px 4px rgba(0,0,0,0.3); }

/* Service sections */
.section-heading { font-size: 22px; font-weight: 700; margin: 0 0 16px 0; }
.service-card { border: 1px solid #eee; border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; background: white; }
.service-card-info { flex: 1; }
.service-card-info h4 { font-size: 17px; font-weight: 700; margin: 0 0 6px 0; }
.service-rating { font-size: 13px; color: #666; margin-bottom: 4px; }
.service-rating i { color: #1a1a1a; }
.service-rating a { color: #6366f1; text-decoration: underline dotted; }
.service-price { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #111; }
.service-price span { font-size: 13px; font-weight: 400; color: #666; }
.service-features { list-style: none; padding: 0; margin: 0 0 12px 0; }
.service-features li { font-size: 13px; color: #666; padding: 3px 0; padding-left: 14px; position: relative; }
.service-features li::before { content: '•'; position: absolute; left: 0; color: #999; }
.view-details { color: #6366f1; font-size: 13px; font-weight: 600; text-decoration: none; }
.service-img-wrap { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; margin-bottom: -15px; position: relative; z-index: 1; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.add-btn { padding: 8px 28px; background: white; border: 1px solid #ddd; color: #6366f1; font-weight: 700; border-radius: 8px; cursor: pointer; font-size: 14px; position: relative; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,0.08); width: 100%; transition: background 0.2s; }
.add-btn:hover { background: #f3f4f6; }

/* Right sidebar */
.right-sidebar { position: -webkit-sticky; position: sticky; top: 190px; max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: none; }
.right-sidebar::-webkit-scrollbar { display: none; }
.uc-promise-card { border: 1px solid #eee; border-radius: 10px; padding: 18px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: flex-start; background: white; }
.uc-promise-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px 0; }
.uc-promise-card ul { list-style: none; padding: 0; margin: 0; }
.uc-promise-card ul li { font-size: 13px; color: #555; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.uc-promise-card ul li i { color: #00875a; font-size: 12px; }
.promise-badge { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cart-card { border: 1px solid #eee; border-radius: 10px; padding: 20px; text-align: center; color: #999; background: white; }
.cart-card i { font-size: 28px; margin-bottom: 8px; display: block; }
.cart-card p { font-size: 13px; margin: 0; }

/* ------------------------------------- */
/* Fluid Typography & Base Resets */
/* ------------------------------------- */
html, body {
    
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 42px) !important;
}
.page-title {
    font-size: clamp(24px, 4vw, 34px) !important;
}

/* ------------------------------------- */
/* Mobile Media Queries (Tablet & Mobile) */
/* ------------------------------------- */

@media (max-width: 1024px) {
    /* Tablet adjustments */
    .page-wrapper {
        padding: 20px 15px;
    }
    
    /* Collapse 3-column to 2-column, hide right sidebar by default or stack it */
    .three-col-layout {
        grid-template-columns: 240px 1fr !important;
        gap: 20px;
    }
    .right-sidebar {
        display: none !important;
    }
    
    /* Adjust grid columns */
    .services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .ac-service-layout, .ac-details-section {
        flex-direction: column;
        padding: 0 20px;
    }
    .ac-left-col, .ac-right-col, .ac-sidebar, .ac-main-content, .ac-right-sidebar {
        max-width: 100%;
    }
    .ac-banner-img {
        width: 100%;
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    /* Mobile General Layout */
    .page-wrapper {
        padding: 15px 10px !important;
    }
    
    /* Header adjustments */
    .header {
        padding: 10px 15px !important;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    
    .logo-text {
        font-size: 18px;
    }
    .logo-icon {
        font-size: 24px;
        top: -2px;
    }
    
    /* Index page services grid - 3 columns on mobile for compact scrollable view */
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px 8px !important;
    }
    .service-item p {
        font-size: 10px !important;
        line-height: 1.25 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word !important;
    }
    
    /* Carousels & Sliders */
    .carousel-item {
        min-width: 85%;
        height: 200px;
    }
    .spotlight-card, .noteworthy-item, .most-booked-item {
        min-width: 250px !important;
    }
    .noteworthy-img-wrapper {
        height: 150px !important;
    }
    .most-booked-img-wrapper {
        height: 140px !important;
    }
    
    /* Three-column layout fully stacked */
    .three-col-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
    }
    
    /* Left Sidebar becomes horizontal scrollable strip on mobile */
    .left-sidebar {
        position: relative !important;
        top: auto !important;
        background: transparent !important;
        z-index: 1 !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
        border-bottom: none !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    .select-service-card, .select-service-box {
        border: 1px solid #e2e8f0 !important;
        padding: 14px !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    }
    .select-service-card h3, .select-service-box h3 {
        display: block !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #111111 !important;
        margin: 0 0 12px 0 !important;
    }
    .service-grid, .service-grid-box {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        padding-bottom: 8px !important;
        scrollbar-width: none !important;
    }
    .service-grid::-webkit-scrollbar, .service-grid-box::-webkit-scrollbar {
        display: none !important; /* Chrome */
    }
    .service-item-sidebar, .service-option {
        min-width: 80px !important;
        border: 1px solid #eee !important;
        border-radius: 12px !important;
        padding: 10px 5px !important;
    }
    
    /* Service Cards (Center Content) */
    .service-card {
        flex-direction: column !important;
        padding: 15px !important;
    }
    .service-card > div:last-child {
        width: 100% !important;
        flex-direction: row-reverse !important;
        justify-content: space-between !important;
        margin-top: 15px !important;
        display: flex;
        align-items: center;
    }
    .service-img-wrap {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 0 !important;
        margin-left: 15px !important;
    }
    
    /* Modals / Cart Bottom Sheet */
    .modal-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 24px !important;
        max-height: 85vh;
        overflow-y: auto;
    }
    #cart-sidebar .modal-content {
        height: 80vh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .modal-close, #close-cart-btn {
        top: 15px !important;
        right: 15px !important;
        left: auto !important;
        background: #f1f1f1 !important;
        color: #333 !important;
    }
    
    /* Ensure no text overflows its container */
    h2, h3, h4, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    /* Very Small Phones */
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px 8px !important;
    }
    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 8px;
    }
    .stats-container .stat-item {
        flex: 1 1 45%;
    }
    .stats-container .stat-value {
        font-size: 14px !important;
    }
    .banner-text h2 {
        font-size: 24px !important;
    }
    .ac-banner-text h2 {
        font-size: 32px;
    }
    /* Fix long text labels — 2-line max, no overflow */
    .service-item p {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word !important;
        margin-top: 6px !important;
    }
    .service-icon {
        width: 65px !important;
        height: 65px !important;
        margin-bottom: 6px !important;
    }
    .service-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
    .add-btn {
        padding: 6px 16px !important;
        font-size: 12px !important;
    }
}


/* Additional Global Responsive Rules */
@media (max-width: 768px) {
    .kitchen-page {
        flex-direction: column !important;
        padding: 0 10px !important;
        margin: 20px auto !important;
    }
    .kitchen-left {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .kitchen-right {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .service-grid-box {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .svc-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .svc-media {
        margin-top: 15px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .svc-img {
        width: 100% !important;
        max-width: 200px !important;
        height: auto !important;
    }
}

/* Footer Styles */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr 1.5fr 1.5fr;
    gap: 30px;
    padding: 0 20px 40px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    font-size: 14px;
    color: #555;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .cities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 24/7 Support Popup */
.support-popup-overlay {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translate(-50%, 20px);
}
.support-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.support-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.support-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.support-popup-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0;
}
.support-popup-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    margin-top: 0;
}
.support-popup-buttons {
    display: flex;
    gap: 10px;
}
.support-popup-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: block;
}
.btn-call {
    background: #5a67d8;
    color: #fff;
}
.btn-call:hover {
    background: #4c51bf;
}
.btn-whatsapp {
    background: #48bb78;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #38a169;
}


/* ==========================================================================
   GLOBAL RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablets and small laptops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .three-col-layout {
        grid-template-columns: 200px 1fr !important; /* Hide right sidebar or move it */
    }
    .right-sidebar {
        display: none !important; /* Optionally hide cart sidebar on smaller screens initially */
    }
    .search-container {
        width: 30%;
    }
    .carousel-item {
        min-width: calc(50% - 10px);
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Tablets portrait and large phones (max-width: 768px) */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .search-container {
        display: flex !important;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .three-col-layout {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .left-sidebar {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
    .service-item-sidebar {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 0;
        min-width: 120px;
    }
    .carousel-item {
        min-width: 80%;
    }
    .modal-content {
        width: 95% !important;
        margin: 10px;
        padding: 15px !important;
    }
    .wm-options-carousel {
        padding-bottom: 15px;
    }
    .option-card {
        min-width: 140px !important;
    }
    .modal-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Small phones (max-width: 480px) */
@media screen and (max-width: 480px) {
    .header {
        padding: 10px;
    }
    .logo-text {
        font-size: 18px;
    }
    .location-btn, .partner-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    .icon-btn {
        width: 35px;
        height: 35px;
    }
    .carousel-item {
        min-width: 100%;
    }
    .service-grid {
        grid-template-columns: 1fr !important;
    }
    .svc-row {
        flex-direction: column;
    }
    .svc-media {
        width: 100%;
        margin-top: 15px;
    }
    .modal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .option-card {
        min-width: 100% !important;
    }
    #modal-carousel-drain, .wm-options-carousel {
        flex-direction: column;
    }
    .section-block {
        padding: 15px !important;
    }
}

@media screen and (max-width: 768px) {

    .home-services {
        display: none !important;
    }
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        overflow-x: visible !important;
    }
    .services-grid::-webkit-scrollbar {
        display: none !important; /* Chrome/Safari */
    }
    .service-item {
        border-radius: 12px;
        padding: 10px;
        background: #fff;
    }
    .service-item .service-name,
    .service-item-sidebar span,
    .service-item p {
        font-size: 10px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
    .service-icon img {
        width: 60px !important; /* Make icons slightly smaller for 2-column grid to fit well */
        height: 60px !important;
    }

}

/* Exact Mobile Navbar Layout Override */
@media screen and (max-width: 768px) {
    .header {
        display: grid !important;
        grid-template-columns: auto 1fr auto auto !important;
        grid-template-rows: auto auto !important;
        row-gap: 15px !important;
        column-gap: 8px !important;
        padding: 15px 10px !important;
        align-items: center !important;
    }
    
    .header > div:first-child {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        margin-right: 0 !important;
    }
    
    .header-actions {
        display: contents !important;
    }
    
    .header-actions > .location-btn {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        justify-self: end !important;
        background-color: #f3e8ff !important;
        color: #6b21a8 !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .header-actions > .icon-btn:nth-of-type(1) { /* User icon */
        grid-column: 3 / 4 !important;
        grid-row: 1 / 2 !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .header-actions > #open-cart-btn {
        grid-column: 4 / 5 !important;
        grid-row: 1 / 2 !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .header-actions > .partner-btn {
        grid-column: 1 / 2 !important;
        grid-row: 2 / 3 !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        white-space: nowrap;
    }
    
    .search-container {
        grid-column: 2 / 5 !important;
        grid-row: 2 / 3 !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding: 8px 12px !important;
        order: unset !important; /* Remove flex order */
    }
    
    /* Ensure no other display overrides take precedence */
    .location-btn, .partner-btn, .search-container {
        display: flex !important; 
    }
}

@media screen and (max-width: 768px) {
    .main-content {
        margin: 30px auto 10px auto !important;
        padding: 0 10px !important;
    }
}

@media screen and (max-width: 768px) {
    .stats-container {
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .stat-item {
        flex: 1;
        min-width: 30%;
        text-align: center;
    }
    .stat-value {
        font-size: 15px !important;
    }
    .stat-label {
        font-size: 11px !important;
    }
}

@media screen and (max-width: 768px) {
    .spotlight-card {
        min-width: 85% !important;
        padding: 20px !important;
        height: auto !important;
        min-height: 180px !important;
    }
    .spotlight-card h4 {
        font-size: 18px !important;
        max-width: 100% !important;
    }
    .spotlight-card p {
        font-size: 14px !important;
        max-width: 100% !important;
    }
    .spotlight-wrapper .nav-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important; /* Remove the circle background */
        color: #333 !important; /* Make the arrow dark */
        box-shadow: none !important;
        width: 30px !important;
        height: 30px !important;
    }
    .spotlight-wrapper .nav-btn.prev {
        left: -5px !important;
    }
    .spotlight-wrapper .nav-btn.next {
        right: -5px !important;
    }
    .spotlight-wrapper .nav-btn i {
        font-size: 20px !important;
        filter: drop-shadow(1px 1px 2px rgba(255,255,255,0.8)); /* Add a tiny white glow so it's visible over images */
    }
}

@media screen and (max-width: 768px) {
    #nextBtnMainServices {
        display: none !important;
    }
    .modal-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        justify-content: center !important;
    }
    .modal-item {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    .modal-item img {
        width: 65px !important;
        height: 65px !important;
    }
    .modal-subtitle {
        font-size: 16px !important;
    }
}
@media screen and (max-width: 480px) {
    .modal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    
    body {
        padding-top: 170px !important;
    }
}


/* UNIVERSAL RESPONSIVE FIXES */
html, body {
    
}
img {
    max-width: 100%;
    height: auto;
}
.modal-content, .service-card, .plan-card, .option-card, .noteworthy-item, .spotlight-card, .most-booked-item {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
p, h1, h2, h3, h4, h5, h6, span, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
@media (max-width: 768px) {
    .ac-service-layout, .three-col-layout, .page-layout, .plumber-layout, .kitchen-layout, .bathroom-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 5px !important;
    }
    .top-section {
        margin-bottom: 5px !important;
    }
    .ac-left-col, .ac-main-content, .ac-right-col, .left-sidebar, .right-sidebar, .main-content, .bathroom-left, .bathroom-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    .modal-content {
        padding: 15px !important;
        width: 100% !important;
    }
    .services-grid, .modal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .add-btn, .option-add-btn {
        width: 100% !important;
        max-width: 100px !important;
    }
}
@media (max-width: 480px) {
    .services-grid, .modal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .spotlight-card, .noteworthy-item, .most-booked-item {
        min-width: 200px !important;
    }
}


/* SLIDER SCROLL FIX */
.service-grid, .services-grid, .scroll-container {
    -webkit-overflow-scrolling: touch !important;
}
.service-item, .service-item-sidebar {
    flex-shrink: 0 !important;
}
@media (max-width: 768px) {
    .service-grid {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .service-grid::-webkit-scrollbar {
        display: none !important;
    }
    .select-service-card {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }
    .select-service-card h3 {
        display: none !important;
    }
}


/* Location Modal Styles */
#location-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.location-modal-box {
    background: #fdfaf6;
    width: 500px;
    max-width: 90%;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.loc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.loc-modal-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a1c23;
}
.loc-modal-header h2 i {
    color: #4f46e5;
    font-size: 20px;
}
.loc-close-btn {
    background: #f1ede8;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}
.loc-gps-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f0f0f9;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #e5e5f1;
    transition: all 0.2s;
}
.loc-gps-box:hover {
    background: #e6e6f5;
}
.loc-gps-icon {
    width: 44px; height: 44px;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}
.loc-gps-text {
    flex: 1;
}
.loc-gps-text h4 {
    color: #3b32a8;
    margin: 0 0 4px 0;
    font-size: 15px;
}
.loc-gps-text p {
    color: #6c63ff;
    margin: 0;
    font-size: 12px;
}
.loc-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}
.loc-divider::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 100%; height: 1px;
    background: #e5e7eb;
    z-index: 1;
}
.loc-divider span {
    background: #fdfaf6;
    padding: 0 10px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}
.loc-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    border-radius: 12px;
}
.loc-input-box i {
    color: #9ca3af;
    font-size: 16px;
}
.loc-input-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
}


/* Persistent Fixed Header */
.header {
    position: -webkit-sticky; position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
/* Ensure body content starts below header */
body {
    padding-top: 75px; /* adjust based on header height */
}


/* ============================================
   COMPREHENSIVE MOBILE CUT-OFF FIX
   ============================================ */

/* Prevent ALL horizontal overflow */
*, *::before, *::after {
    max-width: 100%;
    box-sizing: border-box !important;
}
html, body {
    
    max-width: 100vw !important;
}

/* Plan card / service card layout on mobile */
@media (max-width: 640px) {
    /* Fix plan-header: stack price and button below text */
    .plan-header {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .plan-header > * {
        width: 100% !important;
    }

    /* Fix service card layout */
    .service-card {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .service-img-wrap {
        width: 100% !important;
        height: 160px !important;
        margin-bottom: 0 !important;
    }

    /* Fix plan details card */
    .plan-details-card {
        padding: 12px !important;
        overflow: visible !important;
    }

    /* Fix add button overflow */
    .add-btn, .option-add-btn {
        width: auto !important;
        min-width: 80px !important;
        max-width: 120px !important;
    }

    /* Fix image on banner cards */
    .ac-right-col img,
    .ac-banner-img {
        width: 100% !important;
        max-height: 200px !important;
        object-fit: cover !important;
    }

    /* Fix 3-col layout cards */
    .ac-service-layout,
    .ac-details-section,
    .three-col-layout,
    .page-layout,
    .bathroom-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 10px !important;
        gap: 15px !important;
    }

    .ac-left-col, .ac-main-content, .ac-right-col,
    .left-sidebar, .main-content, .center-content,
    .bathroom-left, .bathroom-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
    }

    /* Fix spotlight cards overflow */
    .spotlight-card {
        min-width: 80vw !important;
        max-width: 90vw !important;
    }

    /* Fix noteworthy/most booked cards */
    .noteworthy-item {
        min-width: 45vw !important;
        max-width: 50vw !important;
    }
    .most-booked-item {
        min-width: 200px !important;
        max-width: 220px !important;
    }

    /* Fix option cards */
    .option-card {
        min-width: 130px !important;
        max-width: 160px !important;
    }

    /* Fix AC service page top section */
    .ac-page-header {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .ac-page-header > * {
        width: 100% !important;
    }

    /* Fix horizontal scrolling containers */
    .ac-service-scroll,
    .ac-service-grid {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Ensure no text overflows */
    h1, h2, h3, h4, h5, h6, p, span, li, a {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* Fix images inside cards */
    .plan-details-card img,
    .service-card img,
    .plan-card img {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .noteworthy-item {
        min-width: 48vw !important;
        max-width: 50vw !important;
    }
    .spotlight-card {
        min-width: 85vw !important;
    }
    .section-heading {
        font-size: 18px !important;
    }
}


@media (max-width: 480px) {
    .service-name {
        font-size: 11px !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
    .service-icon {
        width: 55px !important;
        height: 55px !important;
    }
}

@media (max-width: 640px) {
    .services-section {
        margin-top: 20px !important;
        padding-top: 10px !important;
    }
    .services-section h2,
    .section-title {
        margin-top: 16px !important;
        margin-bottom: 14px !important;
    }
}

/* Fix for: only 2 grids per row and slide without cutting */
@media screen and (max-width: 768px) {
    .services-grid {
        display: grid !important;
        grid-template-rows: repeat(2, 1fr) !important;
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc(50% - 6px) !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        gap: 12px !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 15px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .services-grid::-webkit-scrollbar {
        display: none !important;
    }
    .services-grid .service-item {
        scroll-snap-align: start !important;
        width: 100% !important;
        min-width: 100% !important;
    }
}


/* Universal Mobile Layout Fixes */
@media screen and (max-width: 768px) {
    /* Stack layout grids */
    .three-col-layout,
    .layout-grid,
    .checkout-container,
    .ac-layout,
    .ac-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 10px !important;
    }
    
    /* Make all columns full width */
    .left-col, .center-col, .right-col,
    .ac-left-col, .ac-main-content, .ac-right-col,
    .ac-sidebar, .ac-right-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        position: static !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
    }

    /* Fix service grids to wrap or stack */
    .service-cat-grid,
    .service-grid,
    .service-grid-box {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }
    
    /* Ensure modal contents are responsive */
    .modal-content, .options-modal-content {
        width: 95% !important;
        max-width: 100% !important;
        margin: 10px auto !important;
    }
    
    /* Generic fallbacks for any images overflowing */
    img {
        max-width: 100% !important;
        height: auto;
    }
}


/* Premium Navbar Styles */
.premium-navbar {
    position: fixed !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
    max-width: 1400px !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    padding: 10px 25px !important;
    transition: all 0.3s ease !important;
}

.premium-navbar:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(0,0,0,0.05) !important;
}

/* Make body pad top so content doesn't hide behind floating navbar */
body {
    padding-top: 100px !important;
}

/* Premium Search Bar */
.premium-navbar .search-container {
    background: rgba(242, 233, 220, 0.9) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(120, 94, 70, 0.08) !important;
    transition: all 0.3s ease !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    width: 100% !important;
    max-width: 760px !important;
    min-height: 52px !important;
    flex: 1 1 auto !important;
}
.premium-navbar .search-container:focus-within {
    background: #fff !important;
    border: 1px solid rgba(120, 94, 70, 0.12) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    transform: none !important;
}
.premium-navbar .search-container input {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    color: #3d3d3d !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
}
.premium-navbar .search-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    font-size: 20px !important;
    color: #444 !important;
}

/* Premium Partner Button */
.premium-navbar .partner-btn {
    background: linear-gradient(135deg, #43a047, #2e7d32) !important;
    border: none !important;
    border-radius: 999px !important;
    color: white !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.28) !important;
    transition: all 0.2s ease !important;
}
.premium-navbar .partner-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(67, 160, 71, 0.32) !important;
}

/* Premium Location Button */
.premium-navbar .location-btn {
    background: rgba(237, 231, 246, 0.7) !important;
    color: #5e35b1 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
}
.premium-navbar .location-btn:hover {
    background: #ede7f6 !important;
    transform: translateY(-1px) !important;
}

/* Premium Icon Buttons */
.premium-navbar .icon-btn {
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}
.premium-navbar .icon-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    transform: scale(1.15) !important;
}

/* Cart Badge Enhancement */
.premium-navbar #cart-badge {
    box-shadow: 0 2px 5px rgba(229, 57, 53, 0.4) !important;
    animation: pulse-badge 2s infinite !important;
}
@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .premium-navbar {
        top: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        padding: 10px 15px !important;
    }
}

/* Super Animated Partner Button */
.premium-navbar .partner-btn {
    /* 1. Moving Gradient */
    background: linear-gradient(270deg, #ff007f, #7928ca, #ff4d4d, #ff9a00) !important;
    background-size: 300% 300% !important;
    animation: movingGradient 4s ease infinite, pulseWiggle 4s infinite !important;
    
    border: none !important;
    border-radius: 30px !important;
    color: white !important;
    padding: 10px 22px !important;
    font-weight: 800 !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
    box-shadow: 0 0 15px rgba(121, 40, 202, 0.6) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
}

/* Animations */
@keyframes movingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseWiggle {
    0%, 80%, 100% { transform: scale(1) rotate(0deg); }
    85% { transform: scale(1.08) rotate(-3deg); box-shadow: 0 0 25px rgba(255, 0, 127, 0.8) !important; }
    90% { transform: scale(1.08) rotate(3deg); }
    95% { transform: scale(1.08) rotate(-3deg); }
}

/* Sweeping Shine Effect */
.premium-navbar .partner-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent) !important;
    transform: skewX(-20deg) !important;
    animation: shineSweep 4s infinite !important;
    z-index: -1 !important;
}

/* Ensure clicks on modal items fall exactly on the a tag */
.modal-item * { pointer-events: none; }



/* UNIQUE NAVBAR STYLES ADDED PER USER REQUEST */
.header.premium-navbar, .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
    padding: 10px 20px !important;
    z-index: 99999 !important;
}

.header.premium-navbar:hover, .header:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

body {
    padding-top: 75px !important;
}

@media screen and (max-width: 768px) {
    .header.premium-navbar, .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        border: none !important;
        border-bottom: 1px solid #e5e5e5 !important;
        border-radius: 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
        padding: 12px 40px !important;
        z-index: 99999 !important;
    }
    body {
        padding-top: 170px !important;
    }
}


.header.premium-navbar .partner-btn {
    background: linear-gradient(135deg, #43a047, #2e7d32) !important;
    border: none !important;
    border-radius: 30px !important;
    color: white !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.header.premium-navbar .partner-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.4) !important;
}

.header.premium-navbar .partner-btn i {
    margin-right: 8px !important;
}

.premium-navbar .search-container {
    background: rgba(245, 245, 245, 0.8) !important;
    border-radius: 30px !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

.premium-navbar .search-container:focus-within {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transform: scale(1.02) !important;
}

.premium-navbar .search-container input {
    background: transparent !important;
}









.premium-navbar .location-btn {
    background: rgba(237, 231, 246, 0.7) !important;
    color: #5e35b1 !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.premium-navbar .location-btn:hover {
    background: #ede7f6 !important;
    transform: translateY(-2px) !important;
}

.premium-navbar .icon-btn {
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

.premium-navbar .icon-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    transform: scale(1.15) !important;
}


/* =============================================================
   COMPREHENSIVE RESPONSIVE CSS — ALL DEVICES
   Breakpoints:
     ≤ 480px   → Mobile (small phones)
     ≤ 768px   → Tablet / large phones
     ≤ 1024px  → Small laptops
   ============================================================= */

/* ---------- GLOBAL helpers ---------- */
img, video, iframe {
    max-width: 100%;
    height: auto;
}
*, *::before, *::after {
    box-sizing: border-box;
}

/* ---------- Small laptops (≤ 1024px) ---------- */
@media (max-width: 1024px) {
    .header {
        padding: 12px 20px !important;
    }
    .search-container {
        width: 35% !important;
    }
    .main-content {
        padding: 0 15px !important;
    }
    .carousel-item {
        min-width: calc(50% - 10px) !important;
    }
}

/* ---------- Tablet / large phones (≤ 768px) ---------- */
@media (max-width: 768px) {

    /* — Header — */
    .header {
        flex-wrap: wrap !important;
        padding: 10px 15px !important;
        gap: 10px !important;
    }
    .search-container {
        width: 100% !important;
        order: 3 !important;
    }
    .header-actions {
        gap: 8px !important;
    }
    .location-btn span,
    .partner-btn span {
        display: none !important;   /* hide text, keep icon */
    }
    .location-btn, .partner-btn {
        padding: 8px 10px !important;
    }

    /* Body padding for taller fixed header */
    body {
        padding-top: 170px !important;
    }

    /* — Carousel — */
    .carousel-item {
        min-width: calc(80% - 10px) !important;
        height: 200px !important;
    }

    /* — Services / category grids — */
    .services-grid,
    .category-grid,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* — Cards — */
    .service-card,
    .category-card {
        padding: 15px !important;
    }

    /* — Section headings — */
    h1 { font-size: clamp(22px, 5vw, 32px) !important; }
    h2 { font-size: clamp(18px, 4vw, 26px) !important; }
    h3 { font-size: clamp(16px, 3.5vw, 22px) !important; }

    /* — Footer — */
    .footer-grid,
    .footer-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* — Cart sidebar — */
    #cart-sidebar {
        width: 100% !important;
        right: 0 !important;
    }

    /* — Modals (login / partner etc.) — */
    #user-login-modal,
    #partner-modal,
    .modal-overlay {
        padding: 10px !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
    }
    /* inner box */
    #user-login-modal > div,
    #partner-modal > div,
    .modal-overlay > div,
    .modal-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    /* — Checkout / booking forms — */
    .checkout-container,
    .booking-form,
    form.main-form {
        padding: 15px !important;
    }
    .form-row,
    .input-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .form-row input,
    .form-row select,
    .input-row input,
    .input-row select {
        width: 100% !important;
        min-width: unset !important;
    }

    /* — Sticky icons (WhatsApp / Call) — */
    .sticky-icons {
        bottom: 10px !important;
        right: 10px !important;
        left: auto !important;
    }
    /* Fix sticky-contact-icons: move from left to right on mobile */
    .sticky-contact-icons {
        left: auto !important;
        right: 12px !important;
    }
}

/* ---------- Small phones (≤ 480px) ---------- */
@media (max-width: 480px) {

    body {
        padding-top: 170px !important;
    }

    /* — Header: stack logo + actions — */
    .header {
        padding: 8px 12px !important;
    }
    .logo-text { font-size: 17px !important; }
    .partner-btn, .location-btn {
        font-size: 12px !important;
        padding: 7px 8px !important;
    }
    .icon-btn {
        width: 34px !important;
        height: 34px !important;
    }

    /* — Carousel — */
    .carousel-item {
        min-width: calc(90% - 5px) !important;
        height: 160px !important;
    }

    /* — Service / category grid → single column — */
    .services-grid,
    .category-grid,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    /* — Hero / banner sections — */
    .hero-section,
    .banner-section {
        padding: 20px 12px !important;
        text-align: center !important;
    }
    .hero-section h1 {
        font-size: clamp(20px, 6vw, 28px) !important;
    }
    .hero-section p {
        font-size: 14px !important;
    }

    /* — Buttons — */
    .btn, .cta-btn, button.primary {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* — Login / Signup modal inner box — */
    #user-login-modal > div,
    .modal-box {
        padding: 20px 14px !important;
        border-radius: 10px !important;
    }

    /* OTP boxes — keep them in a single row on small screens */
    .user-otp-box {
        height: 42px !important;
        font-size: 16px !important;
    }

    /* Signup gender + dob row → stack */
    #user-login-modal [style*="display: flex; gap: 10px; flex-wrap"] {
        flex-direction: column !important;
    }

    /* — Footer — */
    .footer-grid,
    .footer-columns {
        grid-template-columns: 1fr !important;
    }
    .footer-logo { margin-bottom: 15px !important; }

    /* — Tables (bookings / admin) — */
    table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* — Price list cards — */
    .price-card,
    .service-item {
        padding: 12px !important;
        font-size: 13px !important;
    }

    /* — Section gaps — */
    .main-content {
        margin: 15px auto !important;
    }
    .section-gap { margin-bottom: 30px !important; }
}

/* ---------- Very small phones (≤ 360px) ---------- */
@media (max-width: 360px) {
    .header-actions { gap: 5px !important; }
    .location-btn { display: none !important; } /* hide location on tiny screens */
    .logo-text { font-size: 15px !important; }
}

/* Fit spotlight banners to the row and keep their image proportions. */
#spotlight-carousel .spotlight-card {
    flex: 0 0 calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    min-width: 0;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    padding: 18px;
}

#spotlight-carousel .spotlight-card h4 {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 6px;
}

#spotlight-carousel .spotlight-card p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 10px;
}

#spotlight-carousel .card-blue h4,
#spotlight-carousel .card-blue p,
#spotlight-carousel .card-olive h4,
#spotlight-carousel .card-olive p {
    max-width: 66%;
}

@media (max-width: 768px) {
    #spotlight-carousel .spotlight-card {
        flex: 0 0 85% !important;
        width: 85% !important;
        min-width: 85% !important;
        max-width: 85% !important;
        height: auto !important;
        min-height: 0 !important;
    }
}

/* Keep the navbar logo proportional and the desktop search field compact. */
.header.premium-navbar .logo {
    flex: 0 0 auto !important;
    padding-left: 0 !important;
}

.header.premium-navbar .logo img {
    display: block;
    flex: 0 0 auto;
    width: 144px !important;
    height: 40px !important;
    max-width: 144px !important;
    object-fit: contain;
}

@media (min-width: 1025px) {
    .header.premium-navbar.home-page-header {
        padding-left: max(75px, calc(50% - 542.5px)) !important;
    }
}

.header.premium-navbar .search-container {
    flex: 0 1 340px !important;
    width: 340px !important;
    min-width: 240px !important;
    max-width: 340px !important;
    min-height: 40px !important;
    padding: 6px 16px !important;
}

@media (max-width: 768px) {
    .header.premium-navbar .logo img {
        width: min(144px, 25vw) !important;
        max-width: min(144px, 25vw) !important;
        height: auto !important;
    }

    .header.premium-navbar .search-container {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

.home-services .carousel-item {
    height: 190px;
}

@media (max-width: 768px) {
    .home-services .carousel-item {
        height: 150px !important;
    }
}



/* MOBILE STICKY OVERRIDES */
@media (max-width: 768px) {
    .top-section {
        position: -webkit-sticky; position: sticky !important;
        top: 75px !important;
        z-index: 90 !important;
        background-color: #f7f9fa !important;
    }
    .left-sidebar {
        position: -webkit-sticky; position: sticky !important;
        top: 175px !important; /* below top-section */
        background: #f7f9fa !important;
        z-index: 100 !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #eaeaea !important;
    }
    .three-col-layout {
        display: block !important;
    }
}

/* ULTIMATE STICKY FIX */
html, body, .page-wrapper, .three-col-layout {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Responsive layout overrides shared by the site's pages. */
@media (min-width: 1025px) {
    .header.premium-navbar .search-container {
    flex: 0 1 340px !important;
    width: 340px !important;
    min-width: 220px !important;
    max-width: 340px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header,
    .header.premium-navbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
    padding: 10px 16px !important;
    }

    .header > div:first-child {
    order: 1 !important;
    flex: 0 0 auto !important;
    }

    .header-actions {
    order: 2 !important;
    display: flex !important;
    width: auto !important;
    margin-left: auto !important;
    }

    .header .search-container {
    order: 3 !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    }

    body {
    padding-top: 120px !important;
    }
}

@media (max-width: 768px) {
    .header,
    .header.premium-navbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 12px !important;
    padding: 8px 12px !important;
    }

    .header > div:first-child {
    order: 1 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    }

    .header .logo {
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    }

    .header .logo img {
    display: block;
    width: min(116px, 30vw) !important;
    max-width: min(116px, 30vw) !important;
    height: auto !important;
    object-fit: contain;
    }

    .header-actions {
    order: 2 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: auto !important;
    margin-left: auto !important;
    }

    .header-actions > .location-btn,
    .header-actions > .partner-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    white-space: nowrap !important;
    grid-column: auto !important;
    grid-row: auto !important;
    }

    .header-actions > .location-btn i,
    .header-actions > .partner-btn i {
    margin: 0 !important;
    font-size: 14px !important;
    }

    .header-actions > .icon-btn,
    .header-actions > #open-cart-btn {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    }

    .header .search-container {
    order: 3 !important;
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    }

    body {
    padding-top: 116px !important;
    }

    .main-content,
    .page-wrapper {
    width: 100% !important;
    max-width: 1220px !important;
    min-width: 0 !important;
    margin: 16px auto !important;
    padding-left: clamp(12px, 4vw, 24px) !important;
    padding-right: clamp(12px, 4vw, 24px) !important;
    }

    .main-content > *,
    .page-wrapper > *,
    .three-col-layout > *,
    .ac-service-layout > *,
    .ac-details-section > * {
    min-width: 0 !important;
    max-width: 100% !important;
    }

    .three-col-layout,
    .ac-service-layout,
    .ac-details-section,
    .page-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    }

    .services-grid,
    .category-grid,
    .grid-3,
    .grid-4,
    .modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .services-grid {
    gap: 12px 8px !important;
    }

    .form-row,
    .input-row,
    .plan-header {
    flex-wrap: wrap !important;
    }

    .form-row > *,
    .input-row > *,
    .plan-header > * {
    min-width: 0 !important;
    max-width: 100% !important;
    }

    input,
    select,
    textarea,
    button {
    max-width: 100%;
    }

    table {
    display: block !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    }

    .modal-content,
    .options-modal-content,
    .checkout-container,
    .booking-form {
    width: min(100% - 20px, 600px) !important;
    max-width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    }
}

@media (max-width: 380px) {
    .header,
    .header.premium-navbar {
    padding-left: 8px !important;
    padding-right: 8px !important;
    }

    .header .logo img {
    width: min(100px, 28vw) !important;
    max-width: min(100px, 28vw) !important;
    }

    .header-actions {
    gap: 2px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-content,
    .page-wrapper {
    width: 100% !important;
    max-width: 1220px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 3vw, 32px) !important;
    padding-right: clamp(16px, 3vw, 32px) !important;
    }

    .three-col-layout,
    .ac-service-layout,
    .ac-details-section,
    .page-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    }

    .three-col-layout > *,
    .ac-service-layout > *,
    .ac-details-section > * {
    min-width: 0 !important;
    max-width: 100% !important;
    }
}

/* Keep fixed navigation from covering page content on small screens. */
@media (max-width: 768px) {
    body {
    padding-top: 116px !important;
    }

    .header .search-container[style*="display:none"],
    .header .search-container[style*="display: none"] {
    display: none !important;
    }

    .header-actions > .location-btn span,
    .header-actions > .partner-btn span {
    display: none !important;
    font-size: 0 !important;
    }

    .header-actions > .location-btn,
    .header-actions > .partner-btn {
    font-size: 0 !important;
    }

    .header-actions > .location-btn i,
    .header-actions > .partner-btn i {
    font-size: 14px !important;
    }

    body:has(.header .search-container[style*="display:none"]),
    body:has(.header .search-container[style*="display: none"]) {
    padding-top: 156px !important;
    }
}


/* FINAL FRONTEND FIXES */
@media screen and (max-width: 768px) {
    /* 1. Header Gap Fix */
    body {
        padding-top: 85px !important;
    }
    .main-content, .page-wrapper {
        margin-top: 10px !important;
    }

    /* 2. Spotlight & Carousel Overlaps */
    .spotlight-card h4, .carousel-item h4 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }
    .spotlight-card p, .carousel-item p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    .spotlight-wrapper .nav-btn, .carousel-container .nav-btn {
        display: flex !important;
        width: 32px !important;
        height: 32px !important;
        background: rgba(255, 255, 255, 0.8) !important; /* Make slightly transparent */
        box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    }
    .spotlight-wrapper .nav-btn i, .carousel-container .nav-btn i {
        font-size: 14px !important;
    }
    .spotlight-card {
        padding: 15px !important;
        min-height: 160px !important;
    }

    /* 3. Popups and Modals Fixes */
    .modal-overlay {
        z-index: 99999999 !important; /* Above header and everything else */
    }
    .modal-content {
        width: 95% !important;
        padding: 24px 20px !important;
        margin-top: 0 !important;
    }

    /* 4. Cart Sidebar */
    #cart-sidebar {
        width: 85% !important; /* Proper width on mobile */
        max-width: 320px !important;
    }
    
    /* 5. Center Service Icons */
    .service-card-info h4 {
        font-size: 14px !important;
    }
    .add-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Ensure sticky elements aren't trapped by hidden overflows on desktop too */
html {
    overflow-y: scroll !important;
}



/* EXTRA FRONTEND POLISH */
@media screen and (max-width: 768px) {

    
    /* Ensure the left sidebar (Select a service) is nicely padded and doesn't get cut off */
    .left-sidebar {
        padding: 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    }
    
    /* Make sure fixed header doesn't block cart close buttons */
    #cart-sidebar {
        z-index: 10005 !important;
    }
}

/* Ensure images in service cards are uniform */
.service-img-wrap img {
    object-fit: cover !important;
    border-radius: 8px !important;
}



/* --- MOVED FROM HTML FILES --- */
/* ULTIMATE STICKY FIX FOR DESKTOP & MOBILE */
html, body {
    overflow-x: clip !important; /* Prevent horizontal scrolling without breaking vertical sticky */
}
.page-wrapper, .three-col-layout, .ac-service-layout, .page-layout, .bathroom-page, .kitchen-page, .ac-container {
    overflow: visible !important;
}

/* Desktop Sticky overrides */
@media (min-width: 769px) {
    .top-section, .ac-page-header {
        position: static !important; 
        background-color: #f7f9fa !important; 
        padding-top: 20px !important; 
        padding-bottom: 20px !important; 
    }
    .left-sidebar, .ac-sidebar, .bathroom-left {
        position: -webkit-sticky !important; 
        position: sticky !important; 
        top: 100px !important; 
        height: auto !important;
        max-height: calc(100vh - 120px) !important; 
        overflow-y: auto !important; 
        scrollbar-width: none !important; /* Firefox */
        align-self: start !important; /* Critical for sticky in grid/flexbox */
    }
    .left-sidebar::-webkit-scrollbar, .right-sidebar::-webkit-scrollbar, .ac-sidebar::-webkit-scrollbar, .ac-right-sidebar::-webkit-scrollbar, .bathroom-left::-webkit-scrollbar, .kitchen-left::-webkit-scrollbar { display: none !important; }
}

/* Mobile Sticky overrides */
@media (max-width: 768px) {
    .top-section, .ac-page-header {
        position: static !important; 
    }
    .left-sidebar, .bathroom-left, .kitchen-left {
        position: relative !important; 
        top: auto !important; 
        background: transparent !important; 
        z-index: 1 !important; 
        padding-top: 0 !important; 
        padding-bottom: 10px !important; 
        border-bottom: none !important;
        margin-bottom: 15px !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
    }
    .three-col-layout, .ac-service-layout, .page-layout, .bathroom-page, .kitchen-page, .ac-container {
        display: block !important;
    }
    .left-sidebar::-webkit-scrollbar, .bathroom-left::-webkit-scrollbar, .kitchen-left::-webkit-scrollbar { display: none !important; }
}

/* ==========================================================================
   MASTER FIX: MODAL OVERLAYS & RESPONSIVE TEXT / ELEMENT VISIBILITY
   ========================================================================== */

/* 1. Definitively put ALL Modals, Sidebars, Popups & Overlays ABOVE the Fixed Navbar (z-index 99999) */
.modal-overlay,
.modal,
#user-login-modal,
#partner-modal,
#partner-login-modal,
#universal-details-modal,
#location-modal,
#cart-sidebar,
.options-modal-content,
.modal-box,
.custom-modal,
#beauty-modal,
#mens-modal,
#ac-modal,
#epc-modal,
#cleaning-modal,
#renovation-modal,
#fabrication-modal,
#logistics-modal,
#security-modal,
#salon-for-men-options-modal,
#massage-for-men-options-modal,
#spa-for-women-options-modal,
#chimney-deep-modal,
#chimney-checkup-modal,
#chimney-install-modal,
#chimney-uninstall-modal,
.location-modal-box {
    z-index: 99999999 !important;
}

/* Hide Modals when explicitly set to display: none */
.modal-overlay[style*="display: none"],
.modal-overlay[style*="display:none"],
.modal-overlay.hidden,
#cart-sidebar[style*="display: none"],
#cart-sidebar[style*="display:none"],
#cart-sidebar.hidden {
    display: none !important;
}

/* 2. Desktop Modal Layout & Position — Centered, Uncut, Fully Visible */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    padding: 25px !important;
    box-sizing: border-box !important;
}

.modal-content, .options-modal-content, .modal-box, .location-modal-box {
    position: relative !important;
    background: #ffffff !important;
    width: 600px !important;
    max-width: 92vw !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    padding: 35px 25px 25px 25px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
    margin: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Modal Title — Ensure it has room and NEVER overlaps or gets cut off */
.modal-title, .loc-modal-header h2, .options-modal-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-top: 0 !important;
    padding-top: 5px !important;
    margin-bottom: 20px !important;
    padding-right: 45px !important; /* Space for X close button */
    line-height: 1.3 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    word-break: break-word !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* Modal Close Button */
.modal-close, #close-cart-btn, .loc-modal-close, .loc-close-btn {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f1f3f5 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #333333 !important;
    font-size: 16px !important;
    z-index: 100 !important;
    transition: all 0.2s ease !important;
}
.modal-close:hover, #close-cart-btn:hover, .loc-close-btn:hover {
    background: #e9ecef !important;
    color: #000 !important;
    transform: scale(1.05) !important;
}

/* 3. Mobile Specific Overrides (<= 768px) */
@media screen and (max-width: 768px) {
    /* Modals become clean responsive popups/bottom sheets above navbar */
    .modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99999999 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        display: flex;
        align-items: flex-end !important; /* Bottom sheet format on mobile */
        justify-content: center !important;
        padding: 0 !important;
    }

    .modal-content, .options-modal-content, .modal-box, .location-modal-box {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        border-radius: 22px 22px 0 0 !important;
        padding: 28px 20px 30px 20px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    .modal-title {
        font-size: 19px !important;
        margin-top: 0 !important;
        padding-top: 4px !important;
        margin-bottom: 15px !important;
        padding-right: 45px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
        overflow: visible !important;
        white-space: normal !important;
        display: block !important;
        visibility: visible !important;
    }

    .modal-subtitle {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        color: #444 !important;
        font-weight: 600 !important;
    }

    .modal-close, #close-cart-btn, .loc-close-btn {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 100 !important;
        background: #f1f3f5 !important;
        border-radius: 50% !important;
        color: #333 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        cursor: pointer !important;
    }

    /* Modal Grid on Mobile: 2 items per row with full text visibility */
    .modal-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .modal-item {
        width: 100% !important;
        margin-bottom: 5px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8f9fa !important;
        padding: 10px !important;
        border-radius: 12px !important;
        border: 1px solid #eee !important;
    }

    .modal-item img {
        width: 60px !important;
        height: 60px !important;
        object-fit: contain !important;
        margin-bottom: 6px !important;
        background: transparent !important;
        padding: 0 !important;
    }

    /* Fix All Text Clipping / Hiding on Mobile */
    .location-btn span,
    .partner-btn span {
        display: inline-block !important; /* UNHIDE location and partner text on mobile */
        font-size: 11px !important;
    }

    .home-services {
        display: block !important; /* UNHIDE home-services section on mobile */
    }

    .select-service-card h3,
    .select-service-box h3 {
        display: block !important; /* UNHIDE section titles on mobile */
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
    }

    /* Prevent text truncation / line clipping on mobile cards */
    .modal-item p,
    .service-item p,
    .category-card p,
    .service-card p,
    .spotlight-card p,
    .carousel-item p,
    .price-card p {
        font-size: 12px !important;
        line-height: 1.35 !important;
        color: #222 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        -webkit-line-clamp: unset !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 116px !important;
    }

    body:has(.header .search-container[style*="display:none"]),
    body:has(.header .search-container[style*="display: none"]) {
        padding-top: 156px !important;
    }

    .header .search-container[style*="display:none"],
    .header .search-container[style*="display: none"] {
        display: none !important;
    }

    .header-actions > .location-btn span,
    .header-actions > .partner-btn span {
        display: none !important;
        font-size: 0 !important;
    }
}

@media (max-width: 768px) {
    .home-services {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .services-grid-container {
        padding: 16px 12px !important;
    }

    .services-grid-wrapper {
        width: 100% !important;
        min-width: 0 !important;
    }

    #main-services-grid.services-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        gap: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
    }

    #main-services-grid .service-item {
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 6px 2px !important;
        margin: 0 !important;
    }

    #main-services-grid .service-icon {
        width: 48px !important;
        height: 48px !important;
        margin: 0 auto 6px !important;
    }

    #main-services-grid .service-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    #main-services-grid .service-item p {
        font-size: 9px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .main-content .nav-btn:not(#nextBtnMainServices) {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.94) !important;
        color: #222 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
        transform: translateY(-50%) !important;
        z-index: 20 !important;
    }

    .main-content .nav-btn.prev:not(#nextBtnMainServices) {
        left: 4px !important;
        right: auto !important;
    }

    .main-content .nav-btn.next:not(#nextBtnMainServices) {
        right: 4px !important;
        left: auto !important;
    }

    .main-content .nav-btn:not(#nextBtnMainServices) i {
        font-size: 13px !important;
        line-height: 1 !important;
    }

    #prevBtnSpotlight.nav-btn:not(#nextBtnMainServices),
    #nextBtnSpotlight.nav-btn:not(#nextBtnMainServices) {
        top: calc(50% - 5px) !important;
    }

    #prevBtnNoteworthy.nav-btn:not(#nextBtnMainServices),
    #nextBtnNoteworthy.nav-btn:not(#nextBtnMainServices) {
        top: 75px !important;
    }

    #prevBtnMostBooked.nav-btn:not(#nextBtnMainServices),
    #nextBtnMostBooked.nav-btn:not(#nextBtnMainServices),
    #prevBtnSalon.nav-btn:not(#nextBtnMainServices),
    #nextBtnSalon.nav-btn:not(#nextBtnMainServices),
    #prevBtnSpa.nav-btn:not(#nextBtnMainServices),
    #nextBtnSpa.nav-btn:not(#nextBtnMainServices),
    #prevBtnCleaning.nav-btn:not(#nextBtnMainServices),
    #nextBtnCleaning.nav-btn:not(#nextBtnMainServices),
    #prevBtnMassage.nav-btn:not(#nextBtnMainServices),
    #nextBtnMassage.nav-btn:not(#nextBtnMainServices),
    #prevBtnSalonMen.nav-btn:not(#nextBtnMainServices),
    #nextBtnSalonMen.nav-btn:not(#nextBtnMainServices) {
        top: 70px !important;
    }
}

@media (max-width: 768px) {
    .header,
    .header.premium-navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 8px 10px !important;
        background: #fffdf5 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(37, 32, 20, 0.1) !important;
        border-radius: 0 !important;
        box-shadow: 0 2px 12px rgba(37, 32, 20, 0.08) !important;
        transform: none !important;
    }

    .header > div:first-child {
        order: 1 !important;
        display: flex !important;
        flex: 0 0 100% !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        width: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .header .logo {
        flex: 0 0 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .header .logo img {
        display: block !important;
        width: min(78px, 23vw) !important;
        max-width: min(78px, 23vw) !important;
        height: 26px !important;
        object-fit: contain !important;
    }

    .header.premium-navbar .logo img {
        width: min(78px, 23vw) !important;
        max-width: min(78px, 23vw) !important;
        height: 26px !important;
    }

    .header .logo img:nth-of-type(2) {
        width: auto !important;
        height: 14px !important;
    }

    .header.premium-navbar .logo img:nth-of-type(2) {
        width: auto !important;
        height: 14px !important;
    }

    .header-actions {
        display: contents !important;
    }

    .header-actions > .location-btn {
        display: none !important;
    }

    .header-actions > #open-cart-btn {
        position: fixed !important;
        top: 3px !important;
        right: 10px !important;
        left: auto !important;
        z-index: 100002 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    .header-actions > #open-cart-btn > i {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .header-actions > #open-cart-btn::after {
        content: none !important;
    }

    .header .search-container:not([style*="display:none"]):not([style*="display: none"]) {
        position: relative !important;
        order: 2 !important;
        display: flex !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 36px !important;
        margin: 12px 0 0 !important;
        padding: 5px 10px !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .header-actions > .partner-btn,
    .header-actions > #user-login-btn {
        position: fixed !important;
        bottom: 8px !important;
        z-index: 100001 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: calc(50% - 10px) !important;
        min-width: 0 !important;
        max-width: calc(50% - 10px) !important;
        height: 56px !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: transparent !important;
        color: #30352c !important;
        box-shadow: none !important;
        transform: none !important;
        animation: none !important;
        text-shadow: none !important;
    }

    body::after {
        content: "" !important;
        position: fixed !important;
        right: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
        z-index: 99998 !important;
        height: 56px !important;
        border: 1px solid rgba(37, 32, 20, 0.1) !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 2px 12px rgba(37, 32, 20, 0.12) !important;
        pointer-events: none !important;
    }

    .header-actions > .partner-btn {
        left: 8px !important;
        right: auto !important;
        gap: 8px !important;
        border-right: 1px solid rgba(37, 32, 20, 0.1) !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    .header.premium-navbar .header-actions > .partner-btn {
        color: #30352c !important;
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
    }

    .header-actions > .partner-btn i {
        margin: 0 !important;
        font-size: 16px !important;
        color: #378a43 !important;
    }

    .header.premium-navbar .header-actions > .partner-btn::before {
        content: none !important;
        display: none !important;
        animation: none !important;
    }

    .header-actions > #user-login-btn {
        right: 8px !important;
        left: auto !important;
        flex-direction: column !important;
        gap: 3px !important;
        border-left: 0 !important;
        font-size: 17px !important;
    }

    .header-actions > #user-login-btn::after {
        content: "Profile";
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
    }

    .header-actions > #user-login-btn > i {
        color: #30352c !important;
    }

    body {
        padding-top: 112px !important;
        padding-bottom: 72px !important;
    }

    body:has(.header .search-container[style*="display:none"]),
    body:has(.header .search-container[style*="display: none"]) {
        padding-top: 64px !important;
    }
}

/* Keep the desktop navbar controls aligned and inside the viewport. */
@media (min-width: 1025px) {
    .header.premium-navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: clamp(8px, 1vw, 16px) !important;
    }

    .header.premium-navbar.home-page-header {
        padding-right: max(75px, calc(50% - 542.5px)) !important;
    }

    .header.premium-navbar > div:first-child {
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    .header.premium-navbar .search-container {
        flex: 1 1 340px !important;
        width: auto !important;
        min-width: 220px !important;
        max-width: 360px !important;
        margin: 0 !important;
    }

    .header.premium-navbar .header-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        gap: clamp(4px, 0.6vw, 10px) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .header.premium-navbar .header-actions > .location-btn,
    .header.premium-navbar .header-actions > .partner-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    .header.premium-navbar .header-actions > .icon-btn {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        transform: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header.premium-navbar .header-actions {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .header.premium-navbar .header-actions > .icon-btn {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        transform: none !important;
    }
}

/* Soft rounded backplates for the home-page service category icons. */
#main-services-grid .service-icon {
    box-sizing: border-box;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #f3ead9;
    border-radius: 10px;
    background-color: #fff8eb;
    box-shadow: 0 2px 6px rgba(75, 58, 31, 0.08);
}

#main-services-grid .service-icon img {
    border-radius: 7px;
}

@media (max-width: 768px) {
    .stats-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: initial !important;
        align-items: center !important;
        gap: 4px 8px !important;
        padding: 8px 0 6px !important;
    }

    .stats-container .stat-item {
        min-width: 0 !important;
        text-align: center !important;
    }

    .stats-container .stat-value {
        justify-content: center !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 380px) {
    .stats-container .stat-value {
        font-size: 12px !important;
    }
}

#prevBtnSpotlight.nav-btn.is-hidden,
#nextBtnSpotlight.nav-btn.is-hidden,
#prevBtnNoteworthy.nav-btn.is-hidden,
#nextBtnNoteworthy.nav-btn.is-hidden,
#prevBtnMostBooked.nav-btn.is-hidden,
#nextBtnMostBooked.nav-btn.is-hidden,
#prevBtnSalon.nav-btn.is-hidden,
#nextBtnSalon.nav-btn.is-hidden,
#prevBtnSpa.nav-btn.is-hidden,
#nextBtnSpa.nav-btn.is-hidden,
#prevBtnCleaning.nav-btn.is-hidden,
#nextBtnCleaning.nav-btn.is-hidden,
#prevBtnMassage.nav-btn.is-hidden,
#nextBtnMassage.nav-btn.is-hidden,
#prevBtnSalonMen.nav-btn.is-hidden,
#nextBtnSalonMen.nav-btn.is-hidden,
.mini-nav-btn.is-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .service-cat-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .service-cat-grid::-webkit-scrollbar {
        display: none;
    }

    .service-cat-grid > .service-cat-item {
        flex: 0 0 72px !important;
    }

    .service-cat-grid .service-cat-img {
        width: 52px;
        height: 52px;
    }

    .select-service-card .service-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .select-service-card .service-grid::-webkit-scrollbar {
        display: none;
    }

    .select-service-card .service-grid > .service-item-sidebar {
        flex: 0 0 104px !important;
        min-width: 104px !important;
    }
}

.page-rating,
.ac-rating,
.kitchen-rating,
.bathroom-rating {
    display: none !important;
}

@media (min-width: 769px) {
    .main-content .nav-btn:not(#nextBtnMainServices) {
        display: flex !important;
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.94) !important;
        color: #222 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
        text-shadow: none !important;
        z-index: 20 !important;
    }

    .main-content .nav-btn.prev:not(#nextBtnMainServices) {
        left: 4px !important;
        right: auto !important;
    }

    .main-content .nav-btn.next:not(#nextBtnMainServices) {
        right: 4px !important;
        left: auto !important;
    }

    .main-content .nav-btn:not(#nextBtnMainServices) i {
        font-size: 13px !important;
        line-height: 1 !important;
    }

    #prevBtnNoteworthy.nav-btn:not(#nextBtnMainServices),
    #nextBtnNoteworthy.nav-btn:not(#nextBtnMainServices) {
        top: 75px !important;
    }

    #prevBtnMostBooked.nav-btn:not(#nextBtnMainServices),
    #nextBtnMostBooked.nav-btn:not(#nextBtnMainServices),
    #prevBtnSalon.nav-btn:not(#nextBtnMainServices),
    #nextBtnSalon.nav-btn:not(#nextBtnMainServices),
    #prevBtnSpa.nav-btn:not(#nextBtnMainServices),
    #nextBtnSpa.nav-btn:not(#nextBtnMainServices),
    #prevBtnCleaning.nav-btn:not(#nextBtnMainServices),
    #nextBtnCleaning.nav-btn:not(#nextBtnMainServices),
    #prevBtnMassage.nav-btn:not(#nextBtnMainServices),
    #nextBtnMassage.nav-btn:not(#nextBtnMainServices),
    #prevBtnSalonMen.nav-btn:not(#nextBtnMainServices),
    #nextBtnSalonMen.nav-btn:not(#nextBtnMainServices) {
        top: 70px !important;
    }
}

@media (max-width: 768px) {
    #service-details-section .service-banner-card > div:not(.free-gas-tag) {
        width: 55% !important;
        padding: 44px 12px 12px !important;
    }

    #service-details-section .service-banner-card h3 {
        font-size: 18px !important;
        line-height: 1.15 !important;
        margin-bottom: 6px !important;
    }

    #service-details-section .service-banner-card p {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    #service-details-section .service-banner-card img {
        width: 58% !important;
    }

    .ac-service-layout .plan-details-card > .plan-header {
        align-items: flex-start !important;
        gap: 8px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .ac-service-layout .plan-details-card > .plan-header > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        padding-right: 4px !important;
    }

    .ac-service-layout .plan-details-card > .plan-header .add-btn-container {
        flex: 0 0 64px !important;
        width: 64px !important;
        text-align: right !important;
    }

    .ac-service-layout .plan-details-card > .plan-header .add-btn {
        width: 60px !important;
        min-width: 0 !important;
        margin-right: 0 !important;
        padding: 6px 8px !important;
    }

    #service-details-section .plan-details-card > div[style*="display: flex"] {
        align-items: flex-start !important;
        gap: 8px !important;
    }

    #service-details-section .plan-details-card > div[style*="display: flex"] > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding-right: 4px !important;
    }

    #service-details-section .plan-details-card > div[style*="display: flex"] > div:last-child {
        flex: 0 0 76px !important;
        width: 76px !important;
    }

    #service-details-section .plan-details-card > div[style*="display: flex"] img {
        height: 64px !important;
    }

    #service-details-section .plan-details-card > div[style*="display: flex"] button {
        width: 64px !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    #service-details-section .plan-details-card h4 {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    #service-details-section .plan-details-card .plan-rating,
    #service-details-section .plan-details-card .plan-price {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    #service-details-section .plan-details-card .save-tag,
    #service-details-section .plan-details-card .plan-features,
    #service-details-section .plan-details-card .view-details {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 768px) {
    .service-scroll-wrap {
        position: relative;
        min-width: 0;
    }

    .service-scroll-wrap--active .service-grid,
    .service-scroll-wrap--active .service-grid-box {
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
    }

    .service-scroll-wrap--active .service-item-sidebar,
    .service-scroll-wrap--active .service-option {
        scroll-snap-align: start;
    }

    .service-scroll-arrow,
    .service-scroll-arrow[hidden] {
        display: none !important;
    }

    .service-scroll-wrap--active .service-scroll-arrow:not([hidden]) {
        position: absolute;
        top: 50%;
        z-index: 5;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 1px solid #e5e7eb;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.96);
        color: #333;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
        transform: translateY(-50%);
        cursor: pointer;
    }

    .service-scroll-arrow--previous { left: 2px; }
    .service-scroll-arrow--next { right: 2px; }
    .service-scroll-arrow i { font-size: 12px; }
}

body:has(.select-service-card) .page-title {
    font-size: 26px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

@media (max-width: 768px) {
    .service-card:has(.add-btn) {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 12px !important;
    }

    .service-card:has(.add-btn) > .service-card-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .service-card:has(.add-btn) > :not(.service-card-info) {
        flex: 0 0 72px !important;
        align-items: flex-end !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        margin-top: 0 !important;
        min-width: 72px !important;
        width: 72px !important;
    }

    .service-card:has(.add-btn) .service-img-wrap {
        align-self: flex-end !important;
        flex: 0 0 64px !important;
        margin: 0 0 4px !important;
        max-width: 64px !important;
        width: 64px !important;
        height: 64px !important;
    }

    .service-card:has(.add-btn) .add-btn,
    .svc-row:has(.add-btn) .add-btn {
        align-self: flex-end !important;
        flex: 0 0 64px !important;
        margin: 0 0 4px !important;
        width: 64px !important;
        min-width: 0 !important;
        max-width: 64px !important;
        padding: 6px 8px !important;
    }

    .plan-details-card > .plan-header:has(.add-btn) {
        align-items: flex-start !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .plan-details-card > .plan-header:has(.add-btn) > :first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .plan-details-card > .plan-header:has(.add-btn) > .add-btn-container {
        flex: 0 0 64px !important;
        text-align: right !important;
        width: 64px !important;
    }

    .plan-details-card > .plan-header:has(.add-btn) .add-btn {
        margin-right: 0 !important;
        padding: 6px 8px !important;
        width: 60px !important;
    }

    .svc-row:has(.add-btn) {
        align-items: flex-start !important;
        flex-direction: row !important;
        gap: 8px !important;
    }

    .svc-row:has(.add-btn) .svc-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding-right: 4px !important;
    }

    .svc-row:has(.add-btn) .svc-media {
        align-items: flex-end !important;
        flex: 0 0 72px !important;
        margin-top: 0 !important;
        min-width: 72px !important;
        width: 72px !important;
    }

    .svc-row:has(.add-btn) .svc-img {
        width: 64px !important;
        height: 64px !important;
    }
}

@media (max-width: 768px) {
    .header.premium-navbar {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .header.premium-navbar .logo {
        margin-right: 0 !important;
    }

    .header.premium-navbar .search-container {
        display: flex !important;
        order: 2 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-height: 36px !important;
        margin: 12px 0 0 !important;
    }

    body,
    body:has(.header .search-container[style*="display:none"]),
    body:has(.header .search-container[style*="display: none"]) {
        padding-top: 112px !important;
    }

    .main-content,
    .page-wrapper {
        width: 100% !important;
        max-width: 1220px !important;
        margin: 16px auto !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }
}

@media (max-width: 768px) {
    .left-sidebar {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .left-sidebar > * {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    header.header,
    header.header.premium-navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
    }
}

header.header {
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

@media (min-width: 769px) {
    html {
        scrollbar-gutter: stable !important;
    }

    html:root,
    html:root body {
        width: 100% !important;
    }
}

@media (min-width: 1025px) {
    header.header.premium-navbar:not(.home-page-header) {
        padding-right: max(75px, calc(50% - 542.5px)) !important;
        padding-left: max(75px, calc(50% - 542.5px)) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header.header.premium-navbar:not(.home-page-header) {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }
}

@media (min-width: 769px) {
    .main-content,
    .page-wrapper,
    .kitchen-page,
    .bathroom-page,
    .air-purifier-page,
    .air-cooler-page,
    .gas-stove-page,
    .laptop-page,
    .three-col-layout {
        box-sizing: border-box !important;
        max-width: 1220px !important;
        padding-left: 75px !important;
        padding-right: 75px !important;
    }

    .page-wrapper > .three-col-layout {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-content,
    .page-wrapper,
    .kitchen-page,
    .bathroom-page,
    .air-purifier-page,
    .air-cooler-page,
    .gas-stove-page,
    .laptop-page,
    .three-col-layout {
        box-sizing: border-box !important;
        padding-left: clamp(16px, 3vw, 32px) !important;
        padding-right: clamp(16px, 3vw, 32px) !important;
    }

    .page-wrapper > .three-col-layout {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .main-content,
    .page-wrapper,
    .kitchen-page,
    .bathroom-page,
    .air-purifier-page,
    .air-cooler-page,
    .gas-stove-page,
    .laptop-page,
    .legal-content,
    .three-col-layout {
        box-sizing: border-box !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .legal-content {
        width: calc(100% - 32px) !important;
    }

    .page-wrapper > .three-col-layout {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .header-actions > .location-btn,
    .header-actions > .partner-btn,
    .header-actions > #user-login-btn {
        position: fixed !important;
        bottom: 8px !important;
        z-index: 10001 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: calc((100vw - 40px) / 3) !important;
        min-width: 0 !important;
        max-width: calc((100vw - 40px) / 3) !important;
        height: 56px !important;
        margin: 0 !important;
        padding: 6px 4px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #30352c !important;
        transform: none !important;
        animation: none !important;
        text-align: center !important;
    }

    .header-actions > .location-btn {
        left: 50% !important;
        flex-direction: column !important;
        gap: 4px !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        transform: translateX(-50%) !important;
    }

    .header-actions > .location-btn i {
        font-size: 16px !important;
    }

    .header-actions > .partner-btn {
        left: 8px !important;
        right: auto !important;
        gap: 5px !important;
        border-right: 1px solid rgba(37, 32, 20, 0.1) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        white-space: normal !important;
    }

    .header-actions > .partner-btn i {
        flex: 0 0 auto !important;
        font-size: 15px !important;
    }

    .header-actions > #user-login-btn {
        right: 8px !important;
        left: auto !important;
        flex-direction: column !important;
        gap: 3px !important;
        font-size: 16px !important;
    }

    body::after {
        z-index: 9999 !important;
    }
}
