/*
|--------------------------------------------------------------------------
| TRG MEMORABILIA SHOP
| Version 1.0.3
|--------------------------------------------------------------------------
|
| Shop frontend styling
| Includes:
|
| - Account navigation
| - Category navigation
| - Product grid
| - Product cards
| - Product image
| - Price
| - Stock
| - View Product button
| - Responsive layout
|
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| SHOP CONTAINER
|--------------------------------------------------------------------------
*/

.trg-mm-shop {

    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    box-sizing: border-box;

}


/*
|--------------------------------------------------------------------------
| CATEGORY NAVIGATION
|--------------------------------------------------------------------------
|
| Category navigation shortcode:
|
| [trg_memorabilia_category]
|
*/

.trg-mm-category-navigation {

    width: 100%;

    margin: 0 0 35px;

    padding: 0;

    box-sizing: border-box;

}


.trg-mm-category-navigation-inner {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

}


/*
|--------------------------------------------------------------------------
| CATEGORY BUTTON
|--------------------------------------------------------------------------
*/

.trg-mm-category-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    box-sizing: border-box;

    padding: 9px 20px;

    border: 1px solid #b59b63;

    border-radius: 4px;

    background: #ffffff;

    color: #333333;

    font-family: Montserrat, sans-serif;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.2;

    text-decoration: none !important;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;

}


/*
|--------------------------------------------------------------------------
| CATEGORY BUTTON HOVER
|--------------------------------------------------------------------------
*/

.trg-mm-category-button:hover {

    background: #b59b63;

    border-color: #b59b63;

    color: #ffffff;

    text-decoration: none !important;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(181, 155, 99, 0.18);

}


/*
|--------------------------------------------------------------------------
| ACTIVE CATEGORY
|--------------------------------------------------------------------------
*/

.trg-mm-category-button.active {

    background: #b59b63;

    border-color: #b59b63;

    color: #ffffff;

}


/*
|--------------------------------------------------------------------------
| ACTIVE CATEGORY HOVER
|--------------------------------------------------------------------------
*/

.trg-mm-category-button.active:hover {

    background: #9f8652;

    border-color: #9f8652;

    color: #ffffff;

}


/*
|--------------------------------------------------------------------------
| SHOP TOP BAR
|--------------------------------------------------------------------------
|
| Account navigation sits above the product grid.
|
*/

.trg-mm-shop-topbar {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    width: 100%;

    margin: 0 0 32px;

    padding: 0;

    box-sizing: border-box;

}


/*
|--------------------------------------------------------------------------
| ACCOUNT NAVIGATION
|--------------------------------------------------------------------------
*/

.trg-mm-shop-account {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 8px;

}


/*
|--------------------------------------------------------------------------
| GREETING
|--------------------------------------------------------------------------
*/

.trg-mm-shop-greeting {

    display: inline-flex;

    align-items: center;

    min-height: 38px;

    margin-right: 5px;

    padding: 0 4px;

    color: #777777;

    font-size: 13px;

    line-height: 1.4;

    white-space: nowrap;

}


.trg-mm-shop-greeting strong {

    margin-left: 4px;

    color: #333333;

    font-weight: 600;

}


/*
|--------------------------------------------------------------------------
| ACCOUNT LINKS
|--------------------------------------------------------------------------
*/

.trg-mm-shop-account-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 38px;

    box-sizing: border-box;

    padding: 8px 15px;

    border: 1px solid #d9d9d9;

    border-radius: 3px;

    background: #ffffff;

    color: #555555;

    font-size: 12px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.15px;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


/*
|--------------------------------------------------------------------------
| ACCOUNT LINK HOVER
|--------------------------------------------------------------------------
*/

.trg-mm-shop-account-link:hover {

    border-color: #b59b63;

    background: #faf8f3;

    color: #8f7545;

    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06);

}


/*
|--------------------------------------------------------------------------
| DASHBOARD
|--------------------------------------------------------------------------
*/

.trg-mm-shop-account-link[href*="memorabilia-dashboard"] {

    background: #ffffff;

    color: #555555;

}


/*
|--------------------------------------------------------------------------
| DASHBOARD HOVER
|--------------------------------------------------------------------------
*/

.trg-mm-shop-account-link[href*="memorabilia-dashboard"]:hover {

    background: #faf8f3;

    color: #8f7545;

}


/*
|--------------------------------------------------------------------------
| VIEW CART
|--------------------------------------------------------------------------
*/

.trg-mm-shop-cart-link {

    border-color: #b59b63;

    background: #b59b63;

    color: #ffffff;

}


/*
|--------------------------------------------------------------------------
| VIEW CART HOVER
|--------------------------------------------------------------------------
*/

.trg-mm-shop-cart-link:hover {

    border-color: #9f8652;

    background: #9f8652;

    color: #ffffff;

    box-shadow:
        0 5px 14px rgba(181, 155, 99, 0.22);

}


/*
|--------------------------------------------------------------------------
| LOGOUT
|--------------------------------------------------------------------------
*/

.trg-mm-shop-logout-link {

    border-color: transparent;

    background: transparent;

    color: #777777;

}


/*
|--------------------------------------------------------------------------
| LOGOUT HOVER
|--------------------------------------------------------------------------
*/

.trg-mm-shop-logout-link:hover {

    border-color: #e0e0e0;

    background: #f7f7f7;

    color: #555555;

    box-shadow: none;

}


/*
|--------------------------------------------------------------------------
| LOGGED OUT CART
|--------------------------------------------------------------------------
|
| Cart remains the primary action even when customer is not logged in.
|
*/

.trg-mm-shop-account
.trg-mm-shop-cart-link {

    font-weight: 600;

}


/*
|--------------------------------------------------------------------------
| 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: #f5f5f5;

    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%;

    background: #f5f5f5;

    color: #888888;

    font-size: 13px;

    letter-spacing: 0.3px;

}


/*
|--------------------------------------------------------------------------
| 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 {

    color: #8f7545;

    font-size: 14px;

    font-weight: 600;

}


.trg-mm-price-value {

    color: #8f7545;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.2;

}


/*
|--------------------------------------------------------------------------
| STOCK
|--------------------------------------------------------------------------
*/

.trg-mm-stock {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 17px;

    color: #777777;

    font-size: 13px;

    line-height: 1.4;

}


/*
|--------------------------------------------------------------------------
| 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-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.trg-mm-view-button:hover {

    background: #9f8652;

    border-color: #9f8652;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(181, 155, 99, 0.20);

}


/*
|--------------------------------------------------------------------------
| 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;

    color: #333333;

    font-size: 20px;

}


.trg-mm-empty p {

    margin: 0;

    color: #777777;

    font-size: 14px;

}


/*
|--------------------------------------------------------------------------
| 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 ACCOUNT BAR
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    /*
    |----------------------------------------------------------------------
    | CATEGORY NAVIGATION
    |----------------------------------------------------------------------
    */

    .trg-mm-category-navigation {

        margin-bottom: 25px;

    }


    .trg-mm-category-navigation-inner {

        justify-content: flex-start;

        gap: 8px;

    }


    .trg-mm-category-button {

        min-height: 40px;

        padding: 8px 15px;

        font-size: 12px;

    }


    /*
    |----------------------------------------------------------------------
    | SHOP TOP BAR
    |----------------------------------------------------------------------
    */

    .trg-mm-shop-topbar {

        justify-content: flex-start;

        margin-bottom: 24px;

    }


    .trg-mm-shop-account {

        width: 100%;

        justify-content: flex-start;

        align-items: center;

        gap: 7px;

    }


    .trg-mm-shop-greeting {

        width: 100%;

        min-height: auto;

        margin: 0 0 5px;

        padding: 0;

        font-size: 12px;

    }


    .trg-mm-shop-account-link {

        min-height: 36px;

        padding: 8px 12px;

        font-size: 11px;

    }


    /*
    |----------------------------------------------------------------------
    | PRODUCT GRID
    |----------------------------------------------------------------------
    */

    .trg-mm-shop-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;

    }


    /*
    |----------------------------------------------------------------------
    | PRODUCT INFO
    |----------------------------------------------------------------------
    */

    .trg-mm-product-info {

        padding: 14px 13px 15px;

    }


    /*
    |----------------------------------------------------------------------
    | TITLE
    |----------------------------------------------------------------------
    */

    .trg-mm-product-title {

        font-size: 15px;

        line-height: 1.35;

    }


    /*
    |----------------------------------------------------------------------
    | SKU
    |----------------------------------------------------------------------
    */

    .trg-mm-product-sku {

        margin-bottom: 8px;

        font-size: 10px;

    }


    /*
    |----------------------------------------------------------------------
    | PRICE
    |----------------------------------------------------------------------
    */

    .trg-mm-price {

        margin-bottom: 7px;

    }


    .trg-mm-price-value {

        font-size: 17px;

    }


    .trg-mm-currency {

        font-size: 12px;

    }


    /*
    |----------------------------------------------------------------------
    | STOCK
    |----------------------------------------------------------------------
    */

    .trg-mm-stock {

        gap: 5px;

        margin-bottom: 13px;

        font-size: 11px;

    }


    .trg-mm-stock-dot {

        width: 6px;

        height: 6px;

        flex-basis: 6px;

    }


    /*
    |----------------------------------------------------------------------
    | VIEW PRODUCT
    |----------------------------------------------------------------------
    */

    .trg-mm-view-button {

        min-height: 38px;

        padding: 8px 10px;

        font-size: 11px;

    }

}


/*
|--------------------------------------------------------------------------
| VERY SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .trg-mm-shop-account {

        gap: 5px;

    }


    .trg-mm-shop-account-link {

        padding: 7px 10px;

        font-size: 10px;

    }


    /*
    |----------------------------------------------------------------------
    | CATEGORY BUTTON
    |----------------------------------------------------------------------
    */

    .trg-mm-category-navigation-inner {

        gap: 6px;

    }


    .trg-mm-category-button {

        min-height: 38px;

        padding: 7px 12px;

        font-size: 11px;

    }


    /*
    |----------------------------------------------------------------------
    | PRODUCT GRID
    |----------------------------------------------------------------------
    */

    .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 {

        min-height: 36px;

        font-size: 10px;

    }

}