/* css/style.css */
/* CleanPune Design System & Mobile-First Stylesheet */

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

:root {
    --primary-yellow: #ffd814;
    --primary-yellow-hover: #f7ca00;
    --primary-blue: #2874f0;
    --primary-blue-dark: #1254c4;
    --accent-orange: #ff9f00;
    --accent-green: #388e3c;
    --bg-light: #f1f3f6;
    --text-dark: #212121;
    --text-muted: #878787;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0f172a; /* Sleek slate-900 background for desktop */
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Simulated Mobile Frame Container */
.app-container {
    width: 100%;
    max-width: 480px; /* Simulated Mobile Screen Width */
    height: 100vh;
    background-color: var(--white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide default scrollbars for clean mobile app experience */
.app-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Sticky App Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 14px 12px 14px;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Background switching themes with soft gradients fading to white at the bottom */
.app-header.theme-home {
    background: linear-gradient(to bottom, #b3d7ff 0%, #d6ebff 50%, #ffffff 100%);
}
.app-header.theme-commercial {
    background: linear-gradient(to bottom, #fef08a 0%, #fef9c3 50%, #ffffff 100%);
}
.app-header.theme-office {
    background: linear-gradient(to bottom, #fbcfe8 0%, #fce7f3 50%, #ffffff 100%);
}
.app-header.theme-pestcontrol {
    background: linear-gradient(to bottom, #bbf7d0 0%, #dcfce7 50%, #ffffff 100%);
}

/* Service Shortcut Buttons Row (Inside Header at very top) */
.header-shortcuts {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0 10px 0;
    background: none;
    margin-bottom: 0px;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    width: 23%;
    transition: var(--transition);
}

.shortcut-item:active {
    transform: scale(0.95);
}

/* Rounded Card style shortcuts matching Flipkart screenshot */
.shortcut-icon-wrapper {
    width: 100%;
    aspect-ratio: 1; /* Keep it square */
    max-width: 68px;
    border-radius: 18px;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    font-size: 22px;
    color: var(--primary-blue);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Specific theme shortcuts active states */
.theme-home .shortcut-item.active .shortcut-icon-wrapper {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(40, 116, 240, 0.25);
}
.theme-commercial .shortcut-item.active .shortcut-icon-wrapper {
    background-color: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
    box-shadow: 0 4px 10px rgba(255, 159, 0, 0.25);
}
.theme-office .shortcut-item.active .shortcut-icon-wrapper {
    background-color: #d01c68;
    color: var(--white);
    border-color: #d01c68;
    box-shadow: 0 4px 10px rgba(208, 28, 104, 0.25);
}
.theme-pestcontrol .shortcut-item.active .shortcut-icon-wrapper {
    background-color: var(--accent-green);
    color: var(--white);
    border-color: var(--accent-green);
    box-shadow: 0 4px 10px rgba(56, 142, 60, 0.25);
}

.shortcut-label {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

/* Location Bar in white gradient header (dark text) */
.location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #333333;
    cursor: pointer;
    transition: var(--transition);
}

.location-bar:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.location-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.location-left i {
    color: var(--primary-blue);
    font-size: 14px;
}

.location-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

/* Search bar styling (blue border and magnifying glass) */
.search-bar-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--primary-blue);
    transition: var(--transition);
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 12px 10px 38px;
    font-size: 14px;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-icon-inside {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Mini Categories Horizontal Scrollbar */
.mini-categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 14px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none;
    align-items: center;
}

.app-header .mini-categories-scroll {
    background: none;
    border-bottom: none;
    padding: 8px 0 0 0;
    margin: 0;
}

.mini-categories-scroll::-webkit-scrollbar {
    display: none;
}

.mini-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 64px;
    transition: var(--transition);
    outline: none;
    padding: 4px;
}

.mini-cat-item:active {
    transform: scale(0.95);
}

.mini-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.mini-cat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.mini-cat-item.active .mini-cat-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 3px 8px rgba(40, 116, 240, 0.2);
}

.mini-cat-item.active .mini-cat-label {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Floating Cart Action Button Wrapper (Fixed in center above bottom-nav) */
.floating-cart-btn-wrapper {
    position: fixed;
    bottom: 74px; /* 58px bottom-nav + 16px spacing */
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    pointer-events: none;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 0;
    align-self: auto;
    animation: slideInCart 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInCart {
    0% { transform: translate(-50%, 20px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

.floating-cart-pill-btn {
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-green) 0%, #2e7d32 100%);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.4);
    transition: var(--transition);
    gap: 12px;
    pointer-events: auto;
}

.floating-cart-pill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5);
}

.floating-cart-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.divider-line {
    opacity: 0.5;
    font-weight: 300;
}

.floating-cart-right {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.location-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Search Bar */
.search-bar-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-bar-container:focus-within {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(255, 216, 20, 0.2);
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 12px 10px 38px;
    font-size: 14px;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-icon-inside {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Horizontal Categories Pills */
.category-pills {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 14px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none;
}

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

.pill {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.pill.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(40, 116, 240, 0.25);
}

/* Banner Carousel Slider */
.carousel-container {
    position: relative;
    width: calc(100% - 28px); /* 14px margin left & right */
    height: 150px;
    overflow: hidden;
    background-color: #ddd;
    margin: 10px 14px 14px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 15px 12px 10px 12px;
    font-size: 14px;
    font-weight: 600;
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-dot.active {
    background-color: var(--primary-yellow);
    width: 16px;
    border-radius: 3px;
}

/* Sub-page Specific Banner Style */
.sub-banner {
    position: relative;
    height: 120px;
    width: calc(100% - 28px);
    overflow: hidden;
    margin: 10px 14px 14px 14px;
    display: flex;
    align-items: center;
    padding: 20px;
    color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.sub-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 84, 196, 0.9) 0%, rgba(40, 116, 240, 0.6) 100%);
    z-index: 1;
}

.sub-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sub-banner-content {
    position: relative;
    z-index: 2;
}

.sub-banner-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.sub-banner-content p {
    font-size: 13px;
    opacity: 0.9;
}

/* Section Title */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 6px 14px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

/* Services Grid - 2 Column Square Grid */
.services-container {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 256px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-img-wrapper {
    width: 100%;
    height: 110px;
    min-height: 110px;
    position: relative;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: var(--accent-green);
    color: var(--white);
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.service-details {
    padding: 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 32px;
}

.service-description {
    display: none; /* Hidden in 2-column square grid, available in DOM for details modal */
}

.service-price-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: auto;
}

.service-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.service-price span {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Service Actions / Cart Controls */
.cart-action-wrapper {
    width: 100%;
    display: flex;
    justify-content: stretch;
}

.btn-add-cart {
    width: 100%;
    text-align: center;
    background-color: var(--white);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 10px;
    font-weight: 700;
    padding: 5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.qty-selector {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: none;
    color: var(--primary-blue);
    width: 28px;
    height: 22px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.qty-btn:active {
    background-color: rgba(40, 116, 240, 0.08);
}

.qty-val {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
}

/* Static News / Blog Grid */
.news-container {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.news-card-body {
    padding: 12px;
}

.news-date {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.news-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.news-card-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Grid on category.php */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px;
}

.cat-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.cat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    transition: var(--transition);
}

.cat-card:hover .cat-card-icon {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

.cat-card-title {
    font-size: 13px;
    font-weight: 600;
}

/* Sticky Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px; /* Aligns with app container */
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 58px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    width: 25%;
    height: 100%;
    justify-content: center;
    gap: 2px;
    transition: var(--transition);
}

.nav-item i {
    font-size: 18px;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary-blue);
}

.nav-item.active i {
    transform: translateY(-1px);
    font-weight: 900;
}

/* Bottom Sheet / Modal Drawer Layout */
.backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
}

.app-container-active .backdrop {
    display: flex;
}

.bottom-sheet {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background-color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 201;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}

.bottom-sheet.show {
    transform: translateY(0);
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}

.bottom-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.bottom-sheet-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.bottom-sheet-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
}

/* Checkout Form Styles */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(40, 116, 240, 0.15);
}

textarea.form-control {
    resize: none;
    height: 70px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Buttons in Cart/Checkout */
.cart-items-list {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.cart-item-info {
    flex: 1;
    padding-right: 12px;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-item-price {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cart-summary-box {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.cart-summary-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
}

.checkout-btn {
    width: 100%;
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 159, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.checkout-btn:hover {
    background-color: #e08c00;
}

.checkout-btn:disabled {
    background-color: #cccccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-muted);
}

.empty-cart-state i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ddd;
}

/* Location Selector Card List */
.loc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.loc-item {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loc-item:hover {
    border-color: var(--primary-blue);
    background-color: rgba(40, 116, 240, 0.04);
}

.loc-item.selected {
    border-color: var(--primary-blue);
    background-color: rgba(40, 116, 240, 0.08);
    font-weight: 600;
    color: var(--primary-blue);
}

/* Menu Page List (on menu.php) */
.menu-list-container {
    padding: 14px;
}

.menu-section-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 14px;
}

.menu-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.menu-link-item:last-child {
    border-bottom: none;
}

.menu-link-item:hover {
    background-color: var(--bg-light);
}

.menu-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-link-left i {
    font-size: 16px;
    color: var(--primary-blue);
    width: 20px;
    text-align: center;
}

.menu-link-item i.fa-chevron-right {
    color: var(--text-muted);
    font-size: 12px;
}

/* Contact Page Mockup Details */
.contact-detail-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.contact-info-line i {
    color: var(--primary-blue);
    font-size: 16px;
    margin-top: 2px;
}

.map-embed-wrapper {
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--border-color);
}

.map-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ Accordion Styling */
.faq-accordion {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.faq-question {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.faq-item.open .faq-answer {
    max-height: 1000px;
    padding: 0 16px 14px 16px;
    border-top: 1px solid var(--border-color);
    transition: max-height 0.3s cubic-bezier(0.9, 0, 0.8, 0.2);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

/* Content Pages (Privacy, Terms) */
.rich-text-page {
    background-color: var(--white);
    margin: 14px;
    padding: 20px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rich-text-page h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 16px 0 6px 0;
    color: var(--text-dark);
}

.rich-text-page h3:first-of-type {
    margin-top: 0;
}

.rich-text-page p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.rich-text-page ul {
    margin-left: 18px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Detail dialog overlays (News full view, etc.) */
.detail-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.detail-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 440px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.detail-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.detail-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.detail-body {
    overflow-y: auto;
    padding: 16px;
}

.detail-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.detail-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.detail-content {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.6;
    white-space: pre-line;
}

/* ----------------------------------------
   Desktop & Tablet Styles (Responsive)
   ---------------------------------------- */
.desktop-only {
    display: none !important;
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex !important;
    }

    body {
        background-color: #f1f5f9;
    }

    .app-container {
        max-width: 1024px;
        height: auto;
        min-height: 100vh;
        margin: 0 auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        overflow-y: visible;
        position: relative;
    }

    /* Make header align horizontally on desktop */
    .app-header {
        padding: 16px 24px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
    }

    .header-shortcuts {
        order: 1;
        flex: 1;
        justify-content: flex-start;
        gap: 12px;
        padding: 0;
        width: auto;
        margin-bottom: 0;
    }

    .shortcut-item {
        width: auto;
        height: 42px;
        flex-direction: row;
        gap: 8px;
        padding: 0 14px;
        border-radius: var(--radius-full);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: none;
        background-color: var(--white);
    }

    .shortcut-item i {
        font-size: 14px;
        margin-bottom: 0;
    }

    .shortcut-label {
        font-size: 11px;
    }

    /* Active state coloring for desktop horizontal links */
    .theme-home .shortcut-item.active {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
    }
    .theme-home .shortcut-item.active i,
    .theme-home .shortcut-item.active .shortcut-label {
        color: var(--white);
    }

    .theme-commercial .shortcut-item.active {
        background-color: var(--accent-orange);
        border-color: var(--accent-orange);
    }
    .theme-commercial .shortcut-item.active i,
    .theme-commercial .shortcut-item.active .shortcut-label {
        color: var(--white);
    }

    .theme-office .shortcut-item.active {
        background-color: #d01c68;
        border-color: #d01c68;
    }
    .theme-office .shortcut-item.active i,
    .theme-office .shortcut-item.active .shortcut-label {
        color: var(--white);
    }

    .theme-pestcontrol .shortcut-item.active {
        background-color: var(--accent-green);
        border-color: var(--accent-green);
    }
    .theme-pestcontrol .shortcut-item.active i,
    .theme-pestcontrol .shortcut-item.active .shortcut-label {
        color: var(--white);
    }

    /* Place location bar in row */
    .location-bar {
        order: 3;
        margin-bottom: 0;
        width: auto;
        min-width: 180px;
        height: 42px;
        display: flex;
        align-items: center;
    }

    /* Place search bar in row */
    .search-bar-container {
        order: 2;
        flex: 1;
        max-width: 320px;
        height: 42px;
    }

    .search-input {
        padding: 10px 12px 10px 38px;
        font-size: 13px;
    }

    /* Categories bar centered */
    .app-header .mini-categories-scroll {
        width: 100%;
        order: 4;
        justify-content: center;
        gap: 28px;
        padding: 14px 0 0 0;
    }

    /* Banner size increase on desktop */
    .carousel-container {
        width: calc(100% - 48px);
        margin: 20px 24px;
        height: 280px;
        border-radius: var(--radius-lg);
    }

    .sub-banner {
        width: calc(100% - 48px);
        margin: 20px 24px;
        height: 180px;
        border-radius: var(--radius-lg);
    }

    .sub-banner-content h2 {
        font-size: 26px;
    }

    /* Grid columns count increase for desktop */
    .services-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 20px 24px;
    }

    .service-card {
        height: 280px;
    }

    .service-img-wrapper {
        height: 130px;
    }

    /* Hide Mobile bottom nav on desktop */
    .bottom-nav {
        display: none !important;
    }

    /* Make floating cart button behave like a fixed circle/pill on desktop window */
    .floating-cart-btn-wrapper {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        margin: 0;
        z-index: 200;
        animation: slideInCartDesktop 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}
@media (min-width: 768px) and (max-width: 1080px) {
    .floating-cart-btn-wrapper {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        margin: 0;
    }
}

/* ----------------------------------------
   Desktop Sidebar and 80/20 Columns
   ---------------------------------------- */
.main-left-column {
    width: 100%;
}

.main-right-column {
    display: none;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-news-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-news-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news-card:hover {
    transform: translateY(-2px);
}

.sidebar-news-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-news-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-news-tag {
    align-self: flex-start;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-news-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-date {
    font-size: 9px;
    color: var(--text-muted);
}

/* Featured & Scrollable Sidebar News styling */
.sidebar-news-featured-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-news-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.featured-img-container {
    position: relative;
    width: 100%;
    height: 120px;
}

.featured-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-news-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.featured-news-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

.featured-news-date {
    font-size: 10px;
    color: var(--text-muted);
}

.sidebar-scrollable-container {
    max-height: calc(100vh - 430px);
    min-height: 200px;
    overflow-y: auto;
    padding-right: 6px;
}

.sidebar-scrollable-container::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scrollable-container::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scrollable-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar-scrollable-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

@media (min-width: 768px) {
    .main-content {
        display: block;
        padding-bottom: 30px;
    }
}

/* ----------------------------------------
   Desktop Vertical Sidebar & Wrappers
   ---------------------------------------- */
.desktop-layout-wrapper {
    display: block;
    width: 100%;
}

.desktop-vertical-sidebar {
    display: none;
}

.desktop-main-wrapper {
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .desktop-layout-wrapper {
        display: flex;
        gap: 20px;
        padding: 20px 24px;
        max-width: 1400px;
        margin: 0 auto;
        align-items: flex-start;
        width: 100%;
    }

    /* Section 1: Far-Left Vertical Sidebar Navbar */
    .desktop-vertical-sidebar {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 68px;
        background-color: var(--white);
        border: 1.5px solid #000000; /* Thin black border */
        border-radius: 20px; /* Border radius */
        padding: 24px 0;
        box-shadow: var(--shadow-sm);
        position: sticky;
        top: 20px;
        height: calc(100vh - 40px);
        justify-content: flex-start;
        gap: 30px;
        flex-shrink: 0;
    }

    .sidebar-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .sidebar-icons {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
    }

    .sidebar-icon-item {
        color: var(--text-muted);
        font-size: 20px;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        transition: var(--transition);
        text-decoration: none;
    }

    .sidebar-icon-item:hover {
        background-color: var(--bg-light);
        color: var(--primary-blue);
    }

    .sidebar-icon-item.active {
        background-color: var(--bg-light);
        color: var(--primary-blue);
        font-weight: 700;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    }

    .desktop-main-wrapper {
        display: flex;
        flex: 1;
        gap: 20px; /* spacing between center main view and news sidebar */
        width: calc(100% - 88px);
        align-items: flex-start;
    }

    /* Section 2: Center/Left Main Container (80% / 78% Width) */
    .app-container {
        width: 78%;
        max-width: 78%;
        height: auto;
        min-height: 100vh;
        background-color: var(--white);
        border: 1.5px solid #000000; /* Thin black border */
        border-radius: 20px; /* Border radius */
        box-shadow: var(--shadow-sm);
        margin: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden; /* Ensure rounded corners clip children */
    }

    /* Section 3: Right News Sidebar Column (20% Width) */
    .main-right-column {
        display: block !important;
        width: 20%;
        flex-shrink: 0;
        background-color: var(--white);
        border: 1.5px solid #000000; /* Thin black border */
        border-radius: 20px; /* Border radius */
        padding: 20px;
        box-shadow: var(--shadow-sm);
        margin: 0;
        position: sticky;
        top: 20px;
        height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: none;
    }

    .main-right-column::-webkit-scrollbar {
        display: none;
    }

    /* Override cart button to float fixed on desktop size */
    .floating-cart-btn-wrapper {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        margin: 0;
        z-index: 200;
        animation: slideInCartDesktop 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

/* ----------------------------------------
   Advanced News Portal & Single Article
   ---------------------------------------- */
.news-portal-wrapper {
    padding: 12px;
}

.article-details-container {
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    width: 100%;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.article-back-link:hover {
    color: #1d4ed8;
}

.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-badge-cat {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    background-color: #eff6ff;
    color: var(--primary-blue);
    border-radius: var(--radius-sm);
    border: 1px solid #dbeafe;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
}

.article-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.article-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.article-poster-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-cover-img {
    width: 100%;
    height: auto;
    display: block;
}

/* AI Article Voice Reader audio bar */
.ai-audio-player {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-player-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audio-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-play-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1d4ed8 100%);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(40, 116, 240, 0.2);
    transition: var(--transition);
    flex-shrink: 0;
}

.audio-play-circle:hover {
    transform: scale(1.06);
}

.audio-progress-bar-container {
    flex: 1;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    position: relative;
}

.audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, #1d4ed8 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.15s linear;
}

.audio-time-label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.audio-speed-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.audio-speed-select {
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 3px 6px;
    font-size: 10px;
    background-color: var(--white);
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.article-embed-frame {
    margin-bottom: 24px;
}

/* Table of Contents */
.article-toc-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.toc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 6px;
}

.toc-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.toc-item a:hover {
    text-decoration: underline;
}

.toc-item.level-2 {
    margin-left: 14px;
}

/* Article Typography */
.article-body-content {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 30px;
}

.article-p {
    margin-bottom: 16px;
}

.article-h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 28px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.article-h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 22px;
    margin-bottom: 8px;
}

.article-services-section {
    border-top: 1.5px solid #e2e8f0;
    padding-top: 24px;
    margin-top: 36px;
}

.related-services-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-services-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Floating contact widgets Panel */
.floating-controls-panel {
    position: fixed;
    right: 16px;
    bottom: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 500;
}

.float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.float-btn.call {
    background-color: var(--primary-blue);
}

.float-btn.whatsapp {
    background-color: #25d366;
}

.float-btn.music {
    background-color: #4f46e5;
}

.float-btn.music.playing {
    background-color: #ef4444;
    animation: pulseMusic 1.5s infinite;
}

@keyframes pulseMusic {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.float-btn.translate {
    background-color: #ff9f00;
}

.translate-panel-card {
    position: fixed;
    right: 16px;
    bottom: 355px;
    width: 250px;
    background-color: var(--white);
    border: 1.5px solid #000000;
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 600;
    animation: slideInPanel 0.25s ease-out;
}

@keyframes slideInPanel {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.translate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-dark);
}

.translate-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
}

/* Category Badge in news index listing cards */
.news-cat-badge {
    background-color: #eff6ff;
    color: var(--primary-blue);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid #dbeafe;
    text-transform: uppercase;
}

/* Centered content overrides for Desktop viewports */
@media (min-width: 768px) {
    .article-details-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 30px;
    }

    .article-title {
        font-size: 30px;
    }

    .article-body-content {
        font-size: 15px;
    }

    .floating-controls-panel {
        right: 24px;
        bottom: 200px;
    }

    .translate-panel-card {
        right: 24px;
        bottom: 305px;
    }

    .music-panel-card {
        right: 24px;
        bottom: 305px;
    }
}

/* Writer Author Card Details */
.article-author-card {
    display: flex;
    gap: 16px;
    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-top: 36px;
    margin-bottom: 24px;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.article-author-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-blue);
}

.author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
    flex-shrink: 0;
}

.author-card-info {
    flex: 1;
}

.author-card-role {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.author-card-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    margin-top: 0;
}

.author-card-bio {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

/* Expandable Floating Support Widget */
.expandable-contact-widget {
    position: fixed;
    right: 16px;
    bottom: 135px; /* Sits directly above the shopping cart pill wrapper (bottom: 74px + height) */
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.contact-round-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    outline: none;
}

.contact-round-btn:hover {
    transform: scale(1.06) translateY(-2px);
}

.contact-round-btn.call {
    background-color: var(--primary-blue);
    animation: pulseCallGlow 2s infinite;
}

.contact-round-btn.whatsapp {
    background-color: #25d366;
    animation: pulseWhatsappGlow 2s infinite;
}

@keyframes pulseCallGlow {
    0% { box-shadow: 0 0 0 0 rgba(40, 116, 240, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(40, 116, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 116, 240, 0); }
}

@keyframes pulseWhatsappGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Support Confirmation Modals */
.support-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.2s ease-out;
}

.support-popup-card {
    width: 90%;
    max-width: 320px;
    background-color: var(--white);
    border: 1.5px solid #000000;
    border-radius: var(--radius-md);
    padding: 20px 18px;
    box-shadow: var(--shadow-lg);
    animation: scaleInModal 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.support-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.support-popup-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
}

.btn-popup-action {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-popup-action.call {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-popup-action.whatsapp {
    background-color: #25d366;
    color: var(--white);
}

.btn-popup-action.minimize {
    background-color: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
}

.btn-popup-action:hover {
    opacity: 0.9;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleInModal {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Adjust for desktop layouts */
@media (min-width: 768px) {
    .expandable-contact-widget {
        bottom: 85px; /* Stacked above the desktop shopping cart */
        right: 24px;
    }
}

/* Print Styles for Invoice Cards */
@media print {
    body, html {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    header, footer, .bottom-nav, .no-print, .main-right-column, .article-back-link, .section-title-bar, .expandable-contact-widget, form {
        display: none !important;
    }
    .desktop-main-wrapper {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .news-portal-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }
    .article-details-container {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .invoice-card-print {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Custom Tags & Share section below single article content */
.article-footer-meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-tags-row-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.article-tags-row-bottom .tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 4px;
}

.article-tags-row-bottom .article-tag {
    font-size: 11px;
    color: var(--primary-blue);
    font-weight: 600;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.article-tags-row-bottom .article-tag:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

.article-share-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.article-share-bar .share-title-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.share-btn-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.share-btn-item.whatsapp-btn {
    background-color: #25d366;
    color: var(--white);
}
.share-btn-item.whatsapp-btn:hover {
    background-color: #20ba56;
}

.share-btn-item.facebook-btn {
    background-color: #1877f2;
    color: var(--white);
}
.share-btn-item.facebook-btn:hover {
    background-color: #1565d8;
}

.share-btn-item.twitter-btn {
    background-color: #000000;
    color: var(--white);
}
.share-btn-item.twitter-btn:hover {
    background-color: #1a1a1a;
}

.share-btn-item.copy-btn {
    background-color: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
}
.share-btn-item.copy-btn:hover {
    background-color: #e2e8f0;
}

/* Custom Follow Bar & Brand buttons */
.article-follow-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.share-btn-item.whatsapp-channel-btn {
    background-color: #075e54;
    color: var(--white);
}
.share-btn-item.whatsapp-channel-btn:hover {
    background-color: #054c44;
}

.share-btn-item.google-news-btn {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
}
.share-btn-item.google-news-btn:hover {
    background-color: #f8f9fa;
}

/* Desktop default recommended services grid adjustment */
.recommended-services-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

/* Mobile responsive horizontal scroll layouts */
@media (max-width: 480px) {
    .recommended-services-container {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 4px 12px 16px 12px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        scrollbar-width: none !important;
        grid-template-columns: none !important;
    }
    
    .recommended-services-container::-webkit-scrollbar {
        display: none !important;
    }
    
    .recommended-services-container .service-card {
        flex: 0 0 240px !important;
        scroll-snap-align: start !important;
        height: auto !important;
    }

    .recommended-services-container .service-card .service-img-wrapper {
        height: 110px !important;
    }
}

/* Recommended Articles / Blogs Section styling */
.article-rec-blogs-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
}

.rec-blogs-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rec-blogs-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.recommended-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.rec-blog-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.rec-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.rec-blog-img-wrapper {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.rec-blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.rec-blog-card:hover .rec-blog-img-wrapper img {
    transform: scale(1.05);
}

.rec-blog-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.rec-blog-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.rec-blog-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.rec-blog-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
}

/* Mobile scroll layout for recommended articles grid */
@media (max-width: 480px) {
    .recommended-articles-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 4px 12px 16px 12px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        scrollbar-width: none !important;
        grid-template-columns: none !important;
    }
    
    .recommended-articles-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .rec-blog-card {
        flex: 0 0 200px !important;
        scroll-snap-align: start !important;
    }
}

/* Inline small share buttons container styling */
.share-buttons-container.inline-small {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.share-buttons-container.inline-small .share-btn-item {
    padding: 6px 12px;
    font-size: 10px;
    border-radius: var(--radius-sm);
    gap: 6px;
    box-shadow: none;
}

/* Calming Ambient Music Selection Popup Styling */
.music-panel-card {
    position: fixed;
    right: 16px;
    bottom: 355px;
    width: 250px;
    background-color: var(--white);
    border: 1.5px solid #000000;
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 650;
    display: none;
    flex-direction: column;
    gap: 10px;
    animation: slideInPanel 0.25s ease-out;
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-dark);
}

.music-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
}

.music-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Upvote / Downvote Feedback Widget Styling */
.article-feedback-widget {
    margin-top: 20px;
    padding: 14px 16px;
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feedback-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feedback-buttons {
    display: flex;
    gap: 8px;
}

.feedback-btn-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.feedback-btn-item:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.feedback-btn-item.voted {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

@media (max-width: 480px) {
    .article-feedback-widget {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =================================================================
   Before & After Showcase Slider Widget
   ================================================================= */
.before-after-section-wrapper {
    margin: 20px 14px;
    padding: 20px 14px;
    width: calc(100% - 28px);
    box-sizing: border-box;
    border-radius: var(--radius-md);
    border: 1.5px solid #000000;
    box-shadow: var(--shadow-sm);
}

.before-after-section-wrapper.theme-home {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.before-after-section-wrapper.theme-commercial {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
}

.before-after-section-wrapper.theme-office {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.before-after-section-wrapper.theme-pestcontrol {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.ba-slider-outer-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Horizontal scroll container */
.ba-cards-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    width: 100%;
    padding: 8px 4px 16px 4px;
    scrollbar-width: none; /* Firefox */
}

.ba-cards-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.before-after-card {
    flex: 0 0 280px; /* Fixed card width on mobile */
    scroll-snap-align: start;
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1.5px solid #000000;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.ba-card-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.ba-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.ba-card-meta {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.ba-image-before, .ba-image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-image-before img, .ba-image-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-image-after {
    /* Crop the after image with clip-path dynamically */
    clip-path: inset(0 0 0 var(--clip-percent, 50%));
}

.ba-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--clip-percent, 50%);
    width: 2px;
    background-color: var(--white);
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1.5px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 11px;
    box-shadow: var(--shadow-sm);
}

/* Before / After Label Badges inside the slider matching the screenshot */
.ba-badge {
    position: absolute;
    bottom: 12px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    z-index: 6;
    color: var(--white);
    text-transform: uppercase;
}

.ba-badge.before {
    left: 12px;
    background-color: #000000;
}

.ba-badge.after {
    right: 12px;
    background-color: #ec4899; /* Hot Pink matching screenshot */
}

/* Overlay range input covering the entire slider area */
.ba-slider-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 8;
    cursor: col-resize;
    -webkit-appearance: none;
}

/* Hide scroll buttons on mobile by default */
.ba-arrow-btn {
    display: none;
}

/* Responsive Overrides for Desktop View */
@media (min-width: 768px) {
    .before-after-section-wrapper {
        margin: 24px;
        padding: 24px;
        width: calc(100% - 48px);
        position: relative;
    }
    
    .ba-cards-grid {
        gap: 20px;
    }
    
    .before-after-card {
        flex: 0 0 320px; /* Wider cards on desktop */
    }
    
    .ba-slider-container {
        height: 320px; /* Higher aspect ratio on desktop */
    }
    
    /* Elegant overlay arrow buttons on desktop sizes */
    .ba-arrow-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: var(--white);
        border: 1px solid var(--border-color);
        color: var(--text-dark);
        font-size: 12px;
        cursor: pointer;
        z-index: 12;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }
    
    .ba-arrow-btn:hover {
        background-color: var(--bg-light);
        border-color: var(--text-dark);
        transform: translateY(-50%) scale(1.05);
    }
    
    .ba-arrow-btn.left {
        left: -8px;
    }
    
    .ba-arrow-btn.right {
        right: -8px;
    }
}

/* Call button grouping container */
.call-btn-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Phone number badge shown on desktop only */
.desktop-phone-number-badge {
    display: none;
}

@keyframes slideInCartDesktop {
    0% { transform: translate(-50%, 20px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* Service Card Title Links Reset */
.service-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.service-title a:hover {
    text-decoration: underline;
    color: var(--primary-blue);
}

/* =================================================================
   Service Detailed Page Styling
   ================================================================= */
.service-detail-page-wrapper {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-content-card {
    background-color: var(--white);
    border: 1.5px solid #000000;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-content-card a {
    text-decoration: none;
}

.detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.detail-badge-theme {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    color: var(--white);
    text-transform: uppercase;
}

.detail-badge-theme.theme-home { background-color: var(--primary-blue); }
.detail-badge-theme.theme-commercial { background-color: #eab308; color: #000000; }
.detail-badge-theme.theme-office { background-color: #ec4899; }
.detail-badge-theme.theme-pestcontrol { background-color: #22c55e; }

.detail-views-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.detail-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.detail-featured-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1.5px solid #000000;
}

.detail-info-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.detail-price-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-price-box .price-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-price-box .price-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.detail-price-box .price-value span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-description-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.detail-description-section .description-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-section-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* SEO Tags Cloud Grid styling */
.seo-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #f8fafc;
    border: 1.5px solid #000000;
    border-radius: var(--radius-md);
    padding: 14px;
}

.seo-tag-item {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    cursor: default;
}

.seo-tag-item i {
    color: var(--primary-blue);
    font-size: 8px;
}

.seo-tag-item:hover {
    border-color: #000000;
    color: var(--text-dark);
    transform: translateY(-1px);
}

/* Desktop sizing layout adjustments */
@media (min-width: 768px) {
    .service-detail-page-wrapper {
        padding: 24px;
        gap: 24px;
    }
    
    .detail-content-card {
        padding: 24px;
        gap: 20px;
    }
    
    .detail-main-grid {
        grid-template-columns: 45% 52%;
        gap: 3%;
        align-items: start;
    }
    
    .detail-featured-img {
        height: 320px;
    }
    
    .detail-main-title {
        font-size: 24px;
    }
    
    .seo-tag-item {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .desktop-phone-number-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        background-color: #000000;
        color: var(--white) !important;
        border-radius: var(--radius-full);
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        border: 1.5px solid #000000;
        box-shadow: var(--shadow-sm);
        animation: pulsePhoneHighlight 2s infinite;
        transition: var(--transition);
    }
    
    .desktop-phone-number-badge:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }
}

@keyframes pulsePhoneHighlight {
    0% {
        background-color: #000000;
        border-color: #000000;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }
    50% {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
        box-shadow: 0 0 8px 4px rgba(18, 84, 196, 0.3);
    }
    100% {
        background-color: #000000;
        border-color: #000000;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* PIN digit input code styling */
.pin-inputs-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.pin-digit-input {
    width: 48px;
    height: 48px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background-color: #f8fafc;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.pin-digit-input:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(18, 84, 196, 0.15);
}

/* Global Footer Details Block */
.footer-app-details {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 95px; /* Sits cleanly above mobile nav bottom padding */
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .footer-app-details {
        margin-bottom: 30px; /* Reset bottom margin on desktop since bottom-nav is hidden */
    }
}

/* ==========================================================================
   INVOICE DOCUMENT LAYOUT (PREVIEW MOCKUP) STYLES
   ========================================================================== */
.invoice-document {
    background: #ffffff;
    color: #2b2d42;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    position: relative;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eef0f3;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.invoice-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.invoice-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 0;
}

.invoice-logo-text .orange {
    color: #fd7e14;
}

.invoice-logo-text .green {
    color: #23A036;
}

.invoice-title-area {
    text-align: right;
}

.invoice-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1e293b;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.invoice-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.invoice-meta div {
    margin-bottom: 2px;
}

.invoice-meta strong {
    color: #1e293b;
}

.company-contact-strip {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: -12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eef0f3;
    padding-bottom: 12px;
    text-align: center;
}

.billing-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.billing-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.billing-box h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
}

.billing-box .billing-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.billing-box p {
    margin: 0;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.4;
}

.billing-box .contact-info-item {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.invoice-table th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
}

.invoice-table th.text-right {
    text-align: right;
}

.invoice-table th.text-center {
    text-align: center;
}

.invoice-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.85rem;
}

.invoice-table td.text-right {
    text-align: right;
}

.invoice-table td.text-center {
    text-align: center;
}

.invoice-table tr:last-child td {
    border-bottom: 2px solid #cbd5e1;
}

.item-title {
    font-weight: 500;
    color: #0f172a;
}

.invoice-summary-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.payment-status-block {
    max-width: 200px;
}

.payment-status-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.status-badge-doc {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-doc.paid {
    background-color: rgba(35, 160, 54, 0.12);
    color: #1e7e34;
    border: 1px solid rgba(35, 160, 54, 0.25);
}

.status-badge-doc.unpaid {
    background-color: rgba(220, 53, 69, 0.12);
    color: #c82333;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

.totals-table {
    width: 280px;
    margin-left: auto;
}

.totals-table tr td {
    padding: 6px 10px;
    font-size: 0.85rem;
    color: #475569;
}

.totals-table tr td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}

.totals-table tr.total-row {
    border-top: 1px solid #cbd5e1;
}

.totals-table tr.total-row td {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    padding-top: 10px;
}

.totals-table tr.total-row td:last-child {
    color: #0f172a;
    font-size: 1.05rem;
}

.invoice-footer-note {
    text-align: center;
    border-top: 1px solid #eef0f3;
    padding-top: 20px;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: auto;
}

.invoice-bank-page {
    border-top: 1px dashed #e2e8f0;
    padding-top: 30px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bank-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.bank-title-area h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bank-title-area p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

.bank-logo-img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.bank-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 30px;
}

.bank-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.bank-info-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 8px;
}

.bank-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.bank-row-label {
    width: 120px;
    font-weight: 600;
    color: #64748b;
}

.bank-row-value {
    flex: 1;
    color: #0f172a;
    font-weight: 500;
}

.bank-qr-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-code-image {
    max-height: 120px;
    width: auto;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    padding: 4px;
    border-radius: 4px;
}

.qr-caption {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

/* Google Review Page (Page 3) Styling */
.invoice-review-page {
    border-top: 1px dashed #e2e8f0;
    padding-top: 30px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.review-title-area h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-title-area p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

.review-content-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.review-intro-text {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.review-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#reviewQrCode {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

#reviewQrCode img {
    width: 120px;
    height: 120px;
}

.btn-review-link {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-top: 10px;
}

.btn-review-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
    text-decoration: none;
}




