/* تامین‌کننده‌ها - طراحی حرفه‌ای و مدرن */

.suppliers-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin: 30px 0;
    padding: 32px;
    position: relative;
    overflow: hidden;
    grid-column: 1;
    grid-row: 3;
}

.suppliers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0349a6, #054aa8);
}

.suppliers-header {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    position: relative;
}

.suppliers-header-icon {
    background: linear-gradient(135deg, #0349a6 0%, #054aa8 100%);
    color: white;
    border-radius: 14px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(3, 73, 166, 0.25);
}

.suppliers-title {
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    font-family: IRANSans;
    letter-spacing: -0.02em;
}

.suppliers-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.supplier-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.supplier-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 39, 39, 0.02), rgba(255, 107, 107, 0.01));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.supplier-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(229, 39, 39, 0.1);
}

.supplier-item:hover::before {
    opacity: 1;
}

/* Desktop Layout - Horizontal */
.supplier-header {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.supplier-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0349a6;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.supplier-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 73, 166, 0.1), rgba(5, 74, 168, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.supplier-item:hover .supplier-avatar::before {
    opacity: 1;
}

.supplier-main-info {
    flex: 1;
    min-width: 0;
}

.supplier-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    font-family: IRANSans;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.supplier-manager {
    font-size: 14px;
    color: #6b7280;
    font-family: IRANSans;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.supplier-manager::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
}

.supplier-location-inline {
    font-size: 13px;
    color: #6b7280;
    font-family: IRANSans;
    display: flex;
    align-items: center;
    gap: 6px;
}

.supplier-location-inline i {
    font-size: 12px;
    color: #0349a6;
}

.supplier-primary-action {
    background: linear-gradient(135deg, #10b981 0%, #054aa8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: IRANSans;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(3, 73, 166, 0.25);
    flex-shrink: 0;
    white-space: nowrap;
}

.supplier-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 73, 166, 0.35);
    background: linear-gradient(135deg, #059669 0%, #0349a6 100%);
}

.supplier-primary-action i {
    font-size: 14px;
}

.no-suppliers {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.no-suppliers i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
    display: block;
}

.product--layout--sidebar .product__tabs {
    grid-column: 1;
    grid-row: 5;
}

/* تنظیمات برای layout sidebar */
.product--layout--sidebar .suppliers-section {
    grid-column: 1;
    grid-row: 4;
}

/* تنظیمات برای product__info در layout sidebar */
.product--layout--sidebar .product__info {
   
    
}

@media (min-width: 1200px) {
    .product--layout--sidebar .product__info {
       
        grid-row: 1/11;
    }
}

/* تنظیمات برای layout full */
.product--layout--full .suppliers-section {
    grid-column: 1/3;
    grid-row: 5;
}

/* Responsive breakpoints */

/* Desktop بزرگ */
@media (min-width: 1400px) {
    .product--layout--sidebar .suppliers-section {
        grid-row: 4;
    }
    
    .product--layout--full .suppliers-section {
        grid-column: 1/3;
        grid-row: 5;
    }
}

/* Desktop متوسط */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .product--layout--sidebar .suppliers-section {
        grid-row: 4;
    }
    
    .product--layout--full .suppliers-section {
        grid-column: 1/3;
        grid-row: 5;
    }
}

/* Desktop کوچک */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .product--layout--sidebar .suppliers-section {
        grid-column: 1;
        grid-row: 4;
    }
    
    .product--layout--full .suppliers-section {
        grid-column: 1/3;
        grid-row: 5;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .suppliers-section {
        grid-column: 1;
        grid-row: 4;
    }
    
    .product--layout--full .suppliers-section {
        grid-column: 1/3;
        grid-row: 5;
    }
}

/* Mobile Layout - Vertical */
@media (max-width: 768px) {
    .suppliers-section {
        grid-column: 1;
        grid-row: 4;
        padding: 24px;
        margin: 20px 0;
    }
    
    .suppliers-header {
        margin-bottom: 20px;
    }
    
    .suppliers-header-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-left: 12px;
    }
    
    .suppliers-title {
        font-size: 20px;
    }
    
    .suppliers-list {
        gap: 16px;
    }
    
    .supplier-item {
        padding: 24px 20px;
        text-align: center;
    }
    
    .supplier-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .supplier-avatar {
        width: 72px;
        height: 72px;
        font-size: 32px;
        margin: 0 auto;
    }
    
    .supplier-main-info {
        text-align: center;
        width: 100%;
    }
    
    .supplier-name {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .supplier-manager {
        font-size: 14px;
        margin-bottom: 12px;
        justify-content: center;
    }
    
    .supplier-location-inline {
        font-size: 13px;
        justify-content: center;
        text-align: center;
        line-height: 1.5;
    }
    
    .supplier-primary-action {
        width: 100%;
        padding: 16px 24px;
        font-size: 15px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .suppliers-section {
        grid-column: 1;
        grid-row: 4;
        padding: 20px;
        margin: 16px 0;
    }
    
    .suppliers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .suppliers-header-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        margin-left: 0;
        margin-bottom: 8px;
    }
    
    .suppliers-title {
        font-size: 18px;
    }
    
    .supplier-item {
        padding: 20px 16px;
    }
    
    .supplier-avatar {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .supplier-name {
        font-size: 16px;
    }
    
    .supplier-manager {
        font-size: 13px;
    }
    
    .supplier-location-inline {
        font-size: 12px;
    }
    
    .supplier-primary-action {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Loading animation */
.supplier-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.supplier-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

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