﻿:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --light-blue: #dbeafe;
    --text-light: #f9f9ff;
    --text-gray: #bfdbfe;
    --bg-light: #f0f9ff;
    --shadow-blue: rgba(30, 58, 138, 0.15);
}

.sublist--title > a {
    position: relative;
    padding-right: 12px;
}

    .sublist--title > a::before {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 18px;
        background-color: var(--primary-blue);
        border-radius: 2px;
    }

/************************** Modern-Footer *******************************/
.modern-footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-light);
    padding: 40px 25px 25px;
    text-align: center;
    font-family: "IRANSans", sans-serif;
    position: relative;
    overflow: hidden;
}

/* Logo */
.footer-logo img {
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

/* Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

    .footer-menu li a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        letter-spacing: 0.3px;
        position: relative;
        transition: color 0.3s, transform 0.2s;
    }

        .footer-menu li a::after {
            content: "";
            position: absolute;
            width: 0;
            height: 2px;
            background: var(--accent-blue);
            left: 50%;
            bottom: -6px;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .footer-menu li a:hover {
            color: var(--light-blue);
            transform: translateY(-2px);
        }

            .footer-menu li a:hover::after {
                width: 100%;
            }

/* Social */
.footer-social {
    margin: 20px 0;
}

    .footer-social a {
        color: #fff;
        margin: 0 12px;
        font-size: 22px;
        transition: color 0.3s, transform 0.3s;
        display: inline-block;
    }

        .footer-social a:hover {
            color: var(--accent-blue);
            transform: scale(1.2);
        }

/* Divider */
.footer-divider {
    height: 1px;
    width: 80px;
    margin: 20px auto;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
}

/* Text */
.footer-text {
    font-size: 14px;
    color: #e4e4e4;
    margin: 15px auto 20px;
    max-width: 850px;
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* Enamad */
.trust-seal img {
    margin: 15px auto;
    display: block;
}

/* CopyRight */
.footer-copy {
    font-size: 13px;
    color: #d0d0d0;
    margin-top: 20px;
    line-height: 1.7;
}

    .footer-copy a {
        color: #f89d36;
        text-decoration: none;
        font-weight: 600;
    }

        .footer-copy a:hover {
            color: #ffc107;
        }

/* Responsive */
@media (max-width: 768px) {
    .modern-footer {
        padding: 30px 15px 20px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .footer-text {
        font-size: 13px;
        padding: 0 10px;
        line-height: 1.7;
    }

    .footer-social a {
        margin: 0 8px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .modern-footer {
        padding: 25px 10px 15px;
    }

    .footer-logo img {
        height: 70px;
        margin-bottom: 10px;
    }
}

/***************************************************/
/* استایل پایه برای اسلایدر */
.noUi-target {
    background: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: none;
    height: 6px;
}

.noUi-connect {
    background: var(--primary-blue);
}

.noUi-handle {
    width: 18px;
    height: 18px;
    top: -7px;
    right: -9px;
    border-radius: 50%;
    background: var(--primary-blue);
    box-shadow: none;
    border: 2px solid white;
}

    .noUi-handle:before, .noUi-handle:after {
        display: none;
    }

#slider-non-linear-step-value {
    font-weight: bold;
    color: var(--primary-blue);
}

@media (max-width: 576px) {
    .px-res-0 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* ================== Search (Desktop) ================== */
.search-area {
    position: relative;
    margin: 0 auto;
    max-width: 600px;
}

    .search-area .search {
        position: relative;
    }

        .search-area .search input {
            width: 100%;
            height: 44px;
            border-radius: 8px;
            padding: 0 40px 0 15px;
            border: 1px solid #ddd;
            font-size: 14px;
            transition: all 0.3s ease;
        }

            .search-area .search input:focus {
                border-color: var(--primary-blue);
                box-shadow: 0 0 6px var(--shadow-blue);
                outline: none;
            }

    .search-area .search-icon,
    .search-area .close-search-result {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #757575;
        font-size: 16px;
    }

    .search-area .search-icon {
        left: 15px;
    }

    .search-area .close-search-result {
        left: 40px;
        background: none;
        border: none;
        cursor: pointer;
        display: none;
    }

    /* Dropdown Results */
    .search-area .search-result {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;
        max-height: 400px;
        overflow-y: auto;
    }

        .search-area .search-result ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .search-area .search-result li {
            padding: 10px 15px;
            border-bottom: 1px solid #f5f5f5;
            transition: background 0.3s ease;
        }

            .search-area .search-result li a {
                color: #212121;
                text-decoration: none;
                display: block;
                font-size: 14px;
            }

            .search-area .search-result li:hover {
                background: #f9f9f9;
            }

                .search-area .search-result li:hover a {
                    color: var(--primary-blue);
                }

/* ================== Search Suggestions ================== */
.search-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.3s ease;
}

    .search-suggestion-item a {
        color: #212121;
        text-decoration: none;
        display: block;
    }

    .search-suggestion-item:hover {
        background: #f5f5f5;
        cursor: pointer;
    }

        .search-suggestion-item:hover a {
            color: var(--primary-blue);
        }

    .search-suggestion-item.no-result {
        color: #757575;
        text-align: center;
        cursor: default;
        background: transparent !important;
    }

/* ================== Search (Mobile) ================== */
.search-box-side-menu {
    padding: 0 15px;
    position: relative;
}

    .search-box-side-menu form {
        position: relative;
    }

    .search-box-side-menu input {
        width: 100%;
        height: 44px;
        border-radius: 8px;
        padding: 0 40px 0 15px;
        border: 1px solid #ddd;
        font-size: 14px;
        background-color: #f9f9f9;
        transition: all 0.3s ease;
    }

        .search-box-side-menu input:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 6px var(--shadow-blue);
            outline: none;
        }

    .search-box-side-menu .search-icon-mobile,
    .search-box-side-menu .close-search-result-mobile {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #757575;
        font-size: 18px;
    }

    .search-box-side-menu .search-icon-mobile {
        left: 15px;
    }

    .search-box-side-menu .close-search-result-mobile {
        right: 15px;
        background: none;
        border: none;
        cursor: pointer;
        display: none;
    }

    .search-box-side-menu .search-result-mobile {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;
        max-height: 300px;
        overflow-y: auto;
        margin-top: 5px;
    }

        .search-box-side-menu .search-result-mobile ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .search-box-side-menu .search-result-mobile li {
            padding: 10px 15px;
            border-bottom: 1px solid #f5f5f5;
            transition: background 0.3s ease;
        }

            .search-box-side-menu .search-result-mobile li a {
                color: #212121;
                text-decoration: none;
                display: block;
                font-size: 14px;
            }

            .search-box-side-menu .search-result-mobile li:hover {
                background: #f9f9f9;
            }

                .search-box-side-menu .search-result-mobile li:hover a {
                    color: var(--primary-blue);
                }

/* ================== Mobile Search Items ================== */
.mobile-search-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.mobile-search-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    margin-left: 10px;
}

.mobile-search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-search-title {
    font-size: 13px;
    color: #212121;
    margin-bottom: 3px;
    text-align: right;
}

.mobile-search-price {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: bold;
    text-align: right;
}

/* ================== Responsive ================== */
@media (max-width: 768px) {
    .search-area {
        margin-bottom: 15px;
    }

        .search-area .search input {
            height: 40px;
            font-size: 13px;
        }
}

@media (min-width: 768px) {
    .search-box-side-menu {
        display: none; /* فقط روی موبایل نمایش داده شود */
    }
}

/******************************************************************************/
.checkout-pack {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.checkout-time-table {
    width: 100%;
    max-width: 100%;
}

.radio-box {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.custom-control-label {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    cursor: pointer;
    word-wrap: break-word;
}

    .custom-control-label img.checkout-additional-options-checkbox-image {
        width: 42px;
        height: 42px;
        margin-left: 10px;
        flex-shrink: 0;
    }

.content-box {
    flex: 1;
    min-width: 0;
}

.checkout-time-table-title-bar {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}

.checkout-time-table-subtitle-bar li {
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
}

/* ریسپانسیو ویژه موبایل */
@media (max-width: 576px) {
    .custom-control-label {
        flex-direction: column;
        align-items: flex-start;
    }

        .custom-control-label img.checkout-additional-options-checkbox-image {
            margin: 0 0 6px 0;
            width: 36px;
            height: 36px;
        }

    .checkout-time-table-title-bar {
        font-size: 0.9rem;
    }

    .checkout-time-table-subtitle-bar li {
        font-size: 0.82rem;
    }
}

@media (max-width: 576px) {
    .checkout-time-table-title-bar {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/**************************/

/* ریسپانسیو کردن بخش آدرس */
@media (max-width: 576px) {
    .address-section {
        width: 100%;
        overflow-x: hidden;
    }

    .checkout-contact.dt-sn--box {
        margin: 0;
        border-radius: 0;
    }

    .checkout-contact-items {
        padding: 10px;
    }

    .checkout-contact-item {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.5;
    }

    .checkout-contact-item-mobile {
        display: block;
        margin-bottom: 8px;
    }

    .checkout-contact-item-message {
        display: block;
        margin-bottom: 8px;
    }

    .checkout-contact-location {
        display: block;
        text-align: center;
        padding: 12px;
        margin: 10px 0;
        width: 100%;
    }
    /* بخش لیست آدرس‌ها */
    .checkout-address-row {
        display: block;
        margin: 0;
    }

    .checkout-address-col {
        width: 100%;
        margin-bottom: 15px;
        padding: 0;
    }

    .checkout-address-box {
        width: 100%;
        margin: 0 0 15px 0;
        padding: 15px;
    }

    .checkout-address-title {
        font-size: 14px;
    }

    .checkout-address-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .checkout-address-contact-info {
        font-size: 11px;
    }

    .checkout-address-btn-submit {
        font-size: 12px;
        padding: 8px;
    }
}

/* برای تبلت */
@media (min-width: 577px) and (max-width: 768px) {
    .checkout-address-col {
        flex: 0 0 50%;
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .checkout-address-box {
        padding: 15px 12px;
        margin-bottom: 15px;
        min-height: auto;
    }

    .checkout-address-text {
        margin-bottom: 12px;
        line-height: 1.5;
        display: block;
        max-height: none;
        overflow: visible;
    }

        .checkout-address-text span {
            display: block;
            white-space: normal;
            word-wrap: break-word;
        }

    .checkout-address-list {
        margin-bottom: 15px;
    }

    .checkout-address-contact-info {
        margin-bottom: 10px;
    }

        .checkout-address-contact-info li {
            margin-bottom: 6px;
            line-height: 1.4;
        }

    .checkout-address-btn-submit {
        margin-top: 10px;
        position: relative;
        bottom: auto;
    }
    /* تضمین فاصله مناسب */
    .checkout-address-box > *:last-child {
        margin-bottom: 0;
    }

    .checkout-address-box p {
        margin-bottom: 10px;
    }

    .checkout-address-box ul {
        margin-bottom: 12px;
    }
}

.radio-box.disabled {
    opacity: 0.6;
    pointer-events: none;
}
/********************************************************/

.checkout-pack {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.checkout-time-table {
    width: 100%;
    max-width: 100%;
}

.radio-box {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.custom-control-label {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    cursor: pointer;
    word-wrap: break-word;
}

    .custom-control-label i {
        font-size: 1.8rem;
        margin-left: 10px;
        flex-shrink: 0;
        color: var(--primary-blue);
    }

.content-box {
    flex: 1;
    min-width: 0;
}

.checkout-time-table-title-bar {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}

.checkout-time-table-subtitle-bar li {
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
}

/* ریسپانسیو ویژه موبایل */
@media (max-width: 576px) {
    .custom-control-label {
        flex-direction: column;
        align-items: flex-start;
    }

        .custom-control-label i {
            margin: 0 0 6px 0;
        }

    .checkout-time-table-title-bar {
        font-size: 0.9rem;
    }
}
/*************************************************/

.sticky-sidebar {
    transition: all 0.3s ease;
}

    /* برای حالت fixed */
    .sticky-sidebar[style*="position: fixed"] {
        border-radius: 8px;
        max-height: calc(100vh - 120px); /* محدودیت ارتفاع */
        overflow-y: auto;
    }
