﻿/* ===================================================== */
/* STYLEUSER.CSS                                         */
/* ===================================================== */
body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background-color: #1D2A62 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #fff !important;
    transition: color 0.3s ease;
}

    .navbar-brand:hover,
    .navbar-nav .nav-link:hover {
        color: #b3b8ff !important;
    }

.dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.2s ease-in;
}

.dropdown-item:hover {
    background-color: #e8e9ff;
    color: #1D2A62;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tìm kiếm */
.form-control {
    border-radius: 20px;
}

.btn-search {
    background-color: #b3b8ff;
    color: #1D2A62;
    border-radius: 20px;
    transition: 0.3s;
}

    .btn-search:hover {
        background-color: white;
        color: #1D2A62;
    }

/* Footer */
footer {
    background-color: #1D2A62;
    color: #ddd;
    font-size: 14px;
}

    footer h5, footer h6 {
        color: #fff;
    }

    footer a {
        color: #bbb;
        text-decoration: none;
    }

        footer a:hover {
            color: #b3b8ff;
        }

.footer-bottom {
    background-color: #141b47;
    font-size: 13px;
    color: #aaa;
}



/* ===================================================== */
/* PRODUCT CARD - ĐỒNG BỘ HOÀN TOÀN TRÊN MỌI TRANG */
/* ===================================================== */
.product-card {
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

    .product-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
    }

    .product-card img {
        height: 220px;
        object-fit: contain;
        background: #f0f2f5;
        padding: 20px;
        transition: transform 0.6s ease;
    }

    .product-card:hover img {
        transform: scale(1.15);
    }

    /* Nút Mua ngay */
    .product-card .hover-btn,
    .product-card .btn {
        background: linear-gradient(45deg, #0056D2, #007bff) !important;
        border: none !important;
        border-radius: 50px !important;
        color: #fff !important;
        font-weight: bold;
        padding: 12px 28px !important;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.4s ease;
        box-shadow: 0 6px 20px rgba(0,86,210,0.4);
    }

    .product-card:hover .hover-btn,
    .product-card:hover .btn {
        opacity: 1;
        transform: translateY(0);
    }

    .product-card .hover-btn:hover,
    .product-card .btn:hover {
        background: linear-gradient(45deg, #003EA6, #0056D2) !important;
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,86,210,0.6) !important;
    }

    /* Badge khuyến mãi */
    .product-card > span[position],
    .position-absolute.top-0.start-0 {
        position: absolute;
        top: 12px;
        left: 12px;
        background: linear-gradient(45deg, #ff1744, #ff6b6b) !important;
        color: white;
        font-weight: 900;
        font-size: 0.95rem;
        padding: 6px 12px;
        border-radius: 50px;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(255,23,68,0.5);
        animation: pulse-red 2s infinite;
    }

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255,23,68,0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255,23,68,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255,23,68,0);
    }
}

/* Tên sản phẩm 2 dòng */
.product-card .card-title {
    height: 56px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.product-card:hover .card-title a {
    color: #0056D2 !important;
}

/* Giá */
.product-card p.text-danger {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px;
    margin: 10px 0;
}

.text-danger.fw-bold.mb-1 {
    color: #0056D2 !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
}

/* ===================================================== */
/* TRANG CHỦ (INDEX) */
/* ===================================================== */

/*BANNER CAROUSEL*/

.banner-section {
    background: #f8f9fa;
    padding: 30px 0;
}

#bannerCarousel {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
}

    /* Ảnh banner */
    #bannerCarousel .carousel-inner,
    #bannerCarousel .carousel-item,
    #bannerCarousel img {
        height: 460px; /* Chiều cao cố định đẹp */
        border-radius: 16px;
    }

    #bannerCarousel img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Không bị méo */
        transition: transform 12s ease-in-out;
    }

/* Zoom nhẹ khi hover */
.carousel-item:hover img {
    transform: scale(1.05);
}

/* Nút prev/next - tròn, đẹp, hiện khi hover */
.carousel-control-prev,
.carousel-control-next {
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

#bannerCarousel:hover .carousel-control-prev,
#bannerCarousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Icon mũi tên lớn hơn một chút */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 28px;
    height: 28px;
    background-size: 28px 28px;
}

/* Chấm indicator dưới cùng */
.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

    .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.5);
        border: none;
        margin: 0 6px;
        transition: all 0.3s;
    }

    .carousel-indicators .active {
        background-color: #fff;
        transform: scale(1.3);
    }

/* Responsive */
@media (max-width: 992px) {
    #bannerCarousel .carousel-inner,
    #bannerCarousel .carousel-item,
    #bannerCarousel img {
        height: 380px;
    }
}

@media (max-width: 768px) {
    #bannerCarousel .carousel-inner,
    #bannerCarousel .carousel-item,
    #bannerCarousel img {
        height: 300px;
        border-radius: 12px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
        height: 44px;
    }

    #bannerCarousel {
        border-radius: 12px;
    }
}

/* Tiêu đề section */
section h2.text-center {
    color: #1D2A62;
    font-size: 2.8rem;
    font-weight: 800;
    position: relative;
    margin-bottom: 50px;
}

    section h2.text-center::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
        height: 6px;
        background: linear-gradient(90deg, #1D2A62, #0056D2);
        border-radius: 3px;
        box-shadow: 0 4px 15px rgba(29,42,98,0.4);
    }

/* Section Giới thiệu */
section .row.align-items-center {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    margin: 60px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

    section .row.align-items-center img {
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        transition: transform 0.5s ease;
    }

        section .row.align-items-center img:hover {
            transform: scale(1.03);
        }

section .btn-outline-dark {
    border: 2px solid #1D2A62 !important;
    color: #1D2A62 !important;
    border-radius: 50px;
    padding: 10px 30px !important;
    font-weight: bold;
    transition: all 0.3s ease;
}

    section .btn-outline-dark:hover {
        background: #1D2A62 !important;
        color: white !important;
    }

/* Banner khuyến mãi toàn trang */
.promotion-banner-simple {
    background: #f8f9fa;
    padding: 60px 0;
}

.banner-img-only {
    max-width: 1400px;
    margin: 0 auto;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
    transition: all 0.4s ease;
}

    .banner-img-only:hover {
        transform: translateY(-8px);
        box-shadow: 0 35px 70px rgba(0,0,0,0.25);
    }

    .banner-img-only img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 12s ease-in-out;
    }

    .banner-img-only:hover img {
        transform: scale(1.06);
    }

@media (max-width: 992px) {
    .banner-img-only {
        height: 400px;
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .banner-img-only {
        height: 320px;
        border-radius: 14px;
    }

    .promotion-banner-simple {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .banner-img-only {
        height: 260px;
    }
}


/* 3 ô khuyến mãi nhỏ */
.promotion-section {
    background: #f8f9fa;
    padding: 80px 0 !important;
}

.promo-card {
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.45s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

    .promo-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 30px 60px rgba(220,53,69,0.2) !important;
    }

    .promo-card img {
        height: 200px;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .promo-card:hover img {
        transform: scale(1.1);
    }

    .promo-card .btn.text-white {
        background: linear-gradient(45deg, #0056D2, #007bff) !important;
        border: none !important;
        border-radius: 50px !important;
        padding: 10px 25px !important;
        font-weight: bold;
        color: #fff !important;
        font-size: 0.95rem;
        box-shadow: 0 5px 15px rgba(0,86,210,0.4);
        transition: all 0.35s ease;
    }

        .promo-card .btn.text-white:hover {
            background: linear-gradient(45deg, #003EA6, #0056D2) !important;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,86,210,0.6) !important;
        }

/* Responsive chung */
@media (max-width: 992px) {
    #bannerCarousel .carousel-inner, #bannerCarousel img {
        height: 420px;
    }

    .promotion-full-banner {
        height: 400px;
        margin: 60px 0;
    }
}

@media (max-width: 768px) {
    section h2.text-center {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

        section h2.text-center::after {
            width: 140px !important;
            height: 5px !important;
        }

    #bannerCarousel .carousel-inner, #bannerCarousel img {
        height: 340px;
    }

    section .product-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    #bannerCarousel .carousel-inner, #bannerCarousel img {
        height: 280px;
    }

    .carousel-control-prev, .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .promotion-full-banner {
        height: 280px;
        margin: 40px 0;
    }
}

/* ===================================================== */
/* REVIEW VIDEO */
/* ===================================================== */
.review-section {
    background: #f8f9fa;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

    .review-section .text-asus {
        color: #1D2A62 !important;
        font-weight: 900;
    }

    .review-section .title-underline {
        width: 180px;
        height: 6px;
        background: linear-gradient(90deg, #1D2A62, #0056D2);
        border-radius: 3px;
        margin: 20px auto 0;
        box-shadow: 0 4px 15px rgba(0,86,210,0.4);
    }

.video-card {
    transition: all 0.4s ease;
    background: white;
    border-radius: 20px !important;
}

    .video-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
    }

    .video-card iframe {
        border-radius: 16px 16px 0 0;
    }

    .video-card .ratio {
        border-radius: 16px 16px 0 0;
        overflow: hidden;
    }

@media (max-width: 768px) {
    .review-section h2.display-5 {
        font-size: 2.2rem;
    }

    .video-card:hover {
        transform: translateY(-6px);
    }
}


/* ===================================================== */
/* TRANG KHUYẾN MÃI                                      */
/* ===================================================== */
.container.my-5 {
    background: linear-gradient(135deg, #fff8f6 0%, #fdfbfb 100%);
    border-radius: 24px;
    padding: 70px 50px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    margin: 80px auto !important;
    max-width: 1400px;
    overflow: hidden;
}

h1.text-center i.fa-gift {
    animation: beat 1.8s infinite;
    display: inline-block;
    color: #e63946;
}

@keyframes beat {
    0%,100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.25) rotate(10deg);
    }
}

/* Card khuyến mãi lớn */
.card.shadow-lg.rounded-3 {
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .card.shadow-lg.rounded-3:hover {
        transform: translateY(-18px);
        box-shadow: 0 35px 70px rgba(220, 53, 69, 0.28) !important;
    }

/* Header đỏ flash sale */
.bg-danger {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%) !important;
    position: relative;
    overflow: hidden;
}

    .bg-danger::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
        animation: shine 8s linear infinite;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.bg-danger .display-3 {
    font-weight: 900;
    text-shadow: 0 8px 20px rgba(0,0,0,0.6);
    letter-spacing: -5px;
    color: white;
}

/* Nút đỏ flash sale */
.btn-danger {
    background: linear-gradient(45deg, #ff1744, #ff5252) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 800 !important;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(255,23,68,0.5);
    transition: all 0.35s ease !important;
}

    .btn-danger:hover {
        background: linear-gradient(45deg, #d50000, #ff1744) !important;
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(255,23,68,0.7) !important;
    }

/* Nút outline đỏ */
.btn-outline-danger.btn-lg {
    border: 3px solid #ff1744 !important;
    color: #ff1744 !important;
    border-radius: 50px !important;
    padding: 16px 50px !important;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.35s ease;
}

    .btn-outline-danger.btn-lg:hover {
        background: #ff1744 !important;
        color: white !important;
        transform: translateY(-5px);
    }

/* Responsive trang khuyến mãi */
@media (max-width: 992px) {
    .container.my-5 {
        padding: 60px 30px !important;
        margin: 60px auto !important;
    }

    .bg-danger {
        border-radius: 20px 20px 0 0 !important;
    }

    .display-3 {
        font-size: 4.5rem !important;
    }
}

@media (max-width: 576px) {
    .container.my-5 {
        padding: 50px 20px !important;
        margin: 50px auto !important;
        border-radius: 18px;
    }

    .display-3 {
        font-size: 3.8rem !important;
    }

    .btn-danger, .btn-outline-danger.btn-lg {
        padding: 12px 28px !important;
        font-size: 1rem;
    }
}



/* ===================================================== */
/* TIÊU ĐỀ DANH MỤC               TRANG CHỦ & KHUYẾN MÃI */
/* ===================================================== */

/* Tiêu đề chính */
.container.py-5 h2.text-center {
    color: #1D2A62 !important;
    font-size: 2.8rem;
    font-weight: 900;
    position: relative;
    margin-bottom: 60px; 
}

/* Gạch dưới tiêu đề */
.title-underline {
    width: 180px;
    height: 6px;
    background: linear-gradient(90deg, #1D2A62, #0056D2);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(29, 42, 98, 0.4);
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    font-size: 1rem;
}

.breadcrumb-item a {
    color: #1D2A62;
    text-decoration: none;
    font-weight: 600;
}

    .breadcrumb-item a:hover {
        color: #0056D2;
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: #e63946;
    font-weight: 700;
}

/* Responsive – mobile */
@media (max-width: 768px) {
    .container.py-5 h2.text-center {
        font-size: 2.3rem !important;
        margin-bottom: 50px;
    }

    .title-underline {
        width: 140px !important;
        height: 5px !important;
    }
}

@media (max-width: 576px) {
    .container.py-5 h2.text-center {
        font-size: 2rem !important;
    }

    .title-underline {
        width: 120px !important;
    }
}

/* ===================================================== */
/* TRANG CHI TIẾT SẢN PHẨM                               */
/* ===================================================== */

/* Container chính */
.product-detail-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 50px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 1400px;
    overflow: hidden;
}

/* Ảnh sản phẩm */
.product-image-wrapper {
    position: relative;
}

.product-image {
    max-height: 520px;
    object-fit: contain !important;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transition: all 0.5s ease;
}

    .product-image:hover {
        transform: scale(1.03);
        box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    }

/* Tiêu đề sản phẩm */
.product-title {
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    color: #1D2A62 !important;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Phần giá tiền */
.product-price-section h3 {
    font-size: 2.4rem !important;
    margin: 20px 0;
}

.discounted-price {
    color: #e63946 !important;
}

.original-price {
    font-size: 1.6rem !important;
    color: #888 !important;
}

.discount-badge {
    background: linear-gradient(45deg, #ff1744, #ff5252) !important;
    font-size: 1.1rem !important;
    padding: 8px 16px !important;
    border-radius: 50px;
    font-weight: 800;
    animation: pulse-red 2s infinite;
    box-shadow: 0 6px 20px rgba(255,23,68,0.4);
}

.regular-price {
    font-size: 2.6rem !important;
    color: #0056D2 !important;
}

/* Mô tả & tồn kho */
.product-description-section,
.product-stock-info {
    background: #f8fbff;
    padding: 20px 25px;
    border-radius: 16px;
    border-left: 5px solid #0056D2;
    margin: 25px 0;
    font-size: 1.1rem;
}

    .product-description-section strong,
    .product-stock-info strong {
        color: #1D2A62;
    }

/* Nút Mua ngay */
.add-to-cart-btn {
    background: linear-gradient(45deg, #0056D2, #007bff) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 16px 50px !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 30px rgba(0,86,210,0.4);
    transition: all 0.4s ease;
    margin-top: 20px;
}

    .add-to-cart-btn:hover {
        background: linear-gradient(45deg, #003EA6, #0056D2) !important;
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,86,210,0.6) !important;
    }

    .add-to-cart-btn i {
        margin-right: 12px;
        font-size: 1.4rem;
    }

/* Breadcrumb đẹp hơn */
.breadcrumb {
    background: transparent;
    padding: 20px 0 10px;
    font-size: 1.05rem;
}

.breadcrumb-item a {
    color: #1D2A62;
    font-weight: 600;
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: #0056D2;
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: #e63946;
    font-weight: 700;
}

/* Hiệu ứng pulse cho badge giảm giá */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255,23,68,0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255,23,68,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255,23,68,0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-container {
        padding: 50px 30px !important;
        margin: 30px auto;
        border-radius: 20px;
    }

    .product-title {
        font-size: 2.3rem !important;
    }

    .product-price-section h3 {
        font-size: 2.1rem !important;
    }

    .add-to-cart-btn {
        padding: 14px 40px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {
    .product-image {
        max-height: 400px;
        padding: 20px;
    }

    .product-title {
        font-size: 2rem !important;
    }

    .product-price-section h3 {
        font-size: 1.9rem !important;
    }
}

@media (max-width: 576px) {
    .product-detail-container {
        padding: 40px 20px !important;
        border-radius: 18px;
    }

    .product-title {
        font-size: 1.8rem !important;
    }

    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tiêu đề bình luận */
.comment-title {
    color: #1D2A62;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #1D2A62;
    padding-bottom: 5px;
}

/* Toolbar bình luận */
.comment-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Card form bình luận */
.comment-form-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background-color: #f8f9fa;
}

/* Nút gửi bình luận */
.btn-send-cmt {
    background-color: #1D2A62;
    border: none;
}

    .btn-send-cmt:hover {
        background-color: #0f1a42;
    }

/* Danh sách bình luận */
.comment-container {
    margin-top: 20px;
}

/* Item bình luận */
.cmt-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #ffffff;
    position: relative;
}

    /* Tên và sao */
    .cmt-item strong {
        color: #1D2A62;
        margin-right: 10px;
    }

    .cmt-item .star {
        color: #ffc107; /* màu vàng sao */
        font-weight: 600;
    }

/* Nút sửa/xóa */
.cmt-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

/* Nội dung bình luận */
.cmt-item p {
    margin-top: 10px;
    color: #333;
}

/* Ngày đăng */
.cmt-item i {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-top: 5px;
}


/* ===================================================== */
/* TRANG CHI TIẾT KHUYẾN MÃI (SanPhamKhuyenMai?maKM=...) */
/* ===================================================== */

.container.my-5 {
    background: linear-gradient(135deg, #fff8f6 0%, #fdfbfb 100%);
    border-radius: 24px;
    padding: 70px 50px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    margin: 80px auto !important;
    max-width: 1450px;
    overflow: hidden;
}

/* Tiêu đề chính */
h1.text-center i.fa-gift {
    animation: beat 1.8s infinite;
    color: #e63946;
}

@keyframes beat {
    0%,100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.3) rotate(8deg);
    }
}

h1.text-center {
    color: #002664;
    font-size: 3.2rem;
    font-weight: 900;
}

/* Card khuyến mãi lớn */
.card.shadow-lg {
    border-radius: 24px !important;
    overflow: hidden;
    transition: all 0.5s ease;
    border: none !important;
}

    .card.shadow-lg:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 80px rgba(220,53,69,0.25) !important;
    }

/* Cột trái đỏ rực */
.bg-danger {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%) !important;
    position: relative;
    overflow: hidden;
}

    .bg-danger::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.08) 12px, rgba(255,255,255,0.08) 24px);
        animation: shine 10s linear infinite;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.bg-danger h2.display-3 {
    font-size: 6rem;
    letter-spacing: -8px;
    text-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.bg-danger h4 {
    font-weight: 800;
    letter-spacing: 1px;
}

/* Sản phẩm trong khuyến mãi */
.card.h-100.border-0.shadow-sm {
    border-radius: 18px !important;
    transition: all 0.4s ease;
    background: #fff;
}

    .card.h-100.border-0.shadow-sm:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.18) !important;
    }

.card.h-100 img {
    height: 180px;
    object-fit: contain;
    background: #f0f2f5;
    padding: 15px;
}

/* Badge giảm giá nhỏ */
.position-absolute.top-0.start-0.bg-danger {
    background: linear-gradient(45deg, #ff1744, #ff5252) !important;
    border-radius: 0 0 50px 0;
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(255,23,68,0.5);
    animation: pulse-red 2s infinite;
}

/* Giá trong card nhỏ */
.price .text-danger {
    font-size: 1.2rem !important;
    font-weight: 900;
}

.price small {
    font-size: 0.85rem !important;
}

/* Nút Mua ngay nhỏ */
.btn-sm.btn-danger {
    background: linear-gradient(45deg, #ff1744, #ff5252) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700;
    padding: 8px 16px !important;
    font-size: 0.9rem;
    transition: all 0.35s ease;
}

    .btn-sm.btn-danger:hover {
        background: linear-gradient(45deg, #d50000, #ff1744) !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255,23,68,0.5) !important;
    }

/* Nút Xem thêm */
.btn-outline-danger.btn-lg {
    border: 3px solid #ff1744 !important;
    color: #ff1744 !important;
    border-radius: 50px !important;
    padding: 16px 50px !important;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

    .btn-outline-danger.btn-lg:hover {
        background: #ff1744 !important;
        color: white !important;
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(255,23,68,0.4) !important;
    }

/* Responsive */
@media (max-width: 992px) {
    .bg-danger h2.display-3 {
        font-size: 4.5rem !important;
        letter-spacing: -4px;
    }

    .container.my-5 {
        padding: 50px 30px !important;
    }
}

@media (max-width: 768px) {
    .bg-danger {
        text-align: center;
        padding: 40px 20px !important;
    }

        .bg-danger h2.display-3 {
            font-size: 3.8rem !important;
        }

    h1.text-center {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .container.my-5 {
        padding: 40px 20px !important;
        margin: 40px auto !important;
        border-radius: 18px;
    }

    .bg-danger h2.display-3 {
        font-size: 3.2rem !important;
    }
}

/* BONG BÓNG CHAT */
.chat-bubble {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9998;
    font-family: Arial, sans-serif;
}

.chat-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.chat-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0056D2, #00c3ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,86,210,0.4);
    transition: all 0.3s ease;
    position: relative;
}

    .chat-btn i {
        color: white;
        font-size: 24px;
    }

    .chat-btn:hover {
        transform: scale(1.1);
    }

.notif {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff0000;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-list {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#chat-toggle:checked ~ .chat-list {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

    .chat-item i {
        margin-right: 10px;
        font-size: 18px;
    }

    .chat-item.zalo {
        background: #0068ff;
    }

    .chat-item.hotline {
        background: #28a745;
    }

    .chat-item.messenger {
        background: #0084ff;
    }

    .chat-item:hover {
        opacity: 0.9;
        transform: translateX(-5px);
    }

/* Back to top */
#btnBackToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background-color: #1D2A62;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: 0.3s;
    z-index: 9999;
}

    #btnBackToTop:hover {
        background-color: #2a3b8e;
    }


/* ===================================================== */
/* TRANG LIÊN HỆ */
/* ===================================================== */
.contact-container {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
    overflow: hidden;
}

.contact-info {
    flex: 1 1 45%;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: #fff;
    padding: 50px 40px;
}

    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .contact-info p {
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .contact-info .info-item {
        display: flex;
        align-items: center;
        margin: 15px 0;
    }

        .contact-info .info-item i {
            font-size: 20px;
            width: 30px;
            color: #cbd5e1;
        }

.contact-form {
    flex: 1 1 55%;
    padding: 50px 40px;
}

    .contact-form h3 {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 25px;
        color: #1e293b;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        margin-bottom: 15px;
        font-size: 15px;
        transition: all 0.3s ease;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
            outline: none;
        }

    .contact-form button {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        border: none;
        color: white;
        padding: 12px 30px;
        font-size: 16px;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.3s;
    }

        .contact-form button:hover {
            background: linear-gradient(135deg, #1d4ed8, #1e40af);
            transform: translateY(-2px);
        }

.map-container {
    width: 100%;
    height: 380px;
    margin-top: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

@@media (max-width: 900px) {
    .contact-card {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        flex: 1 1 100%;
        padding: 40px 30px;
    }
}
