/* ======================================================== */
/* 1. CORE VARIABLES & RESET */
/* ======================================================== */
:root {
    /* --- FONTS --- */
    --font-primary: 'Quicksand', sans-serif;
    
    /* GHI ĐÈ biến font của Bootstrap */
    --bs-body-font-family: var(--font-primary);
    --bs-font-sans-serif: var(--font-primary);

    /* --- COLORS: Main Theme (Guitar SV) --- */
    --primary: #FF6905;
    --primary-hover: #e65c00;
    --light: #F5F5F5;
    --dark: #353535;
    --text-color: #333;
    --bg-body: #fbfbf9;

    /* --- COLORS: Flash Sale Section --- */
    --flash-bg: #fff;
    --flash-price: #2c2c2c;
    --flash-timer-bg: #8b2e2e;
}

body {
    background-color: var(--bg-body); 
    font-family: var(--font-primary) !important;
    font-weight: 500;
    color: var(--text-color);
    /* QUAN TRỌNG: Ngăn thanh cuộn ngang do full-bleed hack */
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary) !important;
    font-weight: 700;
}

/* --- Utilities --- */
.fw-medium { font-weight: 500 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-black { font-weight: 900 !important; }

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* ======================================================== */
/* 2. COMPONENTS (BUTTONS & NAV) */
/* ======================================================== */

/* --- Buttons --- */
.btn {
    font-weight: 500;
    transition: .5s;
    border-radius: 4px;
}

.btn.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}
.btn.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #FFFFFF;
}

.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* --- Navbar (Custom Menu) --- */
.main-navigation {
    background-color: var(--bg-body) !important;
}

.container-fluid.bg-white {
    background-color: var(--bg-body) !important;
}

.custom-menu .nav-link {
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    padding: 15px 15px !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    background: transparent !important;
}

.custom-menu .nav-link:hover,
.custom-menu .nav-link.active,
.custom-menu .dropdown:hover .nav-link {
    color: var(--primary) !important;
}

/* Xóa gạch chân */
.custom-menu .nav-link::after {
    display: none !important;
}
/* Messenger */
.messenger-float {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background-color: #0084FF; /* Màu xanh đặc trưng Messenger */
        color: white;
        border-radius: 50%;
        text-align: center;
        font-size: 30px;
        line-height: 60px; /* Căn giữa icon theo chiều dọc */
        box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
        z-index: 9999;
        transition: transform 0.3s;
    }

    .messenger-float:hover {
        transform: scale(1.1); /* Hiệu ứng phóng to khi hover */
        color: white;
    }
/* Messenger */


/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-top: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0;
    margin-top: 0;
    background-color: var(--bg-body) !important;
    z-index: 9999 !important;
}

/* Đảm bảo dropdown không bị che khuất */
.header, .navbar, .top-bar {
    overflow: visible !important; 
}

/* Chỉ áp dụng hiệu ứng hover trên màn hình máy tính (lớn hơn 992px) */
@media (min-width: 992px) {
    .custom-dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Tinh chỉnh khoảng cách nếu cần */
    }
}
/* Khi hover vào khối .dropdown, hiển thị menu bên trong */
.custom-hover-dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Giúp chuột di chuyển mượt mà từ icon xuống menu */
}

/* Tùy chỉnh thêm (nếu cần) để menu đẹp hơn */
.dropdown-menu {
    border-radius: 8px; /* Bo góc */
    min-width: 250px;   /* Chiều rộng tối thiểu để chứa địa chỉ */
    padding: 10px;
    animation: fadeIn 0.3s; /* Hiệu ứng hiện ra từ từ */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.custom-menu .dropdown-toggle::after {
    display: inline-block !important; 
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    border: none !important;
    width: 20px !important; 
    text-align: center !important;
    margin-left: 5px;
    vertical-align: middle;
    font-size: 14px;
    color: inherit;
    transform-origin: center !important; 
    transition: transform 0.3s ease;
}

.custom-menu .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg) !important;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
    .custom-menu .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

/* ======================================================== */
/* 3. STANDARD SECTIONS (Header, About, Team, etc.) */
/* ======================================================== */

/* Header Carousel */
.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}
.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}
.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item { position: relative; min-height: 500px; }
    .header-carousel .owl-carousel-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
    .header-carousel .owl-carousel-item h5, .header-carousel .owl-carousel-item p { font-size: 14px !important; font-weight: 400 !important; }
    .header-carousel .owl-carousel-item h1 { font-size: 30px; font-weight: 600; }
}

/* Section Title */
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}
.section-title.text-start h1 { padding-left: 0; }
.section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
}
.section-title h1::before { left: 0; }
.section-title h1::after { right: 0; }
.section-title.text-start h1::before { display: none; }

/* Responsive Layout Helpers */
@media (min-width: 992px) {
    .container.about, .container.feature, .container.quote, .container.contact { max-width: 100% !important; }
    .about-text, .feature-text, .quote-text, .contact-text { padding-right: calc(((100% - 960px) / 2) + .75rem); }
    .feature-text, .contact-text { padding-left: calc(((100% - 960px) / 2) + .75rem); padding-right: 0; }
}
@media (min-width: 1200px) {
    .about-text, .quote-text { padding-right: calc(((100% - 1140px) / 2) + .75rem); }
    .feature-text, .contact-text { padding-left: calc(((100% - 1140px) / 2) + .75rem); }
}
@media (min-width: 1400px) {
    .about-text, .quote-text { padding-right: calc(((100% - 1320px) / 2) + .75rem); }
    .feature-text, .contact-text { padding-left: calc(((100% - 1320px) / 2) + .75rem); }
}

/* Service & Portfolio & Team (General Item Styles) */
.service-item img, .portfolio-item img, .team-item img { transition: .5s; }
.service-item:hover img, .portfolio-item:hover img, .team-item:hover img { transform: scale(1.1); }

/* Portfolio Filter */
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}
#portfolio-flters li:hover, #portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0; height: 0; bottom: 0; left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}
.portfolio-item:hover .portfolio-overlay { width: 100%; height: 100%; left: 0; }
.portfolio-item .portfolio-overlay .btn { opacity: 0; }
.portfolio-item:hover .portfolio-overlay .btn { opacity: 1; }

/* Team Social */
.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%; left: -38px;
    transform: translateY(-50%);
    display: flex; flex-direction: column;
    background: #FFFFFF; transition: .5s;
}
.team-item .team-social .btn { color: var(--primary); background: #FFFFFF; }
.team-item .team-social .btn:hover { color: #FFFFFF; background: var(--primary); }
.team-item:hover .team-social { left: 0; }

/* Testimonial */
.testimonial-carousel::before, .testimonial-carousel::after {
    position: absolute; content: ""; top: 0; height: 100%; width: 0; z-index: 1;
}
.testimonial-carousel::before { left: 0; background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); }
.testimonial-carousel::after { right: 0; background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); }

@media (min-width: 768px) { .testimonial-carousel::before, .testimonial-carousel::after { width: 200px; } }
@media (min-width: 992px) { .testimonial-carousel::before, .testimonial-carousel::after { width: 300px; } }

.testimonial-carousel .owl-item .testimonial-text { border: 5px solid var(--light); transform: scale(.8); transition: .5s; }
.testimonial-carousel .owl-item.center .testimonial-text { transform: scale(1); }

.testimonial-carousel .owl-nav {
    position: absolute; width: 350px; top: 10px; left: 50%; transform: translateX(-50%);
    display: flex; justify-content: space-between; opacity: 0; transition: .5s; z-index: 1;
}
.testimonial-carousel:hover .owl-nav { width: 300px; opacity: 1; }
.testimonial-carousel .owl-nav .owl-prev, .testimonial-carousel .owl-nav .owl-next {
    position: relative; color: var(--primary); font-size: 45px; transition: .5s;
}
.testimonial-carousel .owl-nav .owl-prev:hover, .testimonial-carousel .owl-nav .owl-next:hover { color: var(--dark); }

/* ======================================================== */
/* 4. FLASH SALE PRODUCTS (HOMEPAGE) */
/* ======================================================== */

/* Wrapper: Break out of container (Full Bleed) */
.flash-sale-wrapper {
    background-color: var(--light);
    padding: 20px 0;
    margin-left:  calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left:  calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.flash-sale-container {
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--flash-bg);
    padding: 40px 5vw;
}

.flash-sale-title {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Timer */
.flash-countdown { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }
.flash-time-box {
    display: flex; flex-direction: column; align-items: center;
    background-color: var(--flash-timer-bg); color: white;
    padding: 15px 20px; border-radius: 8px; min-width: 80px;
}
.flash-time { font-size: 32px; font-weight: bold; line-height: 1; }
.flash-time-label { font-size: 12px; margin-top: 5px; text-transform: capitalize; }

/* Grid to Carousel Transformation */
.flash-products-wrapper { position: relative; margin-bottom: 30px; }

.flash-products-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    padding: 0 50px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.flash-products-grid::-webkit-scrollbar { display: none; }

/* Product Card Sizing */

.flash-product-card {
    position: relative; /* ← Fix badge trôi */
    background: #fff;
    overflow: hidden;
}
.flash-sale-wrapper .flash-product-card {
    flex: 0 0 auto !important;
    width: 280px !important;
    min-width: 280px !important;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.flash-product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

/* Navigation Arrows */
.flash-nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); color: white;
    border: none; width: 40px; height: 40px; border-radius: 50%;
    font-size: 24px; cursor: pointer; transition: background-color 0.3s;
    z-index: 10; display: flex; align-items: center; justify-content: center;
}
.flash-nav-arrow:hover { background-color: rgba(255, 154, 61, 0.7); }
.flash-nav-arrow.arrow-left { left: 0; }
.flash-nav-arrow.arrow-right { right: 0; }

/* Product Image */
.flash-image-wrapper { position: relative; overflow: hidden; }
.flash-product-link {
    display: block; position: relative; overflow: hidden;
    background: #f9f9f9; aspect-ratio: 2 / 3;
}
.flash-product-image {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f9f9f9; /* Background cho khung vuông */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Default: Guitar images (crop to fill) */
.flash-image-wrapper .flash-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop ảnh guitar */
    object-position: center;
}

/* Accessory images (contain - show full image) */
.flash-image-wrapper[style*="aspect-ratio: 1 / 1"] {
    background: #ffffff; /* Nền trắng cho phụ kiện */
    border: 1px solid #f0f0f0;
}

.flash-image-wrapper[style*="aspect-ratio: 1 / 1"] .flash-product-image {
    object-fit: contain !important; /* Hiển thị đầy đủ ảnh phụ kiện */
    object-position: center !important; /* Căn giữa ảnh */
    padding: 0px; /* Padding để ảnh không sát viền */
    width: 100% !important;
    height: 100% !important;
}

/* Hover image cũng áp dụng tương tự */
.flash-image-wrapper[style*="aspect-ratio: 1 / 1"] .flash-img-hover {
    object-fit: contain !important;
    object-position: center !important;
    padding: 5px;
    width: 100% !important;
    height: 100% !important;
}
.flash-img-main { position: relative; z-index: 1; }
.flash-img-hover { position: absolute; top: 0; left: 0; opacity: 0; z-index: 2; }
.flash-product-card:hover .flash-img-hover { opacity: 1; }
.flash-product-card:hover .flash-product-image { transform: scale(1.05); }

/* Badges */
.flash-discount-badge {
    z-index: 10; /* Để nó nổi lên trên ảnh */
    position: absolute; top: 5px; left: 5px;
    background-color: var(--flash-price); color: white;
    padding: 4px 10px; font-size: 11px; font-weight: 600; z-index: 3;
}
.flash-season-badge {
    position: absolute; top: 0; right: 0;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white; padding: 6px 10px; font-size: 9px; text-align: left;
    z-index: 3; min-width: 140px;
}
.flash-season-text { display: block; font-weight: 700; line-height: 1.1; margin-bottom: 2px; font-size: 10px; }
.flash-season-date { display: block; font-size: 8px; opacity: 0.95; }
.flash-season-price { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; }

/* Actions */
.flash-product-actions {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease; z-index: 4;
    background: #fff; border-top: 1px solid #eee; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); border-radius: 5px;
}
.flash-product-card:hover .flash-product-actions { opacity: 1; transform: translateY(0); }

.flash-action-btn {
    background-color: #fff; border: none; border-right: 1px solid #eee;
    height: 35px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #333; transition: all 0.2s ease; outline: none;
}
.flash-action-btn:last-child { border-right: none; }
.flash-action-btn:hover { background-color: #f9f9f9; color: var(--primary, #FF6905); }
.flash-action-btn.btn-wishlist.active i { font-weight: 900; color: #FF6905; }

@media (max-width: 991px) {
    .flash-product-actions { display: none !important; }
}

/* Info */
.flash-product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.flash-product-name {
    font-size: 13px; font-weight: 500; color: #333;
    margin-bottom: 6px; line-height: 1.3; text-transform: uppercase;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.flash-product-name a { color: #333; text-decoration: none; transition: color 0.3s; }
.flash-product-name a:hover { color: #8b4513; }

/* Meta & Color & Rating */
.flash-product-meta { font-size: 11px; color: #999; margin-bottom: 6px; }
.flash-sku { font-weight: 500; color: #666; }
.flash-color-options { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.flash-color-dot {
    width: 20px; height: 20px; border-radius: 2px; border: 1px solid #ddd;
    cursor: pointer; transition: all 0.3s; position: relative;
}
.flash-color-dot:hover, .flash-color-dot.active { border-color: var(--flash-price); border-width: 2px; }
.flash-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.flash-stars { color: #ffa500; font-size: 11px; letter-spacing: 1px; }
.flash-reviews { font-size: 11px; color: #999; }

/* Price & Stock */
.flash-price-container { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.flash-price { font-size: 16px; font-weight: 700; color: var(--flash-price); }
.flash-original-price { font-size: 13px; color: #999; text-decoration: line-through; }

.flash-stock-info { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 11px; color: #666; }
.flash-fire-icon { font-size: 13px; }
.flash-stock-info strong { color: #8b4513; }
.flash-progress-bar { width: 100%; height: 4px; background-color: #e0e0e0; border-radius: 2px; overflow: hidden; }
.flash-progress-fill { height: 100%; background-color: var(--flash-price); transition: width 0.3s; }
.flash-stock-warning { background-color: #fff3cd; color: #856404; padding: 4px 8px; margin-top: 6px; border-radius: 3px; font-size: 10px; text-align: center; }

/* View All Btn */
.flash-view-all-container { text-align: center; }
.flash-view-all-btn {
    background-color: var(--flash-price); color: white; border: none;
    padding: 14px 40px; font-size: 14px; border-radius: 4px;
    cursor: pointer; transition: background-color 0.3s;
    font-weight: 500; text-decoration: none; display: inline-block;
}
.flash-view-all-btn:hover { background-color: #1a1a1a; }

/* --- Flash Sale Responsive --- */

/* 2K/4K Monitors */
@media (min-width: 2000px) {
    .flash-sale-wrapper .flash-product-card { width: 360px !important; min-width: 360px !important; }
    .flash-products-grid { gap: 28px; padding: 0 80px; }
    .flash-sale-title { font-size: 56px; }
}

/* Large Desktop */
@media (min-width: 1600px) {
    .flash-sale-wrapper .flash-product-card { width: 320px !important; min-width: 320px !important; }
    .flash-products-grid { gap: 24px; padding: 0 60px; }
}

/* Standard Laptop (< 1200px) */
@media (max-width: 1200px) {
    .flash-sale-wrapper .flash-product-card { width: 260px !important; min-width: 260px !important; }
}

/* Tablet (< 900px) */
@media (max-width: 900px) {
    .flash-sale-wrapper .flash-product-card { width: 240px !important; min-width: 240px !important; }
    .flash-products-grid { padding: 0 30px; }
    .flash-sale-title { font-size: 36px; }
}

/* Mobile (< 600px) */
@media (max-width: 600px) {
    .flash-sale-wrapper { padding: 10px 0; }
    .flash-sale-container { padding: 20px 8px; }
    
    .flash-products-grid { padding: 0 40px; gap: 10px; }
    /* UX: Đảm bảo hiện 2 cards hoặc 1.5 cards để user biết có thể scroll */
    .flash-sale-wrapper .flash-product-card { width: calc(50vw - 30px) !important; min-width: calc(50vw - 30px) !important; }
    
    .flash-sale-title { font-size: 24px; margin-bottom: 20px; }
    .flash-countdown { gap: 6px; margin-bottom: 30px; }
    .flash-time-box { padding: 8px 12px; min-width: 55px; }
    .flash-time { font-size: 20px; }
    .flash-time-label { font-size: 10px; }
    
    .flash-nav-arrow { width: 32px; height: 32px; font-size: 18px; }
    .flash-nav-arrow.arrow-left { left: 5px; }
    .flash-nav-arrow.arrow-right { right: 5px; }
    
    .flash-product-name { font-size: 11px; margin-bottom: 4px; }
    .flash-product-info { padding: 10px; }
    .flash-price { font-size: 14px; }
    .flash-action-btn { width: 32px; height: 32px; font-size: 14px; }
}

/* ======================================================== */
/* 5. PRODUCT DETAIL PAGE (NEW) */
/* ======================================================== */

/* Reset & Base */
.pd-container {
    max-width: 1400px; margin: 0 auto; padding: 40px 20px;
}

/* Breadcrumb */
.pd-breadcrumb { padding: 20px 0; font-size: 13px; color: #666; }
.pd-breadcrumb a { color: #666; text-decoration: none; margin: 0 5px; }
.pd-breadcrumb a:hover { color: #2c2c2c; }

/* Product Detail Layout */
.pd-layout {
    display: grid;
    /* CHỈNH SỬA: Cột ảnh (40%) - Cột thông tin (60%) để ảnh nhỏ lại */
    grid-template-columns: 40% 60%; 
    gap: 40px;
    margin-top: 20px;
}

/* Left Side - Image Gallery */
.pd-gallery { position: sticky; top: 20px; height: fit-content; }
.pd-season-banner {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white; padding: 12px 20px; text-align: center;
    margin-bottom: 20px; font-weight: 600; font-size: 15px; letter-spacing: 0.5px;
}
.pd-main-image-wrap {
    position: relative;
    width: 100%;
    
    /* 1. Đặt khung ảnh chính là hình VUÔNG */
    aspect-ratio: 1 / 1; 
    
    /* Giới hạn kích thước tối đa (để không quá to trên màn hình Desktop) */
    max-width: 450px; 
    
    /* 2. Màu nền trắng (để tiệp màu với khoảng trắng thừa ra của ảnh) */
    background-color: #fff; 
    
    margin: 0 auto 15px auto; /* Căn giữa */
    overflow: hidden;
    border: 1px solid #eee;
    
    /* Căn giữa ảnh bên trong (quan trọng khi ảnh nhỏ hơn khung) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-main-image {
    width: 100%;
    height: 100%;
    
    /* 3. QUAN TRỌNG: Thu nhỏ ảnh để vừa khít khung (không bị cắt) */
    object-fit: contain; 
}
.pd-thumbnails {
    display: flex !important;       /* Bắt buộc dùng Flexbox */
    flex-direction: row !important; /* Bắt buộc xếp hàng NGANG */
    justify-content: center;        /* Căn giữa */
    flex-wrap: wrap;                /* Tự xuống dòng nếu quá nhiều ảnh */
    gap: 10px;                      /* Khoảng cách giữa các ảnh */
    margin-top: 15px;
    width: 100%;
}

.pd-thumbnail {
    flex: 0 0 60px;                 /* Cố định cứng chiều rộng 60px, không cho co giãn */
    width: 60px;
    height: 60px;
    
    background-color: #fff;         /* Nền trắng */
    border: 1px solid #e5e5e5;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    opacity: 0.6;
    border-radius: 4px;
    
    /* Căn giữa ảnh trong khung */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hiệu ứng khi di chuột hoặc được chọn */
.pd-thumbnail:hover,
.pd-thumbnail.active {
    border-color: var(--primary, #FF6905);
    border-width: 2px;
    opacity: 1;
}

.pd-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Thu nhỏ ảnh vừa khung, không bị cắt */
    display: block;
}

.pd-img-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9); border: none; width: 45px; height: 45px;
    border-radius: 50%; font-size: 24px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.pd-img-nav:hover { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.pd-img-prev { left: 15px; }
.pd-img-next { right: 15px; }

.pd-double-banner {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center;
}
.pd-banner-left { display: flex; flex-direction: column; }
.pd-banner-title { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.pd-banner-subtitle { font-size: 11px; opacity: 0.9; }
.pd-banner-price { font-size: 28px; font-weight: 700; }

/* Right Side - Product Info */
.pd-info { padding-top: 0; }
.pd-name {
    font-size: 28px; font-weight: 600; color: #333; margin-bottom: 15px;
    text-transform: uppercase; line-height: 1.3;
}
.pd-meta { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; margin-bottom: 15px; font-size: 13px; }
.pd-meta-item { color: #666; }
.pd-meta-item strong { color: #333; }

.pd-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.pd-stars { color: #ffa500; font-size: 16px; letter-spacing: 2px; }
.pd-reviews { color: #999; font-size: 13px; }
.pd-stock-badge {
    background: #e8f5e9; color: #2e7d32; padding: 4px 12px;
    border-radius: 4px; font-size: 12px; font-weight: 600;
}

.pd-wishlist-btn {
    background: none; border: none; cursor: pointer; font-size: 24px; color: #999; transition: all 0.2s;
}
.pd-wishlist-btn:hover, .pd-wishlist-btn.active { color: #d32f2f; transform: scale(1.1); }

.pd-price-box {
    display: flex; align-items: baseline; gap: 15px; margin-bottom: 30px;
    padding: 20px 0; border-bottom: 1px solid #e5e5e5;
}
.pd-sale-price { font-size: 36px; font-weight: 700; color: #2c2c2c; }
.pd-original-price { font-size: 22px; color: #999; text-decoration: line-through; }

/* Options */
.pd-option-group { margin-bottom: 25px; }
.pd-option-label { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 12px; display: block; }
.pd-option-label span { font-weight: 700; color: #2c2c2c; }

.pd-color-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-color-btn {
    width: 40px; height: 40px; border: 2px solid #ddd; border-radius: 4px;
    cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden;
}
.pd-color-btn.active { border-color: #2c2c2c; border-width: 3px; }
.pd-color-btn.active::after {
    content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: white; font-size: 18px; font-weight: 700; text-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.pd-color-btn img { width: 100%; height: 100%; object-fit: cover; }

.pd-size-selector { display: flex; gap: 10px; }
.pd-size-btn {
    min-width: 55px; padding: 10px 18px; border: 1px solid #ddd; background: white;
    cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; border-radius: 4px;
}
.pd-size-btn:hover { border-color: #2c2c2c; }
.pd-size-btn.active { border-color: #2c2c2c; background: #2c2c2c; color: white; }

/* Quantity & Add to Cart */
.pd-quantity-row { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.pd-quantity-group { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; }
.pd-qty-btn {
    width: 45px; height: 45px; border: none; background: white; cursor: pointer;
    font-size: 20px; font-weight: 600; transition: all 0.2s;
}
.pd-qty-btn:hover { background: #f0f0f0; }
.pd-qty-input {
    width: 70px; height: 45px; text-align: center; border: none;
    border-left: 1px solid #ddd; border-right: 1px solid #ddd; font-size: 16px; font-weight: 600;
}

.pd-add-cart-btn {
    flex: 1; background: #2c2c2c; color: white; border: none; padding: 14px 30px;
    font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s;
    text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pd-add-cart-btn:hover {
    background: #1a1a1a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
@media (max-width: 600px) {
    .pd-container {
        padding: 20px 10px;
    }
    
    .pd-layout {
        display: block; /* Trên mobile cho ảnh nằm trên, chữ nằm dưới */
    }
    
    /* Ảnh trên mobile cũng gọn lại */
    .pd-main-image-wrap {
        max-height: 350px;
    }

    .pd-name {
        font-size: 20px;
        margin-top: 20px;
    }
    
    .pd-sale-price {
        font-size: 24px;
    }
    
    /* --- SỬA LẠI PHẦN NÚT MUA HÀNG TRÊN MOBILE --- */
    .pd-quantity-row {
        flex-direction: row !important; /* Bắt buộc nằm ngang */
        align-items: center;
        gap: 10px; /* Khoảng cách giữa bộ chọn số và nút mua */
        margin-bottom: 20px;
    }

    /* Bộ chọn số lượng thu nhỏ lại */
    .pd-quantity-group {
        flex: 0 0 auto; /* Không cho giãn ra */
        height: 40px; /* Chiều cao cố định */
    }

    .pd-qty-btn {
        width: 30px; /* Nút cộng trừ nhỏ lại */
        height: 100%;
        font-size: 16px;
    }

    .pd-qty-input {
        width: 35px; /* Ô nhập số nhỏ lại */
        height: 100%;
        font-size: 14px;
        padding: 0;
    }

    /* Nút Thêm vào giỏ hàng */
    .pd-add-cart-btn {
        height: 40px; /* Cao bằng nút số lượng */
        font-size: 13px; /* Chữ nhỏ đi xíu cho vừa */
        padding: 0 10px;
        white-space: nowrap; /* Không cho xuống dòng */
    }
    
    /* Ẩn bớt icon giỏ hàng trên mobile nếu chật quá (Tùy chọn) */
    .pd-add-cart-btn span {
        display: none; 
    }
    
    .pd-delivery-info {
        flex-direction: column;
        gap: 12px;
    }
}
/* Additional Info */
.pd-delivery-info {
    display: flex; gap: 30px; margin-bottom: 25px; padding: 15px;
    background: #f9f9f9; border-radius: 4px; font-size: 13px;
}
.pd-delivery-item { display: flex; align-items: center; gap: 8px; color: #666; }
.pd-delivery-item svg, .pd-delivery-item i { font-size: 18px; color: #2c2c2c; }

.pd-note-link {
    color: #666; text-decoration: none; font-size: 13px; margin-bottom: 20px; display: inline-block;
}
.pd-note-link:hover { color: #2c2c2c; text-decoration: underline; }

/* Accordion Sections */
.pd-accordion { border-top: 1px solid #e5e5e5; }
.pd-accordion-item { border-bottom: 1px solid #e5e5e5; }
.pd-accordion-header {
    padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-size: 15px; font-weight: 600; color: #333; user-select: none;
}
.pd-accordion-header:hover { color: #2c2c2c; }
.pd-accordion-icon { transition: transform 0.3s; font-size: 20px; }
.pd-accordion-item.active .pd-accordion-icon { transform: rotate(180deg); }
.pd-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.pd-accordion-item.active .pd-accordion-content { max-height: 1000px; }
.pd-accordion-body { padding-bottom: 20px; color: #666; line-height: 1.8; font-size: 14px; }

/* Product Detail Responsive */
@media (max-width: 992px) {
    .pd-layout { grid-template-columns: 1fr; gap: 30px; }
    .pd-gallery { position: relative; top: 0; }
    .pd-name { font-size: 24px; }
    .pd-sale-price { font-size: 28px; }
    
}

@media (max-width: 600px) {
    .pd-container { padding: 20px 10px; }
    .pd-layout { gap: 20px; }
    .pd-name { font-size: 20px; }
    .pd-sale-price { font-size: 24px; }
    .pd-original-price { font-size: 18px; }
    .pd-quantity-row { flex-direction: column; align-items: stretch; }
    .pd-delivery-info { flex-direction: column; gap: 12px; }
}


/* ============================================
   PRODUCTS PAGE STYLES
   ============================================ */
.products-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.products-breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: #666;
}

.products-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.products-breadcrumb a:hover {
    color: #000;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-title {
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
}

.products-count {
    font-size: 14px;
    color: #666;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* ============================================
   SIDEBAR FILTERS
   ============================================ */
.products-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
}

.filter-option:hover {
    color: #000;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    cursor: pointer;
}

.filter-option.active {
    color: #000;
    font-weight: 500;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.price-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.filter-apply-btn {
    width: 100%;
    padding: 10px;
    background: #2c2c2c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.filter-apply-btn:hover {
    background: #1a1a1a;
}

.filter-clear-btn {
    width: 100%;
    padding: 8px;
    background: white;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.filter-clear-btn:hover {
    border-color: #000;
    color: #000;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-main {
    min-height: 500px;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.toolbar-label {
    font-size: 13px;
    color: #666;
    margin-right: 10px;
}

.toolbar-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Reuse flash-product-card styles */
.products-grid .flash-product-card {
    width: 100%;
    position: relative;
}

.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    padding: 14px 40px;
    background: #2c2c2c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.load-more-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-sidebar {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .products-title {
        font-size: 24px;
    }
    
    .products-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}



/* ============================================
   SALES PAGE STYLES
   ============================================ */
.sales-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sales-breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: #666;
}

.sales-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.sales-breadcrumb a:hover {
    color: #000;
}

.sales-header {
    text-align: center;
    margin-bottom: 50px;
}

.sales-title {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.sales-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.sales-count {
    font-size: 14px;
    color: #999;
}

.sales-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Reuse flash-product-card styles */
.sales-grid .flash-product-card {
    position: relative;
    width: 100%;
}

/* Always show discount badge (not just on hover) */
.sales-grid .flash-discount-badge {
    opacity: 1 !important;
    visibility: visible !important;
}

.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    padding: 16px 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.empty-state-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2c2c2c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.empty-state-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .sales-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sales-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .sales-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .sales-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .sales-title {
        font-size: 28px;
    }
    
    .sales-subtitle {
        font-size: 16px;
    }
    
    .sales-page-wrapper {
        padding: 30px 15px;
    }
}

/* 1. Định dạng cho nút Xóa bộ lọc */
.filter-clear-btn {
    display: block;           /* Bắt buộc hiển thị dạng khối */
    width: 100%;              /* Chiếm 100% chiều rộng thẻ cha -> Đảm bảo rớt dòng */
    margin-top: 20px;         /* Cách phần bộ lọc bên trên ra một chút */
    padding: 10px 15px;       /* Khoảng cách bên trong nút */
    
    /* Trang trí giao diện nút (Tùy chỉnh màu sắc theo ý bạn) */
    background-color: #fff;   /* Nền trắng */
    border: 1px solid #ddd;   /* Viền xám nhạt */
    border-radius: 4px;       /* Bo góc nhẹ */
    color: #333;              /* Chữ màu đen xám */
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease; /* Hiệu ứng mượt khi hover */
}

/* Hiệu ứng khi rê chuột vào */
.filter-clear-btn:hover {
    background-color: #1F2933; /* Đổi sang màu đỏ (báo hiệu hành động xóa/reset) */
    border-color: #1F2933;
    color: #fff;               /* Chữ chuyển sang trắng */
}

/* 2. QUAN TRỌNG: Sửa lỗi nhảy layout trên Tablet */
/* Đảm bảo sidebar luôn xếp các phần tử theo chiều dọc */
.products-sidebar {
    display: flex;            
    flex-direction: column;   /* Bắt buộc các con (filter-group, button) xếp dọc */
    align-items: stretch;     /* Kéo dãn các con cho bằng chiều rộng sidebar */
}

/* (Tùy chọn) Nếu trên mobile bạn muốn nút nhỏ lại hoặc khác đi */
@media (max-width: 768px) {
    .filter-clear-btn {
        margin-top: 15px;
        padding: 8px 12px;
        font-size: 13px;
    }
}


    /* Tổng quan */
    body { font-family: 'Quicksand', sans-serif; color: #333; }
    a { text-decoration: none; color: inherit; transition: 0.2s; }
    a:hover { color: #f26522; /* Màu cam thương hiệu */ }

    /* Breadcrumb */
    .blog-breadcrumb { font-size: 13px; color: #888; margin: 20px 0; text-transform: uppercase; }
    .blog-breadcrumb a { color: #888; }
    .blog-breadcrumb span { color: #333; font-weight: 600; }

    /* Sidebar Widgets */
    .sidebar-widget {
        border: 1px solid #e5e5e5;
        padding: 20px;
        margin-bottom: 30px;
        background: #fff;
    }
    
    .widget-title {
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        letter-spacing: 0.5px;
    }

    /* Danh mục List */
    .cat-list { list-style: none; padding: 0; margin: 0; }
    .cat-list li {
        border-bottom: 1px solid #f5f5f5;
        padding: 10px 0;
    }
    .cat-list li:last-child { border-bottom: none; }
    .cat-list a { font-size: 14px; color: #555; display: block; }
    .cat-list a:hover { color: #000; padding-left: 5px; }

    /* Bài viết mới nhất (Sidebar) */
    .recent-post-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px dashed #eee;
    }
    .recent-post-item:last-child { border-bottom: none; margin-bottom: 0; }
    
    .recent-thumb {
        width: 60px;
        height: 60px;
        object-fit: cover;
        margin-right: 15px;
        flex-shrink: 0;
    }
    .recent-info h4 {
        font-size: 13px;
        line-height: 1.4;
        margin: 0 0 5px 0;
        font-weight: 500;
    }
    .recent-info h4 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .recent-date { font-size: 11px; color: #999; }

    /* Main Content */
    .main-heading {
        font-size: 24px;
        font-weight: 400;
        text-transform: uppercase;
        margin-bottom: 30px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    /* Blog Card (Giống mẫu ảnh) */
    .blog-card {
        margin-bottom: 30px;
        background: #fff;
        /* Border nhẹ bao quanh */
        border: 1px solid #eee; 
        transition: box-shadow 0.3s;
    }
    .blog-card:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .blog-thumb-wrap {
        position: relative;
        overflow: hidden;
        /* Tỉ lệ ảnh chữ nhật nằm ngang hoặc vuông tùy ảnh gốc */
        aspect-ratio: 4/3; 
    }
    .blog-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }
    .blog-card:hover .blog-thumb { transform: scale(1.05); }

    .blog-body { padding: 20px; }
    
    .blog-title {
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .blog-title a { color: #333; }
    
    .blog-excerpt {
        font-size: 14px;
        color: #777;
        line-height: 1.6;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .blog-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f5f5f5;
        padding-top: 15px;
        font-size: 12px;
    }
    
    .blog-date { color: #999; }
    .blog-readmore { color: #333; font-weight: 600; text-transform: uppercase; font-size: 11px; }
    .blog-readmore:hover { text-decoration: underline; }


/* ======================================================== */
/* 5. DESCRIPTION */
/* ======================================================== */
/* 1. Tạo viền và khoảng cách cho các ô */
/* 1. Thiết lập chung cho bảng: Gọn gàng, bỏ khoảng cách thừa */
figure.table table {
    width: 100%;
    border-collapse: collapse;
    border: none; /* Bỏ khung viền bao quanh bảng */
    font-size: 14px; /* Cỡ chữ vừa phải */
}

/* 2. Style cho TẤT CẢ các ô: Chỉ giữ viền dưới */
figure.table table td {
    background-color: #FBFBF9; 
    padding: 12px 15px;               /* Khoảng cách rộng rãi cho thoáng */
    border: none;                     /* Reset viền */
    border-bottom: 1px solid #e0e0e0; /* Chỉ kẻ đường gạch ngang mờ */
    vertical-align: middle;
    color: #555;                      /* Màu chữ nội dung nhẹ nhàng */
}

/* 3. Style riêng cho CỘT ĐẦU TIÊN (Cột Tiêu đề) */
figure.table table td:first-child {
    background-color: #FBFBF9; /* Màu nền xám rất nhạt sang trọng */
    font-weight: bold;         /* Chữ đậm */
    color: #333;               /* Màu chữ đen rõ ràng */
    width: 35%;                /* Cố định chiều rộng cột tiêu đề */
}

/* 4. (Tùy chọn) Bỏ đường kẻ ở dòng cuối cùng để bảng trông liền mạch */
figure.table table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   HIỆU ỨNG ZOOM ẢNH SẢN PHẨM
   ============================================ */
.pd-main-image-wrap {
    overflow: hidden; 
    cursor: zoom-in; 
    position: relative;
    
    /* 1. Ép khung chứa luôn là hình vuông hoàn hảo (1:1) */
    aspect-ratio: 1 / 1; 
    background-color: #ffffff; /* 2. Lấp đầy phần hở hai bên bằng màu trắng */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-main-image {
    width: 100%;
    
    /* 3. Đổi height thành 100% thay vì auto */
    height: 100%; 
    
    /* 4. CHÌA KHÓA: Giữ nguyên tỷ lệ ảnh 9:16 nằm lọt thỏm trong khung vuông 1:1 */
    object-fit: contain; 
    
    display: block;
    transition: transform 0.1s ease-out; 
    transform-origin: center center; 
}

.pd-main-image-wrap:hover .pd-main-image {
    transform: scale(2.5); /* Độ phóng to */
}

.pd-img-nav {
    z-index: 10;
}


/* ======================================================== */
/* 6. FOOTER */
/* ======================================================== */
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}
.footer .btn.btn-social {
    margin-right: 5px; width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    color: var(--light); border: 1px solid #FFFFFF; transition: .3s;
}
.footer .btn.btn-social:hover { color: var(--primary); }
.footer .btn.btn-link {
    display: block; margin-bottom: 5px; padding: 0; text-align: left;
    color: #FFFFFF; font-size: 15px; font-weight: normal; text-transform: capitalize; transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative; content: "\f105";
    font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 10px;
}
.footer .btn.btn-link:hover { color: var(--primary); letter-spacing: 1px; box-shadow: none; }
.footer .copyright { padding: 25px 0; font-size: 15px; border-top: 1px solid rgba(256, 256, 256, .1); }
.footer .copyright a { color: var(--light); }
.footer .copyright a:hover { color: var(--primary); }