


/* public-profile.css */



body {
    background: #f0f2f5 !important;
    padding: 10px !important;
    max-width: 1200px;
    margin: 0 auto 0 !important;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    }
a {text-decoration: none;}
h2 {
    font-weight: 100;
    text-align: center;
    }
.profile-container-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
    gap: 10px;
    }
.profile-container1 {
    background-color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 0 20px 0;
    padding: 20px;
    gap: 10px;
    }
.profile-container2 {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0px 3px #0000001a;
    padding: 10px;
    max-height: 616px;
    overflow: auto;
    width: -webkit-fill-available;
    }
.profile-container3 {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0px 3px #0000001a;
    padding: 10px;
    height: 618px;
    overflow: auto;
    }
.header {
    width: 100%;
    margin: 10px 0;
    }
.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    }
.header .chats-button {
    background: #6e4085;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    }
.header .chats-button img{
    width: 11px;
    position: relative;
    left: -1px;
}
.header .chats-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
.avatar-display-container {
display: flex;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 15px #0000001a;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    }
.avatar-display-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }
.avatar-display-container .initial-letter {
font-size: 33px;
    color: #fff;
    font-weight: 700;
    padding: 30px;
    line-height: 1;
    }
.profile-info-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    }
.profile-info-group label {
    display: block;
    font-weight: 600;
    color: #333;
    }
.profile-info-group p {
    font-size: 13px;
    color: #555;
    word-wrap: break-word;
    margin: 0;
    }
.message-box {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
    }
.message-box.active {
    display: block;
    }



/* ===== ТОВАРЫ В ПРОФИЛЕ ПОЛЬЗОВАТЕЛЯ ===== */

.products-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    position: relative;
    }
.products-list li {
    border-radius: 20px;
}
.products-list li:hover {
    box-shadow: #00000030 0px 0px 40px 0px;
}
.product-card {
    line-height: 1.2;
    display: block;
    text-decoration: none;
    color: inherit;
    }
.product-card:hover {
    text-decoration: none;
    }
.product-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    }
.product-info {
    padding: 11px 10px 4px;
    }
.product-name {
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 10px;
    }
.product-price {
    color: #000000;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 7px;
    word-break: break-word;
    }
.product-view-link {
    font-size: 11px;
    color: #3b8df6;
    text-decoration: none;
    text-transform: uppercase;
    }
.product-view-link:hover {
    text-decoration: underline;
    }
#shopLinkWrapper {
    position: sticky;
    top: 0;
    z-index: 1;
    }
#shopLinkWrapper a {
    font-weight: 600;
    font-size: 17px;
    border-radius: 10px;
    padding: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #6e4085;
    color: white;
    }
#shopLinkWrapper a:hover {
    background: #000;
    color: white;
    }

/* адаптив — чтобы карточки нормально переносились и не распирали */
@media (max-width: 480px) {
    .product-thumb {height: 180px;}
    }




.footer-note {
    font-size: 12px;
    color: #999;
    margin: 0 auto;
    text-align: center;
    max-width: 450px;
    background: #f1f1f1;
    padding: 30px;
    border-radius: 20px;
    }


.chats-block1 {}
.chats-block2 {}
.chats-block3 {    padding: 5px 10px;
    background: #f6f7f9;
    border-radius: 7px;}
.chats-block3 a {    color: black;}
.chats-block4 {}
.chats-block5 {font-weight: 600;}
.chats-block6 {font-size: 11px;}
.chats-block7 {}
.chats-block8 {margin: 10px 10px 20px 10px;}
.chats-block9 {    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    margin: -10px 0px 0px -10px;
    padding: 10px 0;}
.chats-block10 {}
.chats-block11 {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1px;}
.chats-block12 {}
.chats-block13 {}
.chats-block14 {}
.chats-block15 {}
