/* =========================================================
   TRG MEMORABILIA
   SINGLE PRODUCT PAGE
   ========================================================= */


/* =========================================================
   PRODUCT DETAIL WRAPPER
   ========================================================= */

.trg-mm-product-detail {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 50px 30px 80px;

    box-sizing: border-box;

}


/* =========================================================
   MAIN PRODUCT AREA
   ========================================================= */

.trg-mm-product-main {

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, 0.9fr);

    gap: 70px;

    align-items: start;

}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.trg-mm-product-gallery {

    width: 100%;

    min-width: 0;

}


/* =========================================================
   MAIN IMAGE AREA
   ========================================================= */

.trg-mm-product-detail-image {

    width: 100%;

}


.trg-mm-product-main-image {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    background: #f7f6f4;

    border-radius: 10px;

    overflow: hidden;

    min-height: 500px;

    box-sizing: border-box;

}


/* =========================================================
   MAIN PRODUCT IMAGE
   ========================================================= */

.trg-mm-main-img {

    display: block;

    width: 100%;

    max-width: 100%;

    height: auto;

    max-height: 560px;

    object-fit: contain;

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;

}


/* =========================================================
   SUBTLE IMAGE ZOOM
   ========================================================= */

.trg-mm-product-main-image:hover
.trg-mm-main-img {

    transform: scale(1.02);

}


/* =========================================================
   NO IMAGE
   ========================================================= */

.trg-mm-product-no-image {

    width: 100%;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f7f6f4;

    color: #888;

    border-radius: 10px;

    font-size: 15px;

}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.trg-mm-product-thumbnails {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 18px;

    width: 100%;

}


/* =========================================================
   THUMBNAIL BUTTON
   ========================================================= */

.trg-mm-product-thumbnail {

    position: relative;

    width: 82px;

    height: 82px;

    padding: 0;

    border: 2px solid transparent;

    border-radius: 7px;

    background: #f7f6f4;

    overflow: hidden;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    appearance: none;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


/* =========================================================
   THUMBNAIL CURSOR
   ========================================================= */

.trg-mm-product-thumbnail,
.trg-mm-product-thumbnail img {

    cursor: pointer;

}


/* =========================================================
   THUMBNAIL IMAGE
   ========================================================= */

.trg-mm-product-thumbnail img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;

}


/* =========================================================
   THUMBNAIL HOVER
   ========================================================= */

.trg-mm-product-thumbnail:hover {

    border-color: #b59b63;

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);

}


.trg-mm-product-thumbnail:hover img {

    transform: scale(1.05);

}


/* =========================================================
   ACTIVE THUMBNAIL
   ========================================================= */

.trg-mm-product-thumbnail.active {

    border-color: #b59b63;

    box-shadow:
        0 0 0 1px #b59b63;

}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.trg-mm-product-detail-info {

    width: 100%;

    padding-top: 10px;

}


/* =========================================================
   PRODUCT TITLE
   ========================================================= */

.trg-mm-product-detail-title {

    margin: 0 0 12px;

    font-size: 38px;

    line-height: 1.2;

    font-weight: 600;

    color: #333;

    letter-spacing: -0.3px;

}


/* =========================================================
   SKU
   ========================================================= */

.trg-mm-product-detail-sku {

    margin-bottom: 25px;

    font-size: 13px;

    color: #777;

    letter-spacing: 0.5px;

}


/* =========================================================
   PRICE
   ========================================================= */

.trg-mm-product-detail-price {

    display: flex;

    align-items: baseline;

    gap: 6px;

    margin-bottom: 22px;

    color: #333;

    font-size: 34px;

    line-height: 1;

    font-weight: 600;

}


.trg-mm-product-detail-price span {

    font-size: 18px;

    font-weight: 500;

    color: #b59b63;

}


/* =========================================================
   STOCK STATUS
   ========================================================= */

.trg-mm-product-detail-stock {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 30px;

    font-size: 14px;

    font-weight: 500;

}


.trg-mm-stock-dot {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    display: inline-block;

    flex-shrink: 0;

}


/* =========================================================
   IN STOCK
   ========================================================= */

.trg-mm-product-detail-stock.in-stock {

    color: #3d7a45;

}


.trg-mm-product-detail-stock.in-stock
.trg-mm-stock-dot {

    background: #3d7a45;

}


/* =========================================================
   LOW STOCK
   ========================================================= */

.trg-mm-product-detail-stock.low-stock {

    color: #a87928;

}


.trg-mm-product-detail-stock.low-stock
.trg-mm-stock-dot {

    background: #a87928;

}


/* =========================================================
   OUT OF STOCK
   ========================================================= */

.trg-mm-product-detail-stock.out-of-stock {

    color: #b84c4c;

}


.trg-mm-product-detail-stock.out-of-stock
.trg-mm-stock-dot {

    background: #b84c4c;

}


/* =========================================================
   ADD TO CART AREA
   ========================================================= */

.trg-mm-product-add-cart {

    width: 100%;

}


/* =========================================================
   QUANTITY
   ========================================================= */

.trg-mm-product-quantity {

    display: flex;

    align-items: center;

    width: fit-content;

    margin-bottom: 15px;

    border: 1px solid #ddd;

    border-radius: 4px;

    overflow: hidden;

}


.trg-mm-qty-minus,
.trg-mm-qty-plus {

    width: 42px;

    height: 42px;

    padding: 0;

    border: none;

    background: #f7f6f4;

    color: #555;

    font-size: 20px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

}


.trg-mm-qty-minus:hover,
.trg-mm-qty-plus:hover {

    background: #b59b63;

    color: #fff;

}


.trg-mm-qty-input {

    width: 55px;

    height: 42px;

    padding: 0;

    border: none;

    border-left: 1px solid #ddd;

    border-right: 1px solid #ddd;

    background: #fff;

    color: #333;

    text-align: center;

    font-size: 15px;

    box-sizing: border-box;

}


/* Remove number arrows */

.trg-mm-qty-input::-webkit-inner-spin-button,
.trg-mm-qty-input::-webkit-outer-spin-button {

    -webkit-appearance: none;

    margin: 0;

}


.trg-mm-qty-input {

    -moz-appearance: textfield;

}


/* =========================================================
   ADD TO CART BUTTON
   ========================================================= */

.trg-mm-add-to-cart {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 48px;

    padding: 12px 25px;

    border: 1px solid #b59b63;

    border-radius: 4px;

    background: #b59b63;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;

}


.trg-mm-add-to-cart:hover {

    background: #9f864f;

    border-color: #9f864f;

}


.trg-mm-add-to-cart:disabled {

    opacity: 0.65;

    cursor: wait;

}


/* =========================================================
   CART MESSAGE CONTAINER
   ========================================================= */

.trg-mm-cart-message {

    width: 100%;

    margin-top: 15px;

    font-size: 14px;

    line-height: 1.5;

    box-sizing: border-box;

}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.trg-mm-cart-success {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    padding: 12px 15px;

    background: #f1f8f2;

    border-left: 3px solid #3d7a45;

    color: #3d7a45;

    border-radius: 3px;

    box-sizing: border-box;

}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.trg-mm-cart-error {

    width: 100%;

    padding: 12px 15px;

    background: #faf0f0;

    border-left: 3px solid #b84c4c;

    color: #b84c4c;

    border-radius: 3px;

    box-sizing: border-box;

}


/* =========================================================
   VIEW CART BUTTON
   ========================================================= */

.trg-mm-view-cart {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 12px;

    padding: 11px 24px;

    border: 1px solid #b59b63;

    border-radius: 4px;

    background: transparent;

    color: #8f7747;

    text-decoration: none;

    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;

}


.trg-mm-view-cart:hover {

    background: #b59b63;

    border-color: #b59b63;

    color: #ffffff;

}


/* =========================================================
   PRODUCT UNAVAILABLE
   ========================================================= */

.trg-mm-product-unavailable {

    padding: 15px 18px;

    background: #faf0f0;

    border-left: 3px solid #b84c4c;

    color: #b84c4c;

    font-size: 14px;

    line-height: 1.5;

    border-radius: 3px;

}


/* =========================================================
   PRODUCT DESCRIPTION
   ========================================================= */

.trg-mm-product-description {

    margin-top: 70px;

    padding-top: 45px;

    border-top: 1px solid #e5e5e5;

}


/* =========================================================
   DESCRIPTION TITLE
   ========================================================= */

.trg-mm-product-description h2 {

    margin: 0 0 25px;

    font-size: 25px;

    line-height: 1.3;

    font-weight: 600;

    color: #333;

    position: relative;

    padding-left: 15px;

}


.trg-mm-product-description h2::before {

    content: "";

    position: absolute;

    left: 0;

    top: 3px;

    width: 4px;

    height: calc(100% - 6px);

    background: #b59b63;

    border-radius: 2px;

}


/* =========================================================
   DESCRIPTION CONTENT
   ========================================================= */

.trg-mm-product-description-content {

    max-width: 900px;

    color: #555;

    font-size: 16px;

    line-height: 1.8;

}


.trg-mm-product-description-content p {

    margin-top: 0;

    margin-bottom: 18px;

}


.trg-mm-product-description-content p:last-child {

    margin-bottom: 0;

}


.trg-mm-product-description-content ul,
.trg-mm-product-description-content ol {

    margin-bottom: 20px;

    padding-left: 25px;

}


/* =========================================================
   ERROR
   ========================================================= */

.trg-mm-product-error {

    max-width: 900px;

    margin: 50px auto;

    padding: 25px;

    background: #f8eeee;

    border-left: 4px solid #b84c4c;

    color: #8a3b3b;

    box-sizing: border-box;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .trg-mm-product-detail {

        padding: 40px 25px 60px;

    }


    .trg-mm-product-main {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .trg-mm-product-main-image {

        min-height: 420px;

    }


    .trg-mm-product-detail-info {

        padding-top: 0;

    }


    .trg-mm-product-detail-title {

        font-size: 32px;

    }


    .trg-mm-product-detail-price {

        font-size: 30px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .trg-mm-product-detail {

        padding: 30px 18px 50px;

    }


    .trg-mm-product-main {

        gap: 30px;

    }


    .trg-mm-product-main-image {

        min-height: 320px;

        border-radius: 7px;

    }


    .trg-mm-main-img {

        max-height: 380px;

    }


    .trg-mm-product-thumbnails {

        gap: 8px;

        margin-top: 12px;

    }


    .trg-mm-product-thumbnail {

        width: 65px;

        height: 65px;

        border-radius: 5px;

    }


    .trg-mm-product-detail-title {

        font-size: 28px;

        line-height: 1.25;

    }


    .trg-mm-product-detail-sku {

        margin-bottom: 20px;

    }


    .trg-mm-product-detail-price {

        font-size: 28px;

        margin-bottom: 18px;

    }


    .trg-mm-product-detail-stock {

        margin-bottom: 22px;

    }


    .trg-mm-product-description {

        margin-top: 45px;

        padding-top: 30px;

    }


    .trg-mm-product-description h2 {

        font-size: 22px;

        margin-bottom: 20px;

    }


    .trg-mm-product-description-content {

        font-size: 15px;

        line-height: 1.7;

    }


    .trg-mm-qty-minus,
    .trg-mm-qty-plus {

        width: 40px;

        height: 40px;

    }


    .trg-mm-qty-input {

        height: 40px;

    }

}