/* =========================================================
   TRG MEMORABILIA
   SHOPPING CART
   CART PAGE CSS
   ========================================================= */


/* =========================================================
   CART WRAPPER
   ========================================================= */

.trg-mm-cart {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 50px 30px 80px;

    box-sizing: border-box;

    color: #333;

}


/* =========================================================
   CART HEADER
   ========================================================= */

.trg-mm-cart-header {

    margin-bottom: 35px;

}


.trg-mm-cart-header h2 {

    margin: 0;

    font-size: 34px;

    line-height: 1.2;

    font-weight: 600;

    color: #333;

}


/* =========================================================
   EMPTY CART
   ========================================================= */

.trg-mm-cart-empty {

    width: 100%;

    padding: 60px 30px;

    box-sizing: border-box;

    background: #f7f6f4;

    border-radius: 8px;

    text-align: center;

}


.trg-mm-cart-empty p {

    margin: 0;

    color: #777;

    font-size: 16px;

    line-height: 1.6;

}


/* =========================================================
   CART ITEMS
   ========================================================= */

.trg-mm-cart-items {

    width: 100%;

    border-top: 1px solid #e5e5e5;

}


/* =========================================================
   CART ITEM
   ========================================================= */

.trg-mm-cart-item {

    display: grid;

    grid-template-columns:
        110px
        minmax(220px, 1fr)
        auto
        auto
        auto;

    gap: 25px;

    align-items: center;

    width: 100%;

    padding: 25px 0;

    border-bottom: 1px solid #e5e5e5;

    box-sizing: border-box;

}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.trg-mm-cart-image {

    width: 110px;

    height: 110px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f7f6f4;

    border-radius: 8px;

    overflow: hidden;

}


.trg-mm-cart-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* =========================================================
   CART PRODUCT INFORMATION
   ========================================================= */

.trg-mm-cart-info {

    min-width: 0;

}


.trg-mm-cart-info h3 {

    margin: 0 0 8px;

    font-size: 19px;

    line-height: 1.35;

    font-weight: 600;

    color: #333;

}


.trg-mm-cart-sku {

    margin-bottom: 10px;

    font-size: 13px;

    line-height: 1.4;

    color: #777;

    letter-spacing: 0.3px;

}


.trg-mm-cart-price {

    font-size: 15px;

    line-height: 1.4;

    font-weight: 500;

    color: #555;

}


/* =========================================================
   QUANTITY
   ========================================================= */

.trg-mm-cart-quantity {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 42px;

    border: 1px solid #dcdcdc;

    border-radius: 5px;

    overflow: hidden;

    background: #fff;

}


/* =========================================================
   QUANTITY BUTTON
   ========================================================= */

.trg-mm-cart-minus,
.trg-mm-cart-plus {

    width: 40px;

    height: 40px;

    padding: 0;

    margin: 0;

    border: none;

    background: #f7f6f4;

    color: #555;

    font-size: 20px;

    line-height: 40px;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;

}


.trg-mm-cart-minus:hover,
.trg-mm-cart-plus:hover {

    background: #b59b63;

    color: #ffffff;

}


/* =========================================================
   QUANTITY NUMBER
   ========================================================= */

.trg-mm-cart-qty {

    min-width: 42px;

    padding: 0 8px;

    font-size: 15px;

    line-height: 40px;

    text-align: center;

    color: #333;

    font-weight: 600;

}


/* =========================================================
   ITEM TOTAL
   ========================================================= */

.trg-mm-cart-item-total {

    min-width: 95px;

    font-size: 15px;

    line-height: 1.4;

    font-weight: 600;

    color: #333;

    text-align: right;

}


/* =========================================================
   REMOVE BUTTON
   ========================================================= */

.trg-mm-cart-remove {

    padding: 8px 14px;

    border: 1px solid #d9d9d9;

    border-radius: 4px;

    background: transparent;

    color: #888;

    font-family: inherit;

    font-size: 13px;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;

}


.trg-mm-cart-remove:hover {

    background: #b84c4c;

    border-color: #b84c4c;

    color: #ffffff;

}


/* =========================================================
   CART SUMMARY
   ========================================================= */

.trg-mm-cart-summary {

    width: 100%;

    margin-top: 35px;

    padding-top: 30px;

    border-top: 1px solid #e5e5e5;

}


/* =========================================================
   SUBTOTAL
   ========================================================= */

.trg-mm-cart-subtotal {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 30px;

    margin-bottom: 25px;

}


.trg-mm-cart-subtotal span {

    font-size: 15px;

    color: #666;

}


.trg-mm-cart-subtotal strong {

    min-width: 120px;

    font-size: 24px;

    font-weight: 600;

    color: #333;

    text-align: right;

}


/* =========================================================
   CART ACTIONS
   ========================================================= */

.trg-mm-cart-clear,
.trg-mm-cart-checkout {

    min-height: 44px;

    padding: 11px 25px;

    border-radius: 4px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;

}


/* =========================================================
   CLEAR CART
   ========================================================= */

.trg-mm-cart-clear {

    float: left;

    border: 1px solid #d2d2d2;

    background: transparent;

    color: #777;

}


.trg-mm-cart-clear:hover {

    border-color: #b84c4c;

    background: #b84c4c;

    color: #ffffff;

}


/* =========================================================
   CHECKOUT
   ========================================================= */

.trg-mm-cart-checkout {

    float: right;

    border: 1px solid #b59b63;

    background: #b59b63;

    color: #ffffff;

}


.trg-mm-cart-checkout:hover {

    border-color: #8f7747;

    background: #8f7747;

    color: #ffffff;

}


/* =========================================================
   BUTTON DISABLED
   ========================================================= */

.trg-mm-cart-clear:disabled,
.trg-mm-cart-checkout:disabled,
.trg-mm-cart-remove:disabled,
.trg-mm-cart-minus:disabled,
.trg-mm-cart-plus:disabled {

    opacity: 0.55;

    cursor: not-allowed;

}


/* =========================================================
   CLEAR FLOAT
   ========================================================= */

.trg-mm-cart-summary::after {

    content: "";

    display: table;

    clear: both;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {


    .trg-mm-cart {

        padding: 40px 25px 60px;

    }


    .trg-mm-cart-header h2 {

        font-size: 30px;

    }


    .trg-mm-cart-item {

        grid-template-columns:
            100px
            minmax(180px, 1fr)
            auto;

        gap: 20px;

    }


    .trg-mm-cart-image {

        width: 100px;

        height: 100px;

    }


    .trg-mm-cart-quantity {

        grid-column: 2;

        justify-self: start;

    }


    .trg-mm-cart-item-total {

        grid-column: 3;

        grid-row: 1;

    }


    .trg-mm-cart-remove {

        grid-column: 3;

        grid-row: 2;

        justify-self: end;

    }


}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {


    .trg-mm-cart {

        padding: 30px 18px 50px;

    }


    .trg-mm-cart-header {

        margin-bottom: 25px;

    }


    .trg-mm-cart-header h2 {

        font-size: 27px;

    }


    /* =====================================================
       CART ITEM
       ===================================================== */

    .trg-mm-cart-item {

        display: grid;

        grid-template-columns:
            80px
            minmax(0, 1fr);

        gap: 15px;

        padding: 20px 0;

    }


    /* =====================================================
       IMAGE
       ===================================================== */

    .trg-mm-cart-image {

        width: 80px;

        height: 80px;

        grid-column: 1;

        grid-row: 1;

        border-radius: 6px;

    }


    /* =====================================================
       INFO
       ===================================================== */

    .trg-mm-cart-info {

        grid-column: 2;

        grid-row: 1;

    }


    .trg-mm-cart-info h3 {

        font-size: 16px;

        margin-bottom: 6px;

    }


    .trg-mm-cart-sku {

        font-size: 12px;

        margin-bottom: 6px;

    }


    .trg-mm-cart-price {

        font-size: 14px;

    }


    /* =====================================================
       QUANTITY
       ===================================================== */

    .trg-mm-cart-quantity {

        grid-column: 1;

        grid-row: 2;

        width: max-content;

        height: 38px;

    }


    .trg-mm-cart-minus,
    .trg-mm-cart-plus {

        width: 36px;

        height: 36px;

        line-height: 36px;

        font-size: 18px;

    }


    .trg-mm-cart-qty {

        min-width: 35px;

        line-height: 36px;

        font-size: 14px;

    }


    /* =====================================================
       ITEM TOTAL
       ===================================================== */

    .trg-mm-cart-item-total {

        grid-column: 2;

        grid-row: 2;

        min-width: 0;

        align-self: center;

        text-align: right;

        font-size: 14px;

    }


    /* =====================================================
       REMOVE
       ===================================================== */

    .trg-mm-cart-remove {

        grid-column: 1 / -1;

        grid-row: 3;

        justify-self: start;

        padding: 8px 13px;

        font-size: 12px;

    }


    /* =====================================================
       SUMMARY
       ===================================================== */

    .trg-mm-cart-summary {

        margin-top: 30px;

        padding-top: 25px;

    }


    .trg-mm-cart-subtotal {

        justify-content: space-between;

        gap: 15px;

        margin-bottom: 22px;

    }


    .trg-mm-cart-subtotal span {

        font-size: 14px;

    }


    .trg-mm-cart-subtotal strong {

        min-width: 0;

        font-size: 21px;

    }


    /* =====================================================
       ACTION BUTTONS
       ===================================================== */

    .trg-mm-cart-clear,
    .trg-mm-cart-checkout {

        min-height: 44px;

        padding: 11px 18px;

        font-size: 13px;

    }


}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {


    .trg-mm-cart {

        padding-left: 15px;

        padding-right: 15px;

    }


    .trg-mm-cart-image {

        width: 70px;

        height: 70px;

    }


    .trg-mm-cart-item {

        grid-template-columns:
            70px
            minmax(0, 1fr);

        gap: 12px;

    }


    .trg-mm-cart-info h3 {

        font-size: 15px;

    }


    .trg-mm-cart-clear,
    .trg-mm-cart-checkout {

        padding-left: 14px;

        padding-right: 14px;

    }

}