/* =========================================================
   LITTLE HERO STUDIOS
   CLEAN MERCH CATALOG
   Retail-first catalog presentation
========================================================= */

.merch-catalog-section {
    background: #ffffff;
}

.merch-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    /* row gap | column gap */
    gap: 5rem 2rem;
}

.merch-catalog-item {
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.merch-catalog-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
}

.merch-catalog-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.28s ease;
}

/* =========================================================
   MAIN PRODUCT IMAGE
   Two-layer crossfade + subtle hover lift
========================================================= */

.merch-catalog-media {
    position: relative;
    overflow: hidden;
}

.merch-catalog-image {
    position: relative;
    z-index: 1;

    opacity: 1;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}


/* Crossfade image layered above the current image */

.merch-catalog-crossfade-image {
    position: absolute;

    inset: 0;

    z-index: 2;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.22s ease;

    will-change: opacity;
}


/* Fade the new image over the existing image */

.merch-catalog-crossfade-image.is-visible {
    opacity: 1;
}


/* Keep both layers together during the product hover lift */

.merch-catalog-media:hover .merch-catalog-image,
.merch-catalog-media:focus-visible .merch-catalog-image,
.merch-catalog-media:hover .merch-catalog-crossfade-image,
.merch-catalog-media:focus-visible .merch-catalog-crossfade-image {
    transform: translateY(-6px);
}


/* =========================================================
   COLOR SWATCHES
========================================================= */

.merch-catalog-colors {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    gap: 0.45rem;

    padding: 0.8rem 0 0;
    margin: 0;

    min-height: 32px;

    background: transparent;
}

.merch-catalog-colors .color-option {
    margin: 0;
}

.merch-catalog-colors .color-swatch {
    width: 20px;
    height: 20px;
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.merch-catalog-info {
    padding-top: 0.8rem;
}

.merch-catalog-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 0.8rem;
}

.merch-catalog-title-link {
    min-width: 0;

    color: #123f5d;
    text-decoration: none;
}

.merch-catalog-title-link:hover {
    color: #0b6f94;
}

.merch-catalog-title-link h3 {
    margin: 0;

    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;

    color: inherit;
}

.merch-catalog-collection {
    margin: 0.25rem 0 0;

    color: #68777e;

    font-size: 0.92rem;
    line-height: 1.35;
}


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

.merch-catalog-favorite {
    flex: 0 0 auto;

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

    padding: 0;
    margin: -0.4rem 0 0;

    border: 0;
    border-radius: 50%;

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

    background: transparent;

    color: #123f5d;

    box-shadow: none;
}

.merch-catalog-favorite:hover,
.merch-catalog-favorite:focus-visible {
    background: #f5f7f8;
    color: #bd3640;
}

.merch-catalog-favorite i {
    font-size: 1.05rem;
}


/* =========================================================
   NEUTRALIZE LEGACY MERCH CARD CONTROLS
========================================================= */

.merch-catalog-item .merch-card-body,
.merch-catalog-item .merch-actions,
.merch-catalog-item .merch-purchase-btn,
.merch-catalog-item .merch-options-btn,
.merch-catalog-item .merch-share-toggle,
.merch-catalog-item .merch-share-menu {
    display: none !important;
}

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

@media (max-width: 991px) {

    .merch-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem 1rem;
    }

}

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

@media (max-width: 575px) {

    .merch-catalog-grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .merch-catalog-title-link h3 {
        font-size: 1.05rem;
    }

}

/* =========================================================
   MERCH CATALOG THUMBNAIL STRIP
========================================================= */

.merch-catalog-thumbnails {
    display: flex;
    align-items: center;

    gap: 0.28rem;

    padding-top: 0.3rem;

    min-height: 54px;
}

.merch-catalog-thumbnail {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    padding: 0;

    border: 1px solid transparent;

    background: #f5f5f3;

    overflow: hidden;

    cursor: pointer;
}

.merch-catalog-thumbnail img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.merch-catalog-thumbnail:hover {
    border-color: #9aa7ad;
}

.merch-catalog-thumbnail.is-active {
    border-color: #123f5d;
}

/* =========================================================
   CATALOG CARD — NO WHOLE-CARD HOVER MOVEMENT
========================================================= */

.merch-catalog-item,
.merch-catalog-item:hover,
.merch-catalog-item:focus-within {
    transform: none !important;
    box-shadow: none !important;
}

.merch-catalog-item.merch-card:hover,
.merch-catalog-item.merch-card:focus-within {
    transform: none !important;
    box-shadow: none !important;
}