:root {
    --app-primary: var(--web-primary, #2f7d36);
    --app-primary-dark: var(--web-primary-dark, #226129);
    --app-bg: #f8faf9;
    --app-surface: #ffffff;
    --app-border: #e7eee8;
    --app-text: #1f2937;
    --app-muted: #667085;
    --app-radius-sm: 8px;
    --app-radius-md: 14px;
    --app-radius-lg: 20px;
    --app-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --app-header-height: 60px;
    --app-bottom-nav-height: 64px;
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(var(--app-bottom-nav-height) + 16px) !important;
        background-color: var(--app-bg);
    }

    /* Top App Header */
    .mobile-head {
        position: sticky;
        top: 0;
        z-index: 1030;
        background: var(--app-surface) !important;
        border-bottom: none !important;
        box-shadow: var(--app-shadow-soft);
    }

    .mobile-head .navbar-light {
        padding: 0 !important;
        display: block;
        background: var(--app-surface);
    }

    .mobile-head .navbar-light .container {
        display: block;
        padding: 0;
    }

    .mobile-head .navbar-light .navbar-toolbar {
        display: none !important;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-header-logo-img {
        max-height: 36px;
        max-width: 140px;
        width: auto;
        object-fit: contain;
        display: block;
    }

    .mobile-menu-btn {
        background: transparent;
        border: none;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--app-radius-sm);
        color: var(--app-text);
        z-index: 2;
    }

    /* Search Pill */
    .mobile-search-pill-container {
        padding: 8px 16px 12px;
        background: var(--app-surface);
    }

    .mobile-search-pill {
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 999px;
        height: 46px;
        padding: 0 16px;
        color: var(--app-muted);
        font-size: 14px;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 4px 14px rgba(0,0,0,0.04);
        width: 100%;
        text-align: left;
    }

    .mobile-search-pill .search-icon {
        font-size: 20px;
        margin-right: 8px;
        color: var(--app-primary);
    }

    /* Hide desktop elements on mobile */
    .topbar,
    .navbar-toolbar,
    #cart_items {
        display: none !important;
    }

    /* Bottom Navigation */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--app-bottom-nav-height);
        background: var(--app-surface);
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
        z-index: 1040;
        padding-bottom: env(safe-area-inset-bottom);
        border-top-left-radius: var(--app-radius-lg);
        border-top-right-radius: var(--app-radius-lg);
    }

    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--app-muted);
        flex: 1;
        height: 100%;
        position: relative;
    }

    .mobile-bottom-nav-item.active {
        color: var(--app-primary);
    }

    .mobile-bottom-nav-item .nav-icon {
        font-size: 24px;
        margin-bottom: 2px;
        line-height: 1;
    }

    .mobile-bottom-nav-item .nav-label {
        font-size: 10px;
        font-weight: 600;
    }

    .mobile-bottom-nav-item .cart-badge {
        position: absolute;
        top: 6px;
        right: calc(50% - 16px);
        background: #ef4444;
        color: white;
        font-size: 9px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 999px;
        line-height: 1;
        border: 2px solid var(--app-surface);
    }

    /* Search Overlay */
    .mobile-search-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--app-surface);
        z-index: 1050;
        padding: 16px;
        padding-top: calc(env(safe-area-inset-top) + 16px);
    }

    .mobile-search-overlay.active {
        display: block;
    }

    .search-overlay-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .search-overlay-close {
        background: transparent;
        border: none;
        color: var(--app-text);
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-overlay-input-wrap {
        flex: 1;
        position: relative;
    }

    .search-overlay-input {
        width: 100%;
        height: 48px;
        background: #f4f8f5;
        border: 2px solid var(--app-primary);
        border-radius: 999px;
        padding: 0 48px 0 20px;
        font-size: 15px;
        outline: none;
        color: var(--app-text);
    }

    .search-overlay-submit {
        position: absolute;
        right: 6px;
        top: 6px;
        bottom: 6px;
        width: 36px;
        border-radius: 50%;
        background: var(--app-primary);
        color: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Product Cards & Sections */
    .section-card-margin {
        margin: 16px 0;
        background: var(--app-surface);
        border-radius: var(--app-radius-lg);
        padding: 12px;
        box-shadow: var(--app-shadow-soft);
    }
    
    .product-single-hover {
        border-radius: var(--app-radius-md) !important;
        overflow: hidden;
        border: 1px solid var(--app-border) !important;
        box-shadow: var(--app-shadow-soft) !important;
    }

    .product-single-hover .inline_product_image {
        border-radius: var(--app-radius-md) var(--app-radius-md) 0 0 !important;
    }
    
    .flash_deal_product {
        border-radius: var(--app-radius-md) !important;
    }

    /* Product Details Sticky Cart / Bottom Action Bar */
    .product-details-sticky {
        bottom: calc(var(--app-bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
        z-index: 1020 !important;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 18px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
        padding: 12px;
        margin: 0 12px;
        width: auto !important;
        left: 0;
        right: 0;
        background: #fff;
    }

    .product-details-sticky .quantity-box {
        border-radius: 999px !important;
        overflow: hidden;
    }

    .product-details-sticky .product-add-to-cart-button,
    .product-details-sticky .product-buy-now-button {
        border-radius: 999px !important;
        min-height: 44px;
        font-weight: 700;
    }

    .product-details-sticky .product-buy-now-button {
        border: 1px solid var(--app-primary) !important;
        color: var(--app-primary) !important;
        background: transparent !important;
    }

    .product-details-sticky .product-add-to-cart-button {
        background: var(--app-primary) !important;
        color: #fff !important;
    }

    .floating-btn-grp {
        bottom: calc(var(--app-bottom-nav-height, 68px) + 110px + env(safe-area-inset-bottom, 0px) + 20px) !important;
        z-index: 1040 !important;
    }

    .mobile-bottom-nav {
        z-index: 1030 !important;
    }

    /* Page padding so content doesn't get hidden */
    .__inline-23 {
        padding-bottom: calc(var(--app-bottom-nav-height, 68px) + 110px + env(safe-area-inset-bottom, 0px) + 24px) !important;
    }

    /* Mobile Category Browser */
    .mobile-category-browser {
        position: fixed;
        inset: 0;
        z-index: 1045;
        display: none;
    }

    .mobile-category-browser.is-open {
        display: block;
        animation: fadeIn 0.2s ease-out forwards;
    }

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

    body.mobile-category-open {
        overflow: hidden !important;
    }

    .mobile-category-browser-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(2px);
    }

    .mobile-category-browser-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(var(--app-bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px));
        height: min(78vh, 680px);
        background: #fff;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -16px 40px rgba(0,0,0,0.18);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .mobile-category-browser-header {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .mobile-category-browser-close {
        background: #f3f5f9;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--app-text);
        padding: 0;
    }
    
    .mobile-category-browser-close .material-symbols-outlined {
        font-size: 18px;
    }

    .mobile-category-layout {
        flex: 1;
        display: grid;
        grid-template-columns: 32% 68%;
        overflow: hidden;
        background: #f8f9fa;
    }

    .mobile-category-search .position-relative {
        position: relative;
    }

    .mobile-category-search .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        color: #8e9aab;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        z-index: 2;
    }

    .mobile-category-search .search-input {
        width: 100%;
        height: 46px;
        border-radius: 12px !important;
        border: 1px solid rgba(0,0,0,0.10);
        padding: 0 16px 0 44px !important;
        font-size: 14px;
        background: #fff;
        outline: none;
        box-shadow: none;
        transition: all 0.2s ease;
    }

    .mobile-category-search .search-input::placeholder {
        color: #7b8794;
    }

    .mobile-category-search .search-input:focus {
        border-color: var(--app-primary, #2f7d42);
        box-shadow: 0 0 0 3px rgba(47,125,66,0.10);
    }

    .mobile-category-main-list {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #f8f9fa;
        border-right: 1px solid rgba(0,0,0,0.04);
    }

    .mobile-main-category-item {
        padding: 16px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
        position: relative;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-main-category-item.active {
        background: #fff;
    }

    .mobile-main-category-item.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 12px;
        bottom: 12px;
        width: 4px;
        background: var(--app-primary);
        border-radius: 0 4px 4px 0;
    }

    .mobile-main-category-item img {
        width: 44px;
        height: 44px;
        object-fit: cover;
        border-radius: 50%;
        background: #fff;
        padding: 2px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }

    .mobile-main-category-item span {
        font-size: 11px;
        line-height: 1.2;
        color: var(--app-text);
        font-weight: 500;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-main-category-item.active span {
        color: var(--app-primary);
        font-weight: 700;
    }

    .mobile-category-details {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        padding: 16px;
    }

    .mobile-category-parent-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: var(--app-surface);
        border-radius: 12px;
        margin-bottom: 16px;
        color: var(--app-text);
        text-decoration: none !important;
        border: 1px solid rgba(0,0,0,0.06);
    }

    .mobile-category-parent-link:hover {
        background: #f8f9fa;
        color: var(--app-text);
    }

    .mobile-subcategory-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mobile-subcategory-item {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 12px;
        border: 1px solid rgba(0,0,0,0.04);
    }

    .mobile-subcategory-link {
        display: block;
        color: var(--app-text);
        text-decoration: none !important;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .mobile-sub-subcategory-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mobile-sub-subcategory-list li a {
        display: inline-block;
        padding: 4px 10px;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 999px;
        font-size: 11px;
        color: var(--app-muted);
        text-decoration: none !important;
    }

    /* Mobile Filter Button */
    .mobile-filter-btn {
        width: 52px;
        height: 44px;
        min-width: 52px;
        border: none;
        border-radius: 12px;
        background: var(--app-primary, #2f7d42);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 16px rgba(47, 125, 66, 0.22);
        cursor: pointer;
        padding: 0;
        margin: 0;
    }

    .mobile-filter-btn svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .mobile-filter-btn:active {
        transform: scale(0.96);
    }

    .mobile-filter-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(47, 125, 66, 0.18);
    }

    /* Alignment Fix for Search and Filter Row */
    .search-page-header .flex-nowrap {
        display: flex;
        align-items: center;
        gap: 12px !important;
    }

    /* Mobile Topbar and WhatsApp */
    .mobile-app-topbar {
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px 6px;
        background: #fff;
    }

    .mobile-app-topbar .mobile-logo {
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .mobile-header-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .mobile-header-cart-btn,
    .mobile-whatsapp-btn,
    .mobile-menu-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(0,0,0,0.08);
        background: #fff;
        color: #1f2937;
        box-shadow: 0 4px 14px rgba(0,0,0,0.06);
        position: relative;
        margin: 0 !important;
        transform: none !important;
    }

    .mobile-whatsapp-btn {
        background: #25D366;
        color: #fff;
        border-color: #25D366;
    }

    .mobile-menu-sub-link {
        min-height: 48px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #1f2937;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        background: #fff;
    }

    .mobile-menu-sub-link:active {
        background: rgba(47,125,66,0.08);
        color: var(--app-primary, #2f7d42);
    }

    .mobile-menu-sub-link svg {
        width: 16px;
        height: 16px;
        color: #9ca3af;
    }

    .mobile-header-cart-btn svg,
    .mobile-whatsapp-btn svg,
    .mobile-menu-btn svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .mobile-header-cart-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
    }

    .mobile-whatsapp-btn:active,
    .mobile-menu-btn:active,
    .mobile-header-cart-btn:active {
        transform: scale(0.96) !important;
    }

    /* Mobile Offers Drawer CSS */
    .mobile-offers-browser {
        position: fixed;
        inset: 0;
        z-index: 1045;
        display: none;
    }

    .mobile-offers-browser.is-open {
        display: block;
    }

    .mobile-offers-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.35);
    }

    .mobile-offers-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(var(--app-bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px));
        height: min(82vh, 700px);
        background: #f7faf8;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -18px 45px rgba(0,0,0,0.18);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .mobile-offers-header {
        min-height: 72px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .mobile-offers-title-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-offers-title-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(47,125,66,0.10);
        color: var(--app-primary, #2f7d42);
    }

    .mobile-offers-header h3 {
        margin: 0;
        font-size: 19px;
        font-weight: 800;
        color: #111827;
        text-transform: capitalize;
    }

    .mobile-offers-header p {
        margin: 3px 0 0;
        font-size: 12px;
        color: #6b7280;
    }

    .mobile-offers-close {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 0;
        background: #f3f4f6;
        color: #111827;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        line-height: 1;
    }

    .mobile-offers-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
    }

    .mobile-offers-hero {
        min-height: 105px;
        padding: 18px;
        border-radius: 22px;
        background: linear-gradient(135deg, #2f7d42, #62b16f);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 12px 28px rgba(47,125,66,0.22);
        margin-bottom: 16px;
    }

    .mobile-offers-hero h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
    }

    .mobile-offers-hero p {
        margin: 6px 0 0;
        font-size: 13px;
        opacity: .9;
    }

    .mobile-offers-hero-badge {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        background: rgba(255,255,255,0.18);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: 900;
    }

    .mobile-offer-action-grid {
        display: grid;
        gap: 12px;
    }

    .mobile-offer-action-card {
        min-height: 78px;
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 8px 22px rgba(0,0,0,0.05);
        display: grid;
        grid-template-columns: 46px 1fr 24px;
        align-items: center;
        gap: 12px;
        color: inherit;
        text-decoration: none;
    }

    .mobile-offer-action-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(47,125,66,0.10);
        color: var(--app-primary, #2f7d42);
    }

    .mobile-offer-action-info strong {
        display: block;
        font-size: 15px;
        font-weight: 800;
        color: #111827;
        margin-bottom: 3px;
    }

    .mobile-offer-action-info small {
        display: block;
        font-size: 12px;
        color: #6b7280;
        line-height: 1.35;
    }

    .mobile-offer-action-arrow {
        color: #9ca3af;
        font-size: 24px;
        font-weight: 400;
        text-align: right;
    }

    .mobile-offer-action-card:active {
        transform: scale(0.985);
        background: #f9fafb;
    }

    .mobile-offer-products-preview {
        margin-top: 18px;
    }

    .mobile-offer-preview-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .mobile-offer-preview-title h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 800;
        color: #111827;
    }

    .mobile-offer-card {
        display: grid;
        grid-template-columns: 74px 1fr;
        gap: 12px;
        padding: 10px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
        text-decoration: none;
        color: inherit;
        margin-bottom: 10px;
    }

    .mobile-offer-card img {
        width: 74px;
        height: 74px;
        object-fit: contain;
        border-radius: 14px;
        background: #f9fafb;
    }

    .mobile-offer-empty {
        margin-top: 18px;
        padding: 24px 18px;
        border-radius: 20px;
        background: #fff;
        border: 1px dashed rgba(0,0,0,0.12);
        text-align: center;
    }

    .mobile-offer-empty-icon {
        width: 54px;
        height: 54px;
        margin: 0 auto 10px;
        border-radius: 18px;
        background: rgba(47,125,66,0.10);
        color: var(--app-primary, #2f7d42);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-offer-empty h4 {
        margin: 0 0 5px;
        font-size: 15px;
        font-weight: 800;
    }

    .mobile-offer-empty p {
        margin: 0;
        font-size: 12px;
        color: #6b7280;
    }

    /* Floating Back-to-Top Button */
    .floating-btn-grp .btn-scroll-top {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        bottom: calc(var(--app-bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 2px) !important;
        transform: translateX(-50%) translateY(10px) !important;
        z-index: 1025 !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 50% !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        background: rgba(255,255,255,0.96) !important;
        color: var(--app-primary, #2f7d42) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.14) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 0 !important;
        transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease, visibility .2s !important;
    }

    .floating-btn-grp .btn-scroll-top.is-visible {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .floating-btn-grp .btn-scroll-top svg {
        width: 17px !important;
        height: 17px !important;
        display: block !important;
    }

    .floating-btn-grp .btn-scroll-top:active {
        transform: translateX(-50%) scale(0.94) !important;
    }

    body.mobile-offers-open .floating-btn-grp .btn-scroll-top,
    body.mobile-category-open .floating-btn-grp .btn-scroll-top,
    body.mobile-search-open .floating-btn-grp .btn-scroll-top,
    body.mobile-menu-open .floating-btn-grp .btn-scroll-top {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Floating WhatsApp Button on Mobile */
    .mobile-whatsapp-btn {
        position: fixed !important;
        right: 8px !important;
        bottom: calc(var(--app-bottom-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 2px) !important;
        z-index: 1026 !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #25D366 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
        box-shadow: 0 10px 24px rgba(0,0,0,0.18) !important;
        text-decoration: none !important;
        transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.2s ease !important;
    }

    .mobile-whatsapp-btn svg {
        width: 26px !important;
        height: 26px !important;
        display: block !important;
    }

    .mobile-whatsapp-btn:active {
        transform: scale(0.94) !important;
    }

    body.mobile-category-open .mobile-whatsapp-btn,
    body.mobile-offers-open .mobile-whatsapp-btn,
    body.mobile-search-open .mobile-whatsapp-btn,
    body.mobile-menu-open .mobile-whatsapp-btn {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .product-details-page ~ .floating-btn-grp .btn-scroll-top {
        bottom: calc(var(--app-bottom-nav-height, 68px) + var(--product-action-bar-height, 88px) + env(safe-area-inset-bottom, 0px) - 22px) !important;
    }

    .product-details-page ~ .floating-btn-grp .mobile-whatsapp-btn {
        bottom: calc(var(--app-bottom-nav-height, 68px) + var(--product-action-bar-height, 88px) + env(safe-area-inset-bottom, 0px) - 22px) !important;
    }
}

/* Desktop Fix for Back-to-Top Button */
@media (min-width: 768px) {
    .btn-scroll-top {
        position: fixed !important;
        right: 24px !important;
        bottom: 24px !important;
        left: auto !important;
        transform: none !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--app-primary, #2f7d42) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 8px 22px rgba(0,0,0,0.18) !important;
        z-index: 1020 !important;
    }

    .btn-scroll-top i,
    .btn-scroll-top svg {
        display: block !important;
        margin: 0 !important;
    }
}
