/* products.css */
@import "root.css";
/* --- PLP General --- */
.breadcrumb {
    align-items: center;
    margin: 0;
}

.breadcrumb-item{
    font-family: var(--font-btn);
    color: var(--primary-maroon) !important;
}

.breadcrumb-item a{
    font-family: var(--font-btn);
    font-size: 1rem;
    color: #71717B !important;
    text-decoration: none;
}
.breadcrumb-item:hover a{
    color: var(--primary-maroon) !important;
}

.product-contaier {
    padding: 40px 0 100px;
    position: relative;
    z-index: 1;
}

.product-contaier .section-title{
    color: var(--primary-maroon) !important;
    align-items: start;
    margin-bottom: 20px;
}

/* Custom Dropdown Styling */
.custom-filter-dropdown .btn.dropdown-toggle {
    background: #fff;
    border: 1px solid #EE95A0;
    border-radius: 50px;
    min-width: 150px;
    padding: 8px 25px;
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

.custom-filter-dropdown .btn.dropdown-toggle:hover,
.custom-filter-dropdown .show > .btn.dropdown-toggle {
    border-color: var(--primary-maroon);
    color: var(--primary-maroon);
    background: #fff;
}

.custom-filter-dropdown .dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    margin-top: 10px !important;
    padding: 15px;
}

.custom-filter-dropdown .dropdown-item {
    cursor: pointer;
    padding: 8px 15px;
    font-size: 14px;
    transition: all 0.2s;
}

.custom-filter-dropdown .dropdown-item:hover {
    background-color: #f8f5f2;
    color: var(--primary-maroon);
}

.dropdown-header {
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
    font-size: 11px;
}

/* Custom Input Price */
.price-custom-input input {
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 13px;
    padding: 5px 10px;
}

.price-custom-input input:focus {
    box-shadow: none;
    border-color: var(--primary-maroon);
}

.price-custom-input .btn-primary {
    background: var(--primary-maroon);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
}

/* Search Wrapper Nâng cấp */
.search-wrapper {
    position: relative;
    min-width: 280px;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    border-radius: 50px;
    border: 1px solid #EE95A0;
    padding: 10px 45px 10px 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-wrapper input:focus {
    border-color: var(--primary-maroon);
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.05);
}

.search-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-maroon);
    cursor: pointer;
}
/* Tối ưu cho Mobile (Dưới 768px) */
@media (max-width: 768px) {
    .plp-filter-controller {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px !important;
        margin-bottom: 25px !important;
    }
    .filter-group-left {
        justify-content: space-between;
    }
    .filter-group-right {
        flex-direction: column;
    }

    .product-card .badge-status img {
        width: 30px;
        margin-bottom: 2px;
    }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 375px) and (max-width: 768px) {
    #productGrid.row-cols-custom-mobile > * {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.product-card {
    border-radius: 15px;
    padding: 0px;
    position: relative;
    height: 100%;
    transition: 0.3s;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    box-shadow: 0px 4px 8px -2px rgba(10, 13, 18, 0.1), 0px 2px 4px -2px rgba(10, 13, 18, 0.06);
}

.product-card:hover {
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Badge Mới/Hot với Kim cương */
.badge-status {
    position: absolute;
    float: right;
    top: 15px;
    right: 10px;
    z-index: 5;
}

.badge-status img {
    width: 44px;
    margin-bottom: 2px;
}

.product-img {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    transition: 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.2);
}

.product-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.p-name,
.p-price {
    font-family: var(--font-btn);
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: #3F3F46;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-price {
    font-size: 18px;
}

.product-card:hover .p-name {
    color: var(--primary-maroon);
}

/* Nền màu đỏ đô có họa tiết cho FAQ */
.faq-section {
    color: #fff;
    background-color: var(--primary-maroon); /* Màu đỏ đô chủ đạo */
    background-image: url('/plugins/VGS_Ecommerce/asset/image/banner-table.png'); /* Đường dẫn họa tiết hoa sen chìm */
    background-size: cover;
}

.faq-title {
    background: url('/plugins/VGS_Ecommerce/asset/image/gold-texture.jpg');
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-btn);
    letter-spacing: 2px;
    position: relative;
}

/* Kẻ gạch dưới tiêu đề giống hình */
.faq-title::after {
    content: "";
    display: block;
    width: 240px;
    height: 1px;
    background: var(--accent-gold);
    margin: 10px auto 0;
}

/* Thẻ câu hỏi trắng */
.faq-item {
    background: #FFFFFF;
    border-radius: 15px; /* Bo góc như hình */
    overflow: hidden;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.faq-header {
    padding: 20px 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question {
    font-family: var(--font-btn);
    font-weight: 400;
    font-size: 16px;
    color: var(--primary-maroon);
    padding-right: 20px;
}

/* Icon vòng tròn dấu cộng/trừ */
.faq-icon {
    width: 30px;
    height: 30px;
    background: #000; /* Màu đen như hình */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.3s;
}

/* Khi mở ra: Nội dung trả lời */
.faq-body {
    padding: 0 25px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Xử lý đổi icon khi mở/đóng bằng CSS */
.faq-header[aria-expanded="true"] .faq-icon {
    background: var(--primary-maroon); /* Đổi màu khi mở nếu muốn */
}

.faq-header[aria-expanded="true"] .faq-icon i::before {
    content: "\f068"; /* Mã font-awesome cho dấu trừ (minus) */
}

/* Container phân trang */
.custom-pagination {
    gap: 12px; /* Khoảng cách giữa các vòng tròn */
}

/* Định dạng chung cho nút */
.custom-pagination .page-item .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important; /* Tạo hình tròn */
    border: 1px solid #DCDCDC; /* Viền xám mảnh */
    background-color: #ffffff;
    color: #444;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0;
}

/* Trang hiện tại (Màu đỏ đô) */
.custom-pagination .page-item.active .page-link {
    background-color: #800000 !important; /* Màu đỏ đô (Maroon) */
    border-color: #800000 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}

/* Hiệu ứng Hover */
.custom-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f8f5f2;
    border-color: #800000;
    color: #800000;
}

/* Nút bị vô hiệu hóa (Prev/Next ở đầu/cuối) */
.custom-pagination .page-item.disabled .page-link {
    border-color: #eee;
    color: #ccc;
    background-color: transparent;
}

/* Dấu ba chấm (...) */
.custom-pagination .page-item.disabled span.page-link {
    border: none;
    background: none;
    color: #444;
}

/* Icon mũi tên */
.custom-pagination .page-link i {
    font-size: 14px;
}