/* 
 * Sellers Plugin Stylesheet
 * Version: 0.0.2
 */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

.sellers-container {
    display: flex;
    flex-wrap: wrap-reverse; /* برای اینکه در موبایل، دسته‌بندی‌ها بالا بیفتند */
    gap: 20px;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
}

.sellers-section {
    box-sizing: border-box;
    border: 1px solid #f0f0f1;
    border-radius: 8px;
    padding: 24px;
}

/* ---------- سکشن دسته‌بندی‌ها (راست) ---------- */
.sellers-categories-section {
    flex: 2; /* دو برابر عرض سکشن دیگر */
    min-width: 400px;
}

.sellers-search-box {
    position: relative;
    margin-bottom: 24px;
}

.sellers-search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px; /* فضای کافی برای آیکون */
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    background-color: #f7f7f7;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sellers-search-box input:focus {
    border-color: #a9a9a9;
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.1);
}

.sellers-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #8c8c8c;
}

.sellers-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.sellers-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    padding: 20px 10px;
    height: 120px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sellers-category-item:hover {
    border-color: #c2c2c2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sellers-category-item .category-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.sellers-category-item .category-name {
    font-size: 14px;
    color: #3f4064;
    font-weight: 500;
    text-align: center;
}

/* ---------- سکشن پروموشن (چپ) ---------- */
.sellers-promo-section {
    flex: 1; /* یک برابر عرض */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 300px;
}

.promo-content .promo-icon svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.promo-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0c0c0c;
    margin: 0 0 8px 0;
}

.promo-content p {
    font-size: 14px;
    color: #5a5b76;
    line-height: 1.8;
    margin: 0 0 24px 0;
    max-width: 300px;
}

.promo-content .promo-button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: 1px solid #ef394e;
    color: #ef394e;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
}

.promo-content .promo-button:hover {
    background-color: #ef394e;
    color: #fff;
}


/* ---------- طراحی واکنش‌گرا ---------- */
@media (max-width: 992px) {
    .sellers-container {
        flex-direction: column-reverse;
    }
    .sellers-categories-section, .sellers-promo-section {
        min-width: 100%;
    }
}
