.box-box {
    background-color: var(--color-2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

#reviews-list{
    height: 500px; overflow-y: auto; border:1px solid #eee; padding:10px;
}

.stars ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    cursor: pointer;
}

.stars li svg polygon {
    transition: fill 0.2s;
}

.stars li.hover svg polygon,
.stars li.selected svg polygon {
    fill: #ffcc00;
}


.product-detail .name-product {
    font-size: 26px;
    margin-bottom: 20px;
}

/* Hình ảnh  */
.product-container {
    padding-bottom: 30px;
}

.product-container .item .wrap-img {
    padding-bottom: 100%;
}

.product-container .item .wrap-img #icon-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100px;
    height: 100px;
}

.product-container .slick-dots {
    bottom: 0px;
}

.product-container .slick-arrow {
    opacity: 1;
    background: rgba(183, 183, 183, 0.2) !important;
}

.product-container .slick-arrow svg path {
    fill: #000;
}


.product-container .slick-dots li.slick-active {
    width: 25px;
    border-radius: 30px;
    background-color: #fabd5c;
}

.product-container .slick-dots li {
    width: 5px;
    height: 5px;
    background-color: #d4d7d9;
}

.product-content {
    margin-left: 15px;
}

.product-content.under {
    position: sticky;
    top: 100px;
}

/* Tab scroll  */
.tab-scroll {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.tab-scroll .scroll-to {
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-scroll .scroll-to .image {
    border: 1px solid #e9e9e9;
    width: 50px;
    height: 50px;
    padding: 6px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

.tab-scroll .scroll-to span {
    font-size: 12px;
    line-height: 16px;
    color: #282626ab;
    margin-top: 10px;
    display: block;
}

/* Cam kết */
.commit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 35px;
}

.commit .item {
    font-size: 12px;
    display: grid;
    grid-template-columns: 36px auto;
    gap: 5px;
    align-items: center;
}

/* Phần trên: mã sp,....  */
.group-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #888;
}

.group-header .stars {
    margin-bottom: 0;
}

.group-header .status {
    color: var(--color-2);
    background-color: #26a65b;
    padding: 4px 15px;
    border-radius: 5px;
    font-size: 13px;
    margin-left: 30px;
}

.group-header .status.out-of-stock {
    background-color: var(--color-5);
}

.group-header .code {
    transform: translateY(2px);
    margin-right: 10px;
}

/* Mô tả sản phẩm  */
.box-des {
    margin-top: 35px;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
}

.box-des .title {
    color: var(--color-3);
    background: var(--color-2);
    padding: 3px 14px;
    margin-top: -15px;
    max-width: 155px;
    font-weight: 600;
    margin-left: 5px;
    font-size: 16px;
}

.box-des .content-des {
    padding: 15px;
    padding-top: 5px;
}

/* Phần giá  */
.price-wrap .price-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 14px;
}

.price-wrap .price-new .price {
    font-size: 16px;
    font-weight: 600;
}

.price-wrap .price-new .price span {
    font-size: 19px;
    color: var(--color-5);
}

.price-wrap .price-new .note {
    color: #888;
}

.price-wrap .price-old {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.price-wrap .price-old .price {
    font-size: 15px;
}

.price-wrap .price-old .discount {
    border: 1px dotted #f90;
    border-radius: 5px;
    padding: 4px 20px;
    margin-left: 20px;
    color: var(--color-5);
    font-size: 13px;
    font-weight: 600;
}

/* Phần chọn cấu hình  */
.choose-config .title-box {
    font-size: 16px;
    font-weight: 700;
    padding: 10px 0 5px;
}

.option-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.option-item {
    display: grid;
    grid-template-columns: 20px auto;
    align-items: center;
    gap: 12px;
    padding: 13px 10px 10px;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--color-2);
    transition: 0.25s;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
    font-weight: 400;
    color: #666;
}

.option-item:hover {
    border-color: var(--color-3);
}

.option-item input {
    display: none;
}

/* Custom radio */
.custom-radio {
    width: 22px;
    height: 22px;
    border: 1px solid #bbb;
    border-radius: 50%;
    position: relative;
}

/* Check icon xanh */
.custom-radio::after {
    content: "✔";
    font-size: 14px;
    color: white;
    background: #4caf50;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
}

/* Khi checked */
.option-item input:checked+.custom-radio {
    border-color: #4caf50;
}

.option-item input:checked+.custom-radio::after {
    opacity: 1;
}

.option-item input:checked+.custom-radio+.option-text {
    font-weight: 500;
}

.option-item input:checked~.option-text .title {
    color: #000;
}

.option-item .option-text .price {
    color: var(--color-5);
}

.option-item .option-text .price-old {
    font-size: 12px;
}

.option-item .option-text .price-old .discount {
    background-color: var(--color-5);
    color: var(--color-2);
    padding: 3px 10px;
    border-radius: 5px;
    margin-left: 10px;
}

.option-item:has(input:checked) {
    border-color: #f6b443;
}

/* Button add cart  */
.button-add-group {
    display: grid;
    grid-template-columns: 70% auto;
    gap: 10px;
    margin-top: 30px;
}

.button-add-group button {
    border-radius: 5px;
    height: 58px;
    color: var(--color-2);
}

.button-add-group .buy-now {
    background-color: var(--color-5);
    font-size: 18px;
    line-height: 20px;
}

.button-add-group .sub {
    font-size: 12px;
    opacity: .8;
    display: block;
}

.button-add-group .add-cart {
    background-color: var(--color-3);
}

/* Gọi để mua  */
.call-to-buy {
    margin-top: 25px;
    background: linear-gradient(0deg, var(--color-3), var(--color-4));
    padding: 10px 25px 20px;
    border-radius: 10px;
    color: var(--color-2);
}

.call-to-buy .title svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-right: 10px;
}

.call-to-buy .title {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.form-call {
    position: relative;
}

.form-call input {
    width: 100%;
    height: 40px;
    padding: 6px 12px;
    font-size: 16px;
    background-color: var(--color-2);
    border: 1px solid #ced4da;
    padding-right: 120px;
    border-radius: 5px;
}

.form-call button {
    position: absolute;
    right: 0;
    background: var(--color-3);
    top: 0px;
    height: 40px;
    color: var(--color-2);
    border-radius: 0px 5px 5px 0px;
    text-align: center;
    line-height: 38px;
    font-size: 15px;
    padding: 0 15px;
    min-width: 110px;
}

.call-to-buy .sub {
    margin-top: 20px;
    text-align: center;
}

.call-to-buy .sub a {
    color: #ffc101;
    font-size: 16px;
    font-weight: 700;
}

/* Download document  */
.document {
    margin-top: 50px;
}

.document .title {
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 15px;
}

.document table {
    background-color: #f5f5f5;
    width: 100%;
}

.document table td {
    padding: 10px;
}

/* Thông số kỹ thuật  */
.parameter {
    margin-top: 50px;
}

.parameter h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.parameter table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.parameter table tr:nth-of-type(odd) {
    background: #f5f5f5;
}

.parameter table td {
    padding: 10px;
    border: none;
    text-align: left !important;
}

.parameter table td:nth-child(1n) {
    width: 30%;
}

.parameter table td:nth-child(2n) {
    width: 70%;
}

/* Nội dung chi tiết sản phẩm  */
.product-content-detail {
    margin-top: 50px;
}

.product-content-detail .noi-dung {
    overflow: hidden;
    height: auto;
    transition: height 0.45s ease;
    position: relative;
}

.product-content-detail .noi-dung.fade::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

.product-content-detail .btn-xem-them {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid #d1d5db;
    display: block;
    max-width: 150px;
    margin: 12px auto 0;
    transition: .3s;
}

.product-content-detail .btn-xem-them:hover {
    background-color: var(--color-3);
    color: var(--color-2);
}

/* FAQ  */
.title-section-product {
    font-size: 22px;
    margin-bottom: 15px;
}

.accordion-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

.accordion-title {
    cursor: pointer;
    position: relative;
    font-size: 16px;
    padding-right: 30px;
}

.accordion-title::after {
    content: '+';
    position: absolute;
    right: 5px;
    font-size: 20px;
    transition: 0.3s;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-item.active .accordion-title::after {
    content: '—';
}

.accordion-item.active .accordion-title {
    color: var(--color-3);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0px 16px;
    transition: max-height 0.35s ease;
}

.accordion-content .content {
    padding-top: 15px;
}

.accordion-content p {
    margin-bottom: 5px;
}

/* Product related  */
.subtitle-product {
    display: flex;
    align-items: center;
    color: #888;
    margin-top: 6px;
}

.subtitle-product::before {
    content: "";
    display: inline-flex;
    background: #f90;
    width: 75px;
    height: 1px;
    margin-right: 10px;
}

.filter-category {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 18px;
}

.filter-category .item {
    padding: 6px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 19px;
    border: 1px solid rgba(136, 136, 136, 0.5);
    border-radius: 10px;
    display: inline-block;
}

.filter-category .item:hover {
    color: var(--color-2);
    background-color: var(--color-3);
    border: 1px solid var(--color-3);
}

.product-related-slider .slick-slide {
    margin: 20px 8px;
}

.product-related-slider .slick-list {
    margin: 0 -8px;
}

/* Đánh giá  */
.review-wrap .section-title {
    font-size: 22px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.rating-summary {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.score-number {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.score-total {
    font-size: 16px;
    color: #999;
}

.stars-display ul {
    display: flex;
    gap: 5px;
}

.stars-display ul li {
    list-style: none;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

.btn-write-review {
    width: 100%;
    padding: 10px 15px;
    background: var(--color-3);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-write-review:hover {
    background: var(--color-4);
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
}

.rating-bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    align-items: center;
    gap: 15px;
}

.rating-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.star-icon {
    display: flex;
}

.bar-container {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #ffcc00;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-number {
    text-align: right;
    font-size: 14px;
    color: #666;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 18px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

.filter-btn:hover {
    border-color: #ff9500;
    color: #ff9500;
}

.filter-btn.active {
    background: #fff5e6;
    border-color: #ff9500;
    color: #ff9500;
    font-weight: 600;
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    background-color: var(--color-3);
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-content {
    margin-bottom: 10px;
}

.review-text {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1;
}

.review-images img {
    width: 77px;
    height: 77px;
    object-fit: contain;
}

.check-sell {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: #00ab56;
    margin-bottom: 10px;
}

.check-sell .icon-check {
    display: block;
    width: 14px;
    height: 14px;
    background-color: #00ab56;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    margin: 0px 6px 0px 0px;
}

.check-sell .icon-check::before {
    content: "";
    width: 6px;
    height: 3px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    position: absolute;
    display: block;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -70%) rotate(-45deg);
}

.admin-reply {
    margin: 10px 0;
    background: #f3f4f6;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e2e2e2;
}

.admin-reply h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

/* Form đánh giá  */
.modal-overlayyy {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 15;
    justify-content: center;
    align-items: center;
    /* display: flex; */
}

.modal-overlayyy .modal-content {
    background: #fff;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 645px;
    width: 90%;
    animation: fadeIn 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--color-3);
}

.modal-overlayyy .modal-header {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
}

.modal-overlayyy .modal-content form {
    padding: 25px;
    background-color: #FFF;
}

.modal-overlayyy .modal-header h2 {
    font-size: 20px;
    color: #FFF;
}

.modal-overlayyy .close-btn-modal svg {
    width: 20px;
    height: 20px;
}

.modal-overlayyy .close-btn-modal svg path {
    fill: #FFF;
}

.modal-overlayyy .form-group {
    margin-bottom: 15px;
}

.modal-overlayyy input,
.modal-overlayyy select,
.modal-overlayyy textarea {
    color: #333;
    padding: 10px;
    border: 1px solid #ebe6e7;
    height: 46px;
    width: 100%;
    resize: none;
    font-size: 14px;
    font-family: inherit !important;
    border-radius: 5px;
}

.modal-overlayyy textarea {
    height: unset;
}

.modal-overlayyy .submit {
    font-size: 16px;
    margin: 0 auto;
    display: block;
    font-weight: 500;
    border-radius: 5px;
    padding: 10px 30px;
    background: var(--color-3);
    color: #FFF;
    transition: .3s;
}

.modal-overlayyy .submit:hover {
    background: var(--color-4);
}

.modal-overlayyy .write-rate {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.upload-section {
    margin-top: 15px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.upload-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.upload-item:hover {
    border-color: #fdb813;
    background: #fff8e6;
}

.upload-item.has-image {
    border-style: solid;
    border-color: #fdb813;
    padding: 0;
}

.upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-icon {
    width: 64px;
    height: 64px;
}

.upload-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.upload-item:hover .btn-remove {
    display: flex;
}

.upload-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

input[type="file"] {
    display: none;
}

#review-wrap,
#parameter,
#product-content-detail {
    scroll-margin-top: 100px;
}

/* Tin tức liên quan  */
.news-related-product {
    margin-top: 50px;
}

.news-related-product h2.title {
    font-size: 20px;
    margin-bottom: 15px;
}

.news-related-product .item-news .wrap-img {
    padding-bottom: 75%;
    border-radius: 4px;
}

.news-related-product .item-news h3 {
    font-weight: 500;
}

.news-related-product .item-news .title {
    font-size: 16px;
}

.news-related-product .item-news .des {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #666;
    margin-top: 10px;
}

.news-related-product .item-news:not(:last-child) {
    margin-bottom: 16px;
}

/* Modal video  */
#modal-videos .modal-content {
    max-width: 800px;
    background-color: #FFF;
    padding: 15px;
    overflow: inherit;
}

#modal-videos .close-btn-modal {
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 1;
}

.video-thumb-slider {
    margin-top: 3px;
}

.video-thumb-slider .slick-slide {
    margin: 0 5px;
}

.video-thumb-slider .slick-list {
    margin: 0 -5px;
}

.video-thumb-slider .item.active {
    border: 2px solid var(--color-5);
}

.video-thumb-slider .item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .product-content {
        margin-left: 0px;
        margin-top: 15px;
    }
}

@media (max-width: 550px) {
    .box-box {
        padding: 12px;
    }

    .product-detail .name-product {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .tab-scroll .scroll-to {
        width: 60px;
    }

    .tab-scroll .scroll-to .image {
        padding: 10px;
    }

    .tab-scroll .scroll-to span {
        font-size: 11px;
    }

    .commit {
        grid-template-columns: repeat(1, 1fr);
        margin-top: 20px;
    }

    .group-header {
        gap: 10px;
    }

    .group-header .status {
        margin-left: 0;
    }

    .price-wrap .price-old .price {
        font-size: 13px;
    }

    .button-add-group {
        margin-top: 20px;
    }

    .call-to-buy {
        margin-top: 20px;
        padding: 10px 15px 15px;
    }

    .call-to-buy .title {
        margin-bottom: 10px;
    }

    .call-to-buy .sub {
        margin-top: 15px;
        font-size: 12px;
    }

    .document {
        margin-top: 30px;
    }

    .parameter {
        margin-top: 30px;
    }

    .product-content-detail {
        margin-top: 30px;
    }

    .title-section-product {
        font-size: 20px;
    }

    .filter-category .item {
        padding: 6px 15px;
        font-size: 13px;
    }

    .filter-category {
        gap: 6px;
    }

    .review-wrap .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .filter-btn {
        padding: 4px 10px;
    }

    .filter-buttons {
        gap: 4px;
    }

    .rating-summary {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 30px;
    }

    .rating-bar-item {
        grid-template-columns: 50px 1fr 25px;
    }

    .news-related-product .item-news .des {
        display: none;
    }

    .news-related-product {
        margin-top: 30px;
    }

    .upload-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .upload-number {
        display: none;
    }

    #modal-videos .modal-content {
        padding: 10px;
    }

    #modal-videos #video-frame {
        height: 250px;
    }
}