/* ===== BASE ===== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    margin: 0;
}

/* ===== CONTAINER ===== */
.market-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
}

/* ===== HEADER ===== */
.market-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ===== TOP BAR ===== */
.market-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== LOGO ===== */
.market-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: #111827;
    text-decoration: none;
}

.market-logo img {
    width: 32px;
}

/* ===== SEARCH ===== */
.market-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
}

.market-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    outline: none;
}

/* SEARCH BUTTON */
.search-btn {
    background: #2563eb;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== CATEGORY DROPDOWN ===== */
.category-dropdown {
    position: relative;
    margin-left: 8px;
}

.category-toggle {
    background: #e2e8f0;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.category-menu {
    position: absolute;
    top: 40px;
    left: 0;
    width: 240px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    z-index: 100;
}

.category-dropdown:hover .category-menu {
    display: flex;
}

.category-menu a {
    padding: 10px 14px;
    text-decoration: none;
    color: #0f172a;
}

.category-menu a:hover {
    background: #f1f5f9;
}

/* ===== ACTIONS ===== */
.market-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-link {
    font-size: 14px;
    color: #475569;
    text-decoration: none;
}

.market-btn {
    background: #2563eb;
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
}

/* ===== TAGS ===== */
.market-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.market-tags a {
    font-size: 12px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 999px;
    text-decoration: none;
    color: #475569;
}

.market-tags a:hover {
    background: #2563eb;
    color: white;
}

/* ===== MOBILE ===== */
.market-burger {
    display: none;
    background: none;
    border: none;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
}

.mobile-menu.active {
    display: block;
}

.mobile-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

/* MOBILE CATEGORY */
.mobile-category-toggle {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    text-align: left;
}

.mobile-categories {
    display: none;
    flex-direction: column;
    margin-top: 8px;
}

.mobile-categories.active {
    display: flex;
}

.mobile-categories a {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #111827;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .market-top {
        flex-wrap: wrap;
    }

    .market-search {
        display: none;
    }

    .market-burger {
        display: block;
    }

    .category-dropdown {
        display: none;
    }

    .market-tags {
        display: none;
    }

    .market-actions {
        margin-left: auto;
    }
}


.category-menu {
    position: absolute;
    top: 40px;
    left: 0;
    width: 260px;

    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    display: none;
    flex-direction: column;

    z-index: 100;

    /* 🔥 ВАЖНО */
    max-height: 320px;
    overflow-y: auto;
}

/* hover show */
.category-dropdown:hover .category-menu {
    display: flex;
}

/* ===== SCROLL STYLE (nice UX) ===== */
.category-menu::-webkit-scrollbar {
    width: 6px;
}

.category-menu::-webkit-scrollbar-thumb {
    background: #cbd5f5;
    border-radius: 10px;
}

.category-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox */
.category-menu {
    scrollbar-width: thin;
    scrollbar-color: #cbd5f5 transparent;
}







/* ===== GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== CARD ===== */
.product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* IMAGE */
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* BODY */
.product-body {
    padding: 14px;
}

.product-body h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

/* DESCRIPTION */
.product-body p {
    font-size: 13px;
    color: #64748b;
    height: 40px;
    overflow: hidden;
}

/* ===== PRICE + BUTTON ===== */
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #16a34a;
}

/* FAVORITE */
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fav-btn:hover {
    color: #ef4444;
}

/* ===== ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
} 




/* ===== CATEGORY HEADER ===== */
.page-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

/* БЛОК ОПИСАНИЯ */
.page-desc {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ОТСТУП ДО КАРТОЧЕК */
.product-grid {
    margin-top: 10px;
}



/* ===== PAGINATION WRAPPER ===== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

/* ITEM */
.page-item {
    display: inline-block;
}

/* LINK */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 12px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    font-size: 14px;
    color: #334155;
    text-decoration: none;

    transition: all 0.2s ease;
}

/* HOVER */
.page-link:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ACTIVE */
.page-item.active .page-link {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 600;
}

/* DISABLED */
.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* ARROWS (иконки) */
.page-link i {
    font-size: 12px;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {

    .page-link {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }

    .pagination {
        gap: 4px;
    }
}


/*

.page-desc {
    max-width: 1000px;
}

*/


/* делаем карточку вертикальным flex-контейнером */
.product-card {
    display: flex;
    flex-direction: column;
}

/* тело карточки растягиваем */
.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* описание занимает доступное пространство */
.product-body p {
    flex-grow: 1;
}

/* блок с кнопкой всегда внизу */
.product-bottom {
    margin-top: auto;
}


.product-body h3 {
    min-height: 40px;
}




.btn-buy-outline {

    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 12px;

    font-size: 13px;
    font-weight: 500;

    color: #22c55e;
    background: transparent;

    border: 1px solid rgba(34,197,94,0.5);
    border-radius: 8px;

    text-decoration: none;

    transition: all .2s ease;
}

/* hover — лёгкое заполнение */
.btn-buy-outline:hover {
    background: rgba(34,197,94,0.08);
    border-color: #22c55e;
    color: #4ade80;
}

/* active — микро-клик */
.btn-buy-outline:active {
    transform: scale(0.96);
}

/* иконка */
.btn-buy-outline i {
    width: 14px;
    height: 14px;
}



/* ===== FOOTER ===== */
.market-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
    padding: 40px 0 20px;
}

/* GRID */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* COLUMN */
.footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #0f172a;
}

.footer-col p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* LINKS */
.footer-col a {
    display: block;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    margin-bottom: 6px;
    transition: 0.2s;
}

.footer-col a:hover {
    color: #2563eb;
}

/* SHARE */
.footer-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
    text-align: center;
}

.copy {
    font-size: 13px;
    color: #94a3b8;
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        text-align: left;
    }
} 




/* ===== FOOTER CONTACT BLOCK ===== */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* КАРТОЧКА КОНТАКТА */
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
    color: #475569;

    padding: 12px 14px;
    border-radius: 12px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;

    text-decoration: none;
    transition: 0.25s;
}

/* HOVER */
.footer-contact a:hover {
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-2px);
}

/* ICON */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 8px;
    background: #e0e7ff;
    color: #2563eb;
}

/* ===== MOBILE FOOTER GRID ===== */
@media (max-width: 768px) {

    .market-footer {
        padding: 30px 0 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-col {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 16px;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer-col a {
        padding: 6px 0;
        font-size: 14px;
    }

    /* SHARE */
    .footer-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* COPYRIGHT */
    .footer-bottom {
        text-align: center;
        margin-top: 10px;
    }
} 





/* ===== MOBILE PAGINATION ===== */
@media (max-width: 640px) {

    .pagination {
        flex-wrap: nowrap;              /* ❗ убираем перенос */
        overflow-x: auto;               /* ❗ добавляем горизонтальный скролл */
        justify-content: flex-start;

        padding-bottom: 6px;
        margin-top: 20px;

        /* плавный скролл */
        scroll-behavior: smooth;
    }

    /* скрываем скролл (но оставляем функционал) */
    .pagination::-webkit-scrollbar {
        display: none;
    }

    .pagination {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* элементы не сжимаются */
    .page-item {
        flex: 0 0 auto;
    }

    /* компактнее кнопки */
    .page-link {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 10px;
        border-radius: 8px;
    }

    /* текстовые кнопки */
    .page-link:has(span),
    .page-link:contains("Назад"),
    .page-link:contains("Далее") {
        padding: 0 12px;
    }
}






/* ===== BREADCRUMBS ===== */
.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;

    font-size: 13px;
    color: #64748b;

    margin-bottom: 12px;
    padding-bottom: 4px;
}

/* скрываем скролл */
.breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #2563eb;
}

/* разделитель */
.breadcrumb span {
    opacity: 0.5;
} 





/* ===== PRODUCT PAGE ===== */
.product-page {
    margin-top: 20px;
}

/* TAGS */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.product-tags a {
    font-size: 12px;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    text-decoration: none;
}

/* LAYOUT */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* IMAGE */
.product-gallery img {
    width: 100%;
    border-radius: 16px;
}

/* INFO */
.product-info h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 26px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

/* ACTIONS */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-buy {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #22c55e;
    color: #022c22;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
}

.btn-buy:hover {
    background: #16a34a;
}

.btn-fav {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
}

.btn-fav:hover {
    color: #ef4444;
}

/* FEATURES */
.product-features {
    background: #f8fafc;
    padding: 14px;
    border-radius: 12px;
}

.product-features h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.product-features ul {
    padding-left: 16px;
    font-size: 13px;
    color: #475569;
}

/* FULL TEXT */
.product-full {
    margin-top: 30px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}





/* ===== PRODUCT FEATURES ===== */
.product-features {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
}

.product-features h4 {
    font-size: 14px;
    margin-bottom: 10px;
}

/* список */
.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* элемент */
.product-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;
    padding: 8px 0;

    border-bottom: 1px dashed #e2e8f0;
}

/* последний */
.product-features li:last-child {
    border-bottom: none;
}

/* левая часть */
.product-features li span:first-child {
    color: #64748b;
}

/* правая часть */
.product-features li span:last-child {
    font-weight: 500;
    color: #0f172a;
}










/* =========================
   COMMENTS BLOCK
========================= */

.comments-block {
    margin-top: 30px;
}

/* заголовок */
.comments-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* список */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =========================
   COMMENT ITEM (как чат)
========================= */

.comment-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;

    transition: 0.2s ease;
}

/* лёгкий hover */
.comment-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* header */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

/* имя */
.comment-name {
    font-weight: 600;
    font-size: 14px;
}

/* дата */
.comment-date {
    font-size: 12px;
    color: #94a3b8;
}

/* текст */
.comment-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* =========================
   RATING (в списке)
========================= */

.comment-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.comment-rating i {
    width: 16px;
    height: 16px;
    color: #e2e8f0;
}

.comment-rating i.active {
    color: #f59e0b; /* янтарный */
}

/* =========================
   COMMENT FORM
========================= */

.comment-form {
    margin-top: 30px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;

    padding: 20px;
}

/* заголовок */
.comment-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* инпуты */
.comment-form input,
.comment-form textarea {
    margin-bottom: 12px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    padding: 10px 12px;

    font-size: 14px;
    background: #f8fafc;

    transition: 0.2s;
}

/* focus */
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    outline: none;
}

/* textarea */
.comment-form textarea {
    min-height: 90px;
}

/* =========================
   RATING (интерактив)
========================= */

.rating {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.rating i {
    width: 22px;
    height: 22px;

    cursor: pointer;

    color: #e2e8f0;
    transition: 0.2s;
}

/* hover эффект */
.rating i:hover {
    transform: scale(1.15);
}

/* активные */
.rating i.active {
    color: #f59e0b;
}

/* =========================
   CAPTCHA
========================= */

.comment-captcha {
    margin: 10px 0 14px;
}

/* =========================
   BUTTON
========================= */

.comment-actions button {
    width: 100%;

    background: #22c55e;
    color: #022c22;

    border: none;
    border-radius: 12px;

    padding: 12px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

/* hover */
.comment-actions button:hover {
    background: #16a34a;
}

/* click */
.comment-actions button:active {
    transform: scale(0.97);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .comment-form {
        padding: 16px;
    }

    .comment-item {
        padding: 12px;
    }

    .rating i {
        width: 20px;
        height: 20px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
}













/* =========================
   DESKTOP PRO (PRODUCTION)
========================= */

@media (min-width: 769px) {

    /* контейнер формы */
    .comment-form {
        max-width: 600px;
        margin: 40px auto 0;

        padding: 26px;

        border-radius: 16px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    /* заголовок */
    .comment-title {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    /* --- GRID ДЛЯ INPUT --- */
    .comment-form input[type="text"],
    .comment-form input[type="email"] {
        width: 100%;
    }

    /* делаем 2 колонки */
    .comment-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
    }

    /* заголовок на всю ширину */
    .comment-title {
        grid-column: span 2;
    }

    /* rating */
    .rating {
        grid-column: span 2;
        margin-bottom: 4px;
    }

    .rating i {
        width: 24px;
        height: 24px;
    }

    /* textarea на всю ширину */
    .comment-form textarea {
        grid-column: span 2;

        width: 100%;
        min-height: 120px;

        padding: 12px 14px;
        font-size: 14px;
    }

    /* captcha */
    .comment-captcha {
        grid-column: span 2;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    /* кнопка */
    .comment-actions {
        grid-column: span 2;

        display: flex;
        justify-content: flex-end;
        margin-top: 6px;
    }

    .comment-actions button {
        width: auto;
        min-width: 180px;

        padding: 12px 20px;

        border-radius: 10px;

        font-size: 14px;
        font-weight: 600;

        transition: all 0.2s ease;
    }

    .comment-actions button:hover {
        box-shadow: 0 8px 20px rgba(34,197,94,0.25);
        transform: translateY(-1px);
    }

    .comment-actions button:active {
        transform: scale(0.97);
    }
}









/* =========================
   COMMENTS LIST PRO
========================= */

/* контейнер */
.comments-block {
    margin-top: 40px;
}

/* заголовок */
.comments-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* список */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================
   COMMENT CARD
========================= */

.card-body {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;

    padding: 18px 20px;

    transition: all 0.2s ease;
}

/* hover эффект */
.card-body:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* убираем HR мусор */
.comments-list hr {
    display: none;
}

/* =========================
   FLEX LAYOUT
========================= */

.card-body .d-flex {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* =========================
   AVATAR
========================= */

.card-body img {
    width: 48px;
    height: 48px;

    border-radius: 50%;
    object-fit: cover;

    border: 1px solid #e2e8f0;
}

/* =========================
   CONTENT
========================= */

.card-body h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* дата + действия */
.card-body .d-flex.align-items-center {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 4px;
    margin-bottom: 8px;
}

/* дата */
.card-body .mb-0 {
    font-size: 12px;
    color: #94a3b8;
}

/* текст */
.card-body p {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* =========================
   ACTION ICON
========================= */

.link-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 8px;

    color: #94a3b8;
    text-decoration: none;

    transition: 0.2s;
}

.link-muted:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* =========================
   DESKTOP POLISH
========================= */

@media (min-width: 769px) {

    .comments-list {
        gap: 18px;
    }

    .card-body {
        padding: 20px 22px;
    }

    /* текст чуть комфортнее */
    .card-body p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* аватар чуть меньше чем моб — баланс */
    .card-body img {
        width: 44px;
        height: 44px;
    }
}

/* =========================
   MOBILE TWEAK
========================= */

@media (max-width: 768px) {

    .card-body {
        padding: 14px;
    }

    .card-body img {
        width: 42px;
        height: 42px;
    }

    .card-body p {
        font-size: 13px;
    }
}






/* ===== GLOBAL FIX (ОЧЕНЬ ВАЖНО) ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* страховка от любого переполнения */
html, body {
    overflow-x: hidden;
}







/* ================================================================
   USER HEADER (PRO) - панель авторизованного пользователя
========================= */

.user-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* основной контейнер */
.user-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 10px 0;
}

/* =========================
   USER INFO
========================= */

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

/* email */
.user-email {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}

/* баланс */
.user-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 13px;
    font-weight: 600;

    color: #16a34a;
}

/* =========================
   NAVIGATION
========================= */

.user-nav {
    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;
}

/* скрываем скролл */
.user-nav::-webkit-scrollbar {
    display: none;
}

/* ссылка */
.user-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 12px;

    font-size: 13px;
    font-weight: 500;

    color: #475569;
    text-decoration: none;

    background: #f1f5f9;
    border-radius: 10px;

    white-space: nowrap;

    transition: all 0.2s ease;
}

/* иконка */
.user-link i {
    width: 14px;
    height: 14px;
}

/* hover */
.user-link:hover {
    background: #2563eb;
    color: #ffffff;
}

/* CTA баланс */
.user-link.highlight {
    background: #dcfce7;
    color: #166534;
}

.user-link.highlight:hover {
    background: #22c55e;
    color: #022c22;
}

/* logout */
.user-link.logout {
    background: #fee2e2;
    color: #991b1b;
}

.user-link.logout:hover {
    background: #ef4444;
    color: #ffffff;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .user-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .user-info {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .user-email {
        font-size: 12px;
    }

    .user-balance {
        font-size: 12px;
    }

    .user-nav {
        width: 100%;
        gap: 8px;
    }

    .user-link {
        font-size: 12px;
        padding: 7px 10px;
    }

    /* ultra mobile — только иконки */
    @media (max-width: 480px) {
        .user-link span {
            display: none;
        }

        .user-link i {
            width: 18px;
            height: 18px;
        }
    }
}






/* =========================
   USER INFO (UPGRADE)
========================= */

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* БАЛАНС — главный акцент */
.user-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 15px;
    font-weight: 700;

    color: #16a34a;
}

/* цифра баланса */
.balance-value {

    font-size: 20px;
    letter-spacing: 0.3px;
}



/* email — вторичный */
.user-email {

    font-size: 18px;
    color: #64748b;

    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .user-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .user-balance {
        font-size: 14px;
    }

    .balance-value {
        font-size: 15px;
    }

    .user-email {
        font-size: 11px;
        max-width: 140px;
    }
}











    
/* ===== FAVORITES ===== */

.favorites-block {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* HEADER */

.favorites-header {
    margin-bottom: 20px;
}

.favorites-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* LIST */

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ITEM */

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 12px 14px;
    border-radius: 12px;
    background: #fafafa;

    transition: all 0.2s ease;
}

.favorite-item:hover {
    background: #f3f4f6;
}

/* LEFT */

.favorite-left img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

/* CENTER */

.favorite-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.favorite-title {
    font-size: 14px;
    font-weight: 500;
}

.favorite-price {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

/* RIGHT */

.favorite-right {
    display: flex;
    align-items: center;
}

.favorite-remove {
    width: 36px;
    height: 36px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid #e5e7eb;

    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-remove:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.05);
}

/* EMPTY */

.favorites-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.favorites-empty i {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.favorites-empty p {
    margin-bottom: 16px;
}





/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .favorites-list {
        gap: 16px; /* больше воздуха между карточками */
    }

    .favorite-item {
        padding: 14px;
        border-radius: 14px;

        align-items: center;
        gap: 12px;
    }

    /* КАРТИНКА МЕНЬШЕ И АККУРАТНЕЕ */

    .favorite-left img {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    /* КОНТЕНТ */

    .favorite-center {
        gap: 4px;
    }

    .favorite-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .favorite-price {
        font-size: 13px;
    }

    /* КНОПКА УДАЛЕНИЯ — БОЛЕЕ ТАПАБЕЛЬНАЯ */

    .favorite-remove {
        width: 40px;
        height: 40px;
        border-radius: 12px;

        border: 1px solid #e5e7eb;
        background: #fff;

        flex-shrink: 0;
    }

    .favorite-remove i {
        width: 18px;
        height: 18px;
    }

    /* ДОП: немного "воздуха" контейнеру */

    .favorites-block {
        padding: 16px;
    }
}










.favorites-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-header h2 i {
    width: 20px;
    height: 20px;
}






/* ===== HISTORY ===== */

.history-block {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* HEADER */

.history-header {
    margin-bottom: 20px;
}

.history-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 20px;
    font-weight: 600;
}

/* LIST */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ITEM */

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 12px 14px;
    border-radius: 12px;
    background: #fafafa;

    transition: all 0.2s ease;
}

.history-item:hover {
    background: #f3f4f6;
}

/* LEFT */

.history-left img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

/* CENTER */

.history-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-title {
    font-size: 14px;
    font-weight: 500;
}

/* META */

.history-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

.history-id {
    font-weight: 500;
}

.history-date {
    opacity: 0.8;
}

/* BOTTOM */

.history-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-price {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

/* STATUS */

.history-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
}

.status-success {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
}

.status-pending {
    background: rgba(234,179,8,0.1);
    color: #ca8a04;
}

.status-cancel {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
}

/* RIGHT */

.history-repeat {
    width: 36px;
    height: 36px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e7eb;
    background: transparent;

    cursor: pointer;
    transition: all 0.2s ease;
}

.history-repeat:hover {
    background: #f3f4f6;
}

/* EMPTY */

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .history-list {
        gap: 16px;
    }

    .history-item {
        padding: 14px;
        gap: 12px;
    }

    .history-left img {
        width: 44px;
        height: 44px;
    }

    .history-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .history-price {
        font-size: 13px;
    }

    .history-meta {
        font-size: 11px;
    }

    .history-status {
        font-size: 11px;
        padding: 3px 6px;
    }

    .history-repeat {
        width: 40px;
        height: 40px;
    }
} 




/* ===== BALANCE ===== */

.balance-block {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* HEADER */

.balance-header {
    margin-bottom: 20px;
}

.balance-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 20px;
    font-weight: 600;
}

/* CARD */

.balance-card {
    max-width: 420px;
}

/* FIELD */

.balance-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.balance-field label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #6b7280;
}

/* INPUT */

.balance-field input,
.balance-field select {
    height: 44px;
    padding: 0 12px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;

    font-size: 14px;
    background: #fff;

    transition: all 0.2s ease;
}

.balance-field input:focus,
.balance-field select:focus {
    border-color: #16a34a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.1);
}

/* BUTTON */

.balance-submit {
    width: 100%;
    height: 46px;

    border-radius: 12px;
    border: none;

    background: #16a34a;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.2s ease;
}

.balance-submit:hover {
    background: #15803d;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .balance-card {
        max-width: 100%;
    }

    .balance-block {
        padding: 16px;
    }

    .balance-field input,
    .balance-field select {
        height: 42px;
        font-size: 13px;
    }

    .balance-submit {
        height: 44px;
        font-size: 13px;
    }
}




/* ===== BALANCE BUTTON (DESKTOP) ===== */

@media (min-width: 769px) {

    .balance-submit {
        width: auto;
        min-width: 220px;
        padding: 0 20px;
    }

}




/* ===== BALANCE HISTORY ===== */

.balance-history-block {
    margin-top: 20px;

    background: #fff;
    border-radius: 16px;
    padding: 20px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* HEADER */

.balance-history-header {
    margin-bottom: 16px;
}

.balance-history-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 16px;
    font-weight: 600;
}

/* LIST */

.balance-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ITEM */

.balance-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 14px;
    border-radius: 12px;
    background: #fafafa;

    transition: all 0.2s ease;
}

.balance-history-item:hover {
    background: #f3f4f6;
}

/* LEFT */

.balance-history-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-history-amount {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

.balance-history-meta {
    font-size: 12px;
    color: #6b7280;

    display: flex;
    gap: 8px;
}

/* RIGHT */

.balance-history-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
}

/* EMPTY */

.balance-history-empty {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .balance-history-block {
        padding: 16px;
    }

    .balance-history-item {
        padding: 12px;
    }

    .balance-history-amount {
        font-size: 13px;
    }

    .balance-history-meta {
        font-size: 11px;
    }

    .balance-history-status {
        font-size: 11px;
        padding: 3px 6px;
    }
}




/* ===== SETTINGS ===== */

.settings-block {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* HEADER */

.settings-header {
    margin-bottom: 20px;
}

.settings-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 20px;
    font-weight: 600;
}

/* CARD */

.settings-card {
    background: #fafafa;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

/* ACTION */

.settings-action {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.settings-action:last-child {
    border-bottom: none;
}

.settings-action-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-action-title {
    font-size: 14px;
    font-weight: 500;
}

.settings-action-desc {
    font-size: 12px;
    color: #6b7280;
}

/* BUTTON */

.settings-btn {
    height: 34px;
    padding: 0 14px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;

    background: #fff;
    cursor: pointer;

    font-size: 13px;
    transition: all 0.2s ease;
}

.settings-btn:hover {
    background: #f3f4f6;
}

.settings-btn.success {
    border-color: #16a34a;
    color: #16a34a;
}

.settings-btn.success:hover {
    background: rgba(22,163,74,0.08);
}

/* FIELD */

.settings-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.settings-field label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #6b7280;
}

.settings-field input {
    height: 44px;
    padding: 0 12px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;

    font-size: 14px;
    transition: all 0.2s ease;
}

.settings-field input:focus {
    border-color: #16a34a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.1);
}

/* SAVE */

.settings-save {
    height: 44px;
    padding: 0 20px;

    border-radius: 12px;
    border: none;

    background: #16a34a;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-save:hover {
    background: #15803d;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .settings-block {
        padding: 16px;
    }

    .settings-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .settings-btn {
        width: 100%;
        height: 40px;
    }

    .settings-save {
        width: 100%;
    }

    .settings-field input {
        height: 42px;
        font-size: 13px;
    }
} 









/* ===== SUPPORT ===== */

.support-block {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* HEADER */

.support-header {
    margin-bottom: 20px;
}

.support-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 20px;
    font-weight: 600;
}

/* CARD */

.support-card {
    max-width: 520px;
}

/* FIELD */

.support-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.support-field label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #6b7280;
}

/* INPUT + SELECT */

.support-field input,
.support-field select {
    height: 44px;
    padding: 0 12px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;

    font-size: 14px;
    background: #fff;

    transition: all 0.2s ease;
}

.support-field input:focus,
.support-field select:focus {
    border-color: #16a34a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.1);
}

/* TEXTAREA */

.support-field textarea {
    min-height: 120px;
    padding: 10px 12px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;

    font-size: 14px;
    resize: vertical;

    transition: all 0.2s ease;
}

.support-field textarea:focus {
    border-color: #16a34a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.1);
}

/* COUNTER */

.support-counter {
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* CAPTCHA */

.support-captcha {
    margin: 16px 0;
}

/* BUTTON */

.support-submit {
    width: 100%;
    height: 46px;

    border-radius: 12px;
    border: none;

    background: #16a34a;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.2s ease;
}

.support-submit:hover {
    background: #15803d;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .support-block {
        padding: 16px;
    }

    .support-card {
        max-width: 100%;
    }

    .support-field input,
    .support-field select {
        height: 42px;
        font-size: 13px;
    }

    .support-field textarea {
        font-size: 13px;
    }

    .support-submit {
        height: 44px;
        font-size: 13px;
    }
}





/* ===== SUPPORT BUTTON (DESKTOP) ===== */

@media (min-width: 769px) {

    .support-submit {
        width: auto;
        min-width: 220px;
        padding: 0 20px;
    }

}





/* USER INFO LAYOUT */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* важно для мобилки */
}

/* ОБЩИЙ БЛОК БАЛАНСА */
.user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
}

/* ОСНОВНОЙ БАЛАНС */
.user-balance i {
    width: 18px;
    height: 18px;
    color: #333;
}

/* КЭШБЕК БАЛАНС */
.user-balance.cashback {
    background: #fff1f1;
}

.user-balance.cashback i {
    color: #e53935; /* красный */
}

/* ТЕКСТ */
.balance-value {
    font-weight: 600;
}

/* EMAIL */
.user-email {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

/* АДАПТИВ */
@media (max-width: 768px) {
    .user-info {
        gap: 10px;
    }

    .user-email {
        width: 100%;
        margin-left: 0;
    }
}



.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ГРУППА БАЛАНСОВ (всегда в одну линию) */
.balance-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* EMAIL УХОДИТ ВПРАВО */
.user-email {
    margin-left: auto;
    font-size: 14px;
    color: #666;
}

/* МОБИЛКА */
@media (max-width: 768px) {
    .user-info {
        flex-wrap: wrap;
    }
}



.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* БАЛАНСЫ В ОДНУ СТРОКУ */
.balance-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* EMAIL СЛЕВА */
.user-email {
    font-size: 14px;
    color: #666;
    margin-left: 0; /* убрали авто-сдвиг */
}

/* МОБИЛКА */
@media (max-width: 768px) {
    .user-email {
        width: 100%;
    }
}




/* Блок cashback */

#cashback {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 8px;
    padding: 6px 12px;

    font-size: 14px;
    font-weight: 600;
    color: #fff;

    background: linear-gradient(135deg, #7b61ff, #a78bfa);
    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(123, 97, 255, 0.25);

    position: relative;
    overflow: hidden;

    transition: all 0.2s ease;
}

/* иконка */
#cashback i {
    width: 16px;
    height: 16px;
}

/* hover эффект */
#cashback:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.35);
}


/* Блок с скидкой */

#discount {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;

    font-size: 14px;
    font-weight: 600;
    color: #fff;

    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.25);

    position: relative;
    overflow: hidden;
}

/* маленький "бейдж" эффект */
#discount::before {
    content: "🔥";
    margin-right: 6px;
}

/* hover эффект (приятная микро-анимация) */
#discount:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.35);
    transition: all 0.2s ease;
}






.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.new-price {
    color: #16a34a;
    font-size: 22px;
    font-weight: 700;
}




.btn-fav {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;
    
    border-radius: 10px;
}

/* фикс для самой иконки */
.btn-fav i {
    display: flex;
    align-items: center;
    justify-content: center;
}



/* общий контейнер */
.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* группа цен */
.price-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* новая цена */
.price-current {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

/* если есть скидка */
.price-current.discount {
    color: #dc2626; /* красный */
    font-size: 20px;
    font-weight: 700;
}

/* старая цена */
.price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* бейдж скидки */
.price-badge {
    display: inline-block;
    width: fit-content;

    margin-top: 2px;
    padding: 2px 6px;

    font-size: 12px;
    font-weight: 600;
    color: #fff;

    background: #dc2626;
    border-radius: 6px;
} 



/* ===== RANDOM PRODUCTS ===== */

.rand-products {
    margin-top: 30px;
}

.rand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* карточка */
.rand-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    transition: 0.25s;
    border: 1px solid #eee;
}

.rand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.rand-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* тело */
.rand-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.rand-body p {
    font-size: 12px;
    color: #777;
    height: 32px;
    overflow: hidden;
}

/* цена */
.price-wrapper {
    margin: 10px 0;
}

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

.price-current {
    font-weight: 600;
    font-size: 14px;
}

.price-current.discount {
    color: #16a34a;
}

.price-old {
    text-decoration: line-through;
    font-size: 12px;
    color: #999;
}

.price-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #fff;
    background: #ef4444;
    padding: 2px 6px;
    border-radius: 6px;
}

/* кнопка избранного */
.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
}

.fav-btn:hover {
    background: #f3f4f6;
}

/* кнопка купить */
.btn-buy-outline {
    display: block;
    text-align: center;
    padding: 6px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    margin-top: 8px;
    transition: 0.2s;
}

.btn-buy-outline:hover {
    background: #111;
    color: #fff;
}

/* адаптив */
@media (max-width: 1200px) {
    .rand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}





/* Payment Form */


.payment-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.payment-card {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* LEFT */
.payment-product {
    flex: 1;
    text-align: center;
}

.payment-product img {
    max-width: 220px;
    margin: 0 auto 20px;
    border-radius: 12px;
}

.payment-product h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.payment-price {
    font-size: 26px;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 10px;
}

.payment-order {
    font-size: 14px;
    color: #888;
}

/* RIGHT */
.payment-form {
    flex: 1;
}

.payment-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.payment-form input,
.payment-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.payment-form input:focus,
.payment-form select:focus {
    border-color: #6366f1;
    outline: none;
}

/* BUTTON */
.btn-pay {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

/* ADAPTIVE */
@media (max-width: 768px) {

    .payment-card {
        flex-direction: column;
    }

    .payment-product img {
        max-width: 180px;
    }

}




/* ===== ОСНОВА  Favorit Page ===== */

.market-container{
    max-width:1200px;
    margin:0 auto;
    padding:15px;
}

.favorites-block{
    background:#fff;
    border-radius:12px;
    padding:20px;
}

/* ===== HEADER ===== */

.favorites-header h2{
    display:flex;
    align-items:center;
    gap:10px;
}

/* ===== ITEM ===== */

.favorite-item{
    display:flex;
    gap:15px;
    padding:15px 0;
    border-bottom:1px solid #eee;
    align-items:center;
    flex-wrap:wrap;
}

.favorite-left img{
    width:100px;
    border-radius:8px;
}

.favorite-center{
    flex:1;
    min-width:200px;
}

.favorite-title a{
    font-weight:bold;
    text-decoration:none;
}

.favorite-price{
    margin-top:5px;
    font-size:18px;
}

/* ===== RIGHT ===== */

.favorite-right{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

/* ===== КНОПКИ ===== */

.btn-buy{
    background:#4CAF50;
    color:#fff;
    padding:10px 15px;
    border-radius:8px;
    text-decoration:none;
}

.favorite-remove{
    background:#ff4d4d;
    color:#fff;
    border:none;
    padding:8px;
    border-radius:8px;
    cursor:pointer;
}

/* ===== КОЛ-ВО ===== */

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

.product-count input{
    width:70px;
    padding:5px;
}

/* ===== АДАПТИВ ===== */

@media (max-width:768px){

    .favorite-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .favorite-left img{
        width:100%;
        max-width:200px;
    }

    .favorite-right{
        width:100%;
        justify-content:space-between;
    }
}





/* ===== ОСНОВА ===== */

.market-container{
    max-width:1200px;
    margin:0 auto;
    padding:15px;
}

/* ===== ЦЕНЫ ===== */

.favorite-price{
    margin-top:8px;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.old-price{
    text-decoration: line-through;
    color:#999;
    font-size:14px;
}

.new-price{
    color:#e53935;
    font-size:20px;
    font-weight:bold;
}

.discount-badge{
    display:inline-block;
    background:#e53935;
    color:#fff;
    font-size:12px;
    padding:2px 6px;
    border-radius:6px;
    width:fit-content;
}

/* ===== АДАПТИВ ===== */

@media (max-width:768px){
}



/* ===== ДЕСКТОП: ЦЕНЫ В ОДНУ СТРОКУ ===== */

@media (min-width: 769px){

    .favorite-price{
        flex-direction: row;
        align-items: center;
        gap:10px;
        flex-wrap: wrap;
    }

    .old-price{
        margin:0;
    }

    .new-price{
        margin:0;
    }

    .discount-badge{
        margin-left:5px;
    }

}



.new-price{
    font-size:18px;
}




.history-list{
    max-height: 500px;
    overflow-y: auto;
}



/* meta блок */
.history-meta{
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* фикс от горизонтального скролла */
}

/* количество */
.history-count{
    white-space: nowrap;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 768px){

    .history-meta{
        flex-direction: column;
        gap: 3px;
    }

    /* переносим кол-во вниз */
    .history-count{
        order: 3;
    }

    /* блок с ценой и статусом */
    .history-bottom{
        flex-direction: column;
        gap: 5px;
    }
}



/* контейнер */
.history-left{
    flex-shrink: 0;
}

/* изображение */
.history-left img{
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 768px){

    .history-left{
        width: 100%;
    }

    .history-left img{
        width: 100%;
        height: 160px; /* фикс высоты */
        object-fit: cover;
    }
}




/* ===== АДАПТИВ ===== */

@media (max-width: 768px){

    .history-left{
        display: none;
    }

}




/* ===== STATUS PAGE ===== */

.payment-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 70vh;
}

/* карточка */
.payment-status-card {
    max-width: 500px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* иконка */
.status-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* success */
.payment-status-card.success .status-icon {
    color: #22c55e;
}

/* error */
.payment-status-card.error .status-icon {
    color: #ef4444;
}

/* заголовок */
.payment-status-card h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* текст */
.payment-status-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* кнопка */
.btn-main {
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-main:hover {
    background: #333;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 600px) {

    .payment-status-card {
        padding: 30px 20px;
    }

    .payment-status-card h1 {
        font-size: 20px;
    }

    .status-icon {
        font-size: 50px;
    }

}




/* =========================
   История пополнений (scroll)
   ========================= */

.balance-history-block {
    margin-top: 20px;
}

/* контейнер списка */
.balance-history-list {
    max-height: 320px; /* регулируй под дизайн */
    overflow-y: auto;
    padding-right: 6px;
}

/* кастомный скролл (Chrome, Edge, Safari) */
.balance-history-list::-webkit-scrollbar {
    width: 6px;
}

.balance-history-list::-webkit-scrollbar-track {
    background: transparent;
}

.balance-history-list::-webkit-scrollbar-thumb {
    background: #d1d5db; /* серый */
    border-radius: 10px;
}

.balance-history-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Firefox */
.balance-history-list {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* чтобы элементы не прыгали */
.balance-history-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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





/* =========================
   Типы транзакций
   ========================= */

/* Пополнение (зелёный) */
.balance-history-amount.amount-in {
    color: #16a34a; /* Tailwind green-600 */
    font-weight: 600;
}

/* Списание (красный) */
.balance-history-amount.amount-out {
    color: #dc2626; /* Tailwind red-600 */
    font-weight: 600;
}




/* =========================
   Адаптив: история транзакций
   ========================= */

@media (max-width: 768px) {

    .balance-history-block {
        margin-top: 15px;
    }

    .balance-history-header h3 {
        font-size: 16px;
    }

    .balance-history-list {
        max-height: 260px;
    }

    .balance-history-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
    }

    .balance-history-left {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .balance-history-right {
        display: flex;
        justify-content: flex-end;
    }

    .balance-history-amount {
        font-size: 16px;
        line-height: 1.2;
    }

    .balance-history-meta {
        font-size: 12px;
        color: #6b7280;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .balance-history-meta span {
        white-space: nowrap;
    }

    .balance-history-status {
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 6px;
    }
}






/* ===== META ROW (TAGS + SELLER) ===== */

.product-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

/* TAGS */
.product-meta-row .product-tags {
    flex: 1;
    margin-bottom: 0;
}

/* фикс высоты карточки тегов */
.product-meta-row .product-tags .card {
    height: 100%;
}

/* ===== SELLER ===== */

.product-seller {
    width: 260px;
    flex-shrink: 0;
    display: flex;
}



/* карточка */
.seller-link {

    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    height: 100%;

    padding: 14px;
    border-radius: 12px;

    background: #fff;
    border: 1px solid #e5e7eb;

    text-decoration: none;
    color: inherit;

    transition: all 0.2s ease;
}



.seller-link:hover {
    border-color: #cbd5f5;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* ===== AVATAR ===== */

.seller-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;

    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ===== TEXT ===== */

.seller-info {
    display: flex;
    flex-direction: column;
}

.seller-label {
    font-size: 12px;
    color: #6b7280;
}

.seller-name {
    font-size: 15px;
    font-weight: 600;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .product-meta-row {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 18px;
    }

    .product-seller {
        width: 100%;
    }

}



/* SELLER INLINE (в карточке товара) */
.product-seller-inline {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}



.product-seller-inline .seller-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;   /* 🔥 убрали подчеркивание */
    color: inherit;          /* чтобы не было синего цвета ссылки */
}



.product-seller-inline .seller-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.product-seller-inline .seller-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.product-seller-inline .seller-label {
    font-size: 11px;
    color: #9ca3af;
}

.product-seller-inline .seller-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* hover эффект */
.product-seller-inline .seller-link:hover .seller-name {
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 640px) {

    .product-seller-inline {
        margin-bottom: 8px;
    }

    .product-seller-inline .seller-avatar img {
        width: 32px;
        height: 32px;
    }

    .product-seller-inline .seller-name {
        font-size: 13px;
    }
} 


.product-info a.seller-link {
    text-decoration: none;
    color: inherit;
}


.product-info .seller-link {
    text-decoration: none !important;
}





/* ===== RAND PRODUCTS ===== */

.rand-products {
    overflow: hidden;
}

/* контейнер ограничение под ~6 карточек */

.rand-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* header */

.rand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* кнопки */

.rand-nav {
    display: flex;
    gap: 8px;
}

.rand-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.rand-btn:hover {
    background: #f3f4f6;
}

/* wrapper */

.rand-wrapper {
    overflow: hidden;
}

/* grid */

.rand-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.rand-grid::-webkit-scrollbar {
    display: none;
}

/* карточка */

.rand-card {
    min-width: 220px;
    max-width: 220px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* изображение (фикс: квадрат вместо круга) */

.rand-img {
    display: block;
    padding: 10px;
}

.rand-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

/* внутренняя структура */

.rand-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 12px 12px 12px;
}

/* body */

.rand-body {
    flex-grow: 1;
}

.rand-body h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

/* фикс высоты описания */

.rand-body p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
}

/* footer фиксируем вниз */

.rand-footer {
    margin-top: auto;
}

/* адаптив */

@media (max-width: 768px) {

    .rand-card {
        min-width: 160px;
        max-width: 160px;
    }

    .rand-body p {
        height: 30px;
    }

}



/* ===== BUY BUTTON FIX ===== */

.btn-buy-outline {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;

    border: 1px solid #22c55e;
    border-radius: 10px;

    text-decoration: none;
    background: #fff;

    transition: all 0.2s;
}

/* внутреннее выравнивание */

.btn-buy-outline .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 500;
    color: #22c55e;
}

/* иконка */

.btn-buy-outline i {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* hover */

.btn-buy-outline:hover {
    background: #22c55e;
    border-color: #22c55e;
}

.btn-buy-outline:hover .btn-content {
    color: #fff;
}

/* адаптив */

@media (max-width: 768px) {

    .btn-buy-outline {
        padding: 9px;
    }

    .btn-buy-outline .btn-content {
        font-size: 13px;
        gap: 6px;
    }

}





.rating i,
.rating svg {
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.5;
}

.rating i.active,
.rating svg.active {
    opacity: 1;
    color: #facc15; /* желтый */
    fill: #facc15;
}

.rating i:hover,
.rating svg:hover {
    transform: scale(1.15);
}



/* ===== Рейтинг комментариев ===== */

.comment-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.comment-rating .star {
    font-size: 16px;
    color: #ddd; /* пустые звезды */
}

.comment-rating .star.filled {
    color: #ffc107; /* желтые звезды как в маркетплейсах */
}

/* (опционально) чуть мягче визуал */
.comment-rating .star {
    transition: color 0.2s ease;
}





/* Контейнер списка комментариев */
.comments-list {
    max-height: 600px;          /* ограничение по высоте (примерно ~10 комментариев) */
    overflow-y: auto;           /* вертикальная прокрутка */
    overflow-x: hidden;         /* убираем горизонтальный скролл */
    padding-right: 8px;         /* отступ под скролл */
}

/* Кастомный скролл (Chrome / Edge / Safari) */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox */
.comments-list {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* Чтобы разделители не прилипали к краям */
.comments-list .card-body {
    padding-right: 5px;
}


.comments-list {
    scroll-behavior: smooth;
}



.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirm-box {
    background: #1f2937;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
}

.confirm-text {
    margin-bottom: 20px;
    font-size: 14px;
}

.confirm-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.confirm-cancel,
.confirm-ok {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.confirm-cancel {
    background: #374151;
    color: #fff;
}

.confirm-ok {
    background: #10b981;
    color: #fff;
}




.footer-category-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-category-column{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-category-column a{
    display: block;
}



@media (max-width: 768px){

    .footer-category-grid{
        grid-template-columns: 1fr;
        gap: 10px;
    }

}





/* =========================
   FOOTER
========================= */

.market-footer{
    background: #f8f9fc;
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
    padding-top: 50px;
}

/* контейнер */
.market-footer .market-container{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* верхняя сетка */
.footer-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    align-items: flex-start;
    padding-bottom: 35px;
    border-bottom: 1px solid #e9ecef;
}

/* колонка */
.footer-col{
    display: flex;
    flex-direction: column;
}

/* заголовки */
.footer-col h4{
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* описание */
.footer-col p{
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ссылки */
.footer-col a,
.footer-contact a{
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-col a:hover,
.footer-contact a:hover{
    color: #0d6efd;
    transform: translateX(3px);
}

/* =========================
   CATEGORY GRID
========================= */

.footer-category-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-category-column{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-category-column a{
    margin-bottom: 0;
}

/* =========================
   CONTACT
========================= */

.footer-contact{
    display: flex;
    flex-direction: column;
}

.contact-icon{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i{
    width: 18px;
    height: 18px;
    color: #6b7280;
}

/* =========================
   SHARE
========================= */

.footer-share{
    padding: 25px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e9ecef;
}

.footer-share span{
    color: #1f2937;
    font-weight: 600;
}

/* =========================
   BOTTOM
========================= */

.footer-bottom{
    padding: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copy{
    color: #6b7280;
    font-size: 14px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px){

    .footer-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

    .market-footer{
        padding-top: 35px;
    }

    .footer-grid{
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-category-grid{
        grid-template-columns: 1fr;
    }

    .footer-share{
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-bottom{
        text-align: center;
    }
}







/*
|--------------------------------------------------------------------------
| ABOUT PAGE
|--------------------------------------------------------------------------
*/

.about-page{
    padding: 40px 0 60px;
}

/* hero */

.about-hero{
    background: linear-gradient(135deg,#111827,#1f2937);
    color:#fff;
    border-radius:20px;
    padding:50px;
    margin-bottom:30px;
    text-align:center;
}

.about-hero h1{
    font-size:38px;
    font-weight:700;
    margin-bottom:20px;
    line-height:1.2;
}

.about-hero p{
    max-width:800px;
    margin:0 auto;
    font-size:18px;
    line-height:1.7;
    opacity:0.95;
}

/* content card */

.about-card{
    background:#fff;
    border-radius:20px;
    padding:40px;
    box-shadow:0 10px 30px rgba(0,0,0,0.06);
    border:1px solid #f1f1f1;
}

/* text */

.about-content p{
    font-size:16px;
    line-height:1.9;
    color:#374151;
    margin-bottom:24px;
}

.about-content strong{
    color:#111827;
}

/* list */

.about-features{
    margin:30px 0;
    padding:25px;
    background:#f9fafb;
    border-radius:16px;
}

.about-features h2{
    font-size:22px;
    margin-bottom:20px;
    font-weight:600;
}

.about-features ul{
    padding-left:20px;
}

.about-features li{
    margin-bottom:14px;
    line-height:1.7;
    color:#4b5563;
}

/* bottom block */

.about-bottom{
    margin-top:35px;
    padding:25px;
    border-radius:16px;
    background:#eff6ff;
    border:1px solid #dbeafe;
}

.about-bottom h3{
    font-size:22px;
    margin-bottom:15px;
    font-weight:600;
    color:#1e40af;
}

.about-bottom p{
    margin-bottom:15px;
}

/* mobile */

@media(max-width:768px){

    .about-page{
        padding:20px 0 40px;
    }

    .about-hero{
        padding:30px 20px;
    }

    .about-hero h1{
        font-size:28px;
    }

    .about-hero p{
        font-size:16px;
    }

    .about-card{
        padding:25px 20px;
    }

    .about-content p{
        font-size:15px;
        line-height:1.8;
        margin-bottom:20px;
    }

}




/*
|--------------------------------------------------------------------------
| FAQ PAGE
|--------------------------------------------------------------------------
*/

.faq-page{
    padding:30px 0 70px;
}


/*
|--------------------------------------------------------------------------
| HERO BLOCK (light version)
|--------------------------------------------------------------------------
*/

.faq-hero{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:35px;
    margin-bottom:30px;
    text-align:left;
    box-shadow:0 4px 20px rgba(0,0,0,0.04);
}

.faq-hero h1{
    font-size:34px;
    font-weight:700;
    color:#111827;
    margin-bottom:12px;
    line-height:1.2;
}

.faq-hero p{
    font-size:16px;
    color:#6b7280;
    line-height:1.7;
    max-width:700px;
}


/*
|--------------------------------------------------------------------------
| FAQ CONTAINER
|--------------------------------------------------------------------------
*/

.faq-container{
    max-width:900px;
    margin:0 auto;
}


/*
|--------------------------------------------------------------------------
| FAQ ITEM
|--------------------------------------------------------------------------
*/

.faq-item{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    margin-bottom:14px;
    overflow:hidden;
    transition:all 0.25s ease;
}

.faq-item:hover{
    border-color:#d1d5db;
    box-shadow:0 6px 18px rgba(0,0,0,0.05);
}


/*
|--------------------------------------------------------------------------
| QUESTION
|--------------------------------------------------------------------------
*/

.faq-question{
    width:100%;
    border:none;
    background:#ffffff;
    cursor:pointer;
    text-align:left;
    padding:22px 24px;
    display:flex;
    align-items:center;
    gap:16px;
    font-size:16px;
    font-weight:600;
    color:#111827;
}


/*
|--------------------------------------------------------------------------
| PLUS ICON (LEFT SIDE)
|--------------------------------------------------------------------------
*/

.faq-icon{
    min-width:18px;
    width:18px;
    font-size:22px;
    font-weight:400;
    color:#9ca3af;
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1;
    transition:all 0.25s ease;
} 



/*
|--------------------------------------------------------------------------
| QUESTION TEXT
|--------------------------------------------------------------------------
*/

.faq-question span:last-child{
    flex:1;
    line-height:1.5;
}


/*
|--------------------------------------------------------------------------
| ANSWER
|--------------------------------------------------------------------------
*/

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.35s ease;
    background:#fafafa;
}

.faq-answer-content{
    padding:0 24px 24px 68px;
    font-size:15px;
    line-height:1.8;
    color:#4b5563;
}


/*
|--------------------------------------------------------------------------
| ACTIVE STATE
|--------------------------------------------------------------------------
*/

.faq-item.active{
    border-color:#2563eb;
}

.faq-item.active .faq-icon{
    color:#2563eb;
    transform:rotate(45deg);
}

.faq-item.active .faq-answer{
    max-height:400px;
}


/*
|--------------------------------------------------------------------------
| LINKS INSIDE FAQ
|--------------------------------------------------------------------------
*/

.faq-answer-content a{
    color:#2563eb;
    text-decoration:none;
    font-weight:500;
}

.faq-answer-content a:hover{
    text-decoration:underline;
}


/*
|--------------------------------------------------------------------------
| SELLER BLOCK
|--------------------------------------------------------------------------
*/

.faq-seller-box{
    margin-top:35px;
    background:#ffffff;
    border:1px solid #dbeafe;
    border-radius:20px;
    padding:35px;
    text-align:left;
}

.faq-seller-box h2{
    font-size:24px;
    font-weight:700;
    color:#111827;
    margin-bottom:15px;
}

.faq-seller-box p{
    font-size:15px;
    line-height:1.8;
    color:#6b7280;
    margin-bottom:16px;
}

.faq-seller-btn{
    display:inline-block;
    background:#2563eb;
    color:#ffffff;
    text-decoration:none;
    padding:14px 26px;
    border-radius:12px;
    font-weight:600;
    transition:0.25s ease;
}

.faq-seller-btn:hover{
    background:#1d4ed8;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media(max-width:768px){

    .faq-page{
        padding:20px 0 40px;
    }

    .faq-hero{
        padding:25px;
        margin-bottom:20px;
    }

    .faq-hero h1{
        font-size:26px;
    }

    .faq-hero p{
        font-size:14px;
    }

    .faq-question{
        padding:18px;
        font-size:15px;
        gap:12px;
    }

    .faq-answer-content{
        padding:0 18px 18px 58px;
        font-size:14px;
        line-height:1.7;
    }

    .faq-seller-box{
        padding:25px;
    }

    .faq-seller-box h2{
        font-size:20px;
    }

    .faq-seller-box p{
        font-size:14px;
    }
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:480px){

    .faq-hero{
        padding:20px;
    }

    .faq-hero h1{
        font-size:22px;
    }

    .faq-question{
        padding:16px;
        font-size:14px;
        gap:10px;
    }


    .faq-icon{
            min-width:16px;
            width:16px;
            font-size:18px;
    }


    .faq-answer-content{
        padding:0 16px 16px 50px;
        font-size:13px;
    }

    .faq-seller-box{
        padding:20px;
    }

    .faq-seller-btn{
        width:100%;
        text-align:center;
    }
}




/* Уменьшение изображения товара на ~20% только для ПК */
@media (min-width: 1024px){

    .product-gallery img{
        width: 80%;
        max-width: 80%;
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }

}



/* PAYMENT ICONS */

.payment-icons{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:nowrap;
}

.payment-icons img{
    height:32px;
    width:auto;
    display:block;
}





.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.footer-contact-item,
.company-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #d7d7d7;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
}

.footer-contact-item:hover {
    color: #ffffff;
    transition: 0.2s ease;
}

.contact-icon {
    width: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    opacity: 0.9;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.company-text {
    color: #bdbdbd;
    line-height: 1.7;
}

.company-text strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-contact-item,
    .company-row {
        font-size: 14px;
    }

    .company-text {
        line-height: 1.6;
    }
}































































































/* ===== CATALOG CONTROLS / AJAX ===== */
.catalog-shell {
    transition: opacity .2s ease;
}

.catalog-shell.catalog-loading {
    opacity: .55;
    pointer-events: none;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.catalog-toolbar__count {
    color: #475569;
    font-size: 14px;
    white-space: nowrap;
}

.catalog-toolbar__form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.catalog-toolbar__form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.catalog-toolbar__form select {
    min-height: 38px;
    padding: 8px 32px 8px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
}

.catalog-view-switch {
    display: inline-flex;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 999px;
}

.catalog-view-switch button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    color: #475569;
    font-weight: 600;
}

.catalog-view-switch button.active {
    background: #2563eb;
    color: #ffffff;
}

.product-grid.catalog-list-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-grid.catalog-list-view .product-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: stretch;
    min-height: 180px;
}

.product-grid.catalog-list-view .product-card > a {
    display: block;
    height: 100%;
}

.product-grid.catalog-list-view .product-card > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid.catalog-list-view .product-body {
    display: flex;
    flex-direction: column;
}

.product-grid.catalog-list-view .product-body p {
    flex: 1;
}

.favorite-mini {
    position: relative;
}

.favorite-mini-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    padding: 8px 11px;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-weight: 600;
}

.favorite-mini-toggle b {
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
}

.favorite-mini-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    padding: 10px;
    display: none;
    z-index: 120;
}

.favorite-mini:hover .favorite-mini-dropdown,
.favorite-mini:focus-within .favorite-mini-dropdown {
    display: block;
}

.favorite-mini-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.favorite-mini-item {
    display: grid;
    grid-template-columns: 48px 1fr 28px;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    background: #f8fafc;
}

.favorite-mini-img img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.favorite-mini-info a {
    display: block;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
    max-height: 34px;
    overflow: hidden;
}

.favorite-mini-info span {
    display: block;
    margin-top: 4px;
    color: #2563eb;
    font-weight: 700;
    font-size: 13px;
}

.favorite-mini-remove {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: #991b1b;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.favorite-mini-empty {
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.favorite-mini-actions {
    margin-top: 10px;
    border-top: 1px solid #eef2f7;
    padding-top: 10px;
}

.favorite-mini-actions a {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #2563eb;
    color: #fff;
    border-radius: 12px;
    padding: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-toolbar__form {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-toolbar__form label {
        justify-content: space-between;
    }

    .catalog-view-switch {
        width: 100%;
    }

    .catalog-view-switch button {
        flex: 1;
    }

    .product-grid.catalog-list-view .product-card {
        grid-template-columns: 120px 1fr;
        min-height: 150px;
    }

    .favorite-mini-toggle span {
        display: none;
    }
}

@media (max-width: 520px) {
    .product-grid.catalog-list-view .product-card {
        grid-template-columns: 1fr;
    }
}

/* Catalog cashback badge */
.cashback-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 5px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    color: #5b21b6;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
}

.cashback-badge svg {
    width: 14px;
    height: 14px;
}

/* Product page production-like spacing */
.product-layout {
    align-items: start;
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
    gap: 20px;
}

.product-gallery {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.product-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    background: #f8fafc;
    border-radius: 14px;
}

.product-gallery img,
.product-gallery > img {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
    border-radius: 14px;
}

.product-info {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
}

.product-info h1 {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.18;
    margin: 6px 0 10px;
}

.product-code {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;
    padding: 3px 8px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
}

.product-rating,
.rand-rating {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 10px;
}

.product-rating .star,
.rand-rating .star {
    color: #cbd5e1;
}

.product-rating .star.filled,
.rand-rating .star.filled {
    color: #f59e0b;
}

.product-desc {
    margin-bottom: 12px;
}

.product-stock,
.product-count {
    margin: 12px 0;
}

.product-count input {
    border: 1px solid #dbe3ef;
    border-radius: 10px;
}

.product-full {
    line-height: 1.68;
}

.product-full p,
.product-full ul,
.product-full ol {
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-image-frame {
        min-height: 220px;
    }

    .product-info,
    .product-gallery,
    .product-full {
        padding: 14px;
    }
}
