﻿/* Variables */
:root {
    --primary-color: #dc2626;
    --secondary-color: orangered;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e1e1e1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.08);
    --transition-base: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

/* Gallery Section */
.gallery-wrapper {
    display: flex;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.thumbnail-container-wrapper {
    display: flex;
    flex-direction: column;
    width: 80px;
    position: relative;
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 400px;
    padding: 10px 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .thumbnail-container::-webkit-scrollbar {
        display: none;
    }

.thumbnail {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-base);
    flex-shrink: 0;
}

    .thumbnail:hover {
        opacity: 0.8;
    }

    .thumbnail.active {
        border: 2px solid #d70018 !important;
        transform: none !important;
        box-shadow: 0 0 0 2px rgba(215, 0, 24, 0.16);
        transition: border-color 0.12s ease, box-shadow 0.12s ease;
    }
/* Thẻ biến thể */
.varient-card {
    width: 180px;
    padding: 0px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: border-color 0.12s ease, background-color 0.12s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

    .varient-card.disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    /* Ảnh biến thể */
    .varient-card img {
        width: 2.5rem;
        height: 2.5rem;
        object-fit: cover;
        border-radius: 6px;
    }

/* Phần thông tin */
.varient-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.varient-attributes span {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 4px;
}

.varient-price .price {
    font-size: 10px !important;
    font-weight: 500;
    color: #e74c3c;
    margin: 0;
    white-space: nowrap;
    
}

/* Hiệu ứng cho thẻ được chọn */
/* Thẻ được chọn */
.varient-card.selected {
    border-color: #dc3545; /* đỏ */
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2); /* đỏ mờ */
    position: relative;
}

/*response varient card*/
@media (max-width: 768px) {
    .varient-card {
        width: 47%;
        padding: 0px 5px;
        box-sizing: border-box;
        margin-bottom: 10px;
        padding: 0px;
        display: inline-block; /* đảm bảo xếp hàng ngang */
        vertical-align: top;
    }

        .varient-card img {
            width: 2rem;
            height: 2rem;
        }

    .varient-info {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .varient-attributes span {
        font-size: 12px;
    }

    .varient-price .price {
        font-size: 12px !important;
        white-space: none; /* Ko Cho phép xuống dòng */
    }
}

/* Buttons Buy & Cart */
.btn-buy-now {
    background: linear-gradient(45deg, #ff4d4d, #ff1a1a);
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

    .btn-buy-now:hover {
        transform: none;
        box-shadow: none !important;
    }

.btn-cart:hover {
    transform: none;
}

.product-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.8fr);
    gap: 0.75rem;
}

.product-action-btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 10px;
    line-height: 1.2;
}

.product-action-btn span {
    min-width: 0;
}

.product-media-specs {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 1rem;
    align-items: start;
    padding-top: 1rem;
}

.product-media-specs__video,
.product-media-specs__specs {
    min-width: 0;
}

.product-media-specs:not(:has(.product-media-specs__video)) {
    grid-template-columns: 1fr;
}

.product-media-specs:not(:has(.product-media-specs__specs)) {
    grid-template-columns: 1fr;
}

.product-section-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.product-section-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}

.product-section-card__header span {
    display: block;
    margin-bottom: 0.15rem;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-section-card__header h4 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
}

.product-section-card__header > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    font-size: 1.2rem;
}

.product-spec-table {
    display: grid;
    padding: 0.35rem 1rem 1rem;
}

.product-spec-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.product-spec-row:last-child {
    border-bottom: 0;
}

.product-spec-name {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-spec-value {
    min-width: 0;
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.45;
    word-break: break-word;
}

.product-media-specs {
    grid-template-columns: 1fr;
    padding: 1rem 0 0.25rem;
}

.product-media-specs__video {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

.product-media-specs__video .product-section-card {
    height: auto;
}

.product-media-specs__video .product-section-card__header {
    padding: 0.75rem 0.95rem;
}

.product-media-specs__video .product-section-card__header h4 {
    font-size: 0.98rem;
}

.product-media-specs__video .product-section-card__header > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
}

.product-detail-top {
    align-items: start;
    --bs-gutter-x: 0.875rem;
    --bs-gutter-y: 0.875rem;
}

.product-detail-top__specs,
.product-detail-top__video {
    min-width: 0;
}

.product-detail-top__specs {
    height: 100%;
}

.product-spec-compact {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 10px;
    background: #f6f8fb;
}

.product-spec-compact--collapsed .product-spec-compact__grid {
    max-height: 274px;
    overflow: hidden;
}

.product-spec-compact__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.product-spec-compact__head h5 {
    margin: 0;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 750;
}

.product-spec-compact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    transition: max-height 0.16s ease;
}

.product-spec-compact__item {
    display: grid;
    grid-template-columns: minmax(88px, 0.72fr) minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    min-width: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.product-spec-compact__item:last-child {
    border-bottom: 0;
}

.product-spec-compact__item span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-spec-compact__item strong {
    min-width: 0;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    text-align: right;
}

.product-spec-compact__toggle {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0;
    background: transparent;
    color: #dc2626;
    font-size: 0.79rem;
    font-weight: 700;
}

.product-video-compact {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 10px;
    background: #fff;
    height: 100%;
}

.product-video-compact__head {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.product-video-compact__head h5 {
    margin: 0;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 750;
}
/* Product Gallery */
.product-gallery {
    width: 800px;
    height: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background-color: #fff;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: none;
}

/* Navigation Controls */
.thumbnail-control {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

    .thumbnail-control:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .thumbnail-control.prev {
        top: -15px;
    }

    .thumbnail-control.next {
        bottom: -15px;
    }

/* Comments Section Specific Responsive Styling */
.comments-product-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.comments-product-section {
    padding: 16px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.comments-product-title {
    margin-bottom: 18px;
}

.comments-product-title h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.comments-product-new-comment {
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.comments-product-new-comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comments-product-comment-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 6px;
    background-color: #ffffff;
    transition: border-color 0.12s ease, background-color 0.12s ease;
    font-size: 14px;
    line-height: 1.5;
}

    .comments-product-comment-input:focus {
        outline: none;
        border-color: #dc2626;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
    }

.comments-product-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #ff0000; /* Màu đỏ */
    color: #ffffff; /* Chữ trắng */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.12s ease;
    min-width: 80px;
}

    .comments-product-send-btn:hover {
        background-color: #cc0000; /* Màu đỏ đậm hơn khi hover */
    }


.comments-product-list {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 16px 20px;
}

.comments-product-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

    .comments-product-item:last-child {
        border-bottom: none;
    }

.comments-product-item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.comments-product-item-content {
    flex: 1;
    min-width: 0;
}

.comments-product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comments-product-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.comments-product-item-username {
    font-size: 16px;
    color: #2d3748;
    margin: 0;
}

.comments-product-item-date {
    font-size: 12px;
    color: #718096;
}

.comments-product-item-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    word-break: break-word;
}

.comments-product-reply-link {
    color: #dc2626;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    border: 0;
    background: transparent;
    padding: 0;
}

.comments-product-reply-form {
    display: none;
    margin-top: 12px;
    background: #f0f4f8;
    padding: 12px;
    border-radius: 6px;
}

    .comments-product-reply-form.active {
        display: flex;
        align-items: center;
        gap: 10px;
    }

.comments-product-reply-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.comments-product-reply-btn {
    background-color: #718096;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.comments-product-replies-container {
    margin-top: 12px;
    padding-top: 0 !important;
}

.comments-product-item-replying-to {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.5;
}

.comments-product-item-replying-to span {
    color: #2563eb;
    font-weight: 600;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .comments-product-section {
        padding: 12px 14px;
    }

    .comments-product-list {
        padding: 12px 14px;
    }

    .comments-product-new-comment {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .comments-product-item {
        gap: 12px;
    }

    .comments-product-new-comment-avatar,
    .comments-product-item-avatar {
        margin-right: 0;
        margin-bottom: 0;
        align-self: flex-start;
    }

    .comments-product-comment-input,
    .comments-product-reply-input {
        width: 100%;
        margin-bottom: 0;
    }

    .comments-product-send-btn,
    .comments-product-reply-btn {
        width: auto;
        min-width: 96px;
        margin-bottom: 0;
    }

    .comments-product-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .comments-product-item-header .dropdown {
        align-self: flex-end;
    }

    .comments-product-item-date {
        margin-top: 0;
    }

    .comments-product-reply {
        margin-left: 24px;
    }

    .comments-product-replies-container {
        margin-top: 10px;
    }

    .comments-product-reply-form.active {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Product Details and Variants */
.product-detail {
    position: relative;
    max-height: 420px;
    overflow: hidden;
    padding: 15px;
    transition: max-height 0.12s ease;
}

    .product-detail.expanded {
        max-height: none;
    }

.description-content {
    margin-bottom: 18px;
}

.product-description {
    margin-bottom: 0;
}

.fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

.product-detail.expanded .fade-bottom {
    display: none;
}

.btn-see-more {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    min-width: 120px;
}

.product-detail.expanded .btn-see-more {
    position: relative;
    bottom: 0;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .comments-product-container {
        padding: 0 6px;
    }

    .comments-product-section {
        padding: 10px 12px;
        border-radius: 6px;
    }

    .comments-product-new-comment {
        padding: 8px 10px;
        gap: 8px;
    }

    .comments-product-new-comment-avatar,
    .comments-product-item-avatar {
        width: 36px;
        height: 36px;
    }

    .comments-product-comment-input {
        font-size: 13px;
        padding: 8px 10px;
    }

    .comments-product-send-btn {
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 999px;
        font-size: 12px;
    }

    .comments-product-send-btn__label {
        display: none;
    }

    .comments-product-item-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }

    .comments-product-item-username {
        font-size: 14px;
        line-height: 1.4;
    }

    .comments-product-item-date {
        font-size: 10px;
    }

    .comments-product-new-comment {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        grid-gap: 8px;
        align-items: start;
    }

    .comments-product-comment-input {
        grid-column: 2 / 3;
        width: 100%;
        min-height: 38px;
    }

    .comments-product-send-btn {
        grid-column: 2 / 3;
        justify-self: flex-end;
        margin-top: 0;
    }

    .comments-product-reply-btn span {
        display: none;
    }
}

@media (max-width: 576px) {
    .comments-product-item {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .comments-product-item-avatar {
        width: 30px;
        height: 30px;
    }

    .comments-product-item-content {
        min-width: 0;
    }

    .comments-product-list {
        padding: 10px 12px;
        border-radius: 6px;
    }

    .comments-product-item-header {
        position: relative;
        padding-right: 24px;
        margin-bottom: 7px;
        gap: 5px;
    }

    .comments-product-item-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .comments-product-reply-link {
        margin-top: 6px;
        font-size: 12px;
        gap: 4px;
    }

    .comments-product-reply-form {
        margin-top: 10px;
        padding: 10px;
        border-radius: 6px;
    }

    .comments-product-reply-input {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .comments-product-reply-btn {
        align-self: flex-end;
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 999px;
        justify-content: center;
    }

    .comments-product-item-header .dropdown,
    .comments-product-item-header > .dropdown {
        margin-left: 0;
        position: absolute;
        top: 0;
        right: 0;
        line-height: 1;
    }

    .comments-product-reply {
        margin-left: 4px;
        padding-left: 10px;
        border-left: 1px solid #e5e7eb;
    }

    .comments-product-item-replying-to {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .comments-product-item-meta {
        gap: 3px;
    }

    .comments-product-replies-container {
        margin-top: 10px;
    }

    .comments-product-title {
        margin-bottom: 12px;
    }

    .comments-product-title h3 {
        font-size: 1.2rem;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .product-action-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }

    .product-action-btn {
        min-height: 48px;
        padding: 0.65rem 0.5rem;
        font-size: 0.9rem;
        text-transform: none !important;
    }

    .product-action-btn i {
        margin-right: 0 !important;
    }

    .product-media-specs {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        padding-top: 0.75rem;
    }

    .product-detail-top {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .product-section-card__header {
        padding: 0.875rem 1rem;
    }

    .product-section-card__header h4 {
        font-size: 1rem;
    }

    .product-spec-row {
        grid-template-columns: minmax(108px, 0.7fr) minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.68rem 0;
    }

    .product-spec-name,
    .product-spec-value {
        font-size: 0.86rem;
    }

    .product-spec-compact {
        padding: 0.7rem;
    }

    .product-spec-compact__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-spec-compact__item {
        grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .product-spec-compact__item strong {
        text-align: left;
    }

    .product-video-compact__head {
        padding: 0.65rem 0.75rem;
    }

    .gallery-wrapper {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .thumbnail-container-wrapper {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        height: auto;
        align-items: center;
        gap: 8px;
        overflow: hidden;
    }

    .thumbnail-container {
        flex-direction: row;
        height: auto;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        gap: 8px;
        scroll-snap-type: x proximity;
    }

    .thumbnail {
        width: 64px;
        min-width: 64px;
        height: 64px;
        border-radius: 8px;
        overflow: hidden;
        scroll-snap-align: start;
    }

    .product-gallery {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }

    .thumbnail-control {
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
    }

        .thumbnail-control.prev {
            left: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        .thumbnail-control.next {
            right: 0;
            left: auto;
            top: 50%;
            transform: translateY(-50%);
        }

        .thumbnail-control .fas.fa-chevron-up,
        .thumbnail-control .fas.fa-chevron-down {
            transform: rotate(-90deg);
        }

    .comments-section {
        padding: 15px;
    }

    .new-comment {
        padding: 15px;
    }
}

@media (max-width: 420px) {
    .thumbnail {
        width: 56px;
        min-width: 56px;
        height: 56px;
    }

    .product-gallery {
        height: 260px;
    }

    .product-action-grid {
        grid-template-columns: 1fr;
    }

    .product-action-btn {
        min-height: 46px;
    }

    .product-spec-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .product-spec-name {
        color: #64748b;
    }
}


.varient-card.disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
    user-select: none;
}

/* Base styles */
.reviews-section {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1rem auto;
}

.reviews-section__header {
    margin-bottom: 1rem;
    text-align: center;
}

.reviews-section__header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
}

/* Rating summary section */
.rating-summary {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .rating-summary {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }
}

/* Average rating styles */
.average-rating {
    text-align: center;
    min-width: 0;
    padding: 8px 0;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.total-reviews {
    display: inline-block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .rating-number {
        font-size: 2rem;
    }
}

/* Rating bars section */
.rating-bars {
    flex-grow: 1;
    width: 100%;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.star-count {
    min-width: 50px;
    font-size: 0.9rem;
}

.progress {
    flex-grow: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    background-color: #DC2626!important;
}
.rating-count {
    min-width: 35px;
    text-align: right;
    font-size: 0.9rem;
}
.stars {
    color: #ffc107;
    margin: 10px 0;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.review-item__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Review list section */
.review-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.review-content {
    width: 100%;
    min-width: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

@media (min-width: 576px) {
    .user-avatar {
        width: 50px;
        height: 50px;
    }
}

.review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

    .review-header h5 {
        margin: 0;
        font-size: 1rem;
    }

.review-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #b45309;
    font-weight: 600;
}

.review-date {
    color: #6b7280;
}

.review-text {
    margin-bottom: 0;
    color: #475569;
    line-height: 1.7;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

    .review-images img {
        max-width: 100px;
        height: auto;
        border-radius: 4px;
    }

@media (min-width: 768px) {
    .review-images img {
        max-width: 150px;
    }
}

@media (max-width: 767.98px) {
    .reviews-section {
        padding: 14px;
        margin: 0.75rem auto;
    }

    .rating-summary {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 1rem;
    }

    .average-rating {
        min-width: 0;
    }

    .rating-bar-item {
        gap: 0.35rem;
    }

    .star-count {
        min-width: 42px;
        font-size: 0.85rem;
    }

    .rating-count {
        min-width: 28px;
        font-size: 0.82rem;
    }

    .user-avatar {
        margin-right: 0;
        flex-shrink: 0;
    }

    .review-item__inner {
        gap: 12px;
    }
}
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0 auto;
    max-width: 760px;
    background: #0f172a;
    border-radius: 0 0 12px 12px;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/*phóng to ảnh*/
.image-container {
    position: relative;
}

#mainImage {
    cursor: pointer;
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.12s ease;
}

    .fullscreen-overlay.active {
        display: flex;
        opacity: 1;
    }

.fullscreen-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transform: scale(1);
    transition: transform 0.18s ease;
    cursor: zoom-in;
}

.fullscreen-image.is-zoomed {
    transform: scale(1.7);
    cursor: zoom-out;
}
