.site-dark .faq-container {
    max-width: 700px;
    margin: 30px auto;
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
}

/* نورمال (روشن) */
.site-light .faq-container .faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.site-light .faq-container .faq-question {
    display: block;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
    color: #162033;
}

.site-light .faq-container .faq-question:hover {
    background: #f0f2f5;
}

.site-light .faq-container .faq-question::after {
    content: '+';
    position: absolute;
    left: 20px;
    font-size: 20px;
    transition: transform 0.3s;
}

.site-light .faq-container input[type="checkbox"] {
    display: none;
}

.site-light .faq-container input[type="checkbox"]:checked + .faq-question::after {
    transform: rotate(45deg);
}

.site-light .faq-container .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    background: #f9f9f9;
}

.site-light .faq-container input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 500px;
    padding: 15px 20px;
}

/* دارک مود */
@media (prefers-color-scheme: dark) {
    .site-dark .faq-container .faq-item {
        background: #23272f;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .site-dark .faq-container .faq-question {
        color: #e0e6ee;
    }

    .site-dark .faq-container .faq-question:hover {
        background: #283143;
    }

    .site-dark .faq-container .faq-answer {
        background: #232b37;
        color: #bbc2cc;
    }
}


.site-dark .faq-container {
    max-width: 700px;
    margin: 30px auto;
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
}

.site-dark .faq-container .faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.site-dark .faq-container .faq-question {
    display: block;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
    color: #162033;
}

.site-dark .faq-container .faq-question:hover {
    background: #f0f2f5;
}

.site-dark .faq-container .faq-question::after {
    content: '+';
    position: absolute;
    left: 20px;
    font-size: 20px;
    transition: transform 0.3s;
}

.site-dark .faq-container input[type="checkbox"] {
    display: none;
}

.site-dark .faq-container input[type="checkbox"]:checked + .faq-question::after {
    transform: rotate(45deg);
}

.site-dark .faq-container .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    background: #f9f9f9;
}

.site-dark .faq-container input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 500px;
    padding: 15px 20px;
}

@media (prefers-color-scheme: dark) {
    .site-dark .faq-container .faq-item {
        background: #23272f;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .site-dark .faq-container .faq-question {
        color: #e0e6ee;
    }

    .site-dark .faq-container .faq-question:hover {
        background: #283143;
    }

    .site-dark .faq-container .faq-answer {
        background: #232b37;
        color: #bbc2cc;
    }
}

.cross-sell-products {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cross-sell-products h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.cross-sell-item {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.cross-sell-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #0073aa;
}

.cross-sell-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #005a87);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cross-sell-item:hover::before {
    opacity: 1;
}

.cross-sell-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.cross-sell-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cross-sell-item:hover .cross-sell-image img {
    transform: scale(1.05);
}

.cross-sell-content {
    position: relative;
}

.cross-sell-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.cross-sell-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cross-sell-title a:hover {
    color: #0073aa;
}

.cross-sell-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cross-sell-price {
    font-weight: 700;
    color: #0073aa;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cross-sell-price::before {
    content: '💰';
    font-size: 16px;
}

/* Loading State */
.cross-sell-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cross-sell-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.cross-sell-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.cross-sell-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cross-sell-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cross-sell-item {
        padding: 15px;
    }

    .cross-sell-image img {
        height: 150px;
    }

    .cross-sell-title {
        font-size: 16px;
    }

    .cross-sell-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cross-sell-products h3 {
        font-size: 20px;
    }

    .cross-sell-item {
        padding: 12px;
    }

    .cross-sell-image img {
        height: 120px;
    }
}

/* RTL Support */
.rtl .cross-sell-price::before {
    margin-left: 5px;
    margin-right: 0;
}

/* Auto Display Styles */
.mb-auto-cross-sell-products {
    margin: 40px 0;
    padding: 0;
}

.mb-cross-sell-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.mb-cross-sell-section:last-child {
    margin-bottom: 0;
}

.mb-cross-sell-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #2271b1;
    position: relative;
}

.mb-cross-sell-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #135e96;
}

.mb-cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.mb-cross-sell-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.mb-cross-sell-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2271b1, #135e96);
}

.mb-cross-sell-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2271b1;
}

.mb-cross-sell-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.mb-cross-sell-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mb-cross-sell-item:hover .mb-cross-sell-image img {
    transform: scale(1.05);
}

.mb-cross-sell-image a {
    display: block;
    text-decoration: none;
}

.mb-cross-sell-content {
    position: relative;
}

.mb-cross-sell-product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1d2327;
    line-height: 1.4;
}

.mb-cross-sell-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mb-cross-sell-product-title a:hover {
    color: #2271b1;
}

.mb-cross-sell-excerpt {
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mb-cross-sell-price {
    font-weight: 700;
    color: #2271b1;
    font-size: 18px;
    margin-bottom: 15px;
    background: #f0f6fc;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.mb-cross-sell-actions {
    margin-top: 15px;
}

.mb-cross-sell-button {
    display: inline-block;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.mb-cross-sell-button:hover {
    background: linear-gradient(135deg, #135e96, #0f4c75);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.4);
    color: #fff;
}

/* Section-specific styles */
.mb-cross-sell-cross-sell-products {
    border-left: 4px solid #2271b1;
}

.mb-cross-sell-suggested-products {
    border-left: 4px solid #00a32a;
}

.mb-cross-sell-manual-products {
    border-left: 4px solid #d63638;
}

/* Responsive Auto Display */
@media (max-width: 768px) {
    .mb-cross-sell-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .mb-cross-sell-item {
        padding: 15px;
    }

    .mb-cross-sell-image img {
        height: 150px;
    }

    .mb-cross-sell-section {
        padding: 20px;
    }

    .mb-cross-sell-section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .mb-cross-sell-grid {
        grid-template-columns: 1fr;
    }

    .mb-cross-sell-section {
        padding: 15px;
    }

    .mb-auto-cross-sell-products {
        margin: 30px 0;
    }
}

/* Suggest Post (Shortcode) */
.suggest-post {
    padding-top: 5rem;
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    clear: both; /* این خط رو اضافه کن */
    margin-bottom: 36px !important;
}

.suggest-post__section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 0.5rem;
    position: relative;
}

.suggest-post__badge {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 190px;
    background: #d9d9d9;
    border-radius: 1.5rem;
    padding: 10px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #777777;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 0;
    height: 26.5rem !important;
    margin-bottom: 5px;
}

.suggest-post__card {
    background: #f9f9f9;
    border-radius: 1.5rem;
    position: relative;
    overflow: visible;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.06);
}

.suggest-post__card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.75rem;
    padding-top: 1.25rem;
}

.suggest-post__media {
    position: relative;
    width: 100%;
}

.suggest-post__media-action {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 3;
}

.suggest-post__media-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #16a34a;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.28);
}

.suggest-post__media-action-link:hover,
.suggest-post__media-action-link:focus {
    background: #15803d;
    transform: translateY(-2px);
}

.suggest-post__figure {
    margin: 0;
    padding: 0;
    position: relative;
    border-radius: 1.5rem;
    display: flex;
    justify-content: center;
}

.suggest-post__image {
    width: 100%;
    max-width: 325px;
    height: 184px;
    margin: 0 auto;
    display: block;
    border-radius: 1.5rem;
    object-fit: cover;
}

.suggest-post__image--placeholder {
    background: repeating-linear-gradient(135deg, #e4e4e7, #e4e4e7 12px, #d4d4d8 12px, #d4d4d8 24px);
    width: 100%;
    max-width: 325px;
    height: 184px;
    border-radius: 1.5rem;
}

.suggest-post__content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.5rem 1rem;
    flex: 1;
}

.suggest-post__title {
    margin: 0;
    border-bottom: 1px solid #d9d9d9;
    padding-bottom: 0.9rem;
    font-weight: 700;
    font-size: 20px;
    color: #777777;
    line-height: 1.5;
}

.suggest-post__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.suggest-post__title-link:hover,
.suggest-post__title-link:focus {
    color: #09539f;
}

.suggest-post__price,
.suggest-post__status {
    border-bottom: 1px solid #d9d9d9;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.suggest-post__price {
    color: #09539f;
}

.suggest-post__status {
    color: #dc2626;
}

.suggest-post__description {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: #808080;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggest-post__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #09539f;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.suggest-post__cta:hover,
.suggest-post__cta:focus {
    background: #073a74;
    transform: translateY(-1px);
    color: #ffffff;
}

.suggest-post__cta--mobile {
    display: inline-flex;
}

.suggest-post__cta--desktop {
    display: none;
}

@media (min-width: 768px) {
    .suggest-post__badge {
        left: auto;
        right: 41px;
        transform: none;
    }

    .suggest-post__card-inner {
        flex-direction: row;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .suggest-post__media {
        width: 33.333%;
        padding: 1rem;
    }

    .suggest-post__media-action-link {
        width: 80px;
        height: 80px;
    }

    .suggest-post__content {
        padding: 0;
    }

    .suggest-post__title {
        font-size: 24px;
    }

    .suggest-post__description {
        font-size: 13px;
    }

    .suggest-post__price,
    .suggest-post__status {
        font-size: 24px;
    }

    .suggest-post__cta--mobile {
        display: none;
    }

    .suggest-post__cta--desktop {
        display: inline-flex;
        margin-top: auto;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .suggest-post {
        padding-top: 4rem;
    }

    .suggest-post__section {
        padding: 0 1rem;
    }

    .suggest-post__image {
        height: 170px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cross-sell-item {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .cross-sell-title a {
        color: #e2e8f0;
    }

    .cross-sell-title a:hover {
        color: #63b3ed;
    }

    .cross-sell-excerpt {
        color: #a0aec0;
    }

    .cross-sell-empty {
        background: #1a202c;
        border-color: #4a5568;
        color: #a0aec0;
    }

    .mb-cross-sell-section {
        background: #2d3748;
        border-color: #4a5568;
    }

    .mb-cross-sell-item {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .mb-cross-sell-product-title a {
        color: #e2e8f0;
    }

    .mb-cross-sell-product-title a:hover {
        color: #63b3ed;
    }

    .mb-cross-sell-excerpt {
        color: #a0aec0;
    }
}
