﻿header {
    background: #1976d2;
}

.navbar {
    padding: 0 50px;
    max-width: 100%;
    margin: 0 auto;
}
#xt:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
.btn-reviews:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
.buttons .buy-now:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
#addToCartButton:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
.buttons .buy-Order:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
#t-mua-onlinedp:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
#button-4dp:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
.product-details-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    max-width: 1340px;
    column-gap: 64px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    width: 100%;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

    .breadcrumb a {
        color: #666;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

.left-column,
.right-column {
    width: 100%;
}

.left-column {
    max-width: 400px;
    /*    height: 619px;*/
    position: relative;
    overflow: hidden; /* Giới hạn hình ảnh bên trong khung */
    padding-bottom: 27px;
}

.image-2d {
    /*width: 100%;*/ /* Đảm bảo ảnh phủ toàn bộ chiều rộng */
    /*height: 100%;*/ /* Phủ toàn bộ chiều cao */

    object-fit: cover; /* Ảnh không bị méo */
    /*position: absolute;*/ /* Đặt ảnh trong hệ quy chiếu của vùng chứa */
    top: 0;
    left: 0;
    transition: transform 0.3s ease, transform-origin 0.3s ease;
}

.left-column img {
    width: 100%;
    height: auto;
}
.modalrv {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-contentrv {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
    left: 40px;
    top: 173px;
}

    .modal-contentrv img {
        max-width: 80%;
        max-height: 80vh;
        object-fit: contain;
        display: block;
    }

    .modal-contentrv i {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 40px;
        color: white;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 15px;
        border-radius: 50%;
        transition: background 0.3s;
    }

#prevImg {
    left: 9%;
}

#nextImg {
    left: 90%;
}

.modal-contentrv i:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.thumbnail-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
}

    .thumbnail-container img {
        width: 80px;
        height: 70px;
        cursor: pointer;
    }

.prev-button {
    background: #848484;
    color: white;
    padding: 0 5px;
}

.next-button {
    background: #848484;
    color: white;
    padding: 0 5px;
}

.right-column {
    max-width: 700px;
    width: 100%;
}

.right-column-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-categories {
    font-size: 20px;
    color: #898181;
}

.product-categories2 {
    font-size: 15px;
    color: #848484;
}

.product-title {
    font-size: 32px;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    gap: 27px;
}

.rating-stars {
    display: flex;
    gap: 27px;
    align-items: center;
}

.rating-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating i {
    color: #f5c518;
    margin-right: 5px;
}

.rating span {
    font-size: 20px;
    color: #666;
}

.color-selection {
    display: flex;
    align-items: center;
    gap: 20px;
}

.color-selection-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

    .color-selection-list span {
        padding: 4px 30px;
        border: 1px solid #ccc;
        border-radius: 100px;
        color: black;
    }

        .color-selection-list span.active {
            border: 1px solid #1976d2;
            background: #1976d2;
            color: white;
        }

.price {
    font-size: 48px;
    color: #d32f2f;
    font-weight: 700;
    margin-bottom: 20px;
}
/* fix */
.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    padding: 8px 12px;
}

.checkbox-item-1 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .checkbox-item-1 .input-name {
        width: 50%;
        border: none;
        border: 1px solid #848484;
        padding: 4px 12px;
    }

.checkbox-container input {
    margin-right: 10px;
}

.delivery-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    padding: 8px 12px;
}

.color-selection,
.quantity-selection {
    margin-bottom: 20px;
    color: #848484;
}

.quantity-selection {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 20px;
    /*    background: white;
    padding: 8px 12px;*/
}

    .quantity-selection input {
        width: 50px;
        text-align: center;
        border: none;
        background: white;
        border: 1px solid #ccc;
        border-radius: 20px;
    }

.quantity-buttons {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 4px 1px;
}

.buttons {
    display: flex;
    align-items: center;
}

    .buttons button {
        padding: 10px 20px;
        font-size: 16px;
        border: none;
        cursor: pointer;
        margin-right: 10px;
        border-radius: 5px; /* Added border-radius */
    }

    .buttons .add-to-cart {
        border: 1px solid #1976d2;
        background: white;
        border-radius: 100px;
        color: #1976d2;
    }
    .buttons .buy-Order {
        border: 1px solid #1976d2;
        background: white;
        border-radius: 100px;
        color: #1976d2;
    }
    .buttons .buy-now {
        background-color: #1976d2;
        color: #fff;
        border-radius: 100px;
    }

    .buttons .buy-nowcart {
        background-color: #1976d2;
        color: #fff;
        border-radius: 100px;
    }


.tabs {
    width: 100%;
    margin-top: 20px;
}

    .tabs button {
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 16px;
        margin-right: 10px;
        font-weight: bold;
    }

        .tabs button.active {
            border-bottom: 2px solid #1976d2;
            color: #1976d2
        }

.tab-content {
    margin-top: 20px;
/*    font-size: 14px;
    color: #666;*/
    width: 800px;
    line-height: 1.5;
}

.tab-content-container {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 90px;
}

.details {
    margin-top: -31px;
    font-size: 14px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.starrate-half {
    padding-top: 2px;
}
.details h4 {
    font-size: 20px;
    font-weight: bold;
    color: black;
}

    .details span {
        display: block;
        margin-bottom: 5px;
    }
/* fix */
.modal-overlay {
    z-index: 9;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 20px;
    display: none;
}

    .modal-overlay.active {
        display: block;
    }

.modal {
    z-index: 10;
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 30px;
    display: none;
}

    .modal.active {
        display: block;
    }

.modal-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 24px;
    font-weight: 500;
}

.close-button {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.modal-content {
    padding: 16px;
}

.product-infodt {
    display: flex;
    gap: 12px;
    align-items: center;
}

.product-imagedt {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.product-detailss {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.product-details-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 60%;
}

    .product-details-left .product-name {
        font-size: 20px;
        font-weight: 500;
    }

.product-details-left-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .product-details-left-bottom .product-variant {
        font-size: 16px;
        color: #666;
    }

    .product-details-left-bottom .product-size {
        font-size: 16px;
        color: #666;
    }

.product-details-right {
    width: 30%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .product-details-right .modal-price {
        font-weight: 500;
        line-height: normal;
    }

.product-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.product-details-left-bottom .price-quantity {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #666;
}

.modal-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.action-button {
    flex: 1;
    padding: 10px;
    border-radius: 100px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    border: none;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #0052b4;
    color: #0052b4;
}

.buy-now {
    background: #0052b4;
    color: white;
}

.buy-nowcart {
    background: #0052b4;
    color: white;
}

.cart-icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

.list-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .list-rating span {
        border: 1px solid #d9d9d9;
        color: black;
        padding: 6px;
        border-radius: 100px;
    }

.review-item {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    width: 100%;
}

.review-item-left-top {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.review-item-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-item-right-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-rating i {
    color: #f5c518;
}

.review-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-item-right-bottom {
    margin-top: 20px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.review-item-right-bottomimg {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}

.imgrv {
    width: 90px;
    height: 87px;
    margin-right: 10px;
}

.button-reviews {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-1 {
    width: 100%;
    background-color: white;
    color: #0052b4;
    border: 1px solid #0052b4;
    border-radius: 100px;
    padding: 10px 20px;
    cursor: pointer;
    text-align: center;
}

.btn-2 {
    width: 100%;
    background-color: #0052b4;
    color: white;
    border-radius: 100px;
    padding: 10px 20px;
    cursor: pointer;
    text-align: center;
}
/* modal reviews */
.reviews-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    height: 500px;
    /*    overflow-y: auto;*/
    height: fit-content;
    display: none;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .reviews-modal.active {
        display: block;
    }

.reviews-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.reviews-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

.reviews-modal-product-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
}

.reviews-modal-product-title {
    margin: 10px 0;
    font-weight: 500;
    text-align: center;
}

.reviews-modal-rating {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 10px 0;
}

.reviews-modal-star {
    color: #ddd;
    font-size: 24px;
    cursor: pointer;
}

.reviews-modal-rating-labels {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    color: #666;
}

.reviews-modal-input-group {
    margin: 10px 0;
}

    .reviews-modal-input-group label {
        font-weight: 500;
    }

.reviews-modal-rating-labels span {
    color: #666;
    transition: color 0.3s;
}

    .reviews-modal-rating-labels span.active {
        color: #ffd700;
        font-weight: bold;
    }

.reviews-modal-input-group-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.reviews-modal-input-group input[type="text"],
.reviews-modal-input-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.reviews-modal-image-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-modal-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
    resize: vertical;
    min-height: 80px;
}

.reviews-modal-image-upload {
    margin: 10px 0;
    color: #0052b4;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .reviews-modal-image-upload input[type="file"] {
        display: none;
    }

.reviews-modal-thumbnail-preview {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.reviews-modal-thumbnail-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.reviews-modal-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.reviews-modal-thumbnail-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.reviews-modal-submit-btn {
    width: 100%;
    padding: 12px;
    background: #0052b4;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
}

    .reviews-modal-submit-btn:hover {
        background: #1e4bd8;
    }

.modal-thanks {
    position: fixed;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    z-index: 10;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

    .modal-thanks.active {
        display: block;
    }

    .modal-thanks span {
        font-weight: 500;
    }

.btn-thank-reviews {
    border: 1px solid #0052b4;
    padding: 10px 0;
    border-radius: 100px;
    color: #0052b4;
}
@media (width: 1024px) and (height: 1366px) {
    .tab-content-container {
        flex-direction: column;
    }
    .product-item {
        width: 100%;
    }
}
    @media screen and (max-width: 1023.98px) {
        .product-listdt {
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
        }

            .product-listdt .product-item {
                padding: 8px;
            }

            .product-listdt .product-item-imgdt {
                width: 200px;
                height: 170px;
            }

        .tab-content-container {
            flex-direction: column;
            gap: 20px;
        }

        .tab-content {
            width: fit-content;
        }

        .details {
            margin-top: 0px;
        }

        .product-item {
            width: 100%;
        }
    }

    @media (max-width: 767px) {
        header {
            height: 100%;
        }
        .quantity-selection {
            gap: 20px;
            /*    background: white;
    padding: 8px 12px;*/
        }
        .container {
            padding: 0 10px;
        }

        .quantity-buttons {
            padding: 0;
        }

        .buttons {
            display: flex !important;
            align-items: center;
            justify-content: space-between;
        }

        .left-column,
        .right-column {
            max-width: 100%;
            height: 100%;
        }

        .right-column {
            margin-top: 20px;
        }

        .buttons button {
            font-size: 15px;
            width: 50%;
        }

        .tabs button {
            padding: 8px 16px;
            font-size: 20px;
        }

        .details {
            margin-top: 20px;
        }

        .tab-content-container {
            flex-direction: column;
            gap: 20px;
        }

            .tab-content-container .tab-content {
                width: 100%;
                font-size: 16px;
            }

        .product-details-container {
            padding: 0;
        }

        .product-listdt {
            grid-template-columns: 1fr 1fr;
        }

        .breadcrumb {
            gap: 10px;
        }
            .breadcrumb a {
                font-size: 7px;
            }
        .color-selection {
            flex-direction: column;
            align-items: start;
            gap: 10px;
        }

        .color-selection-list {
            flex-wrap: wrap;
        }

        .rating {
            gap: 0;
            justify-content: space-between;
        }

        .rating-stars {
            gap: 0;
        }

            .rating-stars span {
                font-size: 16px;
            }

        .rating-right span {
            font-size: 16px;
        }

        .main-title h2 {
            font-size: 20px;
        }

        .main-title span {
            font-size: 16px;
        }

        .product-listdt {
            gap: 10px;
        }

        .checkbox-container {
            padding: 10px;
            height: 100%;
        }

        .checkbox-item-1 {
            margin-top: 10px;
        }

            .checkbox-item-1 .input-name {
                width: 100%;
            }

        .modal {
            position: fixed;
            top: auto;
            right: 0;
            bottom: 0;
            left: 0;
            max-width: 100%;
            border-radius: 24px 24px 0 0;
            padding: 30px 10px;
        }

        .modal-header .modal-title {
            font-size: 16px;
        }

        .product-details-left {
            width: 50%;
        }

        .product-details-right {
            width: 40%;
        }

        .product-details-left .product-name {
            font-size: 16px;
        }

        .product-details-left-bottom .product-variant {
            font-size: 16px;
        }

        .product-details-left-bottom .price-quantity {
            display: none;
        }
        /* fix */
        .reviews-modal {
            height: fit-content;
        }

        .reviews-modal-input-group-container {
            grid-template-columns: 1fr;
            gap: 0px;
        }

        .breadcrumb {
            display: none
        }

        .product-item {
            width: 100%;
            padding: 10px;
        }

            .product-item .product-item-imgdt {
                height: 150px;
                width: 100%;
            }

            .product-item .product-item-body {
                margin-top: 10px;
            }

                .product-item .product-item-body span {
                    font-size: 16px;
                }

                .product-item .product-item-body h3 {
                    font-size: 16px;
                }

            .product-item .product-item-footer {
                margin-top: 10px;
            }

                .product-item .product-item-footer .product-item-price {
                    font-size: 16px;
                }

                .product-item .product-item-footer .product-item-cart {
                    display: none;
                }

        .modal-contentrv {
            max-width: 95%;
            max-height: 80%;
            left: 10px;
        }

            .modal-contentrv img {
                max-width: 95%;
                max-height: 60vh; /* Giảm chiều cao để tránh tràn màn hình */
            }

            .modal-contentrv i {
                font-size: 25px; /* Giảm kích thước icon */
                padding: 10px;
            }

        #prevImg {
            left: 5px;
        }

        #nextImg {
            right: 5px;
        }
    }

    .starrate.empty {
        filter: grayscale(100%) brightness(90%) contrast(90%);
    }

    .disabled-button {
        pointer-events: none;
        opacity: 0.5;
    }

    .frame-32d {
        display: inline-flex;
        align-items: center;
        position: relative;
        flex: 0 0 auto;
        left: 13px;
    }

    .product-item {
        position: relative;
        transition: background-color 0.3s ease;
    }

        .product-item:hover {
            background-color: #CCFFFF; /* Màu nền khi hover */
        }

            .product-item:hover .product-item-imgdt {
                background-color: initial;
            }

    .product-item-cart {
        transition: transform 0.3s ease; /* Thêm hiệu ứng chuyển động mượt mà */
    }

        .product-item-cart:hover {
            transform: translateY(-5px); /* Dịch chuyển lên trên 5px khi hover */
        }

