.market-page {
    background: #edf3f6;
    padding: 28px 0 60px;
}

.market-breadcrumb {
    margin-bottom: 26px;
    color: #8a9aaa;
}

.market-breadcrumb a {
    color: #8a9aaa;
}

.market-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
}

.market-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
}

.sidebar-box {
    background: #ffffff;
    border: 1px solid #dfe8ee;
    border-radius: 4px;
    padding: 16px;
}

.sidebar-box h3 {
    font-size: 16px;
    margin-bottom: 14px;
}

.sidebar-box a,
.sidebar-box p {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf3f6;
    color: #344456;
    font-size: 14px;
    font-weight: 700;
}

.sidebar-box a:last-child,
.sidebar-box p:last-child {
    border-bottom: 0;
}

.sidebar-box i {
    color: #28a745;
}

.market-main {
    display: grid;
    gap: 28px;
}

.market-section {
    overflow: hidden;
}

.market-section-head {
    display: grid;
    grid-template-columns: 1fr 190px 170px;
    align-items: center;
    background: #3f3f3f;
    color: #ffffff;
    border-radius: 4px 4px 0 0;
    font-weight: 900;
    padding: 9px 10px;
    font-size: 14px;
}

.market-product-row {
    display: grid;
    grid-template-columns: 46px 1fr 75px 170px 92px;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border-bottom: 6px solid #edf3f6;
    padding: 12px 10px;
    min-height: 78px;
}

.market-product-icon i {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: #168bd1;
    color: #ffffff;
    font-size: 21px;
}

.market-product-info h3 {
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: 0;
    margin: 0 0 8px;
    font-weight: 500;
}

.market-product-info h3 a {
    color: #17212f;
}

.market-product-info h3 a:hover {
    color: #168bd1;
}

.market-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.market-badges span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 3px;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 900;
}

.badge-green {
    background: #dff7e5;
    color: #18a043;
}

.badge-yellow {
    background: #fff2c2;
    color: #d08b00;
}

.badge-muted {
    background: #eef1f3;
    color: #a4aeb8;
}

.market-stock {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.market-price {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
}

.market-price span {
    color: #7b8794;
}

.market-price strong {
    color: #111827;
    white-space: nowrap;
}

.market-buy a {
    background: #28a745;
    color: #ffffff;
    border-radius: 4px;
    height: 32px;
    min-width: 80px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 13px;
}

.market-view-all {
    display: block;
    text-align: center;
    border: 1px solid #28a745;
    color: #28a745;
    background: transparent;
    padding: 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 2px;
}

.dark-mode .market-product-row,
.dark-mode .sidebar-box {
    background: var(--card);
}

.dark-mode .market-page {
    background: #061624;
}

.dark-mode .market-product-info h3 a,
.dark-mode .market-stock,
.dark-mode .market-price strong {
    color: var(--text);
}

@media (max-width: 1100px) {
    .market-layout {
        grid-template-columns: 1fr;
    }

    .market-sidebar {
        display: none;
    }
}

@media (max-width: 760px) {
    .market-section-head {
        display: none;
    }

    .market-product-row {
        grid-template-columns: 40px 1fr;
        gap: 10px;
        padding: 14px;
        border-radius: 6px;
        margin-bottom: 8px;
        border-bottom: 0;
    }

    .market-stock,
    .market-price,
    .market-buy {
        grid-column: 2;
    }

    .market-price {
        justify-content: space-between;
    }

    .market-buy a {
        width: 100%;
    }
}