.collection-banner {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.collection-banner img {
    width: 100%;
    display: block;
    /* tránh hở viền dưới ảnh */
}

.collection-banner::after {
    content: '';
    background: url("../images/setting/category-banner.svg") left bottom / contain no-repeat;
    inset: 0;
    z-index: 2;
    position: absolute;
}

/* lớp overlay xám trong suốt phủ lên ảnh */
.collection-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.collection-banner>.breadcrumb-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    z-index: 3;
    /* nằm trên overlay */
}

.collection-banner .banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .collection-banner .banner-title {
        font-size: 1.75rem;
    }
}


.collection-banner .breadcrumb-wrapper i {
    color: #28a745;
    /* xanh lá */
    margin-right: 8px;
    font-size: 22px;
}

.collection-banner .breadcrumb-wrapper .breadcrumb-item.active {
    color: #ffffff;
}

/* dấu phân tách giữa các item (GIỮ ICON NHƯ ANH YÊU CẦU) */
.collection-banner .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "\f06c";
    /* icon FA anh chọn */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding: 0 0.5rem;
    color: #209e2e;
}

/* căn giữa breadcrumb */
.breadcrumb-wrapper nav .breadcrumb {
    justify-content: center;
}

.page-item.active .page-link {
    background-color: #209e2e;
    border-color: #209e2e;
}

.page-link {
    color: #209e2e;
}

/* ===== Reviews ===== */
.reviews-section {
    padding: 16px 0;
}

.rvw-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.rvw-avatar img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.rvw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rvw-stars .fa {
    color: #28a745;
    margin-right: 2px;
    font-size: 14px;
}

.rvw-meta {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.rvw-name {
    font-weight: 600;
    color: #343a40;
}

.rvw-date {
    margin-left: 6px;
}

.rvw-content {
    margin-top: 6px;
    color: #333;
}

.rvw-empty {
    padding: 8px 0;
    color: #6c757d;
}

.rvw-pagination {
    margin-top: 12px;
}

/* FORM */
.rvw-form {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.rvw-form-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.rvw-form-inner {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}

.rvw-field {
    margin-bottom: 12px;
}

.rvw-field label {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 6px;
}

.rvw-field input[type="text"],
.rvw-field input[type="email"],
.rvw-field textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 12px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
    background: #fff;
}

.rvw-field input:focus,
.rvw-field textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, .12);
}

.rvw-error {
    color: #dc3545;
}

/* RATE stars (radio + label) */
.rvw-rate {
    margin-bottom: 12px;
    border: 0;
    padding: 0;
}

.rvw-rate legend {
    font-weight: 600;
    margin-bottom: 6px;
}

.rvw-rate-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}

.rvw-rate-stars input {
    display: none;
}

.rvw-rate-stars label {
    cursor: pointer;
    font-size: 20px;
    color: #ced4da;
    transition: transform .15s ease;
}

.rvw-rate-stars label:hover,
.rvw-rate-stars label:hover~label {
    color: #28a745;
    transform: translateY(-1px);
}

.rvw-rate-stars input:checked~label {
    color: #28a745;
}

/* SUBMIT */
.rvw-btn-submit {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}

.rvw-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, .25);
}

@media (max-width: 575.98px) {
    .rvw-item {
        grid-template-columns: 48px 1fr;
    }

    .rvw-avatar img {
        width: 48px;
        height: 48px;
    }
}

.post-wrapper {
    margin-bottom: 40px;
    /* cách toàn bộ block với phần dưới */
}

.post-wrapper .post-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 24px;
    /* khoảng cách giữa các item theo chiều dọc */
}

/* Ảnh */
.post-wrapper .post-image img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

/* Overlay */
.post-wrapper .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: background 0.4s ease;
}

/* Meta đè trên ảnh */
.post-wrapper .post-meta {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    text-align: left;
}

.post-wrapper .post-meta .post-date {
    font-size: 14px;
    margin-bottom: 6px;
    opacity: 0.85;
}

.post-wrapper .post-meta a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.post-wrapper .post-meta a:hover {
    text-decoration: underline;
}

/* Hover effect */
.post-wrapper .post-item:hover .overlay {
    background: rgba(0, 0, 0, 0.6);
}

.post-wrapper .post-item:hover .post-image img {
    transform: scale(1.05);
}

/* ===================================
   CUSTOM CSS FOR PRODUCT IMAGE GALLERY
   =================================== */

/* --- Container chung cho slide --- */
.main-slider .swiper-slide,
.gallery-thumbs .swiper-slide {
    /* Buộc container của ảnh phải là hình vuông */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* Ẩn phần ảnh thừa ra khỏi khung */
    border-radius: 8px;
    /* Bo góc mềm mại (tùy chọn) */
}

/* --- Ảnh bên trong slide --- */
.main-slider .swiper-slide img,
.gallery-thumbs .swiper-slide img {
    /* Giúp ảnh lấp đầy 100% container hình vuông */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cắt ảnh để vừa vặn mà không làm méo ảnh */
    display: block;
    /* Loại bỏ khoảng trắng thừa dưới ảnh */
}


/* --- Tinh chỉnh cho Thumbnails --- */
.gallery-thumbs {
    margin-top: 15px;
    /* Tạo khoảng cách với slider chính */
}

.gallery-thumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.5;
    /* Làm mờ các thumbnail không được chọn */
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    /* Thêm viền trong suốt để không bị giật layout khi active */
}

/* Hiệu ứng khi thumbnail được chọn (active) */
.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    /* Hiển thị rõ nét */
    border-color: #28a745;
    /* Đặt màu viền trùng với màu chủ đạo (ví dụ: btn-success) */
}