/* User Profile Styles - БЕЗ !important */

/* Container */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 40px;
}

body.profile-page .profile-container {
    padding-top: 0;
}

.profile-wrapper {
    width: 100%;
}

/* Header */
.profile-header {
    margin-bottom: 24px;
}

.profile-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.profile-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Card */
.profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #ecf0f1;
    border-radius: 12px 12px 0 0;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.card-body {
    padding: 20px;
    border-radius: 0 0 12px 12px;
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* Status Badge */
.status-badge {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 0;
}

.status-wholesale {
    background: linear-gradient(135deg, #ffd6ed 0%, #ffc8e3 100%);
    color: #2c3e50;
}

.status-retail {
    background: #f8f9fa;
    color: #2c3e50;
}

.status-badge svg {
    flex-shrink: 0;
    color: #c2185b;
}

.status-badge h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.status-badge p {
    margin: 0 0 8px 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    color: #2c3e50;
}

.status-badge p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    color: #FF1493;
    border: 2px solid #FF1493;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #FF1493;
    color: #ffffff;
}

/* Actions */
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 0;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #95a5a6;
    font-size: 14px;
    margin: 0;
    padding: 16px 0;
}

/* Recent Orders */
.recent-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.order-row:hover {
    background: #ecf0f1;
}

.order-row .order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-row .order-info strong {
    font-size: 14px;
    color: #2c3e50;
}

.order-row .order-date {
    font-size: 12px;
    color: #7f8c8d;
}

.order-row .order-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.order-row .order-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.order-row .order-total {
    font-size: 15px;
    font-weight: 700;
    color: #27ae60;
}

/* Tablet */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px 15px 32px;
    }
    
    .profile-header {
        margin-bottom: 20px;
    }
    
    .profile-header h1 {
        font-size: 26px;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .status-badge {
        padding: 16px;
    }
    
    .wholesale-benefits {
        padding: 12px;
    }
    
    .wholesale-note {
        padding: 10px 12px;
    }
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #ecf0f1;
}

.order-number {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-number strong {
    font-size: 16px;
    color: #2c3e50;
}

.order-date {
    font-size: 13px;
    color: #7f8c8d;
}

.order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #ffe0f0;
    color: var(--color-primary-dark);
}

.status-processing {
    background: #fff0f6;
    color: var(--color-primary-dark);
}

.status-shipped {
    background: #ffe0f0;
    color: var(--color-primary-dark);
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-body {
    padding: 24px;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item .label {
    font-size: 13px;
    color: #7f8c8d;
}

.info-item .value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.order-items h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    flex: 1;
    color: #2c3e50;
    font-size: 14px;
}

.item-quantity {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0 16px;
}

.item-price {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
}

.order-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-total .label {
    font-size: 13px;
    color: #7f8c8d;
}

.order-total .amount {
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
}

/* Wholesale Benefits */
.wholesale-benefits {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
}

.wholesale-benefits h4 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.wholesale-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wholesale-benefits li {
    padding: 5px 0;
    color: #2c3e50;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
}

/* Wholesale Note */
.wholesale-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wholesale-note p {
    margin: 0;
    font-size: 13px;
    color: #2c3e50;
    opacity: 0.85;
    line-height: 1.4;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    color: #bdc3c7;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.empty-state p {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 24px;
}

/* Mobile */
@media (max-width: 576px) {
    .profile-container {
        padding: 16px 10px 20px 10px;
    }
    
    .profile-header {
        text-align: center;
        margin-bottom: 16px;
    }
    
    .profile-header h1 {
        font-size: 22px;
    }
    
    .profile-header p {
        font-size: 15px;
    }
    
    .profile-grid {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
    }
    
    .card-header h2 {
        font-size: 16px;
        margin: 0;
    }
    
    .card-header .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .card-body {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .status-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .status-badge div {
        width: 100%;
    }
    
    .wholesale-benefits {
        text-align: left;
    }
    
    .wholesale-note {
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
        margin-top: 16px;
        margin-bottom: 20px;
    }
    
    .profile-actions .btn-outline {
        width: auto;
        padding: 10px 24px;
        font-size: 14px;
        text-align: center;
    }
    
    .text-muted {
        padding: 12px 0;
        font-size: 13px;
    }
    
    .order-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .order-row .order-details {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .order-row .order-status {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .order-row .order-total {
        font-size: 14px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .order-body {
        padding: 20px 16px;
    }
    
    .order-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .order-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .item-name {
        flex: 1 1 100%;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px 20px;
    }
}

