.market-home {
    padding: 24px 24px 0;
}

.market-home__hero,
.catalog-shelf {
    max-width: var(--content-width);
    margin: 0 auto 24px;
}

.market-home__hero {
    display: grid;
    gap: 18px;
}

.market-home__hero-intro {
    max-width: 760px;
}

.market-home__hero-intro span {
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-home__hero-intro h1 {
    margin: 10px 0 10px;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 0.96;
}

.market-home__hero-intro p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.62;
}

.market-home__hero-top {
    display: grid;
    grid-template-columns: minmax(0, 920px) 372px;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
}

.market-home__hero-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(17, 26, 39, 0.98), rgba(10, 17, 27, 1));
    box-shadow: var(--shadow-lg);
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
}

.market-home__hero-stage,
.market-home__hero-sidebar,
.market-home__hero-bottom {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.market-home__hero-stage {
    position: relative;
    width: 100%;
    max-width: 920px;
    aspect-ratio: 460 / 215;
    min-height: 0;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(252, 228, 77, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(17, 26, 39, 0.98), rgba(10, 17, 27, 1));
    justify-self: start;
}

.market-home__hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.market-home__hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.market-home__hero-slide-shell {
    display: block;
    min-height: 100%;
}

.market-home__hero-slide-art {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.market-home__hero-slide-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-home__hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(98deg, rgba(7, 10, 16, 0.94) 16%, rgba(7, 10, 16, 0.76) 43%, rgba(7, 10, 16, 0.22) 88%),
        linear-gradient(180deg, rgba(7, 10, 16, 0.08), rgba(7, 10, 16, 0.26));
}

.market-home__hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    max-width: min(53%, 430px);
    padding: 24px 26px 28px;
}

.market-home__hero-slide-head,
.market-home__hero-slide-tags,
.market-home__hero-actions,
.market-home__filters,
.market-home__hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.market-home__hero-slide-head {
    align-items: center;
    margin-bottom: 18px;
}

.market-home__hero-slide-eyebrow {
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-home__hero-slide-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.market-home__hero-slide h1 {
    max-width: 10ch;
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3.7vw, 3rem);
    line-height: 0.95;
}

.market-home__hero-slide p {
    max-width: 42ch;
    margin-bottom: 12px;
    color: rgba(241, 245, 249, 0.84);
    font-size: 0.9rem;
    line-height: 1.48;
}

.market-home__hero-slide-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.market-home__hero-slide-discount {
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(252, 228, 77, 0.18);
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 900;
}

.market-home__hero-slide-price strong {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1;
}

.market-home__hero-slide-price span:last-child {
    color: rgba(241, 245, 249, 0.56);
    font-size: 1rem;
    text-decoration: line-through;
}

.market-home__hero-slide-tags {
    margin-bottom: 12px;
}

.market-home__hero-slide-tags span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(4, 8, 14, 0.34);
    color: rgba(241, 245, 249, 0.86);
    font-size: 0.82rem;
    font-weight: 700;
}

.market-home__hero-actions .market-button {
    min-width: 180px;
    justify-content: center;
}

.market-home__hero-dots {
    position: absolute;
    z-index: 2;
    display: flex;
    gap: 10px;
}
.market-home__hero-dot {
    border: 0;
    cursor: pointer;
}

.market-home__hero-dots {
    right: 16px;
    bottom: 16px;
}

.market-home__hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.market-home__hero-dot.is-active {
    background: var(--yellow);
}

.market-home__hero-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.market-home__hero-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    gap: 12px;
}

.market-home__hero-nav-item {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    flex: 1 1 0;
    min-height: 0;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.market-home__hero-nav-item:hover,
.market-home__hero-nav-item.is-active {
    background: linear-gradient(180deg, rgba(252, 228, 77, 0.14), rgba(255, 255, 255, 0.08));
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(252, 228, 77, 0.36), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.market-home__hero-nav-media {
    width: 156px;
    min-height: 100%;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.market-home__hero-nav-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.market-home__hero-nav-copy span {
    display: block;
    margin-bottom: 4px;
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-home__hero-nav-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
    line-height: 1.28;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.market-home__hero-nav-copy em {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.35;
}

.market-home__hero-nav-copy small {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
}

.market-home__hero-nav-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px 16px 14px 0;
}

.market-home__hero-nav-copy small {
    margin-top: auto;
}

.market-home__hero-bottom {
    padding: 14px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.market-home__filters {
    align-items: center;
}

.market-home__filter {
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.market-home__filter:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

@media (max-width: 1180px) {
    .market-home__hero-top {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .market-home__hero-sidebar {
        order: 0;
    }

    .market-home__hero-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
    }
}

@media (max-width: 860px) {
    .market-home__hero-slide-shell {
        min-height: 100%;
    }

    .market-home__hero-slide h1 {
        max-width: none;
    }

    .market-home__hero-slide-content {
        max-width: min(66%, 420px);
        padding: 18px 18px 20px;
    }

    .market-home__hero-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .market-home {
        padding: 20px 18px 0;
    }

    .market-home__hero-stage {
        border-radius: 28px;
    }

    .market-home__hero-intro h1 {
        margin: 8px 0;
    }

    .market-home__hero-intro p {
        font-size: 0.92rem;
        line-height: 1.54;
    }

    .market-home__hero-slide-content {
        max-width: none;
        padding: 16px 16px 18px;
    }

    .market-home__hero-slide p {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .market-home__hero-slide-tags {
        gap: 8px;
    }

    .market-home__hero-slide-tags span {
        padding: 8px 11px;
        font-size: 0.8rem;
    }

    .market-home__hero-actions .market-button,
    .market-home__filters .market-home__filter {
        width: 100%;
    }

    .market-home__hero-dots {
        right: 12px;
        bottom: 12px;
    }

    .market-home__hero-nav-item {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    .market-home__hero-nav-media {
        width: 128px;
    }

    .market-home__hero-nav-copy {
        padding: 12px 14px 12px 0;
    }
}
