/* Основные стили */
.user-profile {
    margin-bottom: 0;
}

/* Баннер магазина */
.shop_main {
    background: #ffffff;
    margin-bottom: 15px;
}

.shop_top {
    position: relative;
    height: 170px;
    border-radius: 10px 10px 0 0;
    margin-top: 15px;
}

.partner-status.online-status-mb {
    color: #64ef37;
    margin-left: 0px;
}

.partner-status-mb {
    color: #666;
    font-size: 15px;
    font-weight: 400;
}


@media (min-width: 768px) {
    .shop_top {
        height: 240px;
    }
    .partner-status.online-status-mb{display: none;}

    .partner-status-mb{display: none;}
}





.partner-status_personal {
    display: inline;
    padding: 5px 10px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.shop_top_img {
    width: 100%;
    height: 82%;
    padding: 0px 5px;
}

.shop_top_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Панель профиля */
.shop_panel {
    background: #ffffff;
    padding: 0 10px;
    margin-top: -35px;
    position: relative;
}

.shop_panel_info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
}

.shop_panel_img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    margin-top: -30px;
    border-width: 0px;
}

.shop_panel_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.shop_panel_title {
    padding-bottom: 10px;
    flex: 1;
    min-width: 0;
    margin-top: 10px;
}

.shop_title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

@media (min-width: 768px) {
    .shop_title {
        font-size: 20px;
    }
}

.safe-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 25px;
    font-weight: 800;
}

/* Общие стили для страницы товаров */
.products-container {
    background: white;
    border-radius: 12px;
    padding: 0px;
    margin-bottom: 25px;
    margin-top: -15px;
}

/* Стили для вкладок */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.profile-tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.profile-tab-btn:hover {
    color: #000000;
}

.profile-tab-btn.active {
    color: #000000;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 15px;
    margin-top: 20px;
    min-height: 200px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 5px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-info {
    padding: 0px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 5px;
    line-height: 1.4;
    flex-grow: 1;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: -2px;
}

.product-status-badge {
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.product-status-badge[style*="background: #f44336"] {
    background: #f44336 !important;
}

/* Состояние пустого списка */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.empty-state svg {
    margin-bottom: 15px;
    color: #ccc;
}

.empty-state h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #374151;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Кнопка добавления товара */
.settings-main__btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.settings-main__btn:hover {
    background: #333333;
}

/* Рейтинг и информация о пользователе */
.rating-start {
    text-decoration: none;
    font-size: 16px;
    color: #2563eb;
}

.user_rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating_text {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.data_registr {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.partner-status {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px;
}

/* Индикатор загрузки */
.loading-indicator {
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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


/* Кастомный выпадающий список */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: black;
    text-align: center;
}

.custom-select-trigger:hover {
    border-color: black;
    background: var(--card-hover, #f9fafb);
}

.custom-select.open .custom-select-trigger {
    border-color: black;
}

.custom-select-arrow {
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    top: 125%;
    left: 0;
    right: 0;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 100;
    max-height: 0;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    border-radius: 10px;
}

.custom-select.open .custom-select-options {
    max-height: 300px;
    opacity: 1;
}

.custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    color: black;
    text-align: center;
}

.custom-select-option:hover {
    color: #b7b7b7;
}

.custom-select-option.selected {
    color: #b7b7b7;
}

.custom-select-wrapper {
    display: block;
}

.profile-tabs {
    display: none;
}


.custom-select-option.deposit {
    color: #000000;
}


.custom-select-option.a {
    display: block;
    text-decoration: none;
}

.custom-select-option.deposit:hover {
    color: #b7b7b7;
}


.custom-select-option.deposit:hover svg path {
    stroke: #b7b7b7;

}

.custom-select-option.deposit.selected {
    color: #b7b7b7;
}

.custom-select-option.deposit.selected svg path {
    color: #b7b7b7;
}

.custom-select-option.deposit svg path {
    stroke: #000000ff;
}

.custom-select-option.deposit.selected svg path {
    stroke: #b7b7b7;
}

.deposit-development {
    padding: 6px;
}

.profile-tab-btn svg path {
    stroke: #6b7280;
}

.profile-tab-btn:hover svg path {
    stroke: #000000;
}

.profile-tab-btn.active svg path {
    stroke: #000000;
}

.deposit-development h2 {
    color: black;
    font-size: 16px;
    margin-bottom: 20px;
}

.development-badge {
    width: 100%;
    position: relative;
    background: #1db4621f;
    outline-color: rgba(29,180,98,.12);
    border: 1px solid #EBEBEB;
    border-radius: 5px;
    padding: 10px 10px;
    cursor: pointer;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: black;
    text-align: center;
    box-shadow: 0 1px 2px 0 #1db4621f;
}


.development-badge h5 {
    color: #000000;
    font-size: 14px;
}

.btn-deposit {
    background: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 5px;
    padding: 10px 10px;
    cursor: pointer;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: black;
    text-align: center;
    margin-top: 10px;
}

/* Для мобилок */
@media (max-width: 768px) {
    .shop_main.user-profile .shop_panel_img {
        margin-top: -55px;
        width: 80px;
        height: 80px;
        border-width: 0px;
    }
}



@media (min-width: 769px) {
    .custom-select-wrapper {
        display: none;
    }
    
    .profile-tabs {
        display: flex;
        gap: 8px;
        border-bottom: 1px solid var(--border-color, #e5e7eb);
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .custom-select-wrapper {
        max-width: 100%;
        padding: 6px;
    }
}




.shop_title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.safe-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.partner-status_personal {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    height: 25px;
    line-height: 1;
    white-space: nowrap;
}

.partner-status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.status-support {
    background: #2376f3;
}

.status-moderation {
    background: #64db3d;
}

.status-security {
    background: #579aff;
}

.status-admin {
    background: #f31919;
}


.online-status {
    color: #64ef37;
}

.observer-target {
    height: 1px;
    margin-top: 20px;
}

.custom-select-options {
    display: none;  
}

.custom-select.open .custom-select-options {
    display: block;  
}

.profile-tab-btn.a {
    color: #6b7280;
    text-decoration: none;
}

.profile-tab-btn.a:hover {
    color: #000000;
}



/* Звезды рейтинга в шапке */
.user-rating-stars {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.rating-stars {
    display: flex;
    gap: 4px;
    margin-left: 12px;
}

.star {
    font-size: 18px;
    color: #e1e5e9;
}

.star.filled {
    color: #307fe5;
}

.rating-reviews-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.rating-reviews-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

/* Для мобильных */
@media (max-width: 768px) {
    .star {
        font-size: 14px;
    }
    
    .rating-reviews-link {
        font-size: 12px;
    }
}



/* Адаптивность */
@media (max-width: 760px) {
    .container {
        padding: 1px;
    }

    .products-container {
        padding: 0px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(241px, 1fr));
        padding: 3px;
    }

    .product-price {
        font-size: 15px;
        font-weight: 600;
    }
    .safe-text {
        font-size: 18px;
    }
    .product-title {
        font-size: 14px;
        flex-grow: 0;
        margin-top: 8px;
    }
    .partner-status_personal {
        padding: 5px 7px;
        font-size: 12px;
    }
    .partner-status {
        font-size: 15px;
    }
    .rating-start {
        font-size: 15px;
    }
    .rating_text {
        font-size: 15px;
    }
    .product-info {
        flex-grow: 0;
    }

    .product-card {
        min-height: 190px;
    }
    
}

@media (max-width: 520px) {
    .products-container {
        padding: 0px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(171px, 2fr));
        padding: 6px;
    }
    
    .product-image-container {
        height: 140px;
    }


    


    
    .profile-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .profile-tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 440px) {
    .partner-status {
        margin-left: 8px;
    }
}
@media (max-width: 768px) {
    .shop_top_img {
        height: 75%;
    }
    .partner-status.online-status{ display: none;}
    .partner-status.online-status-mb {display: block;}

    .partner-status{display: none;}
    .partner-status-mb{display: block; font-size: 15px;}

}


