.pt100 {
    padding-top: 100%;
}

.review-statistic {
    border: 1px solid var(--line);
    position: relative;
    border-radius: 10px;
}

.review-averate .title {
    color: #444b52;
    margin-bottom: 8px;
}
.review-averate .score {
    color: #cb1c22;
    font-size: 32px;
    line-height: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}
.review-averate .star {
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.review-container .progress {
    width: 280px;
    height: 8px;
    margin: 0;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.07),
        inset 0 2px 2px rgba(0, 0, 0, 0.07);
    border-radius: 4px;
}

.review-container .progress .progress-bar {
    background: #3bb77e;
    box-shadow: none;
}

.progress-item {
    font-size: 13px;
    margin-bottom: 10px;
}
.progress-item:last-child {
    margin-bottom: 0;
}

.progress-item .d-flex > *:not(:last-child) {
    margin-right: 5px;
}

.review-filter {
    background: #f8f9fa;
    padding: 15px 20px;
}
.filter-text {
    font-size: 15px;
    margin-right: 20px;
    color: #7e7e7e;
}

.filter-item span {
    display: inline-block;
    margin-right: 10px;
    padding: 0px 8px;
    border: 1px solid #939ca3;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
}
.filter-item span:hover {
    background: #444b52;
    color: #fff;
    cursor: pointer;
}
.review-wrapper {
    padding: 0;
}
.review-block-item::after {
    content: "";
    display: table;
    clear: both;
}
.review-avatar {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #cbd1d6;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 100%;
    float: left;
}
.review-block-item {
    padding-top: 10px;
}
.review-block-item:not(:last-child) {
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e5e5;
}
.review-content-block {
    width: calc(100% - 48px);
    float: left;
    padding-left: 15px;
}
.review-content .review-star {
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}
.review-content .review-star i {
    font-size: 13px;
}
.review-content .description {
    line-height: 20px;
    margin-bottom: 5px;
}

.review-content .created_at {
    font-size: 13px;
    color: #939ca3;
    font-weight: 500;
    margin-right: 10px;
}

.review-content .review-reply {
    font-size: 13px;
    color: #0664f9;
    padding-left: 10px;
    position: relative;
    cursor: pointer;
}
.review-content .review-reply:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    width: 5px;
    height: 5px;
    background: #0664f9;
    border-radius: 100%;
}

.review-content .review-name {
    font-weight: bold;
}
.review-content .review-buy {
    margin-left: 5px;
    font-size: 12px;
    color: #48bb78;
}
.review-content .info i {
    margin-left: 15px;
    font-size: 12px;
    color: #48bb78;
}
.reply-block {
    padding-left: 50px;
    margin-top: 30px;
}

.reply-block .review-content {
    padding: 8px 12px;
    border: 1px solid #e1e4e6;
    border-radius: 6px;
    background: #f8f9fa;
}
.review-reply-block {
    display: flex;
    padding: 5px 0;
}
.review-reply-block .review-avatar-shop {
    width: 36px;
    height: 36px;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: 600;
}
.review-reply-block .badge-shop {
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.bi-star-fill {
    color: #efb140;
}

.popup-rating .rate {
    height: 24px;
    padding: 0 10px;
    margin-top: 10px;
    display: inline-block;
}
.rate-text {
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    color: #000;
}
.popup-rating .rate:not(:checked) > input {
    position: absolute;
    top: -9999px;
}
.popup-rating .rate:not(:checked) > label {
    float: right;
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    font-size: 30px;
    color: #ccc;
}
.popup-rating .rate:not(:checked) > label:before {
    content: "★ ";
}
.popup-rating .rate > input:checked ~ label {
    color: #ffc700;
}
.popup-rating .rate:not(:checked) > label:hover,
.popup-rating .rate:not(:checked) > label:hover ~ label {
    color: #deb217;
}
.popup-rating .rate > input:checked + label:hover,
.popup-rating .rate > input:checked + label:hover ~ label,
.popup-rating .rate > input:checked ~ label:hover,
.popup-rating .rate > input:checked ~ label:hover ~ label,
.popup-rating .rate > label:hover ~ input:checked ~ label {
    color: #c59b08;
}

.product-preview .image {
    height: 96px;
    margin-bottom: 10px;
    display: block;
}

#review .modal-dialog {
    padding: 0;
    border-radius: 6px;
}
#review .modal-body {
    padding: 0;
}

.product-review .image {
    height: 280px;
    margin-bottom: 10px;
}
.product-preview .product-title {
    font-size: 18px;
    color: #000;
    font-weight: 500;
    padding: 10px;
    border-bottom: 1px solid var(--line);
}
.review-form {
    padding: 10px;
}

.review-form .form-row {
    margin-bottom: 10px;
}

.review-form input[name="image"] {
    padding: 10px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    width: 100%;
}

.review-form .form-row .review-text,
.review-form .form-row textarea {
    width: 100%;
    border-radius: 6px;
}
.review-form .form-row textarea {
    height: 72px;
    padding: 8px;
}
.review-form .form-row .review-text {
    height: 40px;
    border-radius: 4px;
    padding: 7px;
}
.review-form .validate-review {
    color: #939ca3;
    font-size: 13px;
}
.review-form .validate-review span {
    color: #cb1c22;
}
.review-form input::placeholder,
.review-form textarea::placeholder {
    color: #999;
    font-size: 14px;
    font-style: italic;
    opacity: 1;
}

.gender-item {
    margin-right: 10px;
}
.gender-item input[type="radio"] {
    margin-top: 3px;
    margin-right: 5px;
}
.btn-send-review {
    padding: 10px 25px;
    background: #0664f9;
    color: #fff;
    border-radius: 20px;
    border: 0;
    cursor: pointer;
}
.uk-modal {
    background: rgba(0, 0, 0, 0.8);
}
label {
    cursor: pointer;
}
.review-star .fa {
    margin-right: 3px;
}
.star-rating {
    font-size: 18px;
    display: inline-block;
    position: relative;
}

.stars::before {
    content: "★★★★★";
    letter-spacing: 3px; /* Khoảng cách giữa các ngôi sao */
    color: #ccc; /* Màu của ngôi sao trắng */
}

.stars::after {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #efb140; /* Màu của ngôi sao đầy đủ */
    width: var(--star-width); /* Sử dụng biến CSS để đặt giá trị width */
    letter-spacing: 3px;
}
.color-item {
    padding: 0 !important;
    border-radius: 50% !important;
    border: 0;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 3px !important;
}

.addToWishlist.active {
    background: #cb1c22;
}
.addToWishlist:hover {
    background-color: #8c4e39;
}

.addToWishlist i {
    color: #fff;
}

.addToWishlist svg {
    color: #fff;
}

.product-info .product-main-title {
    color: #005599;
    font-size: 16px;
    line-height: 19px;
    margin-bottom: 10px;
}

.product-info .rating {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #dde4f0;
}

.product-info .rating .stars::after {
    color: #eca813;
}
.product-info .star-rating {
    font-size: 20px;
}
.product-info .spec-row {
    color: #c10011;
    font-weight: 600;
}

.product-info__price .price {
    display: inline-block;
}

.product-info__price .price .price-old {
    font-size: 15px;
}

.product-info__price .price .percent {
    right: 32px;
}

.product-info__price .price .price-sale {
    font-weight: 600;
    line-height: 23px;
    margin-right: 15px;
    color: #da2229;
}
.product-info__price .price .price-old {
    font-size: 14px;
    color: #000;
    text-decoration: line-through;
    font-weight: 500;
}
.product-info__price .price .price-sale {
    font-size: 25px;
    font-weight: 900;
}
.product-info__price .price .price-old .percent {
    margin-left: 15px;
    text-decoration: none;
    display: none;
}
.percent-value {
    text-decoration: none !important;
}

.quantity .quantitybox {
    position: relative;
    margin-right: 20px;
}
.quantity .quantity-button {
    position: absolute;
    top: 0;
    width: 40px;
    height: 42px;
    text-align: center;
    line-height: 42px;
}
.quantity .quantity-text {
    height: 42px;
    border: 0;
    border-bottom: 4px solid;
    outline: 0;
    padding: 0 20px;
    width: 140px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    border: 1px solid #ececec;
    padding-right: 40px;
    padding-left: 40px;
}
.quantity .text {
    margin-right: 10px;
}
.quantity .minus {
    left: 0;
    border-right: 1px solid #ececec;
}
.quantity .plus {
    right: 0;
    border-left: 1px solid #ececec;
}
.quantity .text {
    font-size: 15px;
    margin-bottom: 5px;
}

.product-button__group {
    margin-top: 30px;
}

.product-detail__hotline {
    margin-top: 20px;
}

.product-detail__hotline .technical-item {
    padding-left: 60px;
    position: relative;
}
.product-detail__hotline .technical-item:before {
    content: "\f095";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-family: FontAwesome;
    border: 1px solid;
    border-color: #cdd0d7;
    color: #cdd0d7;
    font-size: 20px;
    border-radius: 50%;
}
.product-detail__hotline .technical-item .strong {
    font-weight: 600;
    margin-bottom: 5px;
    color: #383e47;
}

.qr-code {
    cursor: pointer;
}

.extra__feature-icon {
    margin-bottom: 10px;
}

.extra__feature-icon {
    border: 1px solid #b0b0b0;
    padding: 5px;
}

.modal-content svg {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.dialog-description {
    font-size: 16px;
    line-height: 18px;
    line-height: 25px;
}
.dialog-description ul {
    padding-left: 0;
}

.button-item {
    text-align: center;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    cursor: pointer;
    font-size: 14px;
}

.button-item.suggest {
    background: var(--main-color);
}

.button-item.buy-now {
    background: -webkit-linear-gradient(top, #f59000, #fd6e1d);
}
.button-item.suggest:hover,
.button-item.buy-now:hover {
    -webkit-opacity: 0.85;
}

.button-item span {
    display: block;
}

.button-item .main-text {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.button-item:hover {
    color: #fff;
}

.button-item.book {
    background: var(--main-color);
}

@media (min-width: 1024px) {
    #suggest .modal-content {
        width: 1000px;
    }
}

.quick-consult {
    max-width: 850px;
    background: linear-gradient(
        135deg,
        var(--main-color),
        color-mix(in srgb, var(--main-color), #8b5cf6 50%)
    );
    border-radius: 8px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
}

.quick-consult-title {
    color: #fff9eb;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 15px;
}

.quick-consult-form {
    max-width: 550px;
    position: relative;
    width: 261px;
}

.phone-input {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    margin-right: 10px;
    width: 100%;
}

.submit-button {
    background: linear-gradient(
        135deg,
        var(--main-color),
        color-mix(in srgb, var(--main-color), #8b5cf6 50%)
    );
    color: white;
    border-radius: 4px;
    padding: 9px 15px;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    top: 4px;
    right: 3px;
    font-size: 12px;
    border: 0;
}

.switcher {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
}

.content-container {
    position: relative;
    max-height: 350px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.view-more-btn {
    padding: 6px 15px;
    background-color: var(--white-color);
    color: #333;
    border: 1px solid var(--line);
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.content-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 1)
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.content-container.expanded {
    max-height: 6000px;
}

.read-more-review {
    border: 1px solid var(--main-color);
    background: transparent;
    border-radius: 10px;
    padding: 6px 12px;
    margin-right: 20px;
}

.btn-dg {
    background: var(--main-color);
    color: var(--white-color);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid var(--main-color);
}
.btn-dg:hover {
    color: #fff;
    -webkit-opacity: 0.85;
}

.content-aside .aside-heading {
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    background: var(--main-color);
    padding: 12px 10px;
    border-radius: 6px 6px 0 0;
}
.content-aside .content-item {
    padding: 10px;
    background: var(--white-color);
}

@media (min-width: 992px) {
    .content-item img {
        height: 80px;
        object-position: top;
    }
}
@media (max-width: 991px) {
    .content-item img {
        height: 280px;
    }
}

.post-feature-item:not(:last-child) {
    border-bottom: 1px solid var(--line);
}

.post-feature-item .title {
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.post-feature-item .title > * {
    color: #121212;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
}

.product-seen .item {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
    padding-bottom: 10px;
}
.product-seen .item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.product-seen h3 {
    font-size: 0.9rem;
}
.product-seen .price {
    font-weight: 600;
    color: var(--black-color);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .review-container .progress {
        width: 210px;
    }
    .review-avatar {
        display: none;
    }
    .review-content-block {
        width: 100%;
    }
}
@media (max-width: 375px) {
    .review-container .progress {
        width: 150px;
    }
    .review-container .panel-body {
        display: block !important;
        text-align: center;
    }
}

/* ===== BEGIN PRODUCT GALLERY ===== */
.product-gallery {
    position: relative;
    overflow: hidden;
}

/* Border đặt trên swiper-container thay vì từng slide → luôn hiển thị */
.product-list_image .swiper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* aspect-ratio: 1 / 1; */
}

/* Thumbnails */
.swiper-container-thumbs {
    margin-top: 10px;
    width: 100%;
    overflow: hidden;
}

.swiper-container-thumbs .swiper-slide {
    width: 80px !important;
    /* height: 80px !important; */
    flex-shrink: 0;
    border: 2px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition:
        opacity 0.2s,
        border-color 0.2s;
    background: var(--white-color);
}

.swiper-container-thumbs .swiper-slide.swiper-slide-thumb-active,
.swiper-container-thumbs .swiper-slide:hover {
    border-color: #e53935;
    opacity: 1;
}

/* Mũi tên nằm bên trong swiper-container */

.product-list_image .swiper-button-prev {
    left: 6px;
}
.product-list_image .swiper-button-next {
    right: 6px;
}

/* ===== END PRODUCT GALLERY ===== */

/* ===== BEGIN PRODUCT DETAIL ===== */

.product-detail h1 {
    font-weight: 700;
    font-size: 20px;
}

.product-detail .product-rating .rating-star i {
    font-size: 0.9rem;
}
.product-detail .product-rating .rating-star span {
    font-size: 13px;
    color: #888;
}
.product-detail .product-rating a {
    font-size: 13px;
    color: #888;
    margin-left: 5px;
}
.product-detail .product-rating .viewer {
    font-size: 13px;
    color: #888;
    margin-left: 15px;
}

.product-detail .product-sku {
    font-size: 13px;
    border: 1px dotted var(--line);
    padding: 5px 10px;
    background: #f9f9f9;
}
.product-detail .product-sku span {
    font-weight: bold;
}
.product-detail .product-sku .stt {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.product-detail .product-desc {
    height: 172px;
    overflow-y: scroll;
    scrollbar-width: thin;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 10px;
}
.product-detail .product-desc ul {
    overflow: hidden;
    padding-left: 18px;
}
.product-detail .product-desc ul li {
    line-height: 1.75;
    list-style: circle;
    float: left;
    width: 100%;
}

.product-commit h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
}
.product-commit ul li {
    margin-bottom: 10px;
}
.product-commit i {
    color: green;
    margin-right: 5px;
}
.product-commit p {
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== END PRODUCT DETAIL ===== */
html {
    scrollbar-gutter: stable;
}

/* Ngăn Bootstrap dịch chuyển content */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}
#product-review {
    scroll-margin-top: 160px; /* chiều cao header của bạn */
}

@media (min-width: 1200px) {
    .review-statistic:after {
        height: 100%;
        display: block;
        width: 1px;
        border-right: 1px solid #eee;
        content: '';
        position: absolute;
        z-index: 4;
        top: 0;
        left: 41%;
    }
}

/* ============ INLINE REPLY BOX (giống FPT Shop) ============ */
.review-reply-toggle {
    font-size: 14px;
    color: #0664f9;
    cursor: pointer;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.review-reply-toggle:hover {
    text-decoration: underline;
}

.review-toggle-replies {
    font-size: 14px;
    color: #0664f9;
    cursor: pointer;
    margin-left: 15px;
}

.review-reply-box {
    margin-top: 10px;
    border: 1px solid #e1e4e6;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}
.reply-textarea-wrap {
    position: relative;
}
.reply-textarea {
    width: 100%;
    min-height: 70px;
    border: none;
    outline: none;
    resize: vertical;
    font-size: 14px;
    padding-bottom: 20px;
    font-family: inherit;
}
.reply-textarea::placeholder {
    color: #999;
}
.reply-counter {
    position: absolute;
    bottom: 0;
    right: 15px;
    font-size: 12px;
    color: #999;
}

.reply-box-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}
.btn-reply-cancel {
    background: #fff;
    border: 1px solid #d7dbe3;
    color: #4b5160;
    font-weight: 600;
    font-size: 14px;
    padding: 7px 18px;
    border-radius: 20px;
    cursor: pointer;
}
.btn-reply-cancel:hover {
    border-color: #999;
}
.btn-reply-submit {
    background: #cb1c22;
    border: 1px solid #cb1c22;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 7px 22px;
    border-radius: 20px;
    cursor: pointer;
}
.btn-reply-submit:hover {
    opacity: .85;
}
.btn-reply-submit:disabled {
    background: #e5e5e5;
    border-color: #e5e5e5;
    color: #aaa;
    cursor: not-allowed;
}

/* ============ REPLY LIST ============ */
.review-replies {
    margin-top: 10px;
    padding-left: 10px;
    display: none;
}

.review-reply-content {
    padding-left: 12px; flex: 1;
}
.review-reply-block.is-shop .review-avatar-shop {
    background: #1a1a1a;
    color: #fff;
}
.badge-shop {
    background: #eee;
    color: #444;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
}
.review-reply-content .description {
    font-size: 14px;
    line-height: 22px;
    margin: 4px 0;
    white-space: pre-line;
}
.review-reply-content .created_at {
    font-size: 12px;
    color: #939ca3;
}