﻿.custom-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    align-items: center;
}

.product-detail {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.product-main-info {
    width: 100%;
    max-width: 960px;
    height: auto;
    display: flex;
    padding: 3rem;
    background-color: #F2F2F2;
    position: relative;
}

#displayShopId {
    position: absolute;
    z-index: 1000;
    top: -25px;
    left: 0;
    font-weight: 600;
    text-decoration: underline;
    color: #1FA378;
}

.image-gallery {
    width: 50%;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.15);
    height: 500px;
}

    .image-gallery .main-image {
        width: 100%;
        height: 85%;
    }

.main-image img {
    width: 100%;
    height: 100%;
}

.image-gallery .thumbnail-container {
    display: flex;
    z-index: 999;
    width: 100%;
    background: white;
    height: 15%;
    justify-content: start;
}

.thumbnail-container .thumbnail {
    border: 1px solid;
    width: 20%;
    height: 100%;
}

.product-content {
    width: 50%;
    padding: 20px;
}

.variant-container label {
    font-family: 'GothamMedium'
}

.selectVariants {
    border: none;
    width: 15rem;
    height: 30px;
    background-color: lightgray;
    border-radius: 5px;
    padding-left: 10px;
}

    .selectVariants option {
        color: black;
    }

.product-content p {
    margin: 0.5rem 0 !important;
    font-size: 1.3rem;
}

.product-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color:black;
}

.product-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    display: block;
    min-height: 30px;
    max-height: 110px; /* Giới hạn chiều cao của phần mô tả */
    overflow: hidden; /* Ẩn văn bản khi quá giới hạn chiều cao */
    text-overflow: ellipsis; /* Hiển thị "..." khi nội dung vượt quá chiều cao */
    font-family: 'PoppinLight'
}

    .product-description p {
        margin: 0px !important;
        font-size: 1.3rem
    }

.price-qty-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 100px;
}




.price-value {
    font-size: 1.75rem !important;
    color: red;
    font-weight: bold;
}

.qty p {
    text-align: center;
    font-size: 1.3rem;
}


.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.qty-btn {
    background: #f1f1f1;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

    .qty-btn:hover {
        background: #ddd;
    }

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.2rem;
}

.add-to-cart {
    display: block;
    width: 90%;
    padding: 10px;
    background-color: #1FA378;
    color: white;
    border: none;
    font-size: 1.5rem;
    border-radius: 25px;
    margin: 15px 0 0 15px;
    cursor: pointer;
}

    .add-to-cart:hover {
        background-color: #1d8261;
    }


.last-section {
    width: 100%;
    bottom: 0;
}

.swal2-actions {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
}

    .swal2-actions button {
        flex: 1;
    }

.btn-success {
    background-color: #1FA378
}

.related-products {
    margin-top: 2rem;
    padding: 2rem;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.15);
}


    .related-products .list-card {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        height: 100%;
        /*    padding: 1rem; */
        margin-top: 1rem;
        /*  overflow-x: auto;
            scroll-behavior: smooth;
           */
        cursor: pointer;
    }

.list-card .product-card {
    width: 100%;
    max-width: 250px;
    height: 360px;
    flex-shrink: 0;
    max-height: 370px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.15);
}

.product-card img {
    width: 100%;
    height: 250px;
}

.product-card .card-info {
    width: 100%;
    font-size: 1.05rem;
    padding: 1rem;
}

.card-info h6 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    max-height: calc(1.5em * 2);
    margin-bottom: 0;
}

.card-info p {
    padding: 0;
    margin: 0;
}



@@media (max-width:1056px) {

    .custom-container {
        padding: 0;
        margin-top: 3rem;
    }

    .product-detail {
        padding: 1rem;
    }

    .product-main-info {
        padding: 1rem;
    }




    .product-content {
        padding: 10px;
    }

        .product-content .product-title {
            font-size: 1.35rem;
        }



    .product-description {
        font-size: 0.95rem;
    }

    .more-details {
        font-size: 0.9rem;
    }

    .price-qty-container {
        margin: 15px 0 5px 0;
    }

    .price-value {
        font-size: 1.5rem !important;
    }

    .qty p {
        font-size: 1.5rem;
    }

    .add-to-cart {
        padding: 5px;
    }
}

@@media (max-width:612px) {

    .custom-container {
        padding: 1rem;
        margin-top: 4rem;
    }

    .product-main-info {
        flex-direction: column;
    }

    .image-gallery {
        width: 100%;
        max-height: 100%;
        height: 100%;
    }

    .product-content {
        width: 100%;
    }


    .last-section {
        position: relative;
    }

    .quantity-selector input {
        width: 35px;
    }

    .price-qty-container {
        margin: 15px 0 5px 0;
    }


    .qty p {
        font-size: 1rem;
        margin: 0 !important;
    }

    .price-value {
        font-size: 1.2rem !important;
    }



    .add-to-cart {
        padding: 5px;
    }
}

@@media (max-width:576px) {
    .list-card .product-card {
        max-width: 250px;
        height: 350px;
        max-height: 370px;
    }

    .related-products .list-card {
        justify-content: center;
    }

    .product-card img {
        width: 100%;
        height: 200px;
    }
}

@@media (max-width:396px) {
    .related-products .list-card {
        gap: 15px;
    }

    .list-card .product-card {
        max-width: 230px;
        height: 300px;
        max-height: 320px;
    }

    .product-card img {
        width: 100%;
        height: 200px;
    }

    .image-gallery {
        height: 100%;
    }

        .image-gallery .main-image {
            height: 100%;
            aspect-ratio: 1/1;
        }

    .thumbnail-container .thumbnail {
        height: 100%;
        aspect-ratio: 1/1;
    }
}

#breadcrumb {
    width: 100%;
    max-width: 960px;
    font-size: 1.15rem;
}

    #breadcrumb a {
        color: #1FA378;
        text-decoration: none;
        font-weight: 600;
    }

        #breadcrumb a:hover {
            text-decoration: underline;
        }

.variant-hidden {
    display: none !important;
}
