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

.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;
}

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

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

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

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

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

.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;
}

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

.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;
    -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;
    -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;
    }
}

/* 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;
    }
}
