/* ===================== Font Face ===================== */
@font-face {
    font-family: 'PeydaWeb';
    src: url('../fonts/PeydaWeb-Regular.woff2') format('woff2'),
        url('../fonts/PeydaWeb-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PeydaWeb';
    src: url('../fonts/PeydaWeb-Bold.woff2') format('woff2'),
        url('../fonts/PeydaWeb-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'PeydaWeb';
    src: url('../fonts/PeydaWeb-Black.woff2') format('woff2'),
        url('../fonts/PeydaWeb-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-Regular.woff2') format('woff2'),
        url('../fonts/IRANSansX-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-Light.woff2') format('woff2'),
        url('../fonts/IRANSansX-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-Medium.woff2') format('woff2'),
        url('../fonts/IRANSansX-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-DemiBold.woff2') format('woff2'),
        url('../fonts/IRANSansX-DemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansX-Bold.woff2') format('woff2'),
        url('../fonts/IRANSansX-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* ===================== Theme Variables ===================== */
:root {
    --color-primary: #8B2E2E;
    --color-primary-light: #c49a9a;
    --color-secondary: #D94A4A;
    --color-accent: #f59e0b;

    --font-heading: 'PeydaWeb', sans-serif;
    --font-body: 'IRANSansX', sans-serif;

    --transition: 0.3s ease;
}

body.light-theme {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-surface: #eef0f2;
    --text-primary: #2c3e50;
    --text-secondary: #5a6b7c;
    --text-muted: #8898a5;
}

body.dark-theme {
    --bg-body: #24272e;
    --bg-card: #2f333b;
    --bg-surface: #373b44;
    --text-primary: #eae0d5;
    --text-secondary: #a0a8b8;
    --text-muted: #7a8798;
}

/* ===================== Global ===================== */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    padding-top: 80px;
    padding-bottom: 95px;
    transition: background-color var(--transition), color var(--transition);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h2 {
        font-size: 1.5rem;
    }

    body {
        padding-top: 70px;
        padding-bottom: 85px;
    }
}

/* ===================== Header (شیشه‌ای مثل فوتر) ===================== */
.header {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 1040;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(212, 74, 74, 0.25);
    transition: background-color var(--transition);
}

body.dark-theme .header {
    background-color: rgba(18, 20, 24, 0.7);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
}

.header-logo img {
    height: 36px;
}

.header-search {
    flex: 1;
    max-width: 600px;
    /* عرض بیشتر در دسکتاپ */
    margin: 0 1.5rem;
    position: relative;
}

@media (max-width: 768px) {
    .header-search {
        max-width: 280px;
    }
}

.header-search input {
    width: 100%;
    border-radius: 50px;
    border: 1px solid var(--bg-surface);
    background-color: var(--bg-surface);
    padding: 0.6rem 2.8rem 0.6rem 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: border var(--transition), box-shadow var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(217, 74, 74, 0.25);
}

.header-search .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    filter: invert(57%) sepia(13%) saturate(509%) hue-rotate(161deg) brightness(92%) contrast(87%);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-login:hover {
    background-color: #0b8ec9;
}

.btn-login img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.user-profile-btn {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.user-profile-btn img {
    width: 20px;
    height: 20px;
    filter: invert(42%) sepia(87%) saturate(2040%) hue-rotate(169deg) brightness(98%) contrast(102%);
}

/* ===================== Footer (Floating, Glass) ===================== */
.footer-nav {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 1040;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(212, 74, 74, 0.2);
    padding: 0.5rem 0 0.5rem;
    transition: background-color var(--transition);
}

body.dark-theme .footer-nav {
    background-color: rgba(18, 20, 24, 0.7);
}

.footer-nav .nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8898a5;
    transition: all var(--transition);
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    position: relative;
}

body.dark-theme .footer-item {
    color: #7a8798;
}

.footer-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
}

.footer-item img {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    filter: invert(1) brightness(0.4);
    transition: filter var(--transition), transform var(--transition);
}

body.dark-theme .footer-item img {
    filter: brightness(0) invert(0.7);
}

.footer-item.active {
    color: var(--color-primary);
}



/* ===================== Floating Buttons (Desktop Only) ===================== */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    left: 20px;
    /* ← از right:20px به left تغییر کند */
    right: auto;
    z-index: 1050;
    flex-direction: column;
    gap: 10px;
    display: none;
}

@media (min-width: 992px) {
    .floating-buttons {
        display: flex;
    }
}

.floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--bg-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.floating-btn img {
    width: 20px;
    height: 20px;
    filter: invert(57%) sepia(13%) saturate(509%) hue-rotate(161deg) brightness(92%) contrast(87%);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ===================== Hero Slider ===================== */
#heroCarousel {
    width: 100%;
    margin-bottom: 2rem;
}

.carousel-item {
    height: 420px;
    background-color: var(--bg-surface);
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
}

/* ===================== Product Card ===================== */
.product-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-card-img-wrapper {
    position: relative;
    overflow: visible;
    border-radius: 16px 16px 0 0;
    height: 200px;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
    transform: none;
}

.product-wishlist {
    position: absolute;
    right: 14px;
    bottom: -18px;
    width: 36px;
    height: 36px;
    background-color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: none;
    z-index: 5;
    transition: background var(--transition), transform 0.2s;
}

.product-wishlist img {
    width: 18px;
    height: 18px;
    filter: invert(30%) sepia(61%) saturate(1720%) hue-rotate(335deg) brightness(96%) contrast(93%);
}

.product-wishlist:hover {
    transform: scale(1.1);
}

.product-wishlist.active {
    background-color: var(--color-secondary);
}

.product-wishlist.active img {
    filter: brightness(0) invert(1);
}

.product-card-body {
    padding: 2rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.product-category img {
    width: 16px;
    height: 16px;
    filter: invert(57%) sepia(13%) saturate(509%) hue-rotate(161deg) brightness(92%) contrast(87%);
}

.product-price-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price-discount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-light);
}

.product-discount-badge {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-add-to-cart {
    margin-top: 0.75rem;
    width: 100%;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.product-add-to-cart img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.product-add-to-cart:hover {
    background-color: #0b8ec9;
}

/* ===================== Product Grid Responsive ===================== */
.products-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    /* مخفی کردن نوار اسکرول */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.products-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* افکت محو در لبه‌ها برای نشان دادن قابلیت اسکرول */
.products-scroll-wrapper::before,
.products-scroll-wrapper::after {
    content: '';
    position: sticky;
    top: 0;
    width: 20px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.products-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
    margin-right: -20px;
}

.products-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
    margin-left: -20px;
}

.products-scroll-wrapper>.col-card {
    flex: 0 0 auto;
    width: calc(50% - 0.5rem);
}

@media (min-width: 768px) {
    .products-scroll-wrapper>.col-card {
        width: calc(33.333% - 0.667rem);
    }
}

@media (min-width: 992px) {
    .products-scroll-wrapper {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .products-scroll-wrapper::before,
    .products-scroll-wrapper::after {
        display: none;
        /* افکت محو فقط در موبایل/تبلت */
    }

    .products-scroll-wrapper>.col-card {
        width: calc(25% - 0.75rem);
    }
}

/* ===================== Special Offer Section ===================== */
.special-offer {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
    color: #fff;
    overflow: hidden;
}

.special-offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.special-offer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.special-offer-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-offer-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* تایمر */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    direction: ltr;
    /* اعداد تایمر چپ به راست */
}

.timer-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    min-width: 2.5rem;
    text-align: center;
    color: #fff;
}

.timer-separator {
    color: rgba(255, 255, 255, 0.7);
}

/* اسکرول افقی کارت‌های کوچک */
.small-products-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* مخفی کردن نوار اسکرول */
    -ms-overflow-style: none;
}

.small-products-scroll::-webkit-scrollbar {
    display: none;
}

/* کارت کوچک */
.small-col-card {
    flex: 0 0 auto;
    width: 160px;
    /* عرض ثابت */
}

.small-product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    /* داخل کارت متن تیره */
}

body.dark-theme .small-product-card {
    background: rgba(28, 30, 35, 0.95);
    color: var(--text-primary);
}

.small-product-card:hover {
    transform: translateY(-4px);
}

.small-product-img-wrapper {
    height: 120px;
    overflow: hidden;
}

.small-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-product-body {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.small-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    color: inherit;
}

.small-product-price-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.small-price-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.small-product-price-original {
    color: #8898a5;
    text-decoration: line-through;
    font-size: 0.7rem;
}

.small-product-price-final {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.small-product-discount-badge {
    background: var(--color-secondary);
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* ===================== Scroll Buttons ===================== */
.scroll-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0.85;
}

body.dark-theme .scroll-btn {
    background: rgba(28, 30, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.05);
}

.scroll-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-btn img {
    width: 16px;
    height: 16px;
    filter: invert(30%);
}

body.dark-theme .scroll-btn img {
    filter: invert(70%);
}

.scroll-prev {
    left: -8px;
}

.scroll-next {
    right: -8px;
}

/* مخفی کردن دکمه‌ها در موبایل‌های خیلی کوچک (اختیاری) */
@media (max-width: 576px) {
    .scroll-btn {
        width: 30px;
        height: 30px;
    }

    .scroll-btn img {
        width: 14px;
        height: 14px;
    }
}

/* ===================== Section Header ===================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition);
}

.view-all-link:hover {
    opacity: 0.8;
}

.view-all-icon {
    width: 16px;
    height: 16px;
}

/* ===================== Category Card ===================== */
.category-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.category-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

/* Overlay ملایم برای خوانایی متن */
.category-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

.category-body {
    padding: 0.8rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* تنظیمات ریسپانسیو */
@media (max-width: 576px) {
    .category-title {
        font-size: 0.85rem;
    }
}

/* ===================== Cart Item (Line Card) ===================== */
.cart-item {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}

.cart-item:hover {
    transform: translateY(-2px);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-unit-price {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--bg-surface);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.cart-qty button:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.cart-qty span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: background var(--transition);
}

.cart-remove img {
    width: 20px;
    height: 20px;

}

.cart-remove:hover {
    background-color: rgba(255, 107, 157, 0.1);
}

/* ===================== Cart Summary ===================== */
.cart-summary {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-top: 1px solid var(--bg-surface);
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}

.cart-discount-code {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.cart-discount-code input {
    flex: 1;
    border-radius: 12px;
    border: 1px solid var(--bg-surface);
    background-color: var(--bg-surface);
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
}

.cart-discount-code button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* ===================== Cart Footer (Sticky Payment) ===================== */
.cart-footer {
    position: fixed;
    bottom: 85px;
    left: 10px;
    right: 10px;
    max-width: 1180px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*box-shadow: 0 -4px 20px rgba(14, 169, 237, 0.15);*/
    z-index: 1035;
}

body.dark-theme .cart-footer {
    background: rgba(28, 30, 35, 0.9);
}

.cart-footer-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.cart-footer-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity var(--transition);
}

.cart-footer-btn:hover {
    opacity: 0.9;
}

/* ===================== Empty State ===================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state img {
    width: 120px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 14px;
    padding: 0.7rem 2rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

/* ===================== Order History Item ===================== */
.order-item {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.order-item-details {
    flex: 1;
}

.order-id {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.order-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-status {
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-amount {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 1rem;
}

.order-detail-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ===================== Search Results ===================== */
.search-header {
    margin-bottom: 1.5rem;
}

.search-header h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
}

.search-header span {
    color: var(--text-muted);
}

/* بهبود نمایش کارت‌های محصول در نتایج جستجو */
.search-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-results-grid .col-card {
    width: calc(50% - 0.5rem);
}

@media (min-width: 768px) {
    .search-results-grid .col-card {
        width: calc(33.333% - 0.667rem);
    }
}

@media (min-width: 992px) {
    .search-results-grid .col-card {
        width: calc(25% - 0.75rem);
    }
}

.cart-footer-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb-link {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* دکمه برگشت */
.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.back-btn img {
    width: 16px;
    height: 16px;
    filter: invert(30%);
}

body.dark-theme .back-btn img {
    filter: invert(70%);
}

.back-btn:hover {
    background: var(--bg-card);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ===================== Shop Page ===================== */

/* ----- Hero Section ----- */
.shop-hero {
    background: linear-gradient(135deg, rgba(217, 74, 74, 0.1), rgba(217, 74, 74, 0.3));
    border-radius: 28px;
    padding: 2rem 2rem 2rem 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.shop-hero-text h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
}

.shop-hero-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.hero-illustration {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.hero-illustration img {
    width: 100%;
    height: auto;
}

.float-animation {
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ----- Colored Sections (Useful & Popular) ----- */
.useful-section {
    background-color: #f59e0b;
    /* آبی خیلی کمرنگ */
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.popular-section {
    background-color: #c49a9a;
    /* صورتی خیلی کمرنگ */
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

body.dark-theme .useful-section {
    background-color: rgba(245, 158, 11, 0.7);

}

body.dark-theme .popular-section {
    background-color: var(--color-primary-light);
}

.colored-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.colored-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* تنظیم فلش‌های اسکرول داخل این بخش‌ها */
.useful-section .scroll-btn,
.popular-section .scroll-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

/* ----- Fixed Filter Sidebar (Desktop) ----- */
.filter-sidebar-fixed {
    position: fixed;
    top: 80px;
    /* زیر هدر */
    bottom: 90px;
    /* بالای فوتر */
    right: 0;
    width: 230px;
    /* عرض سایدبار */
    overflow-y: auto;
    z-index: 1025;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px 0 0 24px;
    padding: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background var(--transition);
}

body.dark-theme .filter-sidebar-fixed {
    background: rgba(28, 30, 35, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

/* مخفی‌سازی کامل سایدبار در موبایل/تبلت */
@media (max-width: 991.98px) {
    .filter-sidebar-fixed {
        display: none;
    }
}

/* ----- Toggle Button برای باز/بسته کردن سایدبار ----- */
.sidebar-toggle-btn {
    position: fixed;
    top: 50%;
    right: 240px;
    /* کنار سایدبار باز */
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1026;
    transition: right 0.3s ease, background var(--transition);
}

.sidebar-toggle-btn img {
    width: 16px;
    height: 16px;
    filter: invert(30%);
    transition: transform 0.3s;
}

/* وضعیت بسته بودن سایدبار */
body.sidebar-closed .filter-sidebar-fixed {
    transform: translateX(230px);
}

body.sidebar-closed .sidebar-toggle-btn {
    right: 10px;
}

body.sidebar-closed .sidebar-toggle-btn img {
    transform: rotate(180deg);
}

/* ----- فاصلهٔ محتوای اصلی از سایدبار ----- */
.shop-content {
    padding-right: 0;
    transition: padding-right 0.3s ease;
}

@media (min-width: 992px) {
    .shop-content {
        padding-right: 270px;
        /* 230px سایدبار + 40px فاصله */
    }

    body.sidebar-closed .shop-content {
        padding-right: 0;
    }
}

/* ----- Product Grid Responsive ----- */
.products-scroll-wrapper>.col-card {
    flex: 0 0 auto;
    width: calc(50% - 0.5rem);
    /* موبایل: ۲ ستون */
}

@media (min-width: 768px) {
    .products-scroll-wrapper>.col-card {
        width: calc(33.333% - 0.667rem);
        /* تبلت/لپ‌تاپ: ۳ ستون */
    }
}

@media (min-width: 1200px) {
    .products-scroll-wrapper {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .products-scroll-wrapper>.col-card {
        width: calc(25% - 0.75rem);
        /* دسکتاپ بزرگ: ۴ ستون */
    }
}

/* ----- Filter Elements (مشترک بین سایدبار و آف‌کَنوس) ----- */
.filter-group {
    margin-bottom: 1.2rem;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: block;
}

.filter-select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238898a5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

body.dark-theme .filter-select {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25);
    /* سایهٔ قرمز */
}

.custom-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.custom-check input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}

.filter-range {
    width: 100%;
    accent-color: var(--color-primary);
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* دکمهٔ اعمال فیلتر (صورتی) */
.apply-btn {
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.7rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background var(--transition);
}

.apply-btn:hover {
    background: #e55a88;
}

/* هماهنگ‌سازی رنگ toggle switch */
.form-check-input:checked {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* ----- نوار ابزار موبایل ----- */
.mobile-toolbar {
    display: none;
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .mobile-toolbar {
        display: flex;
        gap: 0.5rem;
    }

    .mobile-toolbar .form-select {
        flex: 1;
        border-radius: 14px;
        font-family: var(--font-body);
    }

    .mobile-toolbar .btn-outline-primary {
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }
}

body.dark-theme .sidebar-toggle-btn {
    background: rgba(28, 30, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .sidebar-toggle-btn img {
    filter: invert(70%);
}

/* پس‌زمینهٔ چک‌باکس‌ها در حالت عادی برای تم دارک */
body.dark-theme .custom-check input[type="checkbox"] {
    background-color: var(--bg-surface);
    border-color: var(--text-muted);
}

/* سوییچ تخفیف – پس‌زمینهٔ خاموش در دارک */
body.dark-theme .form-check-input {
    background-color: var(--bg-surface);
    border-color: var(--text-muted);
}

/* وقتی سوییچ فعال است – از همان رنگ اصلی استفاده کن */
body.dark-theme .form-check-input:checked {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.filter-select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--bg-surface);
    background-color: var(--bg-surface);
    padding: 0.7rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    cursor: pointer;
    position: relative;

    /* فلش ساده با CSS (مثلث) */
    background-image: none;
}

/* یه wrapper دور select می‌ذاریم که فلش رو خودمون بکشیم */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted);
    pointer-events: none;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.2);
    background-color: var(--bg-card);
}

/* استایل optionها با جداکننده */
.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--bg-surface);
}

/* آخرین option خط نداشته باشه */
.filter-select option:last-child {
    border-bottom: none;
}

/* ===================== Profile Page ===================== */
.profile-header-card {
    background: linear-gradient(135deg, rgba(217, 74, 74, 0.15), rgba(152, 193, 217, 0.2));
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

body.dark-theme .profile-header-card {
    background: linear-gradient(135deg, rgba(217, 74, 74, 0.2), rgba(28, 30, 35, 0.6));
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.8rem;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.profile-phone {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================== Profile Menu ===================== */
.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-menu li {
    border-bottom: 1px solid var(--bg-surface);
}

.profile-menu li:last-child {
    border-bottom: none;
}

.profile-menu a,
.profile-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--transition);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-body);
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: var(--bg-surface);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.menu-icon {
    width: 24px;
    height: 24px;

}

.menu-arrow {
    width: 16px;
    height: 16px;
    filter: invert(70%);
}

.menu-logout {
    color: var(--color-secondary) !important;
    font-weight: 600 !important;
}

/* ===================== Vendor Section ===================== */
.vendor-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vendor-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.vendor-form .form-control,
.vendor-form .form-select {
    border-radius: 14px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.vendor-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.2);
}

.vendor-submit-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

/* داشبورد فروشنده */
.vendor-dashboard {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vendor-stat {
    flex: 1;
    min-width: 100px;
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
}

.vendor-stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.vendor-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================== Products Grid (بدون اسکرول) ===================== */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    /* در موبایل wrap می‌شود */
    gap: 1rem;
}

.products-grid>.col-card {
    flex: 0 0 auto;
    width: calc(50% - 0.5rem);
    /* موبایل: ۲ ستون */
}

@media (min-width: 768px) {
    .products-grid>.col-card {
        width: calc(33.333% - 0.667rem);
        /* تبلت: ۳ ستون */
    }
}

@media (min-width: 1200px) {
    .products-grid>.col-card {
        width: calc(25% - 0.75rem);
        /* دسکتاپ بزرگ: ۴ ستون */
    }
}

/* ===================== Profile Subpages (Redesigned) ===================== */
.profile-subpage-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    transition: background var(--transition);
}

body.dark-theme .profile-subpage-card {
    background: rgba(28, 30, 35, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

/* هدر داخلی کارت */
.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-card-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(217, 74, 74, 0.3);
}

.profile-card-icon img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.profile-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===================== Form Elements ===================== */
.profile-form label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-primary);
}

.profile-form .form-control {
    border-radius: 16px;
    border: 1px solid rgba(128, 128, 128, 0.15);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-align: right;
    /* راست‌چین کردن متن ورودی */
}

body.dark-theme .profile-form .form-control {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(217, 74, 74, 0.2);
    background: var(--bg-card);
}

.profile-save-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 0.9rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    /*box-shadow: 0 8px 20px rgba(14, 169, 237, 0.3);*/
}

.profile-save-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ===================== Discount Cards ===================== */
.discount-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(217, 74, 74, 0.05), rgba(255, 107, 157, 0.05));
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(217, 74, 74, 0.15);
    transition: transform 0.3s;
}

.discount-item:hover {
    transform: translateX(-5px);
}

.discount-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discount-icon-wrapper {
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.discount-code {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.2rem;
    direction: ltr;
    display: inline-block;
}

.discount-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copy-btn {
    background: var(--bg-surface);
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.copy-btn img {
    width: 18px;
    height: 18px;
    filter: invert(40%);
}

.copy-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.copy-btn:hover img {
    filter: brightness(0) invert(1);
}

/* ===================== FAQ ===================== */
.faq-item {
    border-bottom: 1px solid var(--bg-surface);
    padding: 0.5rem 0;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    padding: 1rem 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0.5rem 1rem 1.5rem;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    filter: invert(50%);
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    filter: invert(30%) sepia(61%) saturate(1720%) hue-rotate(335deg) brightness(96%) contrast(93%);
}

/* ===================== Theme Settings ===================== */
.theme-option {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 1rem;
    background: var(--bg-surface);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.theme-option:hover {
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-option.active {
    border-color: var(--color-primary);
    background: var(--bg-card);
    box-shadow: 0 8px 20px rgba(217, 74, 74, 0.15);
}

.theme-icon-preview {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* ===================== About Page ===================== */
.about-section {
    margin-bottom: 2.5rem;
}

.about-section h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 2;
    text-align: justify;
}

.contact-info {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1.2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ===================== Vendor Modal ===================== */
.vendor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 1rem;
}

.vendor-modal.active {
    display: flex;
}

.vendor-modal-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark-theme .vendor-modal-card {
    background: rgba(28, 30, 35, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===================== Dashboard Stats ===================== */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-box {
    flex: 1 1 calc(25% - 0.75rem);
    min-width: 120px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.dark-theme .stat-box {
    background: rgba(28, 30, 35, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ===================== Star Rating ===================== */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    direction: ltr;
}

.star {
    width: 28px;
    height: 28px;
    background: #e0e0e0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

body.dark-theme .star {
    background: #3a3a3a;
}

.star.filled {
    background: #ffb703;
}

.star.half {
    background: linear-gradient(to left, #ffb703 50%, #e0e0e0 50%);
}

body.dark-theme .star.half {
    background: linear-gradient(to left, #ffb703 50%, #3a3a3a 50%);
}

/* ===================== Vendor Product Card ===================== */
.vendor-product-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
}

.vendor-product-mini img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.vp-mini-info {
    flex: 1;
}

.vp-mini-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.vp-mini-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===================== Comment Card ===================== */
.comment-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: auto;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.comment-product-ref {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-product-ref a {
    color: var(--color-primary);
    font-weight: 500;
}

/* ===================== Gradient Menu Item ===================== */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
}

/* دکمه افزودن محصول (شناور) */
.add-product-fab {
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    z-index: 1050;
}

.add-product-fab img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ===================== Dashboard Links ===================== */
.dashboard-link-wrapper {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 16px;
    padding: 2px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.dashboard-link-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 74, 74, 0.3);
}

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--transition);
}

body.dark-theme .dashboard-link {
    background: var(--bg-card);
}

.dashboard-link img {
    width: 24px;
    height: 24px;
    filter: invert(42%) sepia(87%) saturate(2040%) hue-rotate(169deg) brightness(98%) contrast(102%);
}

/* آیکون داخل کارت آماری */
.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

/* ریسپانسیو: ۲ ستونه در موبایل */
@media (max-width: 768px) {
    .stat-box {
        flex: 1 1 calc(50% - 0.5rem);
        /* هر ردیف ۲ کارت */
        min-width: unset;
    }
}

/* ===================== Product Detail ===================== */
.product-detail-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
}

.product-vendor-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.vendor-badge-icon {
    width: 20px;
    height: 20px;
}

.product-detail-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.spec-item {
    background: var(--bg-surface);
    border-radius: 10px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
}

/* نوع محصول */
.product-type-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-badge.physical {
    background: #ffe0b2;
    color: #e65100;
}

.type-badge.digital {
    background: #b2dfdb;
    color: #004d40;
}

.type-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* قیمت */
.product-price-section {
    margin: 1rem 0;
}

.product-price-section .price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-price-discount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-discount-badge {
    background: var(--color-secondary);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
}

/* دکمه‌ها */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.product-add-to-cart-btn {
    flex: 1;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
}

.product-wishlist-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-surface);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-wishlist-btn img {
    width: 20px;
    height: 20px;
    filter: invert(42%) sepia(87%) saturate(2040%) hue-rotate(169deg) brightness(98%) contrast(102%);
}

/* ===================== Product Detail Page ===================== */



/* -- تب‌های محصول -- */
.product-tabs .nav-tabs {
    border-bottom: 1px solid var(--bg-surface);
    gap: 0.5rem;
}

.product-tabs .nav-link {
    border: none !important;
    border-radius: 14px 14px 0 0;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    transition: 0.3s;
}

.product-tabs .nav-link.active {
    color: var(--color-primary);
    background: var(--bg-card);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid var(--color-primary) !important;
}

.product-tabs .nav-link:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-surface);
}

/* -- باکس افزودن دیدگاه -- */
.comment-form-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease;
    margin-top: 0;
}

.comment-form-box.open {
    max-height: 300px;
    margin-top: 1rem;
}

.comment-form-box textarea {
    border-radius: 14px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    padding: 0.8rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    width: 100%;
    resize: vertical;
    margin-bottom: 0.5rem;
}

/* -- دکمه سبد خرید -- */
.product-add-to-cart-btn {
    flex: 1;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.product-wishlist-btn {
    width: 44px;
    height: 44px;
}

/* ---------- Product Detail Page ---------- */

.product-image-wrapper {
    position: relative;
    display: block;
    height: 100%;
    padding: 10px;
    /* فضای اطراف عکس برای فاصلهٔ خط */
    box-sizing: border-box;
}

.product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 8px);
    /* کمی کوچک‌تر از wrapper */
    height: calc(100% - 8px);
    border-top: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-secondary);
    border-radius: 22px;
    /* هماهنگ با گردی wrapper */
    transform: translate(6px, -6px);
    /* شیفت به راست و بالا */
    z-index: 0;
    pointer-events: none;
}

.product-image-wrapper img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    /* گردی خود عکس */
    display: block;
}

/* دکمه افزودن دیدگاه (ساده) */
.add-comment-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--text-muted);
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    width: 100%;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.3s;
}

.add-comment-btn img {
    width: 20px;
    height: 20px;
    filter: invert(30%);
}

.add-comment-btn:hover {
    background: var(--bg-card);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* تنظیم ارتفاع ردیف */
.product-detail-row {
    align-items: stretch;
}

/* ===================== Vendor Shop Page ===================== */

/* هدر فروشگاه (اینستاگرامی) */
.vendor-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vendor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* اندازه بزرگتر و فاصله بیشتر در دسکتاپ */
@media (min-width: 768px) {
    .vendor-avatar {
        width: 180px;
        height: 180px;
    }

    .vendor-header {
        gap: 4.5rem;
        /* فاصله بیشتر از دایره */
    }
}

.vendor-info {
    flex: 1;
    min-width: 200px;
}

.vendor-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.vendor-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.vendor-rating-small {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.vendor-rating-small .star {
    width: 18px;
    height: 18px;
}

.vendor-contact {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.vendor-contact img {
    width: 16px;
    height: 16px;
    margin-left: 0.3rem;
    filter: invert(40%);
}

/* خط جداکننده */
.vendor-divider {
    border: none;
    height: 1px;
    background: var(--bg-surface);
    margin: 1.5rem 0;
}

/* لینک "مشاهده بیشتر" با خطوط اطراف */
.load-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.load-more-link:hover {
    opacity: 0.8;
}

.load-more-line {
    flex: 1;
    height: 1px;
    background: var(--bg-surface);
}

.load-more-text {
    white-space: nowrap;
}

/* مخفی کردن محصولات اضافی */
.hidden-products {
    display: none;
}

/* ===================== Modal Glass ===================== */
.vendor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 1rem;
}

.vendor-modal.active {
    display: flex;
}

.vendor-modal-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark-theme .vendor-modal-card {
    background: rgba(28, 30, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===================== 404 Page ===================== */
.error-404-illustration {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
}

.error-404-illustration img {
    width: 100%;
    height: auto;
}

.float-animation {
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ===================== Vendor Mini Card (Instagram-like) ===================== */
.vendor-mini-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.2rem 0.8rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vendor-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


.vendor-mini-avatar-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.vendor-mini-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-card);
    background: var(--bg-card);
}

.vendor-mini-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.vendor-mini-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.vendor-mini-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    transition: 0.3s;
    margin-top: auto;
}

.vendor-mini-btn:hover {
    background: var(--color-primary);
    color: #fff;
}


/* ===================== Homepage Vendor Section ===================== */
.home-vendors-section {
    margin-top: 2rem;
}

.home-vendors-section .section-header {
    margin-bottom: 1rem;
}

/* اسکرول افقی در موبایل، گرید در دسکتاپ */
.vendors-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vendors-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* افکت محو در لبه‌ها */
.vendors-scroll-wrapper::before,
.vendors-scroll-wrapper::after {
    content: '';
    position: sticky;
    top: 0;
    width: 20px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.vendors-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
    margin-right: -20px;
}

.vendors-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
    margin-left: -20px;
}

.vendors-scroll-wrapper>.col-4 {
    flex: 0 0 auto;
    width: calc(33.333% - 0.667rem);
    /* موبایل ۳ ستون */
}

@media (min-width: 992px) {
    .vendors-scroll-wrapper {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .vendors-scroll-wrapper::before,
    .vendors-scroll-wrapper::after {
        display: none;
    }

    .vendors-scroll-wrapper>.col-lg-2 {
        width: calc(16.666% - 0.833rem);
        /* دسکتاپ ۶ ستون */
    }
}

/* ===================== Legal Pages ===================== */
.legal-hero {
    background: linear-gradient(135deg, rgba(217, 74, 74, 0.12), rgba(255, 107, 157, 0.1));
    border-radius: 28px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-hero-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-card);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.legal-hero-icon img {
    width: 36px;
    height: 36px;
    filter: invert(42%) sepia(87%) saturate(2040%) hue-rotate(169deg) brightness(98%) contrast(102%);
}

.legal-hero h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-hero p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* هر بند قانون در یک کارت مجزا */
.legal-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--bg-surface);
}

.legal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.legal-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.legal-card-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.legal-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.legal-card-body {
    color: var(--text-secondary);
    line-height: 2;
    text-align: justify;
}

/* لیست داخل کارت */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.legal-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ===================== Payment Modal ===================== */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.payment-modal.active {
    display: flex;
}

.payment-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: modalPop 0.5s ease;
}

body.dark-theme .payment-card {
    background: rgba(28, 30, 35, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes modalPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.payment-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.payment-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.payment-track-code {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    direction: ltr;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.payment-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin: 0 0.3rem;
}

.payment-btn:hover {
    opacity: 0.9;
}

.payment-btn.outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

/* لودینگ اسپینر */
.payment-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-surface);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================== Trust Badges ===================== */
.trust-badges {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-badge-icon img {
    width: 24px;
    height: 24px;
}

.trust-badge-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.trust-badge-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===================== Profile Header (New) ===================== */
.profile-header-new {
    background: linear-gradient(135deg, rgba(217, 74, 74, 0.12), rgba(255, 107, 157, 0.1));
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.8rem;
}

.profile-name-large {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.profile-phone-large {
    color: var(--text-muted);
    font-size: 1rem;
}

/* دکمه ویرایش */
.profile-edit-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--bg-surface);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.profile-edit-btn img {
    width: 18px;
    height: 18px;
    filter: invert(40%);
}

/* ===================== Vendor Section Card ===================== */
.vendor-section-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vendor-section-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.vendor-section-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}


/* کارت هر بند قانون (داخل profile-subpage-card) */
.legal-item {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: background 0.3s;
}

.legal-item:last-child {
    margin-bottom: 0;
}

.legal-item-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.legal-item-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.legal-item-title {
    font-weight: 700;
    color: var(--text-primary);
}

.legal-item-body {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

/* ===================== Profile Hero (New) ===================== */
.profile-hero-new {
    background: linear-gradient(135deg, rgba(217, 74, 74, 0.15), rgba(255, 107, 157, 0.1));
    border-radius: 28px;
    padding: 3rem 2rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: visible;
}

.profile-hero-card {
    position: relative;
    margin-top: -70px;
    /* آواتار از بالا بیرون بزند */
}

.profile-avatar-float {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid var(--color-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-avatar-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-hero-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.profile-hero-phone {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.profile-hero-edit {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--bg-surface);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.profile-hero-edit img {
    width: 18px;
    height: 18px;
    filter: invert(40%);
}

/* ===================== Menu Arrow Fix ===================== */
.profile-menu a .menu-arrow,
.profile-menu button .menu-arrow {
    filter: invert(40%);
    transition: transform 0.3s;
    /* در RTL فلش به سمت چپ (بیرون) باید باشد */
    /* اگر از arrow-left.png استفاده می‌کنید و تصویر فلش به چپ است، مشکلی نیست.
     در غیر اینصورت می‌توانید با rotate جهت را اصلاح کنید. */
}


/* اگر فلش‌ها برعکس بودن (نوک به راست)، این خط رو uncomment کن:
   transform: rotate(180deg);
*/

/* ===================== Profile Card with Color Shadow ===================== */
.profile-card-new {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(196, 154, 154, 0.3);
    /* سایه رنگی آبی */
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

body.dark-theme .profile-card-new {
    background: rgba(28, 30, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(196, 154, 154, 0.5);
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.profile-edit-btn {
    position: absolute;
    top: 70%;
    margin-top: 4px;
    right: 5px;
    left: auto;
    width: 32px;
    height: 32px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
    transition: background var(--transition);
}

.profile-edit-btn img {
    width: 16px;
    height: 16px;
    filter: invert(40%);
}

.profile-name-new {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.profile-phone-new {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* اصلاح فلش منو */
.menu-arrow {
    filter: invert(60%);
    transition: transform 0.3s;
    transform: rotate(180deg);
}

/* ===================== Logout Modal (Glass) ===================== */
/* این استایل‌ها از vendor-modal و vendor-modal-card استفاده می‌کنند
   که قبلاً تعریف شده و شیشه‌ای هستند.
   اگر vendor-modal رو نداری، اینو اضافه کن: */
.vendor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 1rem;
}

.vendor-modal.active {
    display: flex;
}

.vendor-modal-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark-theme .vendor-modal-card {
    background: rgba(28, 30, 35, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

/* انیمیشن باکس فروشنده */
.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== Category Circle Card ===================== */
.category-circle-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.category-circle-card:hover {
    transform: translateY(-4px);
}

.category-circle-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-light);
    margin: 0 auto 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-circle-card:hover .category-circle-img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-circle-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ریسپانسیو: ۳ ستون در موبایل (col-4), ۶ ستون در دسکتاپ (col-lg-2) */
/* ===================== فروشگاه برتر هفته (اصلاح نهایی) ===================== */
.featured-vendor-box {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    overflow: hidden;
    /* جلوگیری از اسکرول اضافی */
    border: 4px solid transparent;
    border-color: var(--color-accent);
    overflow: hidden;
    /* لبه‌های روبان از کادر بیرون نزنه */
}



.featured-vendor-info {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

.featured-vendor-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.featured-vendor-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.featured-vendor-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.featured-vendor-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: 14px;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.featured-vendor-link:hover {
    background: #0b8ec9;
    color: #fff;
}

.featured-vendor-products {
    flex: 2;
    min-width: 250px;
}

.featured-vendor-products h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* چیدمان موبایل: آواتار و توضیحات بالا، محصولات پایین */
@media (max-width: 768px) {
    .featured-vendor-box {
        flex-direction: column;
        text-align: center;
    }

    .featured-vendor-info {
        text-align: center;
    }
}

/* ===================== Support Chat ===================== */
.support-chat-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 60vh;
    max-height: 700px;
}

.support-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-surface);
    margin-bottom: 1rem;
}

.support-agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.support-agent-name {
    font-weight: 700;
}

.support-agent-status {
    font-size: 0.8rem;
    color: var(--color-primary);
}

.support-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0.5rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.6;
    animation: fadeInUp 0.3s ease;
}

.chat-bubble.agent {
    align-self: flex-end;
    background: var(--bg-surface);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.chat-bubble.user {
    align-self: flex-start;
    background: var(--color-primary);
    color: #fff;
    border-bottom-left-radius: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-chat-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.support-chat-input input {
    flex: 1;
    border-radius: 16px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    color: var(--text-primary);
}

.support-chat-input input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.support-chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.support-chat-input button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.featured-vendor-box {
    position: relative;
    overflow: visible;
    /* روبان از کادر بیرون بزند */
}

.featured-ribbon {
    position: absolute;
    top: 12px;
    left: -30px;
    width: 150px;
    padding: 0.5rem 0;
    background: linear-gradient(180deg, #D94A4A 0%, #b53333 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    transform: rotate(-30deg);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    z-index: 2;
    letter-spacing: 0.5px;
}


/* موبایل */
@media (max-width: 768px) {
    .featured-ribbon {
        top: 8px;
        left: -35px;
        width: 130px;
        font-size: 0.7rem;
    }
}

/**************new style */
@media (min-width: 1200px) {
    .products-scroll-wrapper>.col-card {
        width: calc(20% - 0.8rem);
        /* ۵ ستون به‌جای ۴ ستون */
    }
}

.product-card-img-wrapper {
    height: 170px;
    /* قبلاً 200px بود */
}

.product-title {
    font-size: 0.9rem;
    /* قبلاً 1rem */
}

.product-category {
    font-size: 0.7rem;
    /* قبلاً 0.75rem */
}

.product-price-discount {
    font-size: 1rem;
    /* قبلاً 1.1rem */
}

.product-price-original {
    font-size: 0.8rem;
    /* قبلاً 0.85rem */
}

.product-discount-badge {
    font-size: 0.65rem;
    /* قبلاً 0.7rem */
}

.product-add-to-cart {
    font-size: 0.85rem;
    /* قبلاً 0.9rem */
    padding: 0.5rem;
}

.product-card-body {
    padding: 1.5rem 0.8rem 0.8rem;
    /* قبلاً 2rem 1rem 1rem */
}

.product-add-to-cart:hover,
.btn-login:hover,
.profile-save-btn:hover,
.apply-btn:hover,
.featured-vendor-link:hover {
    background-color: #B54444;
    /* قرمز مایل به جیگری روشن */
}

.user-profile-btn:hover {
    background-color: rgba(181, 68, 68, 0.15);
    border-color: #B54444;
    color: #B54444;
}

.header-search input:focus {
    border-color: #D94A4A;
    box-shadow: 0 0 0 3px rgba(212, 74, 74, 0.25);
}

.footer-item.active img {
    filter: invert(24%) sepia(83%) saturate(2240%) hue-rotate(342deg) brightness(92%) contrast(97%);
    transform: scale(1.1);
}

.footer-icon {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    background-color: #8898a5;
    /* رنگ پیش‌فرض (غیرفعال در لایت) */
    transition: background-color var(--transition), transform var(--transition);
}

body.dark-theme .footer-icon {
    background-color: #7a8798;
    /* رنگ پیش‌فرض (غیرفعال در دارک) */
}

.footer-item.active .footer-icon {
    background-color: #D94A4A;
    /* قرمز پررنگ برای حالت فعال */
    transform: scale(1.1);
}

/* ===================== Quick Access Dropdown ===================== */
.quick-access-wrapper {
    position: relative;
    display: inline-block;
}

.quick-access-btn {
    background: transparent;
    border: 1px solid var(--bg-surface);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    white-space: nowrap;
}

.quick-access-btn:hover {
    background: var(--bg-surface);
}

/*.quick-access-arrow {
    width: 14px;
    height: 14px;
    filter: invert(28%) sepia(76%) saturate(2010%) hue-rotate(342deg) brightness(95%) contrast(91%);
    transition: transform 0.3s;
}*/

.quick-access-wrapper.open .quick-access-arrow {
    transform: rotate(180deg);
}

.quick-access-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    z-index: 1050;
}

body.dark-theme .quick-access-dropdown {
    background: rgba(28, 30, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.quick-access-wrapper.open .quick-access-dropdown {
    display: flex;
}

.quick-access-dropdown a {
    padding: 0.7rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.quick-access-dropdown a:hover {
    background: var(--bg-surface);
    color: var(--color-primary);
}

/* مخفی کردن در موبایل‌های خیلی کوچک (اختیاری) */
@media (max-width: 576px) {
    .quick-access-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .quick-access-dropdown {
        min-width: 170px;
    }
}

/* ===================== Quick Access Icon ===================== */
.quick-access-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    filter: invert(28%) sepia(76%) saturate(2010%) hue-rotate(342deg) brightness(95%) contrast(91%);
    /* با این فیلتر، آیکون‌های سفید شما قرمز جیگری می‌شوند */
    transition: filter 0.3s;
}

/* اگر خواستید هنگام hover آیکون هم تغییر رنگ دهد */
.quick-access-dropdown a:hover .quick-access-icon {
    filter: invert(28%) sepia(76%) saturate(2010%) hue-rotate(342deg) brightness(120%) contrast(90%);
}

body.dark-theme .footer-item.active {
    color: #D94A4A !important;
    /* قرمز جیگری */
}

/* ===================== Banner Cards ===================== */
.banner-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.banner-card img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 1200px) {
    .products-scroll-wrapper {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* گرید ۵ ستونه دقیق (فقط دسکتاپ) */
.products-grid-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    /* فاصله بین کارت‌ها */
}

.products-grid-5>.col-card-5 {
    flex: 0 0 calc((100% - 5rem) / 5);
    /* ۵ ستون با احتساب gap */
    max-width: calc((100% - 5rem) / 5);
    margin: 0;
    /* هرگونه margin اضافی را حذف کن */
    box-sizing: border-box;
}

/* تبلت: ۳ ستون */
@media (max-width: 1199px) {
    .products-grid-5 {
        gap: 1rem;
    }

    .products-grid-5>.col-card-5 {
        flex: 0 0 calc((100% - 2rem) / 3);
        max-width: calc((100% - 2rem) / 3);
    }
}

/* موبایل: ۲ ستون */
@media (max-width: 767px) {
    .products-grid-5 {
        gap: 0.8rem;
    }

    .products-grid-5>.col-card-5 {
        flex: 0 0 calc((100% - 0.8rem) / 2);
        max-width: calc((100% - 0.8rem) / 2);
    }
}

/* ===================== Responsive Grid/Scroll for 5-Column Product Cards ===================== */
.products-grid-5 {
    display: flex;
    gap: 1.2rem;
}

/* موبایل: اسکرول افقی، ۲ کارت نمایان */
@media (max-width: 767px) {
    .products-grid-5 {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-grid-5::-webkit-scrollbar {
        display: none;
    }

    .products-grid-5>.col-card-5 {
        flex: 0 0 auto;
        width: calc(50% - 0.5rem);
    }
}

/* تبلت: اسکرول افقی، ۳ کارت نمایان */
@media (min-width: 768px) and (max-width: 1199px) {
    .products-grid-5 {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-grid-5::-webkit-scrollbar {
        display: none;
    }

    .products-grid-5>.col-card-5 {
        flex: 0 0 auto;
        width: calc(33.333% - 0.667rem);
    }
}

/* دسکتاپ بزرگ: ۵ ستون بدون اسکرول */
@media (min-width: 1200px) {
    .products-grid-5 {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .products-grid-5>.col-card-5 {
        flex: 0 0 auto;
        width: calc(20% - 0.8rem);
    }
}

.filter-select option:hover,
.filter-select option:checked {
    background: #F5D0D0;
    /* قرمز خیلی کمرنگ */
    color: #8B2E2E;
}

.form-check-input:focus {
    box-shadow: none !important;
    /* حذف کامل سایهٔ آبی */
    border-color: #D94A4A;
}

body.dark-theme .form-check-input:focus {
    border-color: #D94A4A;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 74, 74, 0.25) !important;
    border-color: #D94A4A;
}

/* ===================== Image Grid Widget ===================== */
.image-grid-widget {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.widget-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.image-grid-item {
    aspect-ratio: 1 / 1;
    /* مربع کامل */
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-surface);
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-grid-item:hover img {
    transform: scale(1.03);
}



/* ===================== Hero جدید ===================== */
.shop-hero-new {
    background: linear-gradient(135deg, rgba(139, 46, 46, 0.06), rgba(217, 74, 74, 0.05));
    border-radius: 28px;
    padding: 2rem 2rem 2rem 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(217, 74, 74, 0.1);
}

.shop-hero-new-text h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.shop-hero-new-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.shop-hero-new-illustration {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.shop-hero-new-illustration img {
    width: 100%;
    height: auto;
}

/* صفحه‌بندی شیک */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    /* وسط صفحه */
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--bg-surface);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===================== باکس اعتماد (نسخه نهایی) ===================== */
.trust-footer-box {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--bg-surface);
}

.trust-footer-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
    /* فاصله بین دو ستون */
}

/* ستون‌ها */
.trust-info-col,
.zhikland-brands-col {
    flex: 1 1 300px;
    /* هر ستون حداقل ۳۰۰px عرض داشته باشه */
}

.trust-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.trust-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.trust-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.newsletter-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    transition: background 0.3s, transform 0.2s;
}

.social-icons a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.social-icons a img {
    width: 20px;
    height: 20px;
    filter: invert(40%);
    transition: filter 0.3s;
}

.social-icons a:hover img {
    filter: brightness(0) invert(1);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    border-radius: 12px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    color: var(--text-primary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.2);
}

.newsletter-form button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #b53333;
}

/* ستون قرمز */
.zhikland-brands-strip {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zhikland-brands-strip h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.zhikland-brands-strip .sub-note {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.brand-logos {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.brand-logos img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.2rem;
    transition: transform 0.3s;
}

.brand-logos img:hover {
    transform: scale(1.05);
}

/* واکنش‌گرایی: در موبایل ستون‌ها زیر هم بروند */
@media (max-width: 767px) {
    .trust-footer-row {
        gap: 1.5rem;
        /* فاصله عمودی در موبایل */
    }

    .trust-info-col,
    .zhikland-brands-col {
        flex: 1 1 100%;
    }

    .brand-logos img {
        width: 72px;
        height: 72px;
    }
}

/* خط و کپی‌رایت */
.trust-footer-divider {
    border: none;
    height: 1px;
    background: var(--bg-surface);
    margin: 1.5rem 0 1rem;
}

.trust-footer-copy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================== Product Detail Page (Redesign) ===================== */

/* گالری محصول */
.product-gallery {
    position: relative;
    margin-bottom: 1rem;
}

.product-gallery-main {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-surface);
    margin-bottom: 0.8rem;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.6rem;
}

.product-gallery-thumb {
    width: calc(25% - 0.45rem);
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    position: relative;
}

.product-gallery-thumb.active {
    border-color: var(--color-primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
}

/* کارت اطلاعات محصول */
.product-info-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-category-badge {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.product-rating-inline {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-rating-inline .star {
    width: 18px;
    height: 18px;
}

/* ویژگی‌های کلیدی */
.product-key-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-label {
    font-weight: 600;
    color: var(--text-primary);
}

/* خط جداکننده */
.product-divider {
    border: none;
    height: 1px;
    background: var(--bg-surface);
    margin: 1rem 0;
}

/* فروشنده و رضایت */
.vendor-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.vendor-name-link {
    color: var(--color-primary);
    font-weight: 600;
}

.satisfaction-badge {
    background: #d4edda;
    color: #155724;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

body.dark-theme .satisfaction-badge {
    background: #1c3822;
    color: #8fdf9f;
}

/* قیمت */
.product-price-block {
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.price-discount-badge {
    background: var(--color-secondary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* دکمه‌های عملیات */
.product-actions-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-add-to-cart {
    flex: 1;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.3s;
}

.btn-add-to-cart:hover {
    background: #b53333;
}

.btn-icon-action {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon-action img {
    width: 20px;
    height: 20px;
    filter: invert(40%);
    transition: filter 0.3s;
}

.btn-icon-action:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-icon-action:hover img {
    filter: brightness(0) invert(1);
}

.btn-icon-action.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-icon-action.active img {
    filter: brightness(0) invert(1);
}

/* تب‌ها */
.product-tabs-new {
    margin-top: 2rem;
    position: relative;
}

.tabs-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tabs-nav {
    flex: 1;
    min-width: 0;
}

.tabs-content {
    flex: 1;
    min-width: 0;
}

.tab-nav-item {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--bg-surface);
    margin-bottom: 1rem;
}

.tab-nav-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-nav-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-pane-new {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane-new.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane-new p {
    line-height: 2;
    color: var(--text-secondary);
}

/* باکس تخفیف ویژه (کنار تب‌ها) */
.special-offer-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 20px;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
    position: sticky;
    top: 90px;
}

.special-offer-sidebar h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.special-offer-sidebar .countdown-timer {
    justify-content: center;
    margin: 0.8rem 0;
}

.special-offer-sidebar .product-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* واکنش‌گرایی باکس تخفیف */
@media (max-width: 991px) {
    .special-offer-sidebar {
        width: 100%;
        position: static;
        margin-top: 1.5rem;
    }

    .tabs-row {
        flex-direction: column;
    }
}

/* خلاصه دیدگاه */
.review-summary-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-text {
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pros-cons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.pro-item,
.con-item {
    flex: 1;
    min-width: 180px;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.pro-item {
    background: #d4edda;
    color: #155724;
}

body.dark-theme .pro-item {
    background: #1c3822;
    color: #8fdf9f;
}

.con-item {
    background: #f8d7da;
    color: #721c24;
}

body.dark-theme .con-item {
    background: #3b1c1f;
    color: #f5a3a3;
}

.helpful-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.helpful-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--bg-surface);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.helpful-btn img {
    width: 18px;
    height: 18px;
    filter: invert(40%);
}

.helpful-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.helpful-btn.active img {
    filter: brightness(0) invert(1);
}

/* ---------- بج‌های رضایت و عملکرد ---------- */
.satisfaction-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.badge-performance {
    background: #d4edda;
    color: #155724;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

body.dark-theme .badge-performance {
    background: #1c3822;
    color: #8fdf9f;
}

.badge-satisfaction {
    background: #e8daef;
    color: #6c3483;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

body.dark-theme .badge-satisfaction {
    background: #2e1c3b;
    color: #c39bd3;
}

/* ---------- لینک تعداد دیدگاه ---------- */
.review-count-badge {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.review-count-badge:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ---------- قیمت‌ها زیر هم و سمت چپ ---------- */
.product-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* در RTL یعنی چپ */
    margin-right: auto;
    /* می‌چسبد به چپ */
    width: fit-content;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    order: 1;
    /* جدیدترین قیمت اول */
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    order: 2;
}

.price-discount-badge {
    background: var(--color-secondary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    order: 0;
    /* بج تخفیف بالا */
}

/* ---------- دکمه مشاهده همه در تب دیدگاه ---------- */
.load-more-reviews {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface);
    color: var(--text-primary);
    border-radius: 14px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.load-more-reviews:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===================== Gallery Modal ===================== */
.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* دسکتاپ: ۳ ستون */
    gap: 1rem;
    padding: 1rem 0;
}

@media (max-width: 991px) {
    .gallery-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        /* تبلت: ۲ ستون */
    }
}

@media (max-width: 576px) {
    .gallery-modal-grid {
        grid-template-columns: 1fr;
        /* موبایل: ۱ ستون */
    }
}

.gallery-modal-img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-modal-img:hover {
    transform: scale(1.02);
}

.gallery-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* دکمه بستن مودال گالری */
.gallery-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* ===================== Toast Notification ===================== */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-message {
    background: #d4edda;
    color: #155724;
    padding: 0.9rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    pointer-events: auto;
    white-space: nowrap;
}

.toast-message.error {
    background: #f8d7da;
    color: #721c24;
}

.toast-message img {
    width: 22px;
    height: 22px;
    filter: invert(30%) sepia(100%) saturate(500%) hue-rotate(70deg);
}

.toast-message.error img {
    filter: invert(30%) sepia(100%) saturate(500%) hue-rotate(0deg);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ===================== Vendor Badges ===================== */
.vendor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badge-performance,
.badge-satisfaction,
.badge-purchase {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.badge-performance {
    background: #2e7d32;
}

.badge-satisfaction {
    background: #6a1b9a;
}

.badge-purchase {
    background: #c62828;
}

/* برای تم دارک */
body.dark-theme .badge-performance {
    background: #388e3c;
}

body.dark-theme .badge-satisfaction {
    background: #8e24aa;
}

body.dark-theme .badge-purchase {
    background: #e53935;
}

/* ===================== Vendor Special Row ===================== */
.vendor-special-row {
    margin-top: 2rem;
}

/* تنظیم ارتفاع باکس ویژه برای هماهنگی با نظرات */
.vendor-special-row .special-offer-sidebar {
    height: 100%;
}

/* برای صفحه فروشگاه فروشنده: گرید دوستونه بدون اسکرول در موبایل */
.vendor-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1199px) {
    .vendor-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .vendor-products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* دو ستون */
        gap: 0.8rem;
        overflow: visible !important;
        /* اسکرول افقی کاملاً غیرفعال */
    }
}

/* ===================== دکمه مشاهده بیشتر ===================== */
.load-more-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.load-more-line {
    flex: 1;
    height: 0;
    border-top: 2px dashed var(--color-primary);
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.load-more-btn:hover {
    background: #b53333;
}

.load-more-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* ===================== Reply System ===================== */
.reply-btn {
    background: transparent;
    border: 1px solid var(--bg-surface);
    border-radius: 8px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.1rem;
    margin-bottom: 0.8rem;
}

.reply-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.reply-form {
    display: none;
    margin-top: 0.1rem;
    margin-bottom: 1rem;
}

.reply-form.active {
    display: block;
    /* به‌جای flex برای جلوگیری از تداخل با input-group */
}

.reply-input-group {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.reply-input-group textarea {
    flex: 1;
    padding-left: 3rem;
    /* فضای کافی برای دکمه در سمت چپ */
    border-radius: 12px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    font-family: var(--font-body);
    color: var(--text-primary);
    resize: vertical;
    font-size: 0.85rem;
    min-height: 50px;
}

.reply-input-group button {
    position: absolute;
    left: 8px;
    /* در RTL دکمه سمت چپ می‌ماند */
    bottom: 8px;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.reply-input-group button:hover {
    background: #b53333;
}

.reply-input-group button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* پاسخ‌های ثبت‌شده */
.reply-item {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 0.8rem;
    margin-right: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-right: 3px solid var(--color-primary);
}

.reply-item .reply-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

/* ===================== Shipping Address Form ===================== */
.shipping-address-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--bg-surface);
}

.shipping-address-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.shipping-form .form-control {
    border-radius: 14px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    padding: 0.7rem 1.2rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

.shipping-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.2);
    background: var(--bg-card);
}

.shipping-form label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: block;
    color: var(--text-primary);
}

.save-address-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.save-address-check input {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}

/* ===================== Address Book ===================== */
.address-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--bg-surface);
    position: relative;
    transition: box-shadow 0.3s;
}

.address-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.address-card .address-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.address-card .address-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.address-card .address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.address-action-btn {
    background: var(--bg-surface);
    border: none;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.address-action-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.address-action-btn.delete-btn {
    color: var(--color-secondary);
}

.address-action-btn.delete-btn:hover {
    background: var(--color-secondary);
    color: #fff;
}

/* فرم ویرایش (مخفی) */
.address-edit-form {
    display: none;
    margin-top: 0.8rem;
}

.address-edit-form.active {
    display: block;
}

.address-edit-form .form-control {
    margin-bottom: 0.5rem;
}

/* دکمه افزودن آدرس */
.add-address-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.add-address-btn:hover {
    background: #b53333;
}

/* ===================== Drag & Drop Upload ===================== */
.drag-drop-zone {
    border: 2px dashed var(--color-primary-light);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--bg-surface);
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
    position: relative;
}

.drag-drop-zone:hover,
.drag-drop-zone.dragover {
    border-color: var(--color-primary);
    background: rgba(217, 74, 74, 0.04);
}

.drag-drop-zone img {
    width: 56px;
    height: 56px;
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.drag-drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.drag-drop-zone .file-label {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.drag-drop-zone input[type="file"] {
    display: none;
}

/* ===================== دکمه زرد (Warning / Accent) ===================== */
.btn-outline-accent {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: transparent;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-outline-accent:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-outline-accent img {
    filter: invert(60%) sepia(100%) saturate(2000%) hue-rotate(10deg);
    transition: filter 0.3s;
}

.btn-outline-accent:hover img {
    filter: brightness(0) invert(1);
}

/* دکمه اصلی جدید */
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #b53333;
}

/* ===================== رنگ وضعیت‌های سفارش ===================== */
.status-pending {
    /* در انتظار تأیید فروشنده */
    background: #fff3cd;
    color: #856404;
}

.status-preparing {
    /* در حال آماده‌سازی */
    background: #d1ecf1;
    color: #0c5460;
}

.status-shipped {
    /* تحویل به پست */
    background: #ffe5cc;
    color: #b34700;
}

.status-in-transit {
    /* در حال ارسال */
    background: #e8daef;
    color: #6c3483;
}

.status-delivered {
    /* تحویل شده */
    background: #d4edda;
    color: #155724;
}

.status-returned {
    /* مرجوع شده */
    background: #f8d7da;
    color: #721c24;
}

/* برای تم دارک */
body.dark-theme .status-pending {
    background: #3e3500;
    color: #ffd970;
}

body.dark-theme .status-preparing {
    background: #003d4d;
    color: #8ed1e0;
}

body.dark-theme .status-shipped {
    background: #4a2600;
    color: #ffaa66;
}

body.dark-theme .status-in-transit {
    background: #2e1c3b;
    color: #c39bd3;
}

body.dark-theme .status-delivered {
    background: #1c3822;
    color: #8fdf9f;
}

body.dark-theme .status-returned {
    background: #3b1c1f;
    color: #f5a3a3;
}

/* ===================== تصاویر کوچک در سفارش ===================== */
.order-product-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.order-product-mini img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.order-product-mini span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* پس‌زمینه‌های کمرنگ برای کارت نتیجه */
.tracking-result-card.status-pending-bg {
    background: rgba(255, 243, 205, 0.25);
}

.tracking-result-card.status-preparing-bg {
    background: rgba(209, 236, 241, 0.25);
}

.tracking-result-card.status-shipped-bg {
    background: rgba(255, 229, 204, 0.25);
}

.tracking-result-card.status-in-transit-bg {
    background: rgba(232, 218, 239, 0.25);
}

.tracking-result-card.status-delivered-bg {
    background: rgba(212, 237, 218, 0.25);
}

.tracking-result-card.status-returned-bg {
    background: rgba(248, 215, 218, 0.25);
}

/* برای تم دارک */
body.dark-theme .tracking-result-card.status-pending-bg {
    background: rgba(255, 243, 205, 0.1);
}

body.dark-theme .tracking-result-card.status-preparing-bg {
    background: rgba(209, 236, 241, 0.1);
}

body.dark-theme .tracking-result-card.status-shipped-bg {
    background: rgba(255, 229, 204, 0.1);
}

body.dark-theme .tracking-result-card.status-in-transit-bg {
    background: rgba(232, 218, 239, 0.1);
}

body.dark-theme .tracking-result-card.status-delivered-bg {
    background: rgba(212, 237, 218, 0.1);
}

body.dark-theme .tracking-result-card.status-returned-bg {
    background: rgba(248, 215, 218, 0.1);
}

/* ===================== اصلاح خوانایی در تم دارک ===================== */
body.dark-theme .text-muted {
    color: #b0b8c0 !important;
    /* خاکستری روشن به‌جای خاکستری تیره */
}

body.dark-theme .form-text {
    color: #9aa0a8 !important;
    /* رنگ ملایم‌تر برای متن‌های کمکی فرم */
}

/* استایل کلی form-text (اختیاری اما توصیه می‌شود) */
.form-text {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    color: var(--text-muted);
    /* در لایت از متغیر اصلی استفاده می‌کند */
}

/* ===================== اصلاح Placeholder در تم دارک ===================== */
body.dark-theme ::placeholder {
    color: #8a9099;
    /* خاکستری روشن */
    opacity: 1;
    /* فایرفاکس نیاز دارد */
}

body.dark-theme :-ms-input-placeholder {
    color: #8a9099;
}

body.dark-theme ::-ms-input-placeholder {
    color: #8a9099;
}

/* ===================== اصلاح رنگ منوی کشویی سفارشات ===================== */
body.dark-theme .form-select:focus,
body.dark-theme .form-select:active {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25) !important;
    outline: none;
}

/* تلاش برای رنگ دادن به option در مرورگرهای Webkit */
body.dark-theme .form-select option:hover,
body.dark-theme .form-select option:checked,
body.dark-theme .form-select option:focus {
    background: #b53333 !important;
    color: #fff !important;
}

.form-select:focus,
.form-select:active {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25) !important;
    outline: none;
}

.form-select option:hover,
.form-select option:checked,
.form-select option:focus {
    background: #b53333 !important;
    color: #fff !important;
}

/* ===================== Vendor Dashboard Header ===================== */
.vendor-dashboard-header {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.vendor-dp-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 250px;
}

.vendor-dp-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vendor-dp-details {
    flex: 1;
}

.vendor-dp-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.vendor-dp-contact {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.vendor-dp-rating {
    text-align: center;
}

.vendor-dp-rating .star-rating {
    justify-content: center;
    margin-bottom: 0.3rem;
}

.vendor-dp-rating .star {
    width: 16px;
    height: 16px;
}

.vendor-dp-rating .rating-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vendor-edit-btn {
    background: var(--bg-surface);
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vendor-edit-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.vendor-edit-btn img {
    width: 16px;
    height: 16px;
    filter: invert(40%);
}

.vendor-edit-btn:hover img {
    filter: brightness(0) invert(1);
}

/* ===================== آمار ===================== */
.vendor-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .vendor-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .vendor-stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-placeholder img {
    width: 24px;
    height: 24px;
    filter: invert(40%);
    opacity: 0.7;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================== بخش‌های لیستی ===================== */
.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* دکمه‌های تایید و رد */
.action-btns {
    display: flex;
    gap: 0.5rem;
}

.btn-accept,
.btn-reject {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.3s, color 0.3s;
}

.btn-accept {
    background: #d4edda;
    color: #155724;
}

.btn-accept:hover {
    background: #28a745;
    color: #fff;
}

.btn-reject {
    background: #f8d7da;
    color: #721c24;
}

.btn-reject:hover {
    background: #dc3545;
    color: #fff;
}

body.dark-theme .btn-accept {
    background: #1c3822;
    color: #8fdf9f;
}

body.dark-theme .btn-reject {
    background: #3b1c1f;
    color: #f5a3a3;
}

body.dark-theme .btn-accept:hover,
body.dark-theme .btn-reject:hover {
    color: #fff;
}

/* ===================== نمودار فروش ===================== */
.chart-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem 1.5rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 200px;
    padding: 0 0.5rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary));
    border-radius: 8px 8px 0 0;
    min-width: 12px;
    transition: height 0.4s ease;
    opacity: 0.85;
}

.chart-bar:hover {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.3rem;
}

@media (max-width: 576px) {
    .chart-bars {
        height: 120px;
        gap: 0.3rem;
    }
}

/* ===================== اصلاح لینک‌های داشبورد ===================== */
.dashboard-link-wrapper {
    text-decoration: none;
    display: block;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-link-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 74, 74, 0.3);
}

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.5rem;
    background: var(--bg-card);
    border-radius: 14px;
}

.dashboard-link img {
    width: 24px;
    height: 24px;
    filter: invert(40%);
}

.dashboard-link-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    /* رنگ متن بدنه */
}

/* ===================== نمودار با محور قیمت ===================== */
.chart-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 0.8rem;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 45px;
    text-align: left;
}

.chart-container {
    flex: 1;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 200px;
    padding: 0 0.5rem;
    border-bottom: 2px solid var(--bg-surface);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--color-primary), var(--color-secondary));
    border-radius: 8px 8px 0 0;
    min-width: 12px;
    transition: height 0.4s ease;
    opacity: 0.85;
}

.chart-bar:hover {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.4rem;
}

@media (max-width: 576px) {
    .chart-bars {
        height: 120px;
        gap: 0.3rem;
    }

    .chart-y-axis {
        font-size: 0.65rem;
        min-width: 35px;
    }
}

/* ===================== Rating Modal ===================== */
.rating-stars {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    direction: ltr;
    margin: 1.5rem 0;
}

.rating-star {
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: transform 0.2s;
    background: #e0e0e0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

body.dark-theme .rating-star {
    background: #3a3a3a;
}

.rating-star.active {
    background: #f59e0b;
    transform: scale(1.1);
}

.rating-star:hover {
    background: #f59e0b;
    transform: scale(1.15);
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ===================== Satisfaction Slider ===================== */
.satisfaction-slider-wrapper {
    margin: 1.5rem 0;
    text-align: center;
}

.satisfaction-slider-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to left, var(--color-primary), var(--bg-surface));
    outline: none;
    cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.satisfaction-percent {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.3rem;
}

/* ===================== Social Icons ===================== */
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.social-icons a i {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.social-icons a:hover i {
    color: #fff;
}

/*تنظیمات موبایل*/

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ===================== تنظیمات هدر و فوتر برای موبایل ===================== */
@media (max-width: 768px) {

    /* هدر: فاصله از لبه‌ها و گردی */
    .header {
        left: 10px;
        right: 10px;
        top: 10px;
        width: auto;
        border-radius: 20px;
    }

    /* کوچک‌تر شدن لوگو */
    .header-logo img {
        height: 30px;
    }

    /* کوچک‌تر شدن باکس جستجو */
    .header-search {
        max-width: 150px;
    }

    .header-search input {
        padding: 0.4rem 2rem 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* مخفی کردن دکمه‌های دسکتاپ */
    .desktop-only {
        display: none;
    }

    /* نمایش دکمه منوی سه‌نقطه */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 1.8rem;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.3rem;
    }

    /* منوی کشویی موبایل */
    .mobile-menu-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        padding: 0.8rem;
        z-index: 1050;
    }

    .mobile-menu-dropdown.active {
        display: block;
    }

    .mobile-menu-dropdown a {
        display: block;
        padding: 0.7rem 1rem;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        border-radius: 10px;
        transition: background 0.2s;
    }

    .mobile-menu-dropdown a:hover {
        background: var(--bg-surface);
    }

    .mobile-menu-dropdown hr {
        margin: 0.3rem 0;
        border-color: var(--bg-surface);
    }

    /* فوتر: فاصله از چپ و راست و پایین */
    .footer-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        border-radius: 20px;
    }

    /* تنظیم padding بدنه برای فضای هدر و فوتر جدید */
    body {
        padding-top: 70px;
        /* ارتفاع هدر + فاصله */
        padding-bottom: 90px;
    }
}

/* مخفی کردن دکمه منوی موبایل در دسکتاپ */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .mobile-menu-dropdown {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* مخفی کردن دکمه‌های دسکتاپ */
    .quick-access-wrapper,
    .btn-login {
        display: none;
    }

    /* نمایش دکمه منوی موبایل */
    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        font-size: 1.8rem;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.3rem;
        color: var(--color-primary);
    }

    /* منوی کشویی */
    .mobile-menu-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        padding: 0.8rem;
        z-index: 1050;
    }

    .mobile-menu-dropdown.active {
        display: block;
    }

    .mobile-menu-dropdown a {
        display: block;
        padding: 0.7rem 1rem;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        border-radius: 10px;
    }

    .mobile-menu-dropdown a:hover {
        background: var(--bg-surface);
    }

    /* کوچک‌تر شدن جستجو */
    .header-search {
        max-width: 180px;

    }
}

@media (max-width: 768px) {

    .header-search input {
        padding-right: 2.2rem;
        /* فضای بیشتر سمت چپ برای آیکون */
        padding-left: 0.8rem;
        /* فضای مناسب سمت راست */
        font-size: 0.85rem;
    }

    .header-search .search-icon {
        right: 8px;
        /* فاصله از لبهٔ چپ */
        left: auto;
        font-size: 16px;
        /* اندازهٔ کمی کوچک‌تر */
    }
}


@media (max-width: 768px) {
    .vendor-mini-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.7rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .featured-vendor-box {
        padding-top: 2.5rem;
        /* فضای مناسب برای روبان */
    }

    .featured-ribbon {
        top: -18px;
        /* بیرون زدن از بالای باکس */
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        width: auto;
        padding: 0.5rem 2rem;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        background: linear-gradient(180deg, #D94A4A 0%, #b53333 100%);
        color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        z-index: 2;
        line-height: 1.4;
        border-radius: 4px;
        /* گوشه‌های نرم اما نه کاملاً گرد */
    }
}

@media (max-width: 768px) {
    .add-product-fab {
        bottom: 100px;
        /* فاصله بیشتر از پایین */
    }
}

@media (max-width: 768px) {

    /* فروشگاه ژیکلند - هیرو */
    .shop-hero-new {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .shop-hero-new-text {
        flex: 1;
        text-align: right;
    }

    .shop-hero-new-text h1 {
        font-size: 1.6rem;
        white-space: nowrap;
        margin-bottom: 0.2rem;
    }

    .shop-hero-new-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .shop-hero-new-illustration {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin-left: 0;
    }
}

@media (max-width: 768px) {

    /* بخش قیمت‌ها در صفحه افزودن محصول */
    #addProductForm .row.g-3.mt-2>.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .price-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===================== Order History Tabs ===================== */
.order-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.order-tab-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.order-tab-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===================== History Card (جایگزین order-item) ===================== */
.history-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-id-date {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.history-id {
    font-weight: 700;
    color: var(--color-primary);
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-images {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.history-images img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--bg-surface);
}

.history-extra-count {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.history-detail-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ===================== تنظیمات موبایل ===================== */
@media (max-width: 768px) {
    .history-card {
        padding: 0.9rem;
    }

    .history-id {
        font-size: 0.95rem;
    }

    .history-date {
        font-size: 0.8rem;
    }

    .history-images img {
        width: 36px;
        height: 36px;
    }

    .history-extra-count {
        width: 36px;
        height: 36px;
    }

    .history-amount {
        font-size: 0.95rem;
    }

    .history-detail-link {
        font-size: 0.85rem;
    }
}

.history-status {
    /* تمام استایل‌های اصلی از کلاس‌های status-* می‌آیند، اما برای اطمینان: */
    display: inline-block;
    white-space: nowrap;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* برای تم دارک هم اگر لازم است: */
body.dark-theme .status-delivered {
    background: #1c3822;
    color: #8fdf9f;
}

body.dark-theme .status-processing {
    background: #3e3500;
    color: #ffd970;
}

body.dark-theme .status-cancelled {
    background: #3b1c1f;
    color: #f5a3a3;
}

/* ===================== ردیف بالای صفحات داخلی ===================== */
.page-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* دکمه چپ، متن راست */
    margin-bottom: 0.8rem;
    gap: 1rem;
}

/* اطمینان از استایل دکمه بازگشت */
.breadcrumb-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.breadcrumb-back-btn i {
    font-size: 1.2rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {

    /* کل ردیف دکمه‌ها */
    .product-actions-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* دکمه افزودن به سبد: عرض کامل */
    .btn-add-to-cart {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* دو دکمه پایینی: هر کدام نصف عرض */
    .product-actions-row .btn-icon-action {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
        padding: 0.7rem 0.5rem;
    }


    /* اندازه آیکون‌ها کمی بزرگتر */
    .product-actions-row .btn-icon-action img {
        width: 22px;
        height: 22px;
    }
}

/* اطمینان از sticky شدن باکس ویژه */
.tabs-row {
    overflow: visible;
    /* قبلاً ممکنه hidden بوده باشه */
}

.special-offer-sidebar {
    position: sticky !important;
    top: 90px !important;
    align-self: flex-start !important;
}

@media (max-width: 768px) {

    /* اطمینان از عرض کامل بخش تب‌ها */
    .product-tabs-new,
    .tabs-row,
    .tabs-nav,
    .tab-content-area,
    .tab-pane-new {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    /* حذف padding داخلی تب‌ها */
    .tab-content {
        padding: 1rem 0 !important;
    }
}

@media (max-width: 768px) {
    .add-comment-btn {
        justify-content: center;
        text-align: center;
    }
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    /* فاصله بین میله‌ها */
    height: 200px;
    padding: 0 0.5rem;
    /* padding یکسان برای شروع و پایان */
}

.chart-labels {
    display: flex;
    gap: 0.6rem;
    /* دقیقاً همان gap میله‌ها */
    padding: 0 0.5rem;
    /* دقیقاً همان padding میله‌ها */
    margin-top: 0.5rem;
}

.chart-labels span {
    flex: 1;
    /* هر برچسب به اندازهٔ یک میله جا می‌گیرد */
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* مخفی کردن نمودارهای موبایل در دسکتاپ */
.chart-mobile-wrapper {
    display: none;
}

/* استایل پایه برای نمودارهای موبایل */
.mobile-chart .chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.5rem;
    height: 180px;
    /* ارتفاع ثابت برای حفظ تناسب */
    padding: 0 0.3rem;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.chart-bar-wrapper .chart-bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
}

.bar-label-mobile {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 5px;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 576px) {

    /* مخفی کردن نمودار اصلی و برچسب‌های افقی */
    #chartDesktop,
    .chart-labels {
        display: none;
    }

    /* نمایش نمودارهای موبایل */
    .chart-mobile-wrapper {
        display: block;
    }

    .chart-mobile-section {
        margin-bottom: 2rem;
        /* فاصله بین دو نمودار */
    }
}

@media (max-width: 576px) {
    .chart-wrapper {
        display: none;
    }
}

.mobile-chart-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.mobile-chart-row .chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    /* فضایی که برچسب‌های ماه پایین میله‌ها اشغال می‌کنند */
    font-size: 0.65rem;
    color: var(--text-muted);
    min-width: 35px;
    text-align: left;
}

.mobile-chart {
    flex: 1;
}

.mobile-chart .chart-bars {
    height: 180px;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}



/* ===================== Custom Dropdown ===================== */
.custom-dropdown {
    position: relative;
    min-width: 200px;
}

.custom-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

body.dark-theme .custom-dropdown-btn {
    background: rgba(28, 30, 35, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bg-surface);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
    overflow: hidden;
}

.custom-dropdown-menu.active {
    display: block;
}

.custom-dropdown-item {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.custom-dropdown-item:hover {
    background: var(--bg-surface);
    color: var(--color-primary);
}

/* دکمه به‌روزرسانی */
.custom-update-btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
}

/* ===================== Footer Avatar (جایگزین آیکون پروفایل) ===================== */
.footer-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-bottom: 3px;
}

.footer-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

/* در حالت فعال، حاشیه‌ی آواتار قرمز (جیگری) شود */
.footer-item.active .footer-avatar-img {
    border-color: #D94A4A;
}

/* ===================== دکمه‌های دسکتاپ هدر ===================== */
@media (min-width: 769px) {
    .desktop-only-actions {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        /* فاصله بین دکمه‌ها */
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* ===================== دکمه منوی موبایل ===================== */
@media (max-width: 768px) {
    .desktop-only-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.3rem;
        order: -1;
        /* در سمت راست باقی بماند */
    }
}

/* فقط در تم دارک: رنگ لینک مشاهده همه */
body.dark-theme .view-all-link {
    color: #D94A4A !important;
}

body.dark-theme .view-all-link .view-all-icon {
    filter: invert(30%) sepia(61%) saturate(1720%) hue-rotate(335deg) brightness(96%) contrast(93%);
}

/* فقط در تم دارک: رنگ دکمه مشاهده فروشگاه */
body.dark-theme .vendor-mini-btn {
    color: #D94A4A !important;
    border-color: #D94A4A !important;
}

body.dark-theme .vendor-mini-btn:hover {
    background: #D94A4A !important;
    color: #fff !important;
}

body.dark-theme .back-btn img {
    filter: brightness(0) invert(0.8) !important;
}

/* ===================== Notifications Page ===================== */
.notification-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: background 0.3s;
    position: relative;
    cursor: pointer;
}

.notification-card.unread {
    background: rgba(217, 74, 74, 0.04);
    border-right: 3px solid #D94A4A;
}

.notification-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.notification-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.notification-dot {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D94A4A;
    box-shadow: 0 0 6px rgba(217, 74, 74, 0.5);
}

/* تب‌های اعلان */
.notification-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.notification-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-tab.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===================== Notifications Page ===================== */
.notification-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: background 0.3s;
    position: relative;
    cursor: pointer;
}

.notification-card.unread {
    background: rgba(217, 74, 74, 0.04);
    border-right: 3px solid #D94A4A;
}

.notification-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.notification-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.notification-dot {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D94A4A;
    box-shadow: 0 0 6px rgba(217, 74, 74, 0.5);
}

/* تب‌های اعلان */
.notification-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.notification-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-tab.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===================== کارت کنترل قیمت ===================== */
.price-control-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--bg-surface);
}

/* ===================== دکمه‌های سفارشی کنترل قیمت ===================== */
.btn-custom-action {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
    color: #fff;
}

.btn-increase {
    background: #28a745;
}

.btn-increase:hover {
    background: #5a6268;
}

.btn-decrease {
    background: #dc3545;
}

.btn-decrease:hover {
    background: #5a6268;
}

/* دکمهٔ ریست (فقط آیکون) */
.btn-reset-icon {
    background: #f59e0b;
    padding: 0.5rem;
    width: 42px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-reset-icon:hover {
    background: #5a6268;
}

.reset-symbol {
    display: inline-block;
    font-weight: 700;
}

/* ===================== ردیف کنترل قیمت ===================== */
.price-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.price-control-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 1;
    flex-wrap: nowrap;
}

.price-control-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 2;
}

/* ===================== دکمه‌ها در موبایل (سه ستونه) ===================== */
@media (max-width: 768px) {
    .price-control-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 42px;
        /* ستون سوم دقیقاً به اندازهٔ دکمه آیکون */
        width: 100%;
        order: 2;
    }

    .price-control-input {
        width: 100%;
        order: 1;
    }

    .btn-custom-action {
        width: 100%;
        text-align: center;
    }

    .btn-reset-icon {
        width: 100%;
        height: 100%;
    }
}

/* رفع مشکل سفید ماندن فیلد درصد در تم دارک */
body.dark-theme .price-control-card input.form-control {
    background-color: var(--bg-surface) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
}

/* ===================== Reply System ===================== */
.reply-btn {
    background: transparent;
    border: 1px solid var(--bg-surface);
    border-radius: 8px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
}

.reply-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.reply-form {
    display: none;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.reply-form.active {
    display: block;
}

.reply-input-group {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.reply-input-group textarea {
    flex: 1;
    padding-left: 3rem;
    border-radius: 12px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    font-family: var(--font-body);
    color: var(--text-primary);
    resize: vertical;
    font-size: 0.85rem;
    min-height: 50px;
}

.reply-input-group button {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.reply-input-group button:hover {
    background: #b53333;
}

.reply-input-group button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.reply-container {
    margin-top: 0.5rem;
}

.reply-item {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 0.5rem;
    margin-right: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-right: 3px solid var(--color-primary);
}

.reply-item .reply-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

/* ===================== کامنت کارت و دکمه پاسخ ===================== */
.comment-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* محتوا از راست شروع شود (RTL) */
}

/* دکمه پاسخ: زرد و چسبیده به چپ */
.reply-btn {
    align-self: flex-end;
    /* در RTL به معنی چپ */
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.3rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
}

.reply-btn:hover {
    background: #e5a00d;
    color: #fff;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    width: 100%;
    justify-content: space-between;
    /* نام راست، تاریخ چپ */
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: auto;
    /* در RTL به چپ می‌چسبد */
    white-space: nowrap;
}

.reply-input-group textarea {
    flex: 1;
    padding-left: 3rem;
    border-radius: 12px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    font-family: var(--font-body);
    color: var(--text-primary);
    resize: vertical;
    font-size: 0.85rem;
    min-height: 60px;
    /* ارتفاع بیشتر */
    width: 100%;
    /* عرض کامل */
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.reply-input-group textarea:focus {
    outline: none;
    border-color: #8B2E2E;
    /* جیگری */
    box-shadow: 0 0 0 3px rgba(139, 46, 46, 0.2);
}

body.dark-theme .reply-input-group textarea:focus {
    border-color: #D94A4A;
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25);
}

/* ===================== Reply System ===================== */
.reply-btn {
    align-self: flex-end;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.3rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
}

.reply-btn:hover {
    background: #e5a00d;
    color: #fff;
}

.reply-form {
    display: none;
    width: 100%;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.reply-form.active {
    display: block;
}

.reply-input-group {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.reply-input-group textarea {
    flex: 1;
    width: 100%;
    min-height: 60px;
    padding-left: 3rem;
    border-radius: 12px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    font-family: var(--font-body);
    color: var(--text-primary);
    resize: vertical;
    font-size: 0.85rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.reply-input-group textarea:focus {
    outline: none;
    border-color: #8B2E2E;
    box-shadow: 0 0 0 3px rgba(139, 46, 46, 0.2);
}

body.dark-theme .reply-input-group textarea:focus {
    border-color: #D94A4A;
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25);
}

.reply-input-group button {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.reply-input-group button:hover {
    background: #b53333;
}

.reply-input-group button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.reply-container {
    margin-top: 0.5rem;
}

.reply-item {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 0.5rem;
    margin-right: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-right: 3px solid var(--color-primary);
}

.reply-item .reply-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

body.dark-theme .comment-product-ref a {
    color: #D94A4A !important;
}

/* ===================== Vendor Customers Page ===================== */
.broadcast-card {
    background: linear-gradient(135deg, rgba(139, 46, 46, 0.06), rgba(245, 158, 11, 0.08));
    border: 1px solid var(--bg-surface);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.customer-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}

.customer-info {
    flex: 1;
    min-width: 150px;
}

.customer-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.customer-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.customer-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-message {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-message:hover {
    background: #e5a00d;
}

/* مودال پیام تکی */
.message-modal .vendor-modal-card {
    max-width: 450px;
}

@media (max-width: 768px) {
    .customer-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===================== Vendor Customers Page ===================== */
.broadcast-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-surface);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.broadcast-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.broadcast-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.broadcast-type-wrapper {
    min-width: 180px;
    flex: 1;
}

.broadcast-message-wrapper {
    flex: 3;
    min-width: 200px;
}

.broadcast-message-wrapper textarea {
    min-height: 70px;
}

.btn-gradient-accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
    align-self: center;
}

.btn-gradient-accent:hover {
    opacity: 0.9;
}

/* اصلاح ورودی‌ها در تم دارک برای این بخش */
body.dark-theme .broadcast-card .form-control,
body.dark-theme .message-modal .form-control {
    background: rgba(28, 30, 35, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

body.dark-theme .broadcast-card .form-control:focus,
body.dark-theme .message-modal .form-control:focus {
    border-color: #D94A4A;
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25);
}

/* منوی کشویی سفارشی (مشترک با vendor-shipping) */
.custom-dropdown {
    position: relative;
    min-width: 160px;
}

.custom-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

body.dark-theme .custom-dropdown-btn {
    background: rgba(28, 30, 35, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bg-surface);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
    overflow: hidden;
}

.custom-dropdown-menu.active {
    display: block;
}

.custom-dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.custom-dropdown-item:hover {
    background: var(--bg-surface);
    color: var(--color-primary);
}

/* ===================== پیام گروهی (طراحی جدید) ===================== */

/* Textarea: فوکوس قرمز */
.broadcast-textarea {
    border-radius: 12px;
    border: 1px solid var(--bg-surface);
    background: var(--bg-surface);
    font-family: var(--font-body);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.broadcast-textarea:focus {
    outline: none;
    border-color: #D94A4A !important;
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25) !important;
}

/* ردیف منو + دکمه */
.broadcast-actions {
    display: flex;
    align-items: stretch;
    /* هم‌ارتفاع شدن دو عنصر */
    gap: 1rem;
    flex-wrap: wrap;
}

/* منوی کشویی: هم‌ارتفاع با دکمه */
.broadcast-dropdown {
    flex: 1;
    min-width: 180px;
}

.broadcast-dropdown-btn {
    height: 100%;
    /* تمام ارتفاع والد */
    font-size: 0.95rem;
    /* متن بزرگ‌تر */
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* دکمه ارسال */
.broadcast-send-btn {
    white-space: nowrap;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* واکنش‌گرایی: در موبایل هر عنصر کل عرض */
@media (max-width: 768px) {
    .broadcast-actions {
        flex-direction: column;
    }

    .broadcast-dropdown,
    .broadcast-send-btn {
        width: 100%;
    }
}

/* اطمینان از رنگ‌های تم دارک برای این بخش */
body.dark-theme .broadcast-textarea {
    background: rgba(28, 30, 35, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .broadcast-textarea:focus {
    border-color: #D94A4A !important;
}

/* رفع مشکل پس‌زمینه و متن منوی موبایل در تم دارک */
body.dark-theme .mobile-menu-dropdown {
    background: rgba(28, 30, 35, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .mobile-menu-dropdown a {
    color: var(--text-primary) !important;
}

body.dark-theme .mobile-menu-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #D94A4A !important;
}

.dashboard-link .material-icons {
    font-size: 24px;
    color: var(--color-accent);
    transition: color 0.3s;
}

.dashboard-link:hover .material-icons {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .vendor-dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .vendor-dp-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vendor-dp-contact {
        justify-content: center;
    }

    .vendor-dp-rating {
        margin-top: 0.5rem;
    }

    .vendor-edit-btn {
        margin-top: 0.5rem;
    }
}

/* هماهنگ‌سازی جدول تسویه حساب با تم دارک */
body.dark-theme .table {
    color: var(--text-primary);
}

body.dark-theme .table thead th {
    background: var(--bg-surface);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

body.dark-theme .table tbody td {
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom: 1px solid var(--bg-surface);
}

body.dark-theme .table tbody tr:hover td {
    background: var(--bg-surface);
}

/* رنگ‌های مخصوص وضعیت‌های مالی */
body.dark-theme .text-success {
    color: #8fdf9f !important;
}

body.dark-theme .text-danger {
    color: #f5a3a3 !important;
}

body.dark-theme .badge {
    color: #fff;
}

/* ===================== Profile Picture Upload ===================== */
.profile-pic-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .profile-pic-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.profile-pic-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    cursor: pointer;
}

.profile-pic-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
}

.profile-pic-wrapper:hover .profile-pic-img {
    opacity: 0.85;
}

.profile-pic-edit-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-pic-edit-icon .material-icons {
    font-size: 18px;
    color: #fff;
}

.profile-pic-info h5 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.profile-pic-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================== Material Icons in Menu ===================== */
.menu-icon {
    font-size: 24px;
    color: #f59e0b;
    /* زرد */
    transition: color 0.3s;
}

.menu-arrow {
    font-size: 18px;
    color: var(--text-muted);
}

/* آیکون منوی دسترسی سریع */
.quick-access-icon {
    font-size: 20px;
    color: #f59e0b;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.quick-access-arrow {
    font-size: 18px;
    color: #D94A4A;
    transition: transform 0.3s;
    vertical-align: middle;
}

/* برای mobile-menu هماهنگ */
.mobile-menu-btn .material-icons {
    font-size: 28px;
    color: var(--color-primary);
}

/* دکمهٔ ویرایش پروفایل */
.profile-edit-btn .material-icons {
    font-size: 18px;
    color: #fff;
}

.menu-logout .material-icons {
    color: #D94A4A !important;
}

/* ===================== بخش دعوت به همکاری (CTA) ===================== */
.cta-vendor-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 28px;
    padding: 2rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    position: relative;
}

/* نگهدارندهٔ تصویر و ذرات */
.cta-vendor-art {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

/* دایرهٔ شیشه‌ای پشت عکس */
.cta-vendor-art-bg {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* تصویر PNG جایگزین آیکون */
.cta-vendor-art-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
}

/* ذرات شناور (دایره‌های سفید) */
.cta-vendor-art::before,
.cta-vendor-art::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 3;
    /* بالای عکس قرار می‌گیرند */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cta-vendor-art::before {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    animation: floatParticle 6s infinite ease-in-out;
}

.cta-vendor-art::after {
    width: 25px;
    height: 25px;
    bottom: 20px;
    right: 20px;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ستون متن */
.cta-vendor-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* در دسکتاپ به سمت راست می‌چسبد */
}

.cta-vendor-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-vendor-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.cta-vendor-btn {
    background: #fff;
    color: var(--color-primary);
    border: none;
    border-radius: 14px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    align-self: flex-end;
    /* در RTL به معنی چپ */
}

.cta-vendor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===================== موبایل ===================== */
@media (max-width: 768px) {
    .cta-vendor-section {
        flex-direction: column;
        text-align: center;
    }

    .cta-vendor-art {
        width: 150px;
        height: 150px;
        order: -1;
    }

    .cta-vendor-art-bg {
        width: 140px;
        height: 140px;
    }

    .cta-vendor-art-img {
        width: 120px;
        height: 120px;
    }

    .cta-vendor-text {
        align-items: center;
    }

    .cta-vendor-btn {
        align-self: center;
    }
}

/* ===== اصلاح منوی کشویی موبایل ===== */
.mobile-menu-dropdown a {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
    padding: 0.7rem 1rem !important;
}

/* کوچک‌تر کردن آیکون‌های داخل منوی موبایل */
.mobile-menu-dropdown .material-icons {
    font-size: 20px !important;
    /* اندازهٔ دلخواه */
    line-height: 1 !important;
    vertical-align: middle;
}

.mobile-menu-dropdown .quick-access-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.special-offer-sidebar .product-card .product-title {
    text-align: right;
}

/* ===================== Profile Picture Upload ===================== */
.profile-pic-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .profile-pic-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.profile-pic-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    cursor: pointer;
}

.profile-pic-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
}

.profile-pic-wrapper:hover .profile-pic-img {
    opacity: 0.85;
}

.profile-pic-edit-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-pic-edit-icon .material-icons {
    font-size: 18px;
    color: #fff;
}

.profile-pic-info h5 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.profile-pic-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================== اصلاح ستاره‌های امتیاز در تم دارک ===================== */
body.dark-theme .star {
    background: #4a4a4a;
    /* خاکستری روشن برای ستاره‌های خالی */
}

body.dark-theme .star.filled {
    background: #ffb703;
    /* طلایی پررنگ برای ستاره‌های پر */
}

body.dark-theme .star.half {
    background: linear-gradient(to left, #ffb703 50%, #4a4a4a 50%);
    /* نیمه پر */
}

/* اگر از clip-path استفاده می‌کنید، background پشت آن دیده می‌شود و همین کد کافی است. */

/* وسط‌چین کردن آیکون‌های Material در دکمه‌های مدیریت محصولات */
#manage-products-container .btn .material-icons {
    font-size: 16px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* کم‌رنگ کردن متن داخل فیلد درصد */
.price-control-input .form-control {
    color: var(--text-secondary);
    opacity: 0.8;
}

.price-control-input .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* قرمز شدن فوکوس فیلدهای آدرس */
.address-edit-form .form-control:focus {
    border-color: #D94A4A !important;
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25) !important;
    outline: none;
}

/* راست‌چین کردن متن داخل فیلدهای آدرس */
.address-edit-form .form-control,
.address-edit-form input,
.address-edit-form textarea {
    text-align: right !important;
    direction: rtl !important;
}

/* هماهنگ‌سازی فیلدهای فرم آدرس با تم دارک */
body.dark-theme .address-edit-form .form-control {
    background: rgba(28, 30, 35, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

body.dark-theme .address-edit-form .form-control::placeholder {
    color: #8a8f97 !important;
    opacity: 1 !important;
}

body.dark-theme .address-edit-form .form-control:focus {
    border-color: #D94A4A !important;
    box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.25) !important;
}



/* کوچک‌تر کردن آیکون دسته‌بندی در کارت محصول */
.product-category .material-icons {
    font-size: 18px !important;
    width: 20px;
    height: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-add-to-cart .material-icons {
    font-size: 18px;
    color: #fff;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .category-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .category-card .category-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .category-card .category-title {
        min-height: 2.5rem;
    }
}

@media (max-width: 768px) {
  .carousel-caption-custom .btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
  }
}

/* نمایان شدن دکمه بستن مودال در تم دارک */
body.dark-theme .btn-close {
  filter: invert(1);
}

.profile-edit-btn .material-icons {
  font-size: 18px;
  color: var(--text-primary); /* در تم لایت تیره می‌شود */
}

body.dark-theme .profile-edit-btn .material-icons {
  color: #fff; /* در تم دارک سفید می‌ماند */
}

.carousel-caption-custom h2 {
  color: #fff !important;
}

/* نشان‌گر آدرس پیش‌فرض */
.address-card.address-default {
  border: 1px solid var(--color-primary);
  background: rgba(139, 46, 46, 0.03);
}

.badge-success {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

/* دکمه‌های متنی ساده */
.address-action-btn {
  background: var(--bg-surface);
  border: none;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-left: 0.5rem;
}

.address-action-btn.delete-btn {
  color: var(--color-secondary);
}

.address-action-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* رادیو باتن سفارشی (اختیاری) */
.form-check-input {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  margin-top: 0;
}

/* دایره انتخاب آدرس پیش‌فرض در گوشه */
.address-radio {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
}

.address-radio .form-check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  margin: 0;
}

/* ===================== Custom Dropdown (مشترک) ===================== */
.custom-dropdown {
  position: relative;
  min-width: 160px;
}

.custom-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

body.dark-theme .custom-dropdown-btn {
  background: rgba(28,30,35,0.6);
  border-color: rgba(255,255,255,0.1);
}

.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-surface);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 50;
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
}

.custom-dropdown-menu.active {
  display: block;
}

.custom-dropdown-item {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.custom-dropdown-item:hover {
  background: var(--bg-surface);
  color: var(--color-primary);
}

/* چرخش فلش در منوی کشویی وقتی باز است */
.custom-dropdown.open .custom-dropdown-btn .material-icons {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.custom-dropdown .custom-dropdown-btn .material-icons {
  transition: transform 0.3s ease;
}