
.layout-product {
    padding-bottom: 20px;
}


.details-product .product-images .product-image-block {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .details-product .product-images .product-image-block {
        position: sticky !important;
        top: 100px;
    }
}

.gallery-top {
    position: relative;
    margin-bottom: 10px;
    border: 1px solid #ebebeb;
}
.gallery-top .swiper-slide {
    aspect-ratio: 1 / 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-top .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
}


.gallery-thumbs {
    margin-top: 10px;
}
.gallery-thumbs .swiper-slide {
    border: 1px solid #ebebeb;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs .swiper-slide.swiper-slide-thumb-active {
    border-color: #a14603;
}
.gallery-thumbs .swiper-slide:hover {
    border-color: #a14603;
}


.details-product .details-pro .title-product {
    font-size: 2.5rem;
    margin: 0 0 10px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--textColor);
}
.details-product .details-pro .product-top {
    margin-bottom: 10px;
}
.details-product .details-pro .sku-product {
    font-size: 1rem;
    color: #555;
}
.details-product .details-pro .sku-product span {
    margin-right: 15px;
}
.details-product .details-pro .sku-product .a-sku,
.details-product .details-pro .inventory_quantity .a-stock {
    color: #a14603;
    font-weight: 600;
}
.details-product .details-pro .inventory_quantity {
    font-size: 1.1rem;
    border-bottom: 1px solid #DDE1EF;
    padding-bottom: 15px;
    margin-bottom: 15px;
}


.details-product .details-pro .price-box {
    padding: 10px;
    background: #f5f5f5;
    margin-bottom: 20px;
    position: relative;
}
.details-product .details-pro .price-box .special-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--price, #d4 tradición00);
}
.details-product .details-pro .price-box .old-price {
    color: #393939;
    font-size: 1.1rem;
    margin-left: 10px;
}
.details-product .details-pro .price-box .sale-off {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 100%;
    background: var(--price, #d40000);
    color: #fff;
    position: absolute;
    top: 0;
    right: 0;
    clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 0% 100%);
    font-size: 1.1rem;
    font-weight: 600;
}


.details-product .details-pro .select-swatch .swatch {
    margin-bottom: 15px;
}
.details-product .details-pro .select-swatch .header {
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.details-product .details-pro .select-swatch .swatch-element {
    display: inline-block;
    margin: 0 5px 5px 0;
}
.details-product .details-pro .select-swatch .swatch-element input {
    display: none;
}
.details-product .details-pro .select-swatch .swatch-element label {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 0 10px;
    text-align: center;
}
.details-product .details-pro .select-swatch .swatch-element input:checked+label {
    background: #a14603;
    border-color: #a14603;
    color: #fff;
}
.details-product .details-pro .select-swatch .swatch-element.soldout label {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}


.details-product .details-pro .flex-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.details-product .details-pro .flex-quantity > span {
    margin-right: 10px;
    font-weight: 600;
    font-size: 1.6rem;
}
.details-product .details-pro .input_number_product {
    display: flex;
}
.details-product .details-pro .input_number_product input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
}
.details-product .details-pro .input_number_product .btn_num {
    width: 35px;
    height: 38px;
    border: 1px solid #ccc;
    background: #f8f8f8;
}
.details-product .details-pro .button_actions {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4px;
}
.details-product .details-pro .button_actions .btn {
    padding: 0px 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    transition-duration: .3s;
    line-height: initial;
    height: 42px;
    line-height: 42px;
    width: 50%;
}
.details-product .details-pro .button_actions .btn-add-to-cart {
    background: var(--mainColor);
    color: #fff;
    -webkit-clip-path: polygon(0 0, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    clip-path: polygon(0 0, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    max-width: 100%;
}
.details-product .details-pro .button_actions .btn-buyNow {
    background: var(--subColor);
    color: #333;
    -webkit-clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 0% 100%);
    clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 0% 100%);
    border-radius: 0px;
}


.product-col-right .block-policy {
    margin-bottom: 30px;
}
.product-col-right .block-policy .policy-item {
    padding: 15px;
    background: #f4f4f4;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: 1px solid #ddd;
}
.product-col-right .block-policy .policy-item img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}
.product-col-right .block-policy .policy-item .info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}


.product-review-details .product-tab .tabs-title {
    padding: 0;
    margin: 0 0 -1px 0;
    list-style: none;
    display: flex;
    border-bottom: 1px solid #eee;
}
.product-review-details .product-tab .tab-link {
    cursor: pointer;
    margin-right: 30px;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
}
.product-review-details .product-tab .tab-link h3 {
    color: #757575;
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 600;
}
.product-review-details .product-tab .tab-link.active {
    border-bottom-color: var(--mainColor, #a14603);
}
.product-review-details .product-tab .tab-link.active h3 {
    color: var(--mainColor, #a14603);
}
.product-review-details .product-tab .tab-float {
    border: 1px solid #eee;
    border-top: none;
    padding: 20px;
}
.product-review-details .product-tab .tab-content {
    display: none;
}
.product-review-details .product-tab .tab-content.active {
    display: block;
}


@media (max-width: 1199px) {
    .details-product .details-pro .title-product {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .product-col-right {
        margin-top: 30px;
    }
}


    /* --- 1. LAYOUT CHUNG & BANNER --- */
.collection-banner {
    width: 100%;
    height: 300px; /* Hoặc chiều cao anh muốn */
    background-color: var(--theme-bg-dark-secondary);
}
.collection-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* --- BREADCRUMB (Thiết kế mới) --- */
.breadcrumb-wrapper {
    /* Bỏ hết style cũ */
    background-color: transparent;
    padding: 0;
    border: none;
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
}

.breadcrumb-item {
    position: relative;
    background-color: var(--theme-bg-dark-secondary, #2a2a2a);
    padding: 12px 20px 12px 30px;
    margin-right: 2px; /* Khoảng cách nhỏ giữa các thẻ */
    color: var(--theme-text-light, #e0e0e0);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    
    /* Dùng clip-path để tạo hình mũi tên */
    clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%, 20px 50%);
}

/* Thẻ đầu tiên sẽ không có mũi tên bên trái */
.breadcrumb-item:first-child {
    padding-left: 20px;
    border-radius: 5px 0 0 5px;
    clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
}

/* Thẻ cuối cùng (trang hiện tại) sẽ không có mũi tên bên phải */
.breadcrumb-item:last-child {
    background-color: var(--theme-accent-red, #c30000);
    color: #fff;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 20px 50%);
    border-radius: 0 5px 5px 0;
    padding-left: 30px;
}

/* Xóa dấu phân cách ::before mặc định của bootstrap */
.breadcrumb-item + .breadcrumb-item::before {
    content: none;
}

.breadcrumb-item a {
    color: var(--theme-text-light, #e0e0e0);
    text-decoration: none;
    transition: color 0.2s ease;
    padding-left: 20px;
}

.breadcrumb-item a:hover {
    color: var(--theme-accent-red, #c30000);
}

.breadcrumb-item a i {
    margin-right: 8px;
}
/* --- 2. SIDEBAR BỘ LỌC --- */
.sidebar-filter {
    background-color: var(--theme-bg-dark-secondary);
    border: 1px solid var(--theme-border-dark);
    border-radius: 8px;
    padding: 15px;
}

.sidebar-widget {
    margin-bottom: 25px;
}
.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--theme-border-dark);
}

.widget-content ul {
    list-style: none;
    padding-left: 0;
}

/* Danh mục sản phẩm */
.category-list li a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    color: var(--theme-text-light);
    transition: all 0.2s ease;
}
.category-list li a:hover,
.category-list li a.active {
    background-color: var(--theme-accent-red);
    color: #fff;
}
.subcategory-list {
    padding-left: 20px !important;
    margin-top: 5px;
}

/* Lọc theo giá */
.price-filter-list .form-check {
    margin-bottom: 10px;
}
.price-filter-list .form-check-label {
    cursor: pointer;
}

/* --- 3. KHU VỰC HIỂN THỊ SẢN PHẨM --- */
.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--theme-bg-dark-secondary);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.collection-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.collection-sort .form-select {
    width: auto;
    background-color: var(--theme-bg-dark);
    color: var(--theme-text-light);
    border-color: var(--theme-border-dark);
}

/* Lưới sản phẩm */
/* Style cho .item_product_main đã có ở các file trước */
/* Chỉ cần đảm bảo nó nằm trong file css chung của anh là được */
.item_product_main .product-action {
    background: var(--theme-bg-dark-secondary);
    border: 1px solid var(--theme-border-dark);
    transition: all 0.3s ease;
}
.item_product_main .product-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* --- 4. PHÂN TRANG --- */
.pagination-wrapper .pagination {
    --bs-pagination-padding-x: 0.95rem;
    --bs-pagination-padding-y: 0.45rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--theme-text-light);
    --bs-pagination-bg: var(--theme-bg-dark-secondary);
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: var(--theme-border-dark);
    --bs-pagination-border-radius: 0.375rem;
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: #3a3a3a;
    --bs-pagination-hover-border-color: var(--theme-border-dark);
    --bs-pagination-focus-color: var(--theme-accent-red);
    --bs-pagination-focus-bg: #3a3a3a;
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(195, 0, 0, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--theme-accent-red);
    --bs-pagination-active-border-color: var(--theme-accent-red);
    --bs-pagination-disabled-color: #6c757d;
    --bs-pagination-disabled-bg: #212529;
    --bs-pagination-disabled-border-color: var(--theme-border-dark);
}

/* --- 5. RESPONSIVE CHO BỘ LỌC MOBILE --- */
@media (max-width: 991px) {
    .sidebar-filter-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100%;
        background-color: var(--theme-bg-dark);
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 20px;
        overflow-y: auto;
    }
    .sidebar-filter-mobile.open {
        transform: translateX(0);
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.6);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
    }
    .sidebar-filter-mobile .close-filter-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        color: #fff;
        background: none;
        border: none;
    }
}
