﻿@font-face {
            font-family: 'IRANSans';
            src: url('../assets/fonts/iranyekanwebboldfanum.woff2') format('woff2'),
                 url('../assets/fonts/iranyekanwebboldfanum.woff') format('woff');
            font-weight: 500;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'IRANSans';
            src: url('../assets/fonts/IRANSansIRANSans-Bold-normal.woff2') format('woff2'),
                 url('../assets/fonts/IRANSansIRANSans-Bold-normal.woff') format('woff');
            font-weight: 700;
            font-style: normal;
            font-display: swap;
        }
          @font-face {
        font-family: 'IRANSans';
        src: url('../assets/fonts/iranyekanweblightfanum.woff2') format('woff2'),
             url('../assets/fonts/iranyekanweblightfanum.woff') format('woff');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

        :root {
            --brand: #0A58CA;
            --brand-dark: #0947A8;
            --brand-light: #E8F0FE;
            --brand-soft: #F0F5FF;
            --gray-50: #F8F9FC;
            --gray-100: #F1F3F7;
            --gray-200: #E9ECF0;
            --gray-500: #9AA4B2;
            --gray-600: #6C757D;
            --gray-700: #495057;
            --gray-800: #212529;
            --gray-900: #1A1F2C;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.03);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
            --shadow-lg: 0 20px 35px -12px rgba(0,0,0,0.08);
            --radius: 20px;
            --radius-sm: 14px;
            --ui-radius: 20px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'IRANSans', system-ui, -apple-system, sans-serif;
            background: white;
            color: var(--gray-800);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        input,
        select,
        textarea,
        .form-control,
        .form-select,
        .input-group-text,
        .btn,
        .card,
        .modal-content,
        .alert,
        .dropdown-menu,
        .offcanvas,
        .toast,
        .badge,
        .pagination .page-link,
        .list-group-item,
        .accordion-item,
        .accordion-button,
        .nav-tabs .nav-link,
        .nav-pills .nav-link {
            border-radius: var(--ui-radius);
        }

        .form-control,
        .form-select,
        textarea {
            border: 1px solid var(--gray-200);
        }

        .btn {
            font-weight: 700;
        }

        .card,
        .modal-content {
            box-shadow: var(--shadow-sm);
        }
        
        /* Modern Topbar */
        .front-topbar {
            background: var(--gray-900);
            color: #9aa4b2;
            font-size: 0.8rem;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .front-topbar a {
            color: #cbd5e1;
            text-decoration: none;
            transition: color 0.2s;
        }
        .front-topbar a:hover {
            color: white;
        }
        .front-logout-link {
            border: 0;
            background: transparent;
            color: #cbd5e1;
            padding: 0;
            font: inherit;
            cursor: pointer;
            transition: color 0.2s;
        }
        .front-logout-link:hover {
            color: white;
        }
        .front-topbar-inner,
        .front-topbar-info,
        .front-topbar-actions {
            min-width: 0;
        }
        .front-topbar-item,
        .front-topbar-action {
            white-space: nowrap;
        }
        .front-topbar-partner {
            color: #5eead4 !important;
            font-weight: 600;
        }
        .front-topbar-partner:hover,
        .front-topbar-partner.is-active {
            color: #fff !important;
        }
        .front-nav-partner-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.55rem 1rem;
            border-radius: 999px;
            background: linear-gradient(135deg, #0ab39c, #0b5ed7);
            color: #fff !important;
            font-size: 0.875rem;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            box-shadow: 0 4px 14px rgba(10, 179, 156, 0.28);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .front-nav-partner-btn:hover {
            color: #fff !important;
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(10, 179, 156, 0.35);
        }
        .front-nav-partner-btn.is-active {
            box-shadow: 0 0 0 2px rgba(10, 179, 156, 0.35), 0 4px 14px rgba(10, 179, 156, 0.28);
        }
        .front-nav-partner-btn i {
            font-size: 1rem;
            line-height: 1;
        }
        .front-topbar-rates {
            min-width: 0;
            max-width: 100%;
            flex: 1 1 auto;
        }
        .front-rates-track {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            min-width: 0;
            overflow-x: auto;
            overscroll-behavior-inline: contain;
            scrollbar-width: none;
            padding: 0.05rem 0;
        }
        .front-rates-track::-webkit-scrollbar {
            display: none;
        }
        .front-rate-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            padding: 0.12rem 0.45rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.08);
            font-size: 0.72rem;
            line-height: 1.15;
            color: #e2e8f0;
            flex: 0 0 auto;
        }
        .front-rate-symbol {
            font-weight: 700;
            opacity: 0.9;
        }
        .front-rate-value {
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
        }
        
        /* Navbar Premium */
        .front-navbar {
            background: rgba(255,255,255,0.98);
            backdrop-filter: blur(8px);
            box-shadow: var(--shadow-sm);
            border-bottom: 1px solid var(--gray-200);
            padding: 0.75rem 0;
        }
        .navbar-brand {
            font-weight: 800;
            font-size: 1.5rem;
            letter-spacing: -0.3px;
            background: linear-gradient(135deg, var(--brand), #0D7CFF);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .navbar-brand img {
            height: 36px;
        }
        .front-navbar .nav-link {
            font-weight: 500;
            color: var(--gray-700);
            padding: 0.6rem 1rem;
            border-radius: 44px;
            transition: all 0.2s;
                margin: 0 0.5rem;
        }
        .front-navbar .nav-link:hover {
            background: var(--brand-light);
            color: var(--brand);
        }
        .front-navbar .nav-link.active {
            background: var(--brand-light);
            color: var(--brand);
            font-weight: 600;
        }
        .btn-outline-brand {
            border: 1px solid var(--gray-200);
            background: white;
            border-radius: 50px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            color: var(--gray-700);
        }
        .btn-outline-brand:hover {
            background: var(--brand-light);
            border-color: var(--brand-light);
            color: var(--brand);
        }
        .front-nav-icon-btn {
            width: 42px;
            height: 42px;
            border: 1px solid var(--gray-200);
            background: white;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-700);
            text-decoration: none;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-sm);
            flex: 0 0 auto;
        }
        .front-nav-icon-btn:hover {
            background: var(--brand-light);
            border-color: var(--brand-light);
            color: var(--brand);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }
        .front-nav-icon-btn i {
            font-size: 1.1rem;
            line-height: 1;
        }
        .front-navbar .navbar-nav > .nav-item {
            display: list-item;
            padding: 0;
            gap: 0;
            border-left: none !important;
            background: transparent !important;
        }
        .front-navbar .navbar-nav > .nav-item .nav-link {
            display: block;
            padding: 0.5rem 1rem;
        }
        .front-nav-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .front-nav-icon-btn.cart-nav-btn,
        .front-nav-icon-btn.wishlist-nav-btn {
            position: relative;
        }
        .cart-count-badge {
            position: absolute;
            top: -4px;
            inset-inline-start: -4px;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 999px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: #fff;
            font-size: 0.65rem;
            font-weight: 700;
            line-height: 18px;
            text-align: center;
            box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
            pointer-events: none;
        }
        .cart-count-badge.cart-count-pulse {
            animation: cartBadgePulse 0.45s ease;
        }
        @keyframes cartBadgePulse {
            0% { transform: scale(1); }
            40% { transform: scale(1.25); }
            100% { transform: scale(1); }
        }
/* Custom Svg Icons utility */
        .icon-svg {
            width: 20px;
            height: 20px;
            display: inline-block;
            vertical-align: middle;
            stroke-width: 1.5;
            stroke: currentColor;
            fill: none;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .front-topbar {
                font-size: 0.74rem;
            }
            .front-topbar-inner {
                display: grid !important;
                grid-template-columns: 1fr;
                align-items: stretch !important;
                gap: 0.55rem !important;
            }
            .front-topbar-info {
                display: flex !important;
                gap: 0.5rem !important;
                overflow-x: auto;
                overscroll-behavior-inline: contain;
                scrollbar-width: none;
                padding-bottom: 0.1rem;
                width: 100%;
            }
            .front-topbar-info::-webkit-scrollbar {
                display: none;
            }
            .front-topbar-item {
                flex: 0 0 auto;
                max-width: min(78vw, 280px);
                padding: 0.28rem 0.55rem;
                border: 1px solid rgba(255,255,255,0.08);
                border-radius: 999px;
                background: rgba(255,255,255,0.04);
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .front-topbar-rates {
                max-width: 100%;
                flex: 1 1 100%;
                padding: 0.2rem 0.45rem;
            }
            .front-topbar-rates .front-rate-chip {
                padding: 0.1rem 0.38rem;
                font-size: 0.68rem;
            }
            .front-topbar-item span:last-child {
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .front-topbar .icon-svg {
                width: 16px;
                height: 16px;
                flex: 0 0 auto;
            }
            .front-topbar-actions {
                justify-content: space-between;
                gap: 0.5rem !important;
                width: 100%;
            }
            .front-topbar-action,
            .front-topbar-actions form {
                flex: 1 1 0;
                min-width: 0;
            }
            .front-topbar-action,
            .front-logout-link {
                min-height: 34px;
                justify-content: center;
                border: 1px solid rgba(255,255,255,0.1);
                border-radius: 999px;
                background: rgba(255,255,255,0.05);
                padding: 0.35rem 0.6rem;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .front-topbar-partner {
                border-color: rgba(94, 234, 212, 0.35);
                background: rgba(10, 179, 156, 0.15);
            }
            .front-logout-link {
                display: inline-flex;
                align-items: center;
                width: 100%;
            }
            .front-navbar .nav-link {
                padding: 0.5rem;
            }
            .navbar-brand {
                font-size: 1.25rem;
            }
        }

/* ============================================================
   Mobile App-like Experience
   ============================================================ */

.text-brand {
    color: var(--brand) !important;
}

.bg-primary-light { background: var(--brand-light); }
.bg-success-light { background: #d1fae5; }
.bg-info-light { background: #dbeafe; }
.bg-warning-light { background: #fef3c7; }
.bg-danger-light { background: #fee2e2; }

/* Mobile Header */
.mobile-header {
    z-index: 1030;
}

/* ── Home: Blue hero header ── */
.mobile-header-home {
    background: linear-gradient(145deg, #0A58CA 0%, #0947A8 55%, #0D7CFF 100%);
    border-radius: 0 0 28px 28px;
    padding: calc(10px + env(safe-area-inset-top, 0)) 0 28px;
    border: none;
    box-shadow: 0 10px 30px rgba(10, 88, 202, 0.28);
    margin-bottom: 8px;
}
.mobile-header-home-top {
    padding: 8px 0 16px;
}
.mobile-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.mobile-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobile-location-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 8px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.mobile-location-label {
    font-size: 11px;
    opacity: 0.82;
    line-height: 1.2;
}
.mobile-location-value {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-location-picker i {
    font-size: 16px;
    opacity: 0.9;
}
.mobile-notify-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 22px;
    transition: background 0.2s;
}
.mobile-notify-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.mobile-notify-dot {
    position: absolute;
    top: 10px;
    inset-inline-end: 11px;
    width: 9px;
    height: 9px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0A58CA;
}

/* Search card overlapping header */
.mobile-search-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px 16px 16px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
    margin-bottom: -36px;
    position: relative;
    z-index: 2;
}
.mobile-search-card-title {
    color: var(--gray-900);
    font-size: 15px;
}
.mobile-search-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.mobile-search-field i {
    font-size: 18px;
    color: var(--brand);
    flex-shrink: 0;
}
.mobile-search-field:hover {
    border-color: var(--brand-light);
    background: var(--brand-soft);
    color: var(--gray-700);
}
.mobile-search-submit {
    min-height: 50px !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(10, 88, 202, 0.3);
}
.mobile-header-home .quick-actions-swiper {
    overflow: hidden;
    margin-inline: -2px;
}
.mobile-header-home .quick-actions {
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
        padding: 33px 15px 0;
}
.mobile-header-home .quick-actions .swiper-slide {
    width: 25% !important;
}
.mobile-header-home .quick-action-item {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}
.mobile-header-home .icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.mobile-header-home .quick-action-item span {
    line-height: 1.35;
    font-size: 11px;
    white-space: nowrap;
}

/* ── Overlay: floating on hero image ── */
.mobile-header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border: none;
    padding: calc(10px + env(safe-area-inset-top, 0)) 0 0;
    pointer-events: none;
    z-index: 1050;
    transition: background 0.3s, box-shadow 0.3s;
}
.mobile-header-overlay.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding-bottom: 8px;
}
.mobile-header-overlay.is-scrolled .mobile-float-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.mobile-float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    pointer-events: auto;
}
.mobile-float-btn:hover {
    transform: scale(1.04);
    color: var(--brand);
}
.mobile-float-btn i {
    font-size: 20px;
}
.mobile-fav-btn.is-active {
    color: #ef4444;
}

.search-bar-mobile {
    border: 1px solid var(--gray-200);
}

/* ── Default inner page header ── */
.mobile-header-inner {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.mobile-header-inner .mobile-page-title {
    flex: 1;
    text-align: center;
    max-width: calc(100% - 104px);
    font-size: 15px;
}
.mobile-header-inner .mobile-float-btn {
    box-shadow: none;
    background: var(--gray-100);
}

.mobile-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--gray-700);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s;
}
.mobile-icon-btn:hover,
.mobile-icon-btn:focus {
    background: var(--gray-100);
    color: var(--brand);
}
.mobile-logo img {
    height: 28px;
    width: auto;
}

/* Cart Badge (Mobile) */
.cart-badge,
.mobile-cart-badge {
    position: absolute;
    top: -4px;
    inset-inline-start: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    line-height: 1;
}

/* Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--gray-200);
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 10px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.2s;
    min-width: 52px;
    position: relative;
}
.mobile-bottom-nav .bottom-nav-item.active {
    color: var(--brand);
}
.mobile-bottom-nav .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
}
.mobile-bottom-nav .bottom-nav-item svg {
    stroke: currentColor;
}

/* Mobile Search & Quick Actions */
.mobile-search-section {
    padding: 12px 0 4px;
    background: var(--gray-50);
}
.search-bar-mobile .mobile-search-input {
    outline: none;
    font-size: 14px;
    background: transparent;
}
.quick-actions {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.quick-actions::-webkit-scrollbar {
    display: none;
}
.quick-action-item .icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Horizontal Scroll Utility */
.horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* FAB Buttons */
.fab-support,
.fab-scroll-top {
    position: fixed;
    border-radius: 50%;
    border: none;
    z-index: 1035;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.fab-support {
    bottom: calc(90px + env(safe-area-inset-bottom, 0));
    inset-inline-end: 16px;
    width: 56px;
    height: 56px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 20px rgba(10, 88, 202, 0.35);
    text-decoration: none;
    font-size: 24px;
}
.fab-support:hover {
    color: #fff;
    transform: scale(1.05);
}
.fab-scroll-top {
    bottom: calc(160px + env(safe-area-inset-bottom, 0));
    inset-inline-end: 16px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 20px;
}
.fab-scroll-top:not([hidden]) {
    display: flex;
}

/* Mobile Menu Offcanvas */
.mobile-menu-offcanvas {
    max-width: 300px;
}
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--brand-light);
    color: var(--brand);
}
.mobile-menu-link--partner {
    background: linear-gradient(135deg, rgba(10, 179, 156, 0.12), rgba(11, 94, 215, 0.1));
    color: #089a86;
    font-weight: 600;
    border: 1px solid rgba(10, 179, 156, 0.2);
}
.mobile-menu-link--partner:hover,
.mobile-menu-link--partner.active {
    background: linear-gradient(135deg, rgba(10, 179, 156, 0.2), rgba(11, 94, 215, 0.15));
    color: #067a6a;
}
.mobile-menu-list li + li {
    margin-top: 4px;
}

/* Bottom Sheet Filter */
.filter-bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 1055;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.filter-bottom-sheet.open {
    bottom: 0;
}
.filter-bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.filter-bottom-sheet-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 4px;
    margin-top: 12px;
}

/* Step Progress */
.step-progress-mobile .step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-500);
    transition: all 0.3s;
    flex-shrink: 0;
}
.step-progress-mobile .step-circle.active {
    background: var(--brand);
    color: #fff;
}
.step-progress-mobile .step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 4px;
}
.step-progress-mobile .step-line.active {
    background: var(--brand);
}
.step-progress-mobile .step-label {
    font-size: 11px;
    color: var(--gray-500);
    text-align: center;
    flex: 1;
}
.step-progress-mobile .step-label.active {
    color: var(--brand);
    font-weight: 600;
}

/* Skeleton Loader */
.skeleton-image {
    height: 140px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-line {
    height: 14px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 6px;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Pull-to-Refresh Indicator */
.refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* Page Animations */
.page-enter {
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card-enter {
    animation: fadeInUp 0.4s ease both;
}
.card-enter:nth-child(1) { animation-delay: 0.05s; }
.card-enter:nth-child(2) { animation-delay: 0.1s; }
.card-enter:nth-child(3) { animation-delay: 0.15s; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark Mode */
[data-bs-theme="dark"] .mobile-header,
[data-bs-theme="dark"] .mobile-bottom-nav,
[data-bs-theme="dark"] .filter-bottom-sheet,
[data-bs-theme="dark"] .mobile-menu-offcanvas {
    background: #1a1f2c;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .mobile-bottom-nav {
    background: rgba(26, 31, 44, 0.96);
}
[data-bs-theme="dark"] .search-bar-mobile {
    background: #212529 !important;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .fab-scroll-top {
    background: #212529;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

@media (max-width: 991.98px) {
    .front-topbar {
        display: none;
    }

    .front-layout-body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0));
    }

    /* Home: space for overlapping search card */
    .mobile-header-mode-home main {
        padding-top: 28px;
    }
    .mobile-header-mode-home .hero-section,
    .mobile-header-mode-home .home-search-shell {
        display: none !important;
    }

    /* Overlay detail pages: hero-style gallery */
    .mobile-header-mode-overlay .breadcrumb-section,
    .mobile-header-mode-overlay .hotel-header,
    .mobile-header-mode-overlay .tour-header {
        display: none !important;
    }
    .mobile-header-mode-overlay .gallery-section,
    .mobile-header-mode-overlay .product-gallery {
        margin-top: 0;
    }
    .mobile-header-mode-overlay .gallery-section .container,
    .mobile-header-mode-overlay .product-gallery {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    .mobile-header-mode-overlay .gallery-section .col-md-8,
    .mobile-header-mode-overlay .gallery-section .col-md-4,
    .mobile-header-mode-overlay .gallery-section .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .mobile-header-mode-overlay .gallery-section .col-md-4 .row {
        display: none;
    }
    .mobile-header-mode-overlay .gallery-section img,
    .mobile-header-mode-overlay .product-gallery #mainProductImage {
        border-radius: 0 !important;
        height: 340px !important;
        width: 100%;
    }
    .mobile-header-mode-overlay .product-detail {
        padding-top: 0 !important;
    }
    .mobile-header-mode-overlay .product-detail > .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    .mobile-header-mode-overlay .product-detail .col-md-5 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
        order: -1;
    }
    .mobile-header-mode-overlay .product-detail .col-md-7 {
        padding-left: 16px;
        padding-right: 16px;
    }
    .mobile-header-mode-overlay .product-detail .main-image {
        margin-bottom: 0 !important;
    }
    .mobile-header-mode-overlay .product-detail .thumbnail-list {
        display: none;
    }
    .mobile-header-mode-overlay main > .breadcrumb-section + section + .gallery-section,
    .mobile-header-mode-overlay main > .breadcrumb-section + .gallery-section {
        margin-top: 0;
    }

    .footer {
        margin-bottom: 0;
    }

    .footer-back-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0));
    }

    /* Touch-friendly inputs */
    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px;
        border-radius: 12px;
    }
    .btn {
        min-height: 48px;
        border-radius: 12px;
        font-weight: 600;
    }
    .btn-lg {
        min-height: 54px;
        font-size: 16px;
    }
    .form-check-input {
        width: 22px;
        height: 22px;
        margin-top: 6px;
    }

    /* Reduced spacing */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .section-header {
        margin-bottom: 16px !important;
    }
    .card-body {
        padding: 16px !important;
    }
    .py-5 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .gap-4 {
        gap: 12px !important;
    }

    /* Full-screen modals on mobile */
    .modal-fullscreen-sm-down .modal-content {
        border-radius: 0;
    }
    .modal-fullscreen-sm-down .modal-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    }
}
