﻿        #page-loading-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--color-primary), var(--color-primary-400), var(--color-primary));
            background-size: 200% 100%;
            z-index: 9999;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        #page-loading-bar.loading {
            transform: scaleX(0.7);
            animation: loadingProgress 2s ease-in-out;
        }

        #page-loading-bar.complete {
            transform: scaleX(1);
            transition: transform 0.5s ease;
        }

        .diara-mobile-search-shell {
            position: relative;
            z-index: 80;
            overflow: visible;
        }

        .diara-mobile-header-search {
            position: relative;
            z-index: 81;
            overflow: visible;
        }

        .diara-mobile-header-search [data-search-root] {
            position: relative;
            display: flex;
            align-items: stretch;
            overflow: visible;
        }

        .diara-mobile-header-search .diara-mobile-menu-button {
            display: flex;
            flex: 0 0 3rem;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3rem;
        }

        .diara-mobile-header-search #searchInputHeaderMobile {
            padding-inline-end: 3.25rem;
        }

        .diara-mobile-header-search #voiceSearchBtnHeaderMobile.diara-voice-search-btn {
            position: absolute !important;
            top: 0 !important;
            bottom: 0 !important;
            inset-inline-end: 0.375rem !important;
            margin-block: auto !important;
            transform: none !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 2.25rem !important;
            height: 2.25rem !important;
            padding: 0 !important;
        }

        .diara-mobile-header-search #voiceSearchBtnHeaderMobile.diara-voice-search-btn svg {
            display: block;
            width: 1.25rem;
            height: 1.25rem;
        }

        .diara-mobile-header-search-results {
            z-index: 10050;
            max-height: min(420px, calc(100vh - 96px));
            -webkit-overflow-scrolling: touch;
            touch-action: manipulation;
        }

        .diara-mobile-header-search-results.is-fixed-dropdown {
            position: fixed !important;
            inset-inline: auto !important;
            width: auto !important;
            pointer-events: auto;
        }

        #searchResultsMobile:not(.hidden) {
            display: block;
        }

        .diara-home-cart-stepper-wrap {
            pointer-events: auto;
            position: relative;
            z-index: 20;
            margin-top: 0.5rem;
            display: flex;
            justify-content: flex-end;
            width: 100%;
        }

        .diara-home-cart-stepper {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            padding: 2px;
            border-radius: 999px;
            background: #fff;
            border: 1px solid #e5e7eb;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
        }

        .dark .diara-home-cart-stepper {
            background: #151d27;
            border-color: #374151;
        }

        .diara-home-cart-stepper button {
            display: flex;
            width: 28px;
            height: 28px;
            align-items: center;
            justify-content: center;
            border: none;
            border-radius: 999px;
            background: var(--color-primary);
            color: #fff;
            font-size: 18px;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
        }

        .diara-home-cart-stepper button:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .diara-home-cart-stepper button[aria-busy="true"],
        .diara-home-cart-add-btn[aria-busy="true"] {
            opacity: 0.85;
            cursor: wait;
        }

        .diara-home-cart-spinner {
            width: 16px;
            height: 16px;
            animation: diara-home-cart-spin 0.75s linear infinite;
        }

        @keyframes diara-home-cart-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .diara-home-cart-stepper span {
            min-width: 22px;
            text-align: center;
            font-size: 12px;
            font-weight: 800;
            color: #111827;
        }

        .dark .diara-home-cart-stepper span {
            color: #f3f4f6;
        }

        .diara-home-cart-add-btn {
            display: flex;
            width: 32px;
            height: 32px;
            align-items: center;
            justify-content: center;
            border: none;
            border-radius: 999px;
            background: var(--color-primary);
            color: #fff;
            font-size: 20px;
            font-weight: 700;
            line-height: 1;
            box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
            cursor: pointer;
        }

        @keyframes loadingProgress {
            0% {
                transform: scaleX(0);
            }
            50% {
                transform: scaleX(0.5);
                background-position: 100% 0;
            }
            100% {
                transform: scaleX(0.9);
                background-position: 200% 0;
            }
        }

        /* فاصله پایین صفحه در موبایل تا محتوا زیر منوی ثابت پایین نرود */
        @media (max-width: 1023px) {
            .diara-footer-copyright {
                /* padding-bottom برای فاصله از منوی ثابت پایین (ارتفاع nav ~90px + دکمه وسط ~35px) */
                padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
            }

            .diara-mobile-bottom-nav {
                padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
                overflow: visible;
            }

            .diara-mobile-bottom-nav__inner {
                gap: 2px;
                min-height: 4.75rem;
            }

            .diara-mobile-bottom-nav__item,
            .diara-mobile-bottom-nav__center {
                max-width: 20%;
            }

            .diara-mobile-bottom-nav__label {
                display: block;
                width: 100%;
                max-width: 100%;
                overflow: visible;
                white-space: normal;
                word-break: keep-all;
                line-height: 1.25;
                padding-bottom: 2px;
            }

            .diara-mobile-bottom-nav__center-btn svg {
                width: 28px;
                height: 28px;
            }

            .floating-contact-widget.position-bottom-right,
            .floating-contact-widget.position-bottom-left {
                bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
            }
        }

        html[dir="rtl"] #offcanvas-right.diara-offcanvas-right:not(.visible) {
            transform: translateX(100%);
        }

        html[dir="rtl"] #offcanvas-right.diara-offcanvas-right.visible {
            transform: translateX(0);
        }

        #offcanvas-right.diara-offcanvas-right {
            max-width: min(100vw, 24rem);
        }

#announcement-bar .announcement-today-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65em;
}

/* Trust badges / Enamad: unify visual size */
.diara-trust-badge {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.diara-trust-badge img,
.diara-trust-badge svg {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    display: block;
}

.diara-trust-badge iframe {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
}
