/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.header {
    position: relative;
    z-index: 1;
}

.main {
    position: relative;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: bold;
    margin-top: 0;
}

h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #d90000;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.top-bar {
    background-color: #d90000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: #fff;
    cursor: pointer;
}

/* Sticky Header Group */
.sticky-header-group {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Tối ưu performance */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.sticky-header-group.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
}

.sticky-header-group.sticky-hidden {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body offset để tránh content bị che khi sticky */
body.sticky-active {
    padding-top: 140px;
    /* transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
}

/* Smooth animation cho sticky header */
@keyframes smoothSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-header-group.sticky.animate-in {
    animation: smoothSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.main-header {
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.sticky-header-group.sticky .main-header .container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo img {
    height: 50px;
    transition: height 0.3s ease;
}

.logo a {
    cursor: pointer;
}

.sticky-header-group.sticky .logo img {
    height: 40px;
}

.search-bar {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: 400px;
}

.search-bar input {
    border: none;
    padding: 10px;
    flex-grow: 1;
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    border: none;
    background-color: #fff;
    padding: 0 15px;
    cursor: pointer;
    color: #d90000;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact > div {
    text-align: center;
}

.header-contact p {
    margin: 0;
    font-size: 14px;
}

.header-contact strong {
    font-size: 18px;
    color: #d90000;
}

.header-contact .hotline,
.header-contact .hcm-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-contact .hotline .hotline-icon,
.header-contact .hcm-hotline .hotline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #fff7e0; /* default for HN, override for HCM */
}

.header-contact .hotline .hotline-icon {
    background: #fff7e0;
    color: #fbbd08;
}

.header-contact .hcm-hotline .hotline-icon {
    background: #fde7ea;
    color: #e53935;
}

.header-contact .hotline strong {
    color: #fbbd08;
    font-size: 20px;
    font-weight: bold;
}

.header-contact .hcm-hotline strong {
    color: #e53935;
    font-size: 20px;
    font-weight: bold;
}

.header-contact .hotline p,
.header-contact .hcm-hotline p {
    margin: 0;
    font-size: 16px;
    color: #444;
    font-weight: normal;
    text-align: left;
}

.header-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
}

.cart-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3ede7;
    color: #a67c52;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.cart-info span {
    font-size: 15px;
    color: #444;
}

.cart-count {
    color: #a67c52;
    font-weight: bold;
    font-size: 16px;
}

.main-nav {
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.main-nav .container ul.main-menu {
    display: flex;
    justify-content: flex-start;
}

.main-nav .container ul.main-menu li {
    position: relative;
}

.main-nav .container ul.main-menu li a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 20px 13px 20px;
    font-weight: normal;
    text-transform: none;
    white-space: nowrap;
    font-size: 15px;
    color: #222;
    background: none;
    transition: color 0.2s;
}

.main-nav .container ul.main-menu li a::after {
    content: "";
    display: block;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 4px;
    height: 3px;
    border-radius: 2px;
    background: #d90000;
    opacity: 0;
    transform: scaleX(0.5);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav .container ul.main-menu li a.active::after,
.main-nav .container ul.main-menu li a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.main-nav .container ul.main-menu li a.active,
.main-nav .container ul.main-menu li a:hover {
    color: #d90000;
}

.main-nav .container ul.main-menu li a i.fa-chevron-down {
    margin-left: 6px;
    font-size: 13px;
    position: static;
    vertical-align: middle;
    display: inline-block;
    transform: none;
}

/* Dropdown Menu */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 99999 !important;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 12px 20px !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-weight: normal !important;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

/* Hero Section -> Slider Section */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    z-index: -1;
}

.slide {
    display: none;
    position: relative;
    text-align: center;
    color: white;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

/* Sections */
section {
    /* padding: 60px 0; */
}

/* About Us Section */
.about-us {
    background-color: #f9f9f9;
}

.about-us .container {
    display: flex;
    align-items: center;
    gap: 50px;
    padding-top: 50px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    color: #d90000;
    margin-bottom: 20px;
}

.about-text p {
    text-align: justify;
}

.about-video {
    flex: 1;
    position: relative;
}

.about-video .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #d90000;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.3s ease;
}

.about-video .play-btn:hover {
    background-color: #d90000;
    color: #fff;
}

/* Product Categories */
.product-categories .category {
    margin-bottom: 50px;
    padding-top: 50px;
}

.product-categories .category h2 {
    text-transform: uppercase;
}

.product-categories .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    border: 1px solid #f0f0f0;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-item a {
    display: block;
    padding: 20px;
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.product-item p {
    font-weight: 600;
    margin: 0;
    font-size: 17px;
    color: #333;
}

/* Why Us Section */
.why-us {
    background-color: #fafafa;
    padding-top: 50px;
}

.reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.reason-item .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #d90000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.reason-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Award Section */
.award .container {
    display: flex;
    align-items: center;
    gap: 50px;
    padding-top: 50px;
}

.award-image {
    flex: 1;
}

.award-text {
    flex: 1;
}

.award-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    background-color: #f9f9f9;
    padding-top: 50px;
}

.rating-summary {
    text-align: center;
    margin-bottom: 40px;
}

.rating-summary .score {
    font-size: 48px;
    font-weight: bold;
    color: #f8b400;
    margin: 0;
}

.rating-summary .score i {
    font-size: 36px;
}

.rating-summary p {
    margin: 0;
    color: #777;
}

.btn-more-reviews {
    display: block;
    width: max-content;
    margin: 40px auto 0;
    border: 1px solid #d90000;
    color: #d90000;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
}

.btn-more-reviews:hover {
    background-color: #d90000;
    color: #fff;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    padding: 60px 0;
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}

footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-about img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-showroom ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.footer-showroom ul li i {
    margin-top: 5px;
    color: #d90000;
}

.social-icons a {
    color: #fff;
    background-color: #444;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 18px;
}

.social-icons a:hover {
    background-color: #d90000;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .main-nav .container ul.main-menu {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-contact {
        display: none; /* Hide contact on mobile for simplicity */
    }

    .main-header .container {
        justify-content: space-between;
    }

    .sticky-header-group.sticky .main-header .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .sticky-header-group.sticky .logo img {
        height: 35px;
    }

    /* Body offset cho mobile */
    body.sticky-active {
        padding-top: 120px;
        transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Tối ưu sticky header cho mobile */
    .sticky-header-group {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .main-nav .container {
        position: relative;
    }

    .main-nav .container ul.main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        border: 1px solid #eee;
        z-index: 1000;
    }

    .main-nav .container ul.main-menu.active {
        display: flex;
    }

    .main-nav .container ul.main-menu li a {
        border-bottom: 1px solid #eee;
    }

    .has-dropdown > a::after {
        content: "+";
        float: right;
    }

    .dropdown-menu {
        position: static;
        display: none !important; /* Important to override hover */
        border: none;
        box-shadow: none;
        width: 100%;
        background-color: #f5f5f5;
    }

    .has-dropdown.open > .dropdown-menu {
        display: block !important;
    }

    .slide img {
        height: auto;
    }

    .about-us .container,
    .award .container {
        flex-direction: column;
    }

    .product-categories .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-item a {
        padding: 15px;
    }

    .product-item img {
        height: 100%;
        margin-bottom: 15px;
    }

    .product-item p {
        font-size: 16px;
    }

    .reasons {
        grid-template-columns: 1fr;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-showroom ul li {
        justify-content: center;
    }

    footer {
        padding: 110px 0;
    }
}

/* --- Cart Dropdown Popup --- */
.header-cart {
    position: relative;
}

.cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 1001;
    padding: 18px 16px 16px 16px;
    min-width: 320px;
    min-height: 100px;
}

.header-cart:hover .cart-dropdown {
    display: block;
}

.cart-items {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #222;
    line-height: 1.3;
}

.cart-item-price {
    display: block !important;
    flex-direction: column !important;
}

.old-price {
    display: block !important;
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 5px;
    width: 100%;
}

.current-price {
    display: block !important;
    font-size: 18px;
    font-weight: bold;
    color: #d90000;
    width: 100%;
}

.cart-item-price span {
    color: #222;
    font-weight: bold;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #bbb;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 4px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #d90000;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0 16px 0;
    color: #222;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-actions .view-cart {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.cart-actions .view-cart:hover {
    background: #444;
    color: #fff;
}

.cart-actions .checkout {
    background: #ff3c00;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.cart-actions .checkout:hover {
    background: #d90000;
    color: #fff;
}

/* Cart Empty State */
.cart-empty {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cart-empty-icon i {
    font-size: 32px;
    color: #ccc;
}

.cart-empty-message {
    color: #666;
    font-size: 16px;
    margin: 0;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-back-to-shop {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back-to-shop:hover {
    background-color: #555;
}

/* --- Review Cards --- */
.reviews {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.review-card {
    width: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.review-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.review-content {
    padding: 18px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 4px;
}

.review-name {
    font-weight: bold;
    font-size: 18px;
    color: #222;
}

.review-status {
    color: #d90000;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-status i {
    color: #d90000;
    font-size: 15px;
}

.review-stars {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 2px;
}

.review-text {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    min-height: 68px; /* Approx 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

@media (max-width: 900px) {
    .reviews {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* The 600px rule that forces 1 column will be removed */

/* --- Partner Slider --- */

.partners {
    padding: 40px 0;
    background-color: #f7f7f7;
    text-align: center;
}

.partner-logos {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
}

.partner-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.partner-logo-item {
    min-width: 200px;
    max-width: 200px;
    height: 120px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-prev,
.partner-next {
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.partner-prev {
    position: absolute;
    left: 0;
}

.partner-next {
    position: absolute;
    right: 0;
}

/* --- Floating Contact Bar --- */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: scale(1.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-phone {
    background-color: #e53935;
}

.contact-zalo {
    background-color: #0068ff;
}

.contact-messenger {
    background-color: #0a7cff;
}

.contact-map {
    background-color: #34a853;
}

.contact-icon i {
    font-size: 24px;
}

.contact-zalo img {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .floating-contact {
        flex-direction: row;
        justify-content: space-around;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .contact-item {
        flex: 1;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        box-shadow: none;
    }

    .contact-icon i {
        font-size: 20px;
    }
}

/* --- Scroll To Top Button --- */
#scroll-to-top {
    position: fixed;
    right: 28px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2.5px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #333;
    z-index: 998; /* Below contact bar */
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: #d90000;
    color: #fff;
    border-color: #d90000;
}

@media (min-width: 769px) {
    .floating-contact {
        bottom: 85px;
    }
}

@media (max-width: 768px) {
    #scroll-to-top {
        bottom: 95px; /* Above mobile contact bar */
    }
}

/* === PAGE LAYOUT STYLES === */
.page-banner {
    background: #f8f9fa;
    padding: 40px 0 20px;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.breadcrumb a {
    color: #d90000;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-banner h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.page-content {
    padding: 40px 0;
}

.content-layout {
    display: block;
    padding: 40px 0;
}

.main-content {
    width: 100%;
    padding: 0;
}

.content-wrapper {
    background: #fff;
    /* padding: 30px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.content-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #d90000;
}

.subsection {
    margin-bottom: 40px;
}

.subsection h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #d90000;
}

.sub-subsection {
    margin-bottom: 30px;
    padding-left: 20px;
}

.sub-subsection h4 {
    font-size: 18px;
    color: #444;
    margin-bottom: 15px;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #d90000;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Page Responsive Design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .sidebar {
        top: 160px;
    }
}

@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        position: static;
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .page-banner {
        padding: 20px 0 15px;
    }

    .page-banner h1 {
        font-size: 24px;
    }

    .page-content {
        padding: 20px 0;
    }

    .table-of-contents {
        padding: 15px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .subsection h3 {
        font-size: 20px;
    }
}

/* Contact Page Styles */
.contact-page {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    z-index: -1;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.contact-header h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #d90000;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.showroom-info {
    margin-bottom: 40px;
}

.showroom-info:last-child {
    margin-bottom: 0;
}

.showroom-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
    padding-bottom: 0;
}

.showroom-info h2::after {
    display: none;
}

.showroom-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.showroom-info ul li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    line-height: 1.6;
}

.showroom-info ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.showroom-info ul li strong {
    color: #d90000;
    font-weight: bold;
}

.contact-form-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #d90000;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .submit-btn {
    background-color: #d90000;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form .submit-btn:hover {
    background-color: #b50000;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info,
    .contact-form-section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 40px 0;
    }

    .contact-header h1 {
        font-size: 28px;
    }

    .contact-info,
    .contact-form-section {
        padding: 25px;
    }

    .showroom-info h2 {
        font-size: 20px;
    }

    .showroom-info ul li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 30px 0;
    }

    .contact-header {
        margin-bottom: 30px;
    }

    .contact-header h1 {
        font-size: 24px;
    }

    .contact-info,
    .contact-form-section {
        padding: 20px;
    }
}

/* Category Page */
.category-section {
    padding: 40px 0;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #d90000;
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.filter-groups {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-group select,
.sort-group select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    min-width: 180px;
    background-color: #fff;
    cursor: pointer;
}

.filter-group select:focus,
.sort-group select:focus {
    outline: none;
    border-color: #d90000;
}

/* Category Icons */
.category-icons {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-icon-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.category-icon-item:hover {
    transform: translateY(-5px);
}

.category-icon-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.category-icon-item span {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d90000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #d90000;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    margin-right: 5px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.product-price {
    display: block !important;
    flex-direction: column !important;
}

.old-price {
    display: block !important;
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 5px;
    width: 100%;
}

.current-price {
    display: block !important;
    font-size: 18px;
    font-weight: bold;
    color: #d90000;
    width: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #d90000;
    color: #fff;
    border-color: #d90000;
}

.pagination a.active {
    background: #d90000;
    color: #fff;
    border-color: #d90000;
}

.prev-btn,
.next-btn {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-icons {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-groups {
        flex-direction: row;
    }

    .filter-group select,
    .sort-group select {
        width: 100%;
        min-width: unset;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-icons {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .category-section {
        padding: 30px 0;
    }

    .filter-groups {
        flex-direction: column;
    }

    .category-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .product-title {
        font-size: 15px;
    }

    .current-price {
        font-size: 16px;
    }

    .pagination {
        gap: 5px;
    }

    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-icon-item img {
        width: 50px;
        height: 50px;
    }

    .category-icon-item span {
        font-size: 13px;
    }

    .filter-bar {
        margin-bottom: 20px;
    }

    .breadcrumb {
        margin-bottom: 20px;
    }
}

/* ==================== PRODUCT DETAIL PAGE ==================== */

/* Product Detail Section */
.product-detail {
    padding: 40px 0;
    background: #fff;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    height: 427px;
}

.main-image:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #d90000;
}

.thumbnail.active {
    border-color: #d90000;
    box-shadow: 0 2px 8px rgba(217, 0, 0, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
/* .product-info {
  padding: 0;
} */

/* .product-info h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
} */

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 16px;
}

.product-rating .rating-count {
    color: #666;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.product-price .old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.product-price .current-price {
    font-size: 22px;
    color: #d90000;
    font-weight: bold;
}

.product-layout .product-price .old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.product-layout .product-price .current-price {
    font-size: 28px;
    color: #d90000;
    font-weight: bold;
}

/* Promotion Box */
.promotion-box {
    background: linear-gradient(135deg, #ff6b6b, #d90000);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(217, 0, 0, 0.2);
}

.promotion-box h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promotion-box h3 i {
    color: #ffeb3b;
}

.promotion-box ul {
    margin: 0;
    padding-left: 20px;
}

.promotion-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.promotion-box strong {
    color: #ffeb3b;
}

.promotion-box .note {
    margin: 15px 0 0 0;
    font-size: 13px;
    font-style: italic;
    opacity: 0.9;
}

/* Product Specs */
.product-specs {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.product-specs h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.product-specs ul {
    margin: 0;
    padding: 0;
}

.product-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.5;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs strong {
    color: #d90000;
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-input {
    width: 60px;
    height: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: bold;
    background: #fff;
}

.qty-input:focus {
    outline: none;
}

.add-to-cart-btn {
    background: #d90000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: #b30000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 0, 0, 0.3);
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.hotline-hn {
    background: #28a745;
    color: #fff;
}

.hotline-hcm {
    background: #007bff;
    color: #fff;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.messenger-btn {
    background: #0078ff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    flex: 1;
    justify-content: center;
    transition: all 0.3s ease;
}

.zalo-btn {
    background: #0068ff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    flex: 1;
    justify-content: center;
    transition: all 0.3s ease;
}

.zalo-btn img {
    width: 20px;
    height: 20px;
}

.social-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-form {
    gap: 10px;
}

.contact-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.contact-form input:focus {
    outline: none;
    border-color: #d90000;
}

.contact-form button {
    background: #d90000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: #b30000;
}

/* Showroom Info */
.showroom-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.showroom-info h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.showroom-info h3 i {
    color: #d90000;
}

.showroom-info ul {
    margin: 0 0 15px 0;
    padding: 0;
}

.showroom-info li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.showroom-info .hotline {
    font-weight: bold;
    color: #333;
}

.showroom-info .hotline a {
    color: #d90000;
    text-decoration: none;
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.feature-item span {
    display: block;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 50px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: #d90000;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #d90000;
}

.tab-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: #333;
    margin-bottom: 20px;
}

.tab-pane p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.tab-pane strong {
    color: #d90000;
}

/* Image Popup */
.image-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.popup-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.popup-close:hover {
    color: #ccc;
}

.popup-prev,
.popup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: color 0.3s ease;
}

.popup-prev {
    left: 20px;
}

.popup-next {
    right: 20px;
}

.popup-prev:hover,
.popup-next:hover {
    color: #ccc;
}

.fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design for Product Detail */
@media (max-width: 1200px) {
    .product-layout {
        gap: 40px;
    }

    .service-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-info h1 {
        font-size: 22px;
    }

    .product-price .current-price {
        font-size: 22px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .social-buttons {
        flex-direction: column;
    }

    .service-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 20px 0;
    }

    .product-layout {
        gap: 30px;
    }

    .product-info h1 {
        font-size: 20px;
    }

    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-price .current-price {
        font-size: 20px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-selector {
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
    }

    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }

    .thumbnail-list {
        justify-content: center;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
    }

    .tab-btn:last-child {
        border-bottom: none;
    }

    .popup-prev,
    .popup-next {
        font-size: 24px;
        padding: 12px;
    }

    .popup-close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 15px 0;
    }

    .product-info h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .promotion-box {
        padding: 15px;
    }

    .promotion-box h3 {
        font-size: 16px;
    }

    .product-specs {
        padding: 15px;
    }

    .showroom-info {
        padding: 20px;
    }

    .tab-content {
        padding: 20px;
    }

    .contact-form {
        flex-direction: column;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Cart Page Styles */
.cart-page {
    padding: 40px 0;
}

.page-title {
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Cart Items Section */
.cart-items-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: #f8f9fa;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    text-transform: uppercase;
}

.cart-table td {
    padding: 20px 15px;
    vertical-align: middle;
}

.cart-item-row {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 15px;
}

.cart-item-row:last-child td {
    border-bottom: none;
}

.cart-content .cart-table .product-details {
    display: flex;
    align-items: center;
    gap: 15px;
    /* height: 100px; */
}

.cart-table .product-image {
    width: 100px;
    height: 100px;
    padding-top: 0;
    /* object-fit: cover; */
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-name {
    flex: 1;
}

.product-name a {
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

.product-name a:hover {
    color: #d90000;
}

.cart-product-price {
    font-weight: 600;
    color: #d90000;
    font-size: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    width: 120px;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #d90000;
    color: white;
}

.quantity-input {
    border: none;
    width: 50px;
    height: 35px;
    text-align: center;
    font-size: 14px;
    outline: none;
}

.product-subtotal {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #ff4757;
    color: white;
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.summary-box h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-row.total {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 18px;
}

.amount {
    font-weight: 600;
    color: #333;
}

.amount.discount {
    color: #28a745;
}

.summary-row.total .amount {
    color: #d90000;
    font-size: 20px;
}

.checkout-btn {
    width: 100%;
    background: #d90000;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 25px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.checkout-btn:hover {
    background: #b50000;
    transform: translateY(-1px);
}

.coupon-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.coupon-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.coupon-input:focus {
    outline: none;
    border-color: #d90000;
}

.apply-coupon-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.apply-coupon-btn:hover {
    background: #218838;
}

/* Cart Actions Bottom */
.cart-actions-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    color: #d90000;
}

.update-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-cart-btn:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 20px 0;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* Ẩn bảng và hiển thị dạng card trên mobile */
    .cart-table table {
        display: none;
    }

    .cart-items-section {
        background: transparent;
        box-shadow: none;
    }

    .cart-item-row {
        display: block;
        background: #fff;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border-bottom: none;
    }

    .cart-item-row td {
        display: block;
        padding: 0;
        border: none;
        margin-bottom: 15px;
    }

    .cart-item-row td:last-child {
        margin-bottom: 0;
    }

    /* Product info section */
    .cart-content .cart-table .product-details {
        gap: 15px;
        margin-bottom: 15px;
    }

    .cart-table .product-image {
        width: 80px;
        height: 80px;
    }

    .product-name a {
        font-size: 16px;
        font-weight: 600;
    }

    /* Price section */
    .cart-product-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        margin-bottom: 15px;
    }

    .cart-product-price::before {
        content: "Giá: ";
        font-weight: normal;
        color: #666;
    }

    /* Quantity section */
    .product-quantity {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .product-quantity::before {
        content: "Số lượng: ";
        font-weight: 600;
        color: #333;
    }

    .quantity-controls {
        width: 110px;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .quantity-input {
        width: 46px;
        height: 32px;
        font-size: 14px;
    }

    /* Subtotal section */
    .product-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        font-weight: 600;
        color: #d90000;
        margin-bottom: 15px;
    }

    .product-subtotal::before {
        content: "Tạm tính: ";
        font-weight: normal;
        color: #333;
    }

    /* Remove button */
    .product-remove {
        text-align: center;
        margin-bottom: 0;
    }

    .remove-btn {
        background: #ff4757;
        color: white;
        border-radius: 6px;
        width: auto;
        height: auto;
        padding: 8px 15px;
        font-size: 14px;
    }

    .remove-btn::after {
        content: " Xóa";
    }

    .summary-box {
        padding: 20px;
    }

    .cart-actions-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .continue-shopping-btn,
    .update-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 15px 0;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Mobile card styling */
    .cart-item-row {
        padding: 15px;
        margin-bottom: 12px;
    }

    .cart-content .cart-table .product-details {
        gap: 12px;
        margin-bottom: 12px;
    }

    .cart-table .product-image {
        width: 70px;
        height: 70px;
    }

    .product-name a {
        font-size: 14px;
        line-height: 1.3;
    }

    .cart-product-price {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .product-quantity {
        margin-bottom: 12px;
    }

    .quantity-controls {
        width: 100px;
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .quantity-input {
        width: 44px;
        height: 28px;
        font-size: 13px;
    }

    .product-subtotal {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .remove-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Summary section */
    .summary-box {
        padding: 15px;
    }

    .summary-box h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .summary-row {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .summary-row.total {
        font-size: 16px;
        margin-top: 15px;
        padding-top: 12px;
    }

    .checkout-btn {
        padding: 12px 20px;
        font-size: 15px;
        margin: 20px 0;
    }

    .coupon-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .coupon-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .coupon-input {
        padding: 10px;
        font-size: 14px;
    }

    .apply-coupon-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Bottom actions */
    .cart-actions-bottom {
        padding: 20px 0;
        gap: 12px;
    }

    .continue-shopping-btn,
    .update-cart-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Trang Thanh Toán */
.payment-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.payment-info {
    flex: 1;
    min-width: 300px;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 5px;
}

.order-summary {
    flex: 1;
    min-width: 300px;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 5px;
    /* z-index: -1; */
}

.payment-info h2,
.order-summary h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.payment-info h2::after,
.order-summary h2::after {
    display: none;
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.payment-form .required {
    color: #d90000;
}

.payment-form input,
.payment-form textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.payment-form input:focus,
.payment-form textarea:focus {
    outline: none;
    border-color: #d90000;
}

.additional-info {
    margin-top: 40px;
}

.additional-info h2 {
    font-size: 20px;
}

.order-details {
    margin-bottom: 30px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: bold;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.product-name {
    flex: 3;
    padding-right: 15px;
}

.order-subtotal,
.order-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.order-total {
    font-weight: bold;
    font-size: 18px;
    border-bottom: none;
}

.payment-methods {
    margin: 30px 0;
}

.payment-method {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.payment-method input[type="radio"] {
    margin-right: 10px;
    width: auto;
}

.payment-description {
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
}

.order-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #d90000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.order-button:hover {
    background-color: #b80000;
}

.privacy-notice {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    /* .payment-wrapper {
      flex-direction: column;
    } */
    .payment-info,
    .order-summary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .payment-info,
    .order-summary {
        padding: 20px;
    }

    .payment-info h2,
    .order-summary h2 {
        font-size: 20px;
    }

    .order-button {
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .payment-form label {
        font-size: 14px;
    }

    .payment-form input,
    .payment-form textarea {
        padding: 10px;
        font-size: 14px;
    }

    .order-header,
    .order-item,
    .order-subtotal,
    .order-total {
        font-size: 14px;
    }

    .order-total {
        font-size: 16px;
    }

    .payment-method {
        padding: 10px;
    }

    .payment-description {
        font-size: 12px;
    }

    .privacy-notice {
        font-size: 12px;
    }
}

/* CSS cho thông báo */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background-color: #4CAF50;
    color: white;
}

.notification.error {
    background-color: #F44336;
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-content i {
    margin-right: 10px;
    font-size: 20px;
}
