:root {
    --bg-dark: #1a1a1a;
    --bg-sidebar: #222222;
    --bg-content: #f4f6f8; /* Sáng hơn 1 chút cho cảm giác sạch sẽ */
    --red: #0066FF; /* Sport Red cao cấp hơn */
    --blue: #0066FF; /* Thêm biến blue */
    --blue-hover: #005ce6;
    --text-light: #ffffff;
    --text-dark: #2c3e50; /* Xanh đen sang trọng hơn 333 */
    --border-color: rgba(0, 0, 0, 0.08);
    --white: #ffffff;
    --font-main: 'Roboto', sans-serif;
    
    /* Variables for premium shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-content);
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .layout-wrapper {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1450px; /* Wider to accommodate 3 columns */
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= HEADER ================= */
.top-red-line {
    height: 5px;
    background-color: var(--blue);
    width: 100%;
}

.top-nav {
    background-color: rgba(26, 26, 26, 0.85); /* Trong suốt nhẹ */
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 50px;
}

.nav-home-icon {
    font-size: 1.2rem;
    padding: 0 15px;
    color: var(--white);
    transition: 0.3s;
}

.nav-home-icon:hover {
    color: var(--blue);
}

.nav-divider {
    width: 1px;
    height: 25px;
    background-color: #444;
    margin: 0 5px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    color: #ccc;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background-color: rgba(255,255,255,0.05);
}

.nav-link.active {
    border-bottom: 3px solid var(--blue);
}

.nav-right {
    margin-left: auto;
}

.cart-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--blue);
}

/* ================= LAYOUT ================= */
.layout-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* SIDEBAR */
.sidebar {
    flex: 0 0 280px;
    background-color: #222222;
    color: var(--text-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    background-color: #0066FF; /* Đỏ đậm chuẩn */
    color: var(--white);
    padding: 16px 20px;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.sidebar-header i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.accordion-menu {
    list-style: none;
}

.accordion-item {
    border-bottom: 1px solid #333;
}

.accordion-title {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    background-color: #1a1a1a;
    color: #ffffff;
    transition: 0.3s;
}

.accordion-title:hover {
    background-color: #111111;
}

.accordion-submenu {
    list-style: none;
    background-color: #222222;
    display: none;
}

.accordion-submenu li {
    border-bottom: 1px solid #2a2a2a;
}

.accordion-submenu li:last-child {
    border-bottom: none;
}

.accordion-submenu li a {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 30px;
    font-size: 1rem;
    color: #cccccc;
    transition: 0.3s;
}

.accordion-submenu li a:hover {
    color: var(--white);
    background-color: #2a2a2a;
}

.accordion-submenu li a i {
    color: #d31e1e;
    margin-right: 12px;
    font-size: 0.95rem;
    font-weight: 900;
}

/* Bestseller in Sidebar */
.bestseller-list {
    padding: 15px;
}

.bs-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bs-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.bs-info {
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.3;
}

/* CONTENT */
.content {
    flex: 1;
    min-width: 0;
}

/* RIGHT SIDEBAR */
.right-sidebar {
    flex: 0 0 280px;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.right-widget {
    margin-bottom: 25px;
}

.widget-title {
    background-color: #f1f1f1;
    color: var(--bg-dark);
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 4px solid var(--blue);
    margin-bottom: 15px;
}

.widget-content {
    padding: 0 15px 15px;
}

.widget-item {
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.widget-item:hover {
    opacity: 0.8;
}

.widget-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.widget-item p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
}

/* FIXED CONTACT BAR BOTTOM RIGHT */
.fixed-contact-bar {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    gap: 10px;
}

.contact-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.05);
    color: var(--white);
}

.contact-item.fb { background-color: #1877F2; }
.contact-item.zalo { background-color: #0068FF; font-weight: bold; font-size: 1rem; }
.contact-item.tele { background-color: #0088CC; }
.contact-item.call { background-color: #28a745; }


.hero-slider {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5s ease-in-out;
    transform: scale(1.05); /* Slight Ken Burns effect */
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: var(--white);
    z-index: 2;
    pointer-events: none; /* Let clicks pass through if needed */
}

.hero-overlay h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--white);
    text-transform: uppercase;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active, .dot:hover {
    background: var(--blue);
    width: 25px;
    border-radius: 5px;
}

.section-header {
    border-bottom: 2px solid var(--blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 1.3rem;
    color: var(--bg-dark);
    text-transform: uppercase;
}

/* ================= CONSULTANT SECTION ================= */
.consultant-section {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.consultant-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--bg-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.consultant-title i {
    color: #0056b3;
    margin-right: 8px;
}

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

.consultant-card {
    background: #eff4ff;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #d0e1ff;
}

.consultant-info {
    display: flex;
    flex-direction: column;
}

.consultant-name {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.consultant-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.95rem;
}

.c-phone {
    color: #0056b3;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.c-phone:hover {
    text-decoration: underline;
}

.c-zalo {
    color: #128c7e;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.c-zalo:hover {
    text-decoration: underline;
}

.c-call-btn {
    background: #f26d6d;
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.c-call-btn:hover {
    background: var(--blue);
    color: white;
}

/* Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Horizontal Scroll for Mobile Shopee Style */
.product-slider-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.product-slider-horizontal::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.product-slider-horizontal .product-card {
    min-width: 185px;
    width: 185px;
    flex-shrink: 0;
    scroll-snap-align: start;
    margin-bottom: 0;
}
.product-slider-horizontal .product-title {
    font-size: 0.9rem;
    height: 40px; /* Limit to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-slider-horizontal .product-price {
    font-size: 1rem;
}
.product-slider-horizontal .btn-primary {
    padding: 8px;
    font-size: 0.85rem;
}

.product-card {
    background: var(--white);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
    will-change: transform, box-shadow;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--blue);
    color: var(--white);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
    z-index: 2;
    font-weight: bold;
}

.product-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa; /* Nền xám nhạt cho ảnh trong suốt */
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

.product-info {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    height: 42px;
    overflow: hidden;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(230, 32, 32, 0.3);
}

.btn-primary:hover {
    background-color: var(--blue-hover);
    box-shadow: 0 6px 16px rgba(230, 32, 32, 0.4);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--bg-sidebar);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 5px solid var(--blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* Shopee Style Top Badges */
.shopee-top-badge {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    font-weight: bold;
    font-size: 0.65rem;
    padding: 4px 6px 8px 6px;
    border-radius: 8px 0 0 0;
    z-index: 10;
    text-align: center;
    line-height: 1.1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    min-width: 32px;
}
.shopee-top-badge span {
    font-size: 0.9rem;
    display: block;
}
.top-1 { background: #ff7600; }
.top-2 { background: #ffae00; }
.top-3 { background: #a67c00; }
.top-other { background: #ff4757; }

.product-price-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

/* Shopee Extra Badges */
.shopee-mall-badge {
    background: #d0011b;
    color: white;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}
.shopee-discount-badge {
    background: #fcebeb;
    color: #ee4d2d;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 2px;
}
.shopee-promo-label {
    display: inline-block;
    border: 1px solid #ee4d2d;
    color: #ee4d2d;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 2px;
    margin-top: 5px;
    text-align: left;
}
.shopee-rating-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.75rem;
}
.shopee-stars {
    color: #ffce3d;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid #ffce3d;
    padding: 1px 4px;
    border-radius: 2px;
    background: #fff8e1;
    color: #222;
}
.shopee-stars i { color: #ffce3d; }
.product-sold {
    color: #222;
}

/* Responsive */
@media (max-width: 992px) {
    .layout-wrapper {
        display: flex;
        flex-direction: column;
    }
    .sidebar {
        order: 1;
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    .sidebar-header {
        cursor: pointer;
        justify-content: space-between;
    }
    .sidebar-header::after {
        content: '\f0d7'; /* fa-caret-down */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 1.2rem;
        transition: transform 0.3s;
    }
    .sidebar-header.active::after {
        transform: rotate(180deg);
    }
    .accordion-menu {
        display: none;
    }
    .accordion-menu.show {
        display: block;
    }
    .content {
        order: 2;
        width: 100%;
    }
    .right-sidebar {
        order: 3;
        width: 100%;
    }
    .top-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    .hide-mobile {
        display: none !important;
    }
    .consultant-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= LIVE CHAT WIDGET ================= */
.chat-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(228, 0, 43, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: 0.3s;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.chat-header {
    background: var(--blue);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.chat-close {
    cursor: pointer;
    font-size: 18px;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg.customer {
    align-self: flex-end;
    background: #0084ff;
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-msg.admin {
    align-self: flex-start;
    background: #e4e6eb;
    color: black;
    border-bottom-left-radius: 2px;
}

.chat-msg img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 5px;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 0.95rem;
    background: transparent;
}

.chat-send-btn, .chat-file-btn {
    background: none;
    border: none;
    color: var(--blue);
    font-size: 20px;
    cursor: pointer;
}

.chat-form-overlay {
    position: absolute;
    top: 54px; left: 0; right: 0; bottom: 0;
    background: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: center;
}

@media (max-width: 400px) {
    .chat-window {
        width: 90%;
        right: 5%;
        bottom: 80px;
        height: 450px;
    }
}

/* ================= PRODUCT DETAIL ================= */
.product-detail-section { padding: 40px 15px; }
.product-detail-wrapper { 
    display: flex; 
    gap: 40px; 
    background: var(--white); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    align-items: flex-start;
}
.product-gallery { flex: 1; min-width: 0; max-width: 50%; }
.main-img img { width: 100%; border-radius: 8px; margin-bottom: 15px; border: 1px solid #eee; object-fit: contain; background: #f8f9fa; }
.thumbnail-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.thumb-img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; opacity: 0.6; }
.thumb-img.active, .thumb-img:hover { border-color: var(--blue); opacity: 1; }
.product-meta { flex: 1; min-width: 0; }
.product-meta h1 { font-size: 2rem; margin-bottom: 15px; color: var(--bg-dark); line-height: 1.3; }
.product-status { color: var(--blue); background: #ffeded; display: inline-block; padding: 5px 15px; border-radius: 20px; font-weight: 500; font-size: 0.9rem; margin-bottom: 20px; }
.product-meta .price { font-size: 2rem; color: var(--blue); font-weight: 700; margin-bottom: 20px; }
.product-description { color: #555; line-height: 1.6; margin-bottom: 25px; font-size: 0.95rem; }
.product-specs { list-style: none; margin-bottom: 30px; border-top: 1px solid #eee; padding-top: 20px; }
.product-specs li { padding: 12px 0; border-bottom: 1px solid #eee; display: flex; font-size: 0.95rem; }
.product-specs li span:first-child { font-weight: 600; width: 180px; color: var(--bg-dark); }
.product-specs li span:last-child { color: #555; flex: 1; }
.action-row { display: flex; gap: 15px; align-items: stretch; margin-top: 10px; }

/* ================= SCROLL TO TOP/BOTTOM MOBILE ================= */
.scroll-bar-mobile {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.scroll-btn {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.scroll-btn:hover {
    background-color: var(--blue);
    color: var(--white);
}
.qty-input { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; width: 120px; }
.qty-btn { width: 40px; background: #f9f9f9; border: none; font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.qty-btn:hover { background: #eee; }
.qty-input input { flex: 1; min-width: 0; text-align: center; border: none; outline: none; font-size: 1rem; font-weight: 500; }

@media (max-width: 576px) {
    .product-detail-wrapper { flex-direction: column; padding: 20px 15px; }
    .product-gallery, .product-meta { max-width: 100%; }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-info {
        padding: 10px;
    }
    .product-title {
        font-size: 0.9rem;
    }
    .product-price {
        font-size: 1rem;
    }
}

/* ================= CART & CHECKOUT ================= */
.cart-section { padding: 40px 15px; }
.cart-section h1 { font-size: 1.8rem; margin-bottom: 30px; color: var(--bg-dark); font-weight: 700; }
.checkout-wrapper { display: flex; gap: 40px; align-items: flex-start; }
.checkout-wrapper > div:first-child { flex: 1; min-width: 0; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.cart-table thead { background: #111; color: var(--white); }
.cart-table th, .cart-table td { padding: 20px 15px; text-align: left; border-bottom: 1px solid #eee; vertical-align: middle; }
.cart-table th { font-weight: 600; font-size: 0.95rem; }
.cart-summary { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex: 0 0 350px; height: fit-content; }
.cart-summary h3 { margin-bottom: 25px; color: var(--bg-dark); font-size: 1.2rem; text-align: center; font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 20px; color: #555; font-size: 0.95rem; }
.summary-total { font-weight: bold; font-size: 1.3rem; color: var(--blue); border-top: 1px solid #eee; padding-top: 20px; margin-top: 20px; }
.cart-table img { width: 60px; height: 60px; object-fit: contain; background: #f8f9fa; border-radius: 4px; border: 1px solid #eee; }
.cart-item-info { display: flex; align-items: center; gap: 15px; }
.cart-item-info span { font-weight: 500; font-size: 0.95rem; color: var(--bg-dark); }
.checkout-form { flex: 1; background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--bg-dark); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }

@media (max-width: 768px) {
    .product-detail-wrapper, .checkout-wrapper { flex-direction: column; padding: 15px; }
    .cart-summary { width: 100%; flex: auto; }
    
    /* Scrollable Cart Table on Mobile */
    .checkout-wrapper > div:first-child { 
        width: 100%; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 10px;
    }
    .cart-table { min-width: 550px; }
    .product-gallery { max-width: 100%; width: 100%; }
    .main-img img { 
        width: 100%; 
        max-width: 480px; 
        aspect-ratio: 1/1; /* Đảm bảo tỷ lệ vuông chuẩn 480x480 */
        margin: 0 auto; 
        display: block; 
    }
    .thumbnail-row { justify-content: center; }
    .thumb-img { width: 65px; height: 65px; }
}

/* ================= ANIMATIONS ================= */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ================= NEXT.JS PORTED STYLES ================= */
.glass {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-premium {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/hero.png'); /* Cần đảm bảo có ảnh này hoặc thay thế */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* OVERRIDE OLD NAV STYLES FOR PREMIUM LOOK */
.top-nav.glass {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: none !important;
}

.top-nav.glass .nav-link {
    background: transparent !important;
    border: none !important;
    color: #ccc !important;
    transition: 0.3s !important;
    font-weight: 500 !important;
}

.top-nav.glass .nav-link:hover {
    color: white !important;
}

.top-nav.glass .nav-link.active {
    color: white !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--blue) !important;
}

.top-nav.glass .logo-premium {
    text-decoration: none !important;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    z-index: 1;
}

.hero-subtitle {
    display: inline-block;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.glow-btn {
    box-shadow: 0 0 20px rgba(230,0,18,0.5);
    transition: all 0.3s ease;
}

.glow-btn:hover {
    box-shadow: 0 0 30px rgba(230,0,18,0.8);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: white;
    color: black;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cat-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    transition: 0.3s;
}

.cat-card:hover .cat-overlay {
    background: linear-gradient(to top, rgba(230,0,18,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cat-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
}

.cat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cat-info p {
    color: #ccc;
    font-size: 0.9rem;
}

.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.combo-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px 30px;
    transition: 0.3s;
}

.combo-card:hover {
    border-color: var(--blue);
}

.combo-card.premium:hover {
    transform: translateY(-15px);
}

/* Override old product card for new look */
.product-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
    border: none;
}

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

.product-img {
    height: 250px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: black;
    height: auto !important; /* Xoá height cố định gây lỗi */
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-premium { min-height: 500px; height: 70vh; }
    .combo-grid { grid-template-columns: 1fr; }
}

/* ================= DROPDOWN MENU & HEADER TWEAKS ================= */
.top-red-line {
    display: none !important; /* Xóa vạch đỏ cũ để Header liền mạch */
}

.dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    min-width: 240px;
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
}

.dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glass-menu {
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
}

.dropdown-item {
    display: flex;
    padding: 12px 20px;
    color: #bbb;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.2s;
    align-items: center;
    gap: 12px;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    padding-left: 25px; /* Hiệu ứng lùi chữ mượt mà */
}

.dropdown-item i {
    color: var(--blue);
    width: 20px;
    text-align: center;
    transition: 0.2s;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* ================= FEATURES SECTION ================= */
.features-section {
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 20px 10px;
}

.feature-icon {
    width: 65px;
    height: 65px;
    background-color: rgba(230, 0, 24, 0.06);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px auto;
    transition: 0.3s;
}

.feature-card:hover .feature-icon {
    background-color: var(--blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(230, 0, 24, 0.3);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

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

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

/* ===== MODERN CATEGORY UI (WOW EFFECT) ===== */
.shopee-cat-item {
    display: flex;
    align-items: center;
    background: #ffffff !important;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #333 !important;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #f0f0f0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    opacity: 0;
    transform: translateY(30px);
}

.shopee-cat-item.animate-reveal {
    animation: revealUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.shopee-cat-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
}

.shopee-cat-item i {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.shopee-cat-item:hover i {
    transform: scale(1.25);
}

