/*
|--------------------------------------------------------------------------
| TRG MEMORABILIA SHOP
| Version 1.0.1
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| SHOP CONTAINER
|--------------------------------------------------------------------------
*/

.trg-mm-shop {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| PRODUCT GRID
|--------------------------------------------------------------------------
*/

.trg-mm-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| PRODUCT CARD
|--------------------------------------------------------------------------
*/

.trg-mm-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 4px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/*
|--------------------------------------------------------------------------
| CARD HOVER
|--------------------------------------------------------------------------
*/

.trg-mm-product-card:hover {
    transform: translateY(-4px);

    border-color: rgba(181, 155, 99, 0.35);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.08);
}


/*
|--------------------------------------------------------------------------
| PRODUCT IMAGE CONTAINER
|--------------------------------------------------------------------------
*/

.trg-mm-product-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f6f6f6;

    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| PRODUCT IMAGE
|--------------------------------------------------------------------------
*/

.trg-mm-product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


/*
|--------------------------------------------------------------------------
| IMAGE HOVER
|--------------------------------------------------------------------------
*/

.trg-mm-product-card:hover
.trg-mm-product-image img {
    transform: scale(1.045);
}


/*
|--------------------------------------------------------------------------
| NO IMAGE
|--------------------------------------------------------------------------
*/

.trg-mm-no-image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #888;

    font-size: 14px;

    letter-spacing: 0.3px;

    background: #f5f5f5;
}


/*
|--------------------------------------------------------------------------
| PRODUCT INFORMATION
|--------------------------------------------------------------------------
*/

.trg-mm-product-info {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 20px 20px 22px;
}


/*
|--------------------------------------------------------------------------
| PRODUCT TITLE
|--------------------------------------------------------------------------
*/

.trg-mm-product-title {
    margin: 0 0 7px;

    padding: 0;

    font-size: 18px;

    line-height: 1.4;

    font-weight: 600;
}


.trg-mm-product-title a {
    color: #333333;

    text-decoration: none;

    transition:
        color 0.25s ease;
}


.trg-mm-product-title a:hover {
    color: #b59b63;
}


/*
|--------------------------------------------------------------------------
| SKU
|--------------------------------------------------------------------------
*/

.trg-mm-product-sku {
    margin-bottom: 10px;

    color: #999999;

    font-size: 11px;

    line-height: 1.4;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| PRICE
|--------------------------------------------------------------------------
*/

.trg-mm-price {
    display: flex;

    align-items: baseline;

    gap: 5px;

    margin-bottom: 9px;

    color: #333333;
}


.trg-mm-currency {
    font-size: 14px;

    font-weight: 600;

    color: #8f7545;
}


.trg-mm-price-value {
    font-size: 19px;

    font-weight: 700;

    line-height: 1.2;

    color: #8f7545;
}


/*
|--------------------------------------------------------------------------
| STOCK
|--------------------------------------------------------------------------
*/

.trg-mm-stock {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 17px;

    font-size: 13px;

    line-height: 1.4;

    color: #777777;
}


/*
|--------------------------------------------------------------------------
| STOCK DOT
|--------------------------------------------------------------------------
*/

.trg-mm-stock-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #999999;
}


/*
|--------------------------------------------------------------------------
| IN STOCK
|--------------------------------------------------------------------------
*/

.trg-mm-stock.in-stock {
    color: #5f765f;
}


.trg-mm-stock.in-stock
.trg-mm-stock-dot {
    background: #6f916f;
}


/*
|--------------------------------------------------------------------------
| LOW STOCK
|--------------------------------------------------------------------------
*/

.trg-mm-stock.low-stock {
    color: #9a7740;
}


.trg-mm-stock.low-stock
.trg-mm-stock-dot {
    background: #b59b63;
}


/*
|--------------------------------------------------------------------------
| OUT OF STOCK
|--------------------------------------------------------------------------
*/

.trg-mm-stock.out-of-stock {
    color: #999999;
}


.trg-mm-stock.out-of-stock
.trg-mm-stock-dot {
    background: #a0a0a0;
}


/*
|--------------------------------------------------------------------------
| VIEW PRODUCT BUTTON
|--------------------------------------------------------------------------
*/

.trg-mm-view-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 42px;

    box-sizing: border-box;

    margin-top: auto;

    padding: 10px 18px;

    border: 1px solid #b59b63;

    border-radius: 2px;

    background: #b59b63;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.2;

    letter-spacing: 0.2px;

    text-align: center;

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.trg-mm-view-button:hover {
    background: #9f8652;

    border-color: #9f8652;

    color: #ffffff;

    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| EMPTY SHOP
|--------------------------------------------------------------------------
*/

.trg-mm-empty {
    width: 100%;

    box-sizing: border-box;

    padding: 60px 25px;

    text-align: center;

    border: 1px solid rgba(0, 0, 0, 0.08);

    background: #ffffff;
}


.trg-mm-empty h3 {
    margin: 0 0 8px;

    font-size: 20px;

    color: #333333;
}


.trg-mm-empty p {
    margin: 0;

    font-size: 14px;

    color: #777777;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .trg-mm-shop-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 24px;
    }

}


/*
|--------------------------------------------------------------------------
| SMALL TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .trg-mm-shop-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .trg-mm-shop {
        width: 100%;
    }


    .trg-mm-shop-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    .trg-mm-product-info {
        padding: 14px 13px 15px;
    }


    .trg-mm-product-title {
        font-size: 15px;

        line-height: 1.35;
    }


    .trg-mm-product-sku {
        font-size: 10px;

        margin-bottom: 8px;
    }


    .trg-mm-price {
        margin-bottom: 7px;
    }


    .trg-mm-price-value {
        font-size: 17px;
    }


    .trg-mm-currency {
        font-size: 12px;
    }


    .trg-mm-stock {
        margin-bottom: 13px;

        font-size: 11px;

        gap: 5px;
    }


    .trg-mm-stock-dot {
        width: 6px;
        height: 6px;

        flex-basis: 6px;
    }


    .trg-mm-view-button {
        min-height: 38px;

        padding: 8px 10px;

        font-size: 11px;
    }

}


/*
|--------------------------------------------------------------------------
| VERY SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .trg-mm-shop-grid {
        gap: 10px;
    }


    .trg-mm-product-info {
        padding: 12px 10px 13px;
    }


    .trg-mm-product-title {
        font-size: 14px;
    }


    .trg-mm-price-value {
        font-size: 16px;
    }


    .trg-mm-view-button {
        font-size: 10px;

        min-height: 36px;
    }

}