/* ======================================================
   MyHobby24 — [mh_hobby_showcase]
   Загружается только на страницах с шорткодом.
====================================================== */

.mh-hobby-showcase {
    width: 100%;
}

.mh-showcase-section {
    width: 100%;
    margin: 0 0 50px;
}

.mh-showcase-section:last-child {
    margin-bottom: 0;
}

.mh-showcase-head {
    display: flex;
    width: 100%;
    margin: 0 0 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
}

.mh-showcase-head h2 {
    margin: 0;
    color: var(--mh-text, #2d2d2d);
    font-size: 27px;
    line-height: 1.25;
}

.mh-showcase-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.mh-showcase-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--mh-border, #e7ddd2);
    border-radius: 18px;
    box-shadow: var(--mh-shadow, 0 8px 24px rgba(0,0,0,.05));
    transition: var(--mh-transition, .2s ease);
}

.mh-showcase-card:hover {
    transform: translateY(-3px);
}

.mh-showcase-card-image {
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #fff;
    text-decoration: none;
}

.mh-showcase-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
}

.mh-showcase-no-image {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: var(--mh-soft, #fff8f0);
    font-size: 44px;
}

.mh-showcase-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    padding: 15px;
    flex-direction: column;
    text-align: center;
}

.mh-showcase-card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.mh-showcase-card h3 a {
    color: var(--mh-text, #2d2d2d);
    text-decoration: none;
}

.mh-showcase-card h3 a:hover {
    color: var(--mh-accent-dark, #d87413);
}

.mh-showcase-price {
    margin-top: auto;
    padding-top: 12px;
    color: var(--mh-text, #2d2d2d);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.mh-showcase-price del {
    opacity: .55;
    font-size: .85em;
    font-weight: 500;
}

.mh-showcase-price ins {
    text-decoration: none;
}

.mh-showcase-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: var(--mh-accent-dark, #d87413);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.mh-showcase-all:hover {
    text-decoration: underline;
}

.mh-showcase-all-arrow {
    font-size: 19px;
    line-height: 1;
    transition: transform .2s ease;
}

.mh-showcase-all:hover .mh-showcase-all-arrow {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .mh-showcase-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .mh-showcase-section {
        margin-bottom: 38px;
    }

    .mh-showcase-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mh-showcase-head {
        align-items: baseline;
        gap: 10px;
    }

    .mh-showcase-head h2 {
        font-size: 23px;
    }

    .mh-showcase-all {
        font-size: 14px;
    }

    .mh-showcase-card-body {
        padding: 12px 10px;
    }

    .mh-showcase-card h3 {
        font-size: 14px;
    }

    .mh-showcase-price {
        font-size: 16px;
    }
}
