/*========================================================
    PRODUCT CATEGORY
========================================================*/

.product-category {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    position: relative;
}


/* HEADER */

.product-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-category-header h2 {
    position: relative;
    margin: 0;
    padding-left: 12px;

    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.product-category-header h2::before {
    content: "";
    position: absolute;

    left: 0;
    top: 50%;

    width: 4px;
    height: 28px;

    background: #e00000;

    transform: translateY(-50%);
}


/* MENU */

.product-category-menu {
    display: flex;
    gap: 8px;
}

.product-category-menu a {
    display: block;

    padding: 6px 10px;

    font-size: 12px;
    color: #222;
    background: #f5f6f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}
.product-category-menu a:hover {
    color: #e00000;
}


/*========================================================
    SLIDER
========================================================*/

.product-slider {
    position: relative;
    width: 100%;
}


/* VIEWPORT */

.product-slider-viewport {
    width: 100%;
    overflow: hidden;
}


/* TRACK */

.product-slider-track {
    display: flex;

    gap: 8px;

    transition: transform 0.45s ease;

    will-change: transform;
}


/*========================================================
    PRODUCT CARD
========================================================*/

.product-card {
    position: relative;

    flex: 0 0 calc((100% - 32px) / 5);

    box-sizing: border-box;

    min-width: 0;

    padding: 10px;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 10px;

    overflow: hidden;

    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}


/*bán chạy*/

.product-installment {
    position: absolute;

    top: 0;
    right: 0;

    padding: 3px 6px;

    font-size: 12px;
    font-weight: 600;

    color: #087fda;

    background: #fff;

    border: 1px solid #087fda;
    border-radius: 0 0 0 5px;

    z-index: 2;
}


/* IMAGE */

.product-image {
    width: 100%;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* NAME */

.product-name {
    min-height: 42px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* GIÁ GỐC */
.product-price-old {
    margin-top: 15px;
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}
/* GIÁ KHUYẾN MÃI */
.product-price-sale {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 700;
    color: #d70018;
}/* GIẢM GIÁ */
.product-discount {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}
.product-discount strong {
    color: #d70018;
}
/*========================================================
    BUTTON
========================================================*/
.product-slider-prev,
.product-slider-next {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;
    font-size: 38px;
    font-weight: 300;
    line-height: 50px;

    color: #222;

    transform: translateY(-50%);
}

.product-slider-prev {
    left: -23px;

    border-radius: 0 30px 30px 0;
}

.product-slider-next {
    right: -23px;

    border-radius: 30px 0 0 30px;
}

.product-slider-prev:hover,
.product-slider-next:hover {
    background: #fff;
}


/* DISABLED */

.product-slider-prev.disabled,
.product-slider-next.disabled {
    opacity: 0.35;
    cursor: default;
}
/*list brand*/
.camera-brand-window {
    position: relative;

    padding: 12px 15px;

    background: #c40000;

    /* Viền ánh kim */
    border: 2px solid #d8b45a;

    border-radius: 8px;

    /* Hiệu ứng viền ánh kim */
    box-shadow:
        0 0 0 1px #fff2b0,
        0 0 0 3px #9c6f18,
        inset 0 0 0 1px rgba(255, 255, 255, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.2);

    overflow: hidden;
}


/* Khung chứa các logo */

.camera-brand-track {
    display: flex;
    align-items: center;

    gap: 10px;

    width: 100%;
}


/* Từng hãng */

.camera-brand-item {
    flex: 1;

    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 15px;

    background: #fff;

    border: 1px solid #d8b45a;

    border-radius: 5px;

    box-sizing: border-box;

    transition: all 0.25s ease;
}


/* Logo */

.camera-brand-item img {
    max-width: 100%;
    max-height: 48px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* Hover */

.camera-brand-item:hover {
    transform: translateY(-2px);

    border-color: #fff2b0;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25);
}
.product-category-content {
    width: 100%;
    margin: 10px 0 12px;
    padding: 7px 12px;

    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-left: 3px solid #e00000;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.product-category-content p {
    margin: 0;

    font-size: 15px;
    line-height: 24px;

    color: #333;
}

.product-banner {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 2);
}

.product-banner img {
    display: block;
    width: calc(50% - 5px);
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 2);
}

/* ==========================================
   KHUNG DANH SÁCH
========================================== */

.product-news-section {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
}


/* ==========================================
   HEADER
========================================== */

.product-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}


.product-news-header h2 {
    position: relative;

    margin: 0;
    padding-left: 12px;

    font-size: 20px;
    line-height: 30px;

    font-weight: 700;

    color: #222;
}


/* VẠCH ĐỎ BÊN TRÁI */

.product-news-header h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 4px;
    height: 28px;

    background: #e00000;

    transform: translateY(-50%);
}


/* XEM TẤT CẢ */

.product-news-view-all {
    padding: 7px 10px;

    background: #f5f5f5;

    border-radius: 7px;

    color: #333;

    font-size: 12px;

    text-decoration: none;

    transition: all 0.2s ease;
}


.product-news-view-all:hover {
    background: #e00000;
    color: #fff;
}


/* ==========================================
   DANH SÁCH
========================================== */

.product-news-list {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}


/* ==========================================
   ITEM
========================================== */

.product-news-item {
    display: block;

    overflow: hidden;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 7px;

    text-decoration: none;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.product-news-item:hover {
    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* ==========================================
   HÌNH ẢNH
========================================== */

.product-news-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f5f5f5;
}


.product-news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}


.product-news-item:hover .product-news-image img {
    transform: scale(1.03);
}


/* ==========================================
   TÊN / TIÊU ĐỀ
========================================== */

.product-news-title {
    padding: 8px 5px 9px;

    min-height: 42px;

    box-sizing: border-box;

    color: #111;

    font-size: 14px;

    line-height: 20px;

    font-weight: 500;

    /* Giới hạn 2 dòng */

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}
/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767px) {

    .product-banner {
        gap: 8px;
    }

    .product-banner img {
        width: calc(50% - 4px);
        border-radius: 5px;
    }

}

/*========================================================
    RESPONSIVE
========================================================*/

@media (max-width: 992px) {

    .product-category {
        padding: 0 15px;
    }

    .product-card {
        flex: 0 0 calc((100% - 16px) / 3);
    }

    .product-image {
        height: 180px;
    }
    .product-news-section {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .product-news-list {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 768px) {

    .product-category-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .product-category-menu {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    .product-card {
        flex: 0 0 calc((100% - 8px) / 2);
    }

    .product-image {
        height: 180px;
    }

    .product-slider-prev {
        left: -5px;
    }

    .product-slider-next {
        right: -5px;
    }
    /*list brand*/
        .camera-brand-window {
        padding: 10px;
    }

    .camera-brand-track {
        gap: 8px;
    }

    .camera-brand-item {
        height: 55px;
        padding: 6px 10px;
    }

    .camera-brand-item img {
        max-height: 40px;
    }
    .product-category-content {
        margin: 8px 0 10px;
        padding: 8px 10px;
    }

    .product-category-content p {
        font-size: 14px;
        line-height: 21px;
        text-align: left;
    }
    .product-news-header h2 {
        font-size: 18px;
    }

    .product-news-list {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }

    .product-news-title {
        font-size: 13px;
        line-height: 19px;
    }

}


@media (max-width: 480px) {

    .product-card {
        flex: 0 0 100%;
    }

    .product-image {
        height: 230px;
    }

    .product-category-header h2 {
        font-size: 18px;
    }
    /*list brand*/
    .camera-brand-window {
        padding: 8px;
    }

    .camera-brand-track {
        gap: 6px;
    }

    .camera-brand-item {
        height: 50px;
        padding: 5px 8px;
    }

    .camera-brand-item img {
        max-height: 34px;
    }   .product-banner {
        display: block;
    }

    .product-banner img {
        width: 100%;
        height: auto;
    }
    .product-banner img:nth-child(2) {
        display: none;
    }
    .product-news-list {
        grid-template-columns: 1fr;
    }
}