/* =================================================================
 * MODALS & POPUPS (FINAL VERSION)
 * ================================================================= */

/* --- 1. General Modal & Popup Overlay Styles --- */
.sbmalpha-modal-overlay, .sbm-popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sbmalpha-modal-overlay.sbmalpha-active, .sbm-popup-overlay.is-visible {
    display: flex;
    opacity: 1;
}
.sbmalpha-modal-container, .sbm-popup-container {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
}
.sbmalpha-modal-overlay.sbmalpha-active .sbmalpha-modal-container, .sbm-popup-overlay.is-visible .sbm-popup-container {
    transform: scale(1);
}
.sbmalpha-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.sbmalpha-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
.sbmalpha-modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #6b7280;
    font-size: 2rem;
    line-height: 1;
}
.sbmalpha-modal-content {
    padding: 1.5rem;
    text-align: center;
    overflow-y: auto;
}

/* --- 2. Product Popup Specific Styles --- */
.sbm-popup-container {
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    overflow: hidden; /* Quan trọng cho hiệu ứng trượt */
    transition: max-width 0.4s ease-in-out;
}
.sbm-popup-container.is-expanded {
    max-width: 1100px;
}
.sbm-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
}
.sbm-popup-close-btn:hover {
    background: #d1d5db;
    transform: scale(1.1);
}
.sbm-popup-overlay .sbm-popup-close-btn, .sbmalpha-modal-overlay .sbmalpha-modal-close-btn { width: 35px !important; height: 35px !important; min-height: 35px !important; padding: 0 !important; font-size: 1.7rem !important; line-height: 1 !important; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; }
.sbm-popup-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow-y: auto;
    height: 100%;
}
@media (min-width: 768px) {
    .sbm-popup-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

.sbm-popup-gallery, .sbm-popup-details {
    min-width: 0;
}

.sbm-popup-gallery {
    display: flex;
    flex-direction: column;
}

.sbm-popup-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 12px;
}

.sbm-popup-level {
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.sbm-popup-level-2 {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
}

.sbm-popup-container.is-expanded .sbm-popup-level-1 {
    transform: translateX(-100%);
}
.sbm-popup-container.is-expanded .sbm-popup-level-2 {
    transform: translateX(-100%);
}
.sbm-popup-level-2-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sbm-border-color);
}

#sbm-popup-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    color: var(--sbm-text-color);
}

/* --- 3. Single Product Template Styles (Used by Popup) --- */
.sbm-frame {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .sbm-frame {
        padding: 2.5rem;
    }
}
.sbmalpha-container.sbmalpha-bg-image .sbm-frame {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.sbm-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (max-width: 991px) {
    /* Ép khung chứa Popup không được phình to hơn màn hình */
    .sbm-popup-container,
    .sbm-popup-content-grid,
    .sbm-product-grid {
        max-width: 100vw !important;
        overflow-x: hidden !important; 
        box-sizing: border-box !important;
    }
    
    /* Ép cột trái (chứa ảnh) phải nằm gọn trong màn hình */
    .sbm-product-col-left {
        width: 100% !important;
        max-height: 60vh; /* Giới hạn chiều cao tổng thể của cột chứa ảnh */
        max-width: 100% !important;
        min-width: 0 !important; /* [QUAN TRỌNG] Phá bỏ giới hạn phình to của Flexbox */
        overflow: hidden !important;
    }
}

.sbm-product-col-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sbm-product-col-left {
    min-width: 0 !important; /* Lệnh then chốt: Ngăn Flexbox phình to theo nội dung con */
    max-width: 100% !important;
}

.sbm-product-col-left .woocommerce-product-gallery__image img,
.sbm-product-col-left .sbm-popup-main-image {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 50vh !important; 
    height: auto !important;
    object-fit: contain !important; 
    border-radius: 12px !important;
    background-color: #f9fafb !important;
}

.sbm-product-gallery .main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 12px;
    background-color: #fff;
}

/* Ép 2 nút hành động nằm ngang, chia đều 50/50 và nổi bật */
.sbm-product-actions {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin-bottom: 0px; /* Tách biệt khỏi khối cam kết bên dưới */
}

.sbm-product-actions .sbm-btn {
    flex: 1 1 50% !important; /* [QUAN TRỌNG] Ép 2 nút chia đôi chính xác 50% */
    width: 100% !important;
    height: 46px !important; /* Ép chiều cao cố định cho cả 2 */
    min-height: 46px !important;
    padding: 0 !important; /* Xóa padding rác của theme gây lệch nút */
    border-radius: 50px !important; /* Bo tròn viên thuốc */
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* Tuyệt đối cấm rớt chữ */
    border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer;
}

.sbm-product-actions .sbm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15) !important;
}

.sbm-product-actions .add-to-cart {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
}
.sbm-product-actions .add-to-cart:hover {
    background-color: #e5e7eb !important;
}

/* Nút Mua ngay (Gradient đỏ nổi bật) */
.sbm-product-actions .buy-now {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

/* =================================================================
   THANH CHIA SẺ SẢN PHẨM (SOCIAL SHARE BAR)
   ================================================================= */
.sbm-product-share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    /* [ĐÃ CHỈNH SỬA] Dùng lề âm để "ăn" bớt khoảng trắng thừa của 2 khối trên/dưới */
    margin-top: -15px; 
    margin-bottom: -15px; 
    
    position: relative;
    z-index: 5;
}

.sbm-product-share-bar .share-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.sbm-share-btn {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}

.sbm-share-btn svg {
    margin: 0 !important;
    display: block;
}

/* Hiệu ứng Hover - Lên màu thương hiệu */
.sbm-share-btn.btn-copy:hover { border-color: #10b981 !important; color: #10b981 !important; background: #ecfdf5 !important; }
.sbm-share-btn.btn-fb:hover { border-color: #1877f2 !important; color: #1877f2 !important; background: #ebf5ff !important; }
.sbm-share-btn.btn-x:hover { border-color: #000000 !important; color: #000000 !important; background: #f3f4f6 !important; }

/* Trạng thái copy thành công */
.sbm-share-btn.is-copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    transform: scale(1.1);
}

/* Thu nhỏ khối Cam kết (Giao hàng, Đổi trả...) */
.sbm-commitments {
    display: flex;
    flex-direction: column;
    gap: 8px !important; /* Giảm khoảng cách giữa các dòng */
    background-color: rgba(243, 244, 246, 0.6);
    padding: 12px 14px !important; /* Ép mỏng lề trên dưới */
    border-radius: 8px;
    margin-top: 0px; /* Tạo khoảng cách với nút phía trên */
}

.sbm-commitments .item {
    display: flex;
    align-items: flex-start; /* Canh icon lên trên cùng đề phòng chữ rớt dòng */
    gap: 10px !important;
    font-size: 0.8rem !important; /* Thu nhỏ font chữ */
    line-height: 1.4 !important;
    color: #4b5563;
}

.sbm-commitments .item svg {
    color: var(--sbm-primary-color);
    width: 18px !important; /* Thu nhỏ icon từ 24px xuống 18px */
    height: 18px !important;
    flex-shrink: 0;
    margin-top: 2px; /* Đẩy nhẹ icon xuống để thẳng hàng với chữ */
}

.sbm-product-col-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* [FIX QUAN TRỌNG] Mobile sát lề, không padding trái */
    padding-left: 0; 
    
    /* Thêm khoảng cách trên đầu để tách khỏi ảnh trên mobile */
    margin-top: 1rem; 
}
.sbm-product-col-right h1 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    font-weight: 700;     /* Thêm dòng này để in đậm */
	font-family: inherit;
}

.rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}
.rating-summary.no-reviews a {
    color: var(--sbm-primary-color);
    text-decoration: none;
    font-style: normal;
}
.stars {
    display: inline-block;
    font-size: 1.25rem;
    color: #d1d5db;
    position: relative;
    line-height: 1;
}
.stars::before {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    color: #f59e0b;
    overflow: hidden;
    width: calc(var(--rating, 0) / 5 * 100%);
}

.short-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 15px; /* Thêm khoảng trống cho thanh cuộn */
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    font-family: inherit !important;
}

.sbm-product-details {
    margin-top: 0;
}

.sbm-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    background-color: transparent;
}
.sbm-tab-link {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    position: relative;
    margin-bottom: -1px;
}
.sbm-tab-link.is-active {
    color: var(--sbm-primary-color);
    border-bottom: 2px solid var(--sbm-primary-color);
}
.sbm-tab-content {
    display: none;
    line-height: 1.7;
    animation: sbm-fade-in 0.4s;
}
.sbm-tab-content.is-active {
    display: block;
}

#tab-author .stgp-author-card { display: flex; align-items: flex-start; gap: 1rem; background: rgba(249,250,251,0.8); border-radius: 12px; padding: 1rem; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color 0.2s ease; }
#tab-author .stgp-author-card:not(:last-child) { margin-bottom: 1rem; }
#tab-author .stgp-author-card:hover { border-color: var(--sbm-primary-color); }
#tab-author .stgp-author-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
#tab-author .stgp-author-card .name { font-weight: 600; margin-bottom: 0.25rem; }
#tab-author .stgp-author-card .intro { font-size: 0.875rem; color: #6b7280; margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.review-form-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}
#sbm-review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.star-rating-input input {
    display: none;
}
.star-rating-input label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating-input input:checked ~ label,
.star-rating-input:not(:checked) > label:hover,
.star-rating-input:not(:checked) > label:hover ~ label {
    color: #f59e0b;
}

.form-message {
    margin-top: 1rem;
    font-weight: 500;
}

.sbm-popup-details {
    display: flex;
    flex-direction: column;
}
.sbm-popup-details h1 {
    font-size: 1.5rem !important;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    font-weight: 700;
    font-family: inherit;
}
/* === TÙY CHỈNH NÂNG CAO CHO KHU VỰC GIÁ TRONG POPUP (ĐÃ SỬA LỖI CĂN CHỈNH) === */

/* --- 1. Vùng chứa chung --- */
.sbm-popup-container .price {
    display: flex;
    /* [SỬA] Thay 'baseline' thành 'center' để canh giữa theo chiều dọc */
    align-items: center; 
    flex-wrap: wrap;
    gap: 0.1rem; 
    margin: 1rem 0;
}

/* --- 2. Giá khuyến mãi (giá bán cuối cùng) --- */
.sbm-popup-container .price .gia-khuyen-mai .woocommerce-Price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sbm-primary-color);
}

/* --- 3. Giá gốc (bị gạch đi) --- */
.sbm-popup-container .price del {
    /* [THÊM] Bỏ gạch ngang mặc định và thêm position để tạo gạch ngang tùy chỉnh */
    text-decoration: none;
    position: relative; 
}

/* [THÊM] Tạo một đường gạch ngang tùy chỉnh bằng pseudo-element ::after */
.sbm-popup-container .price del::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 60%; /* Đặt đường gạch ngang ở giữa chiều cao của phần tử */
    height: 1px; /* Độ dày của đường gạch */
    background-color: #9ca3af; /* Màu của đường gạch, cùng màu với chữ */
}

.sbm-popup-container .price del .woocommerce-Price-amount {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 400;
}

/* --- 4. Nhãn giảm giá (%) --- */
.sbm-popup-container .price .sbm-discount-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: white;
    background-color: var(--sbm-primary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}
.sbm-popup-short-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}
.sbm-popup-view-full {
    display: block;
    margin-top: auto;
    padding-top: 1rem;
}
.sbm-popup-view-full a { color: var(--sbm-primary-color); text-decoration: none; font-weight: 500; }
.sbm-popup-view-full button { background: none; border: none; color: var(--sbm-primary-color); font-weight: 500; cursor: pointer; font-size: inherit; padding: 0; }
#sbm-expand-details-btn {
    background: none;
    border: none;
    color: var(--sbm-primary-color);
    font-weight: 500;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.sbm-popup-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
/* Canh giữa và tạo khoảng cách cho các nút trong popup xác nhận */
#sbm-confirm-modal-actions {
    justify-content: center !important; /* Canh giữa */
    gap: 1rem;
}
/* Định dạng lại nút theo phong cách chung */
.sbm-modal-btn.no, .sbm-modal-btn.yes {
    flex-grow: 1; /* Cho 2 nút có chiều rộng bằng nhau */
    max-width: 150px;
    padding: 0.8rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
	border-radius: 8px;
}

/* Nút Huỷ (màu xám) */
.sbm-modal-btn.no {
    background-color: #fff;
    color: #374151;
    border-color: #d1d5db;
}
.sbm-modal-btn.no:hover {
    background-color: #f3f4f6;
}

/* Nút Xác nhận (màu đỏ) */
.sbm-modal-btn.yes {
    background-color: var(--sbm-primary-color);
    color: white;
}
.sbm-modal-btn.yes:hover {
    opacity: 0.9;
}

.sbm-popup-terms-container,
.author-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Canh lề các nút cho thẳng hàng */
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.sbm-popup-term-btn,
.sbm-popup-author-btn {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.sbm-popup-term-btn:hover,
.sbm-popup-author-btn:hover {
    background-color: var(--sbm-primary-color);
    border-color: var(--sbm-primary-color);
    color: #fff;
}

/* Style cho nút "Sửa" của Admin */
.sbm-popup-admin-edit-btn {
    background-color: #fef2f2; /* Nền đỏ nhạt */
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.sbm-popup-admin-edit-btn:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* Gọt giũa kích thước các nút Danh mục, Tag, Sửa */
.sbm-popup-term-btn,
.sbm-popup-author-btn,
.sbm-popup-admin-edit-btn {
    padding: 4px 14px !important; /* Giảm padding trên dưới */
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important; /* Chống phình to */
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* === [THÊM MỚI] CSS cho popup Review Nhanh === */
.sbm-quick-review-card {
    border: 1px solid var(--sbm-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative; /* Làm điểm neo cho nút con */
    padding-top: 2.5rem; /* Thêm khoảng trống ở trên cho nút chia sẻ */
}
.sbm-quick-review-card .sbm-review-text {
    font-style: italic;
    color: #374151;
    margin: 0 0 0.75rem 0;
}
/* === [THÊM MỚI] Định dạng cho dòng Nguồn trong popup Review Nhanh === */
.sbm-quick-review-source {
    text-align: center;
    font-weight: 600;
    color: var(--sbm-text-color);
    margin: 0 0 0.75rem 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 0.95rem;
}

/* === [THÊM MỚI] CSS cho Header của Popup Review Nhanh === */

#sbm-quick-review-modal .sbmalpha-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sbm-quick-review-modal .sbmalpha-modal-title {
    flex-grow: 1; /* Cho phép tiêu đề co giãn */
}

/* Các style cho nút và panel chia sẻ có thể tái sử dụng từ popup sản phẩm */
.sbm-quick-review-share-wrapper {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
}

/* 3. Style cho panel con bật lên (quan trọng) */
.sbm-popup-share-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    gap: 8px;
    padding: 8px;
    z-index: 10;
    
    /* Mặc định ẩn */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
}

/* 4. Class để hiển thị panel */
.sbm-popup-share-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 5. Style cho các nút icon Facebook/Copy bên trong panel */
.sbm-popup-share-panel button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sbm-popup-share-panel button:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.sbm-popup-share-panel button svg {
    width: 20px;
    height: 20px;
    color: #4b5563;
}

/* =================================================================
   BỔ SUNG CSS CHO CÁC MODAL THÔNG TIN (SỬA LỖI VỠ GIAO DIỆN)
   ================================================================= */

/* 2. CSS riêng cho "Cơ sở pháp lý" */
.sbmalpha-info-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1rem;
    text-align: left;
}
.sbmalpha-info-line svg {
    width: 24px;  /* [SỬA] Tăng kích thước icon một chút */
    height: 24px; /* [SỬA] Tăng kích thước icon một chút */
    flex-shrink: 0;
}
.sbmalpha-bct-logo {
    margin-top: 1.5rem;
}

/* 3. CSS riêng cho "Điều khoản & Chính sách" */
.sbmalpha-policy-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #374151;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    text-align: left;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}
.sbmalpha-policy-link:hover {
    background-color: #f3f4f6;
}
.sbmalpha-policy-link svg {
    width: 24px; /* [SỬA] Tăng kích thước icon một chút */
    height: 24px; /* [SỬA] Tăng kích thước icon một chút */
    flex-shrink: 0;
}
.sbmalpha-policy-detail-view {
    display: none;
    text-align: left;
}
.sbmalpha-policy-detail-view h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.sbmalpha-policy-detail-view p, .sbmalpha-policy-detail-view ul {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.sbmalpha-policy-detail-view ul {
    list-style: disc;
    padding-left: 1.5rem;
}
.sbmalpha-policy-detail-view strong {
    font-weight: 600;
}
.sbmalpha-modal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 1rem;
    border: none;
    background: none;
    padding: 0;
    font-size: 1rem;
}

/* === NEW FEATURE: STICKY MOBILE ACTION BAR === */
.sbm-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 10002; /* Cao hơn popup overlay */
    display: flex;
    gap: 10px;
    transform: translateY(100%); /* Ẩn mặc định */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 2147483647 !important; /* Giá trị cao nhất có thể để đảm bảo nổi lên trên cùng */
    position: fixed; /* Đảm bảo nó là fixed để z-index hoạt động đúng với viewport */
}

.sbm-sticky-action-bar.is-visible {
    transform: translateY(0);
}

.sbm-sticky-action-bar .sbm-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Chỉ hiện trên Mobile */
@media (min-width: 768px) {
    .sbm-sticky-action-bar { display: none !important; }
}

/* =================================================================
   PRODUCT POPUP ICON TABS (v2.0)
   ================================================================= */

/* 1. Thanh điều hướng Tab (Icon Only) */
.sbm-popup-tabs-nav {
    display: flex;
    justify-content: center; /* [YÊU CẦU 2] Đổi từ flex-start thành center */
    gap: 15px; /* Tăng khoảng cách một chút cho thoáng */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sbm-border-color);
}

.sbm-popup-tab-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 20px; /* Tăng vùng bấm */
    border-radius: 8px;
    color: #9ca3af; 
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hiệu ứng Hover & Active */
.sbm-popup-tab-icon:hover {
    background-color: #f3f4f6;
    color: #4b5563;
}

.sbm-popup-tab-icon.is-active {
    background-color: rgba(78, 168, 117, 0.1); /* Nền xanh rất nhạt */
    color: #4ea875; /* Icon màu xanh lá */
}

/* Dấu gạch dưới cho tab đang chọn */
.sbm-popup-tab-icon.is-active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 100%;
    height: 3px; /* Dày hơn chút cho rõ */
    background-color: #4ea875; /* Màu xanh lá */
    border-radius: 3px 3px 0 0;
}

.sbm-popup-tab-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

/* Khu vực bọc nội dung Tab */
.sbm-popup-tab-content-wrapper {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    min-height: 0; 
    margin-bottom: 0;
    /* Xóa bỏ border-top và margin-top ở đây để triệt tiêu vạch đôi */
    padding-top: 1rem;
    overflow: hidden; 
}

/* Từng nội dung Tab (Giới hạn chiều cao & Cuộn mượt) */
.sbm-popup-tab-pane {
    display: none;
    max-height: 350px; /* [MỚI] Ép giới hạn chiều cao tối đa */
    overflow-y: auto; /* [MỚI] Bật thanh cuộn dọc khi nội dung vượt quá max-height */
    padding-right: 12px; /* [MỚI] Tăng lề phải để chữ không dính sát vào thanh cuộn */
    
    /* Style thanh cuộn đẹp, tàng hình khi không dùng */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.sbm-popup-tab-pane.is-active {
    display: block;
    animation: sbmFadeInTab 0.3s ease;
}

.sbm-popup-tab-pane::-webkit-scrollbar { width: 6px; }
.sbm-popup-tab-pane::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }

@keyframes sbmFadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style riêng cho từng nội dung */
.sbm-popup-tab-pane h3, .sbm-popup-tab-pane h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #111;
}

/* Giảm khoảng cách với phần 'Có thể bạn sẽ thích' */
.sbm-related-section {
    margin-top: 1rem; /* Giảm từ 2rem/4rem xuống 1rem */
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb; /* Đổi thành nét đứt cho nhẹ nhàng */
    width: 100%;
}

/* Reviews trong Popup */
.sbm-popup-review-list {
    max-height: none; /* Bỏ giới hạn cũ */
    overflow-y: visible; /* Để tab-pane cha quản lý việc cuộn */
    margin-bottom: 1rem;
    padding-right: 0;
    border-bottom: 1px solid #f3f4f6;
}
.sbm-popup-review-list::-webkit-scrollbar { width: 6px; }
.sbm-popup-review-list::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 10px; }
/* Form Review trong Popup */
#sbm-review-form-popup {
    margin-top: 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 8px;
    /* Không dùng margin-top: auto ở đây nữa vì tab-pane đã scroll toàn bộ */
}
#sbm-review-form-popup h4 { font-size: 0.95rem; margin-bottom: 10px; }
#sbm-review-form-popup textarea { min-height: 60px; font-size: 0.9rem; }
/* Item đánh giá */
.sbm-popup-review-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #f3f4f6;
}
.sbm-popup-review-item:last-child { margin-bottom: 0; }

.sbm-popup-review-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.sbm-popup-review-author { font-weight: 700; color: #374151; }
.sbm-popup-review-stars { color: #f59e0b; font-size: 0.85rem; }
.sbm-popup-review-item p.content {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
    font-style: normal !important; /* Bỏ in nghiêng để dễ đọc */
}

/* Khung trích dẫn cảm xúc trong Popup */
.sbm-popup-emotional-hook {
    background: #fdfbf7; /* Màu giấy cũ */
    border-left: 4px solid #22c55e; /* Xanh lá SBM */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-family: 'Merriweather', serif; /* Font có chân cho sang */
    font-style: italic;
    color: #374151;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.sbm-popup-emotional-hook::before {
    content: '❝';
    font-size: 3rem;
    color: rgba(34, 197, 94, 0.2);
    position: absolute;
    top: -10px;
    left: 5px;
}
.sbm-popup-hook-source {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    color: #15803d;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
}
/* Đảm bảo các modal chung hiện lên khi dùng toggleModal */
#legalModal.sbmalpha-active,
#policyModal.sbmalpha-active,
#dashboardModal.sbmalpha-active {
    display: flex !important;
}

@keyframes sbm-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =================================================================
 * SBM USER PROFILE & AVATAR POPUP STYLES
 * ================================================================= */
#sbm-user-profile-summary { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem 1rem 1.5rem 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.sbm-avatar-wrapper { position: relative; width: 80px; height: 80px; margin-bottom: 0.5rem; }
#sbm-user-avatar-preview { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.sbm-change-avatar-btn { position: absolute; bottom: 2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #6b7280; transition: all 0.2s ease; }
.sbm-change-avatar-btn:hover { background-color: #f3f4f6; }
#sbm-nickname-display-wrapper { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
#sbm-user-nickname-preview { font-weight: 600; font-size: 1.2rem; color: #111827; }
#sbm-edit-nickname-btn { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 2px; }
#sbm-nickname-edit-wrapper { display: none; align-items: center; gap: 0.5rem; }
#sbm-user-points-display { display: flex; align-items: center; gap: 0.35rem; font-size: 0.95rem; color: #f59e0b; font-weight: 500; margin-top: 0.25rem; }
#dashboard-list-view .sbmalpha-policy-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; text-decoration: none; color: #374151; border-radius: 0.5rem; transition: background-color 0.2s ease; text-align: left; margin-bottom: 0.5rem; background-color: #f9fafb; border: 1px solid #e5e7eb; cursor: pointer; width: 90%; max-width: 350px; }
#dashboard-list-view .sbmalpha-policy-link:hover { background-color: #f3f4f6; }
#dashboard-list-view .sbmalpha-policy-link svg { width: 20px; height: 20px; flex-shrink: 0; }
#dashboard-list-view { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
#dashboardModal .sbmalpha-modal-container { max-width: 420px; }

/* Avatar Uploader & Choice Popup */
.sbm-avatar-choice-popup { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; background: #fff; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 100; padding: 1rem; display: none; }
.sbm-avatar-choice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }
.sbm-avatar-choice-header h4 { margin: 0; font-size: 1rem; }
#sbm-close-avatar-choice-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
#sbm-default-avatars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.sbm-default-avatar-item { width: 100%; aspect-ratio: 1/1; border-radius: 50%; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease; }
.sbm-default-avatar-item:hover { border-color: var(--sbm-primary-color); transform: scale(1.05); }
.sbm-avatar-uploader-zone { margin-top: 1rem; border: 2px dashed #d1d5db; border-radius: 8px; padding: 1rem; text-align: center; cursor: pointer; transition: all 0.2s ease; position: relative; }
.sbm-avatar-uploader-zone:hover { border-color: var(--sbm-primary-color); background-color: #f9fafb; }
#sbm-avatar-drop-zone-text { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #6b7280; font-size: 0.9rem; }
#sbm-avatar-drop-zone-text svg { width: 28px; height: 28px; color: #9ca3af; }
#sbm-avatar-preview-wrapper img { max-width: 150px; max-height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem auto; border: 2px solid var(--sbm-primary-color); }
.sbm-avatar-preview-actions { display: flex; gap: 0.5rem; justify-content: center; }
.sbm-avatar-preview-actions .sbm-modal-btn { padding: 0.5rem 1rem; font-size: 0.9rem; max-width: none; flex-grow: 0; }
#sbm-change-avatar-btn, #sbm-edit-nickname-btn { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 50% !important; padding: 0 !important; box-sizing: border-box !important; }

/* =================================================================
   GIAO DIỆN "CÓ THỂ BẠN SẼ THÍCH" (RELATED PRODUCTS - SBM MINI CARD)
   ================================================================= */
.sbm-related-grid { display: flex; overflow-x: auto; gap: 12px; padding: 0.5rem 0.5rem 1rem 0.5rem; scrollbar-width: none; cursor: grab; user-select: none; scroll-snap-type: x mandatory; }
.sbm-related-grid::-webkit-scrollbar { display: none; }
.sbm-related-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.sbm-mini-card { 
    flex: 0 0 160px; width: 160px; scroll-snap-align: start; 
    background: #fff; border-radius: 8px; overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #f3f4f6; 
    cursor: pointer; transition: all 0.2s ease; 
    display: flex; flex-direction: column; 
}
.sbm-mini-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--sbm-primary-color); }
.sbm-mini-card img { width: 100%; height: 200px; object-fit: cover; display: block; background-color: #f9fafb; border-bottom: 1px solid #f3f4f6;}

.sbm-mini-card-content { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; }
.sbm-mini-card-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #1f2937; margin-bottom: auto; height: 38px;}

.sbm-mini-card-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; width: 100%; }

/* Khung bọc giá tiền */
.sbm-mini-card-price { flex: 1; overflow: hidden; }
.sbm-mini-card-price .sbm-price-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sbm-mini-card-price .sbm-prod-reg-price { font-size: 0.75rem !important; color: #9ca3af !important; text-decoration: line-through; }
.sbm-mini-card-price .sbm-prod-sale-price { font-size: 0.95rem !important; color: var(--sbm-primary-color) !important; font-weight: 700 !important; line-height: 1; }
.sbm-mini-card-price .sbm-discount-badge { display: none !important; }

/* =======================================================
   GALLERY THUMBNAILS - CHUẨN FAHASA (3 ẢNH + 1 Ô SỐ LƯỢNG)
   ======================================================= */
.sbm-popup-thumbnails,
.sbm-product-thumbnails,
.woocommerce-product-gallery__thumbnails {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Chia chính xác 4 cột đều nhau */
    gap: 10px !important;
    margin-top: 15px !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Định hình khung chứa từng ảnh thành hình vuông tuyệt đối */
.sbm-popup-thumbnails > *,
.sbm-product-thumbnails > *,
.woocommerce-product-gallery__thumbnails > * {
    display: block !important;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1 !important; /* Tự động tạo hình vuông dựa trên chiều rộng */
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    flex: none !important; /* Vô hiệu hóa Flexbox cũ nếu còn sót */
}

/* Căn chỉnh ảnh vừa vặn bên trong khung */
.sbm-popup-thumbnails img,
.sbm-product-thumbnails img,
.woocommerce-product-gallery__thumbnails img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 8px !important;
}

/* Đổi viền khi được chọn (Active) */
.sbm-popup-thumbnails .is-active img,
.sbm-product-thumbnails .is-active img,
.woocommerce-product-gallery__thumbnails .is-active img {
    border-color: var(--sbm-primary-color) !important;
}

/* ---------------------------------------------------
   KIỂU DÁNG CHO Ô "+X" (OVERLAY)
   --------------------------------------------------- */
.sbm-gallery-more-btn {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Lớp phủ đen mờ */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}
.sbm-gallery-more-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ---------------------------------------------------
   THUẬT TOÁN ẨN: ẨN TOÀN BỘ ẢNH TỪ VỊ TRÍ THỨ 5 TRỞ ĐI
   --------------------------------------------------- */
.sbm-popup-thumbnails > *:nth-child(n+5),
.sbm-product-thumbnails > *:nth-child(n+5),
.woocommerce-product-gallery__thumbnails > *:nth-child(n+5) {
    display: none !important;
}

/* =======================================================
   FULLSCREEN LIGHTBOX GALLERY (GIAO DIỆN XEM ẢNH)
   ======================================================= */
.sbm-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sbm-lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.sbm-lightbox-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
}
.sbm-lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sbm-lightbox-close:hover {
    background: #ef4444;
}
.sbm-lightbox-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 50px;
}
.sbm-lightbox-main-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.sbm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.sbm-lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.sbm-lightbox-prev { left: 10px; }
.sbm-lightbox-next { right: 10px; }

.sbm-lightbox-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}
.sbm-lightbox-thumbnails::-webkit-scrollbar { display: none; }
.sbm-lightbox-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s;
}
.sbm-lightbox-thumb.is-active, .sbm-lightbox-thumb:hover {
    opacity: 1;
    border-color: #fff;
}

/* Đảm bảo ô +X hiển thị đúng tỷ lệ với grid */
.sbm-gallery-more-wrapper {
    position: relative;
    display: block !important;
    border-radius: 8px;
    overflow: hidden;
}
.sbm-gallery-more-wrapper img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}

/* =======================================================
   KHÓA CỨNG BỐ CỤC POPUP TRÊN DESKTOP (CHỐNG BỊ ÉP CỘT)
   ======================================================= */
@media (min-width: 768px) {
    .sbm-popup-content-grid {
        display: grid !important;
        grid-template-columns: 4fr 6fr !important; /* Khóa cứng tỷ lệ tuyệt đối 40% trái - 60% phải */
        gap: 2rem !important; /* Khoảng cách 2 cột */
        align-items: start !important;
    }
    
    .sbm-product-col-left,
    .sbm-product-col-right {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important; /* Triệt tiêu các lệnh padding cũ gây lệch */
        margin: 0 !important;
        min-width: 0 !important; /* Ngăn rớt dòng */
    }
    
    /* Ép khuôn cho ảnh chính (Main Image) */
    .sbm-product-col-left .sbm-popup-main-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 5 !important; /* Tạo một khung hình chữ nhật đứng chuẩn form bìa sách */
        object-fit: contain !important; /* Ảnh nhỏ sẽ tự động nằm giữa khung mà không bị vỡ */
        background-color: #f9fafb !important; /* Thêm nền xám nhạt để làm nổi bật ảnh nhỏ */
        border-radius: 12px !important;
    }
}