.custom-select-wrapper {
    position: relative;
    width: 280px;
    flex-grow: 1;
    max-width: 100%;
}

.border-t {
    border-bottom: 2px dashed #e5e7eb;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-grow {
    flex-grow: 1;
}

a {
    display: flex;
    align-items: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

/* استایل‌های سفارشی */
.header-row {
    min-height: 60px;
}

.search-input {
    width: 100%;
}

/* استایل‌های اسلایدشو */
.slider-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-item {
    height: 400px;
    background-color: #f0f0f0;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.slider-controls-custom .btn {
    width: 150px;
}

/* استایل‌های محصولات */
.product-card {
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}
.discount-badge-product-detail {
    top: 10px;
    right: 10px;
    font-size: large;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

.normal-price {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
}

/* استایل فوتر */
.footer-section {
    background-color: #343a40;
    color: white;
    padding: 40px 0 20px 0;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

/*-----------------------------------Common----------------------*/
.auth-container {
    max-width: 450px;
    margin-top: 50px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* نمایش کاربر در بالا */
.user-status {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 9999;
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    display: none;
}

.user-status.show {
    display: block;
}

/*********top search **/
/* Main container for the search form */
.home-search-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 1500px;
}

/* Top row of buttons (tabs) */
.home-search-filter-buttons {
    display: flex;
    justify-content: flex-start; /* This aligns tabs to the right side */
    gap: 10px;
    margin-bottom: 25px;
    direction: rtl; /* Ensure the order is from right to left */
}

.home-search-filter-button {
    padding: 10px 25px;
    background-color: #f0f2f5;
    color: #555;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.home-search-filter-button:hover {
    background-color: #e0e2e5;
}

.home-search-filter-button.active {
    background-color: #2c3e50; /* A dark, distinct color */
    color: #ffffff;
}

/* Bottom row of search inputs and buttons */
.home-search-row {
    display: flex;
    gap: 10px;
    direction: rtl; /* Align search inputs from right to left */
}

.home-search-input-group {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.home-search-input-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #f0f2f5;
    border: 1px solid #e0e2e5;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #555;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Custom arrow for the select dropdown */
.home-search-input-group::after {
    content: '⌄';
    position: absolute;
    left: 15px; /* The arrow is now on the left side of the input */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #777;
}

.home-search-input-group select:focus {
    outline: none;
    border-color: #007bff;
}

/* Main search and filter buttons */
.home-search-main-buttons {
    display: flex;
    gap: 10px;
    direction: ltr; /* Reset direction for the buttons to be on the left */
}

.home-search-button, .home-search-filter-icon-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.home-search-button {
    background-color: #2c3e50;
    color: #ffffff;
    flex-grow: 1;
}

.home-search-button:hover {
    background-color: #3b5064;
}

.home-search-filter-icon-button {
    background-color: #e0e2e5;
    color: #555;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.home-search-filter-icon-button:hover {
    background-color: #d0d2d5;
}

/* تنظیمات برای موبایل */
@media (max-width: 768px) {
    .home-search-row {
        flex-direction: column; /* چیدمان عمودی در موبایل */
        align-items: stretch; /* کشیده شدن عناصر به عرض کامل */
    }

    .home-page-circular-img {
        border-radius: 50%;
        width: 130px;
        height: 130px;
        object-fit: cover;
    }

    .home-search-input-group {
        min-width: 100%; /* عرض کامل در موبایل */
    }

    .home-search-main-buttons {
        justify-content: center; /* وسط‌چین کردن دکمه‌ها */
    }

    /* Top row of buttons (tabs) */
    .home-search-filter-buttons {
        display: flex;
        justify-content: flex-start; /* This aligns tabs to the right side */
        gap: 5px;
        margin-bottom: 25px;
        direction: rtl; /* Ensure the order is from right to left */
    }

    .home-search-filter-button {
        padding: 10px 23px;
        background-color: #f0f2f5;
        color: #555;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s ease;
    }
}