/* --- STYLE CHO GALLERY ẢNH (4 ẢNH) --- */
.gallery-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ảnh chính lớn */
.main-image-frame {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f9f9f9;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.main-image-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Danh sách ảnh nhỏ (Thumbnails) */
.thumbnail-list {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-color: #fff;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
}

.thumbnail-item:hover img {
    opacity: 1;
}

/* Trạng thái ảnh đang chọn */
.thumbnail-item.active {
    border-color: #7a0b0b; /* Màu đỏ thương hiệu */
}

.thumbnail-item.active img {
    opacity: 1;
}

/* --- STYLE CHO PHẦN XEM THÊM --- */
.product-description-container {
    position: relative;
    transition: all 0.5s ease;
}

.desc-content.collapsed {
    max-height: 150px; /* Chiều cao mặc định khi thu gọn */
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.desc-content.expanded {
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
}

.toggle-desc-btn {
    display: block;
    margin: 10px auto 0;
    font-size: 13px;
    font-weight: bold;
    color: #7a0b0b;
    background: transparent;
    border: 1px solid #7a0b0b;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.toggle-desc-btn:hover {
    background: #7a0b0b;
    color: #fff;
}
/* --- TÍNH NĂNG ẨN THÔNG TIN CHI TIẾT KHI THU GỌN --- */
/* Khi khối content đang có class 'collapsed', thì khối 'detail-block-hidden' sẽ bị ẩn hoàn toàn */
.desc-content.collapsed .detail-block-hidden {
    display: none;
}

/* Khi mở rộng thì hiện lại */
.desc-content.expanded .detail-block-hidden {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}