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

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

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

ul {
    list-style: none;
}

/* ============================================
   Ép font Mulish cho toàn site (override Flatsome)
============================================ */
html,
body,
body.theme-flatsome,
body * {
    font-family: 'Mulish', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Giữ icon font: ép lại đúng font icon (vì rule * đã quét tất cả thành Mulish) */
body [class^="icon-"], body [class*=" icon-"],
body i[class^="icon-"], body i[class*=" icon-"] {
    font-family: 'fl-icons' !important;
}

body .dashicons, body [class^="dashicons-"], body [class*=" dashicons-"] {
    font-family: 'dashicons' !important;
}

body .fa, body [class^="fa-"], body [class*=" fa-"] {
    font-family: 'FontAwesome', 'Font Awesome 5 Free', 'Font Awesome 6 Free' !important;
}

body {
    color: #111;
    background: #fff;
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 800;
}

/* ===== Header ===== */
.site-header {
    width: 100%;
    background: transparent !important;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none !important;
    border: none !important;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08) !important;
    padding: 12px 0;
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.site-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.site-header .site-logo {
    display: inline-block;
    flex-shrink: 0;
}

.site-header .site-logo img {
    width: 200px;
}

/* Nav */
.site-header .site-nav {
    background: #f5f5f5;
    border-radius: 999px;
    padding: 6px 20px;
    flex-shrink: 0;
    margin-left: auto;
}

.site-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .nav-item {
    list-style: none;
}

.site-header .nav-item > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Gạch chân chạy từ giữa ra hai bên */
.site-header .nav-item > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .nav-item > a:hover {
    color: #111;
}

.site-header .nav-item > a:hover::after,
.site-header .nav-item.active > a::after {
    width: 100%;
}

.site-header .nav-item.active > a {
    color: #111;
}

/* Cart icon */
.site-header .nav-cart > a {
    transition: color 0.3s ease;
}

.site-header .nav-cart .cart-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-header .nav-cart > a:hover .cart-icon {
    transform: translateY(-3px) rotate(-8deg);
}

/* Logo hover */
.site-header .site-logo {
    transition: transform 0.35s ease;
}

.site-header .site-logo:hover {
    transform: scale(1.04);
}

/* Hamburger hover (mobile) */
.site-header .nav-toggle {
    transition: transform 0.3s ease;
}

.site-header .nav-toggle:hover {
    transform: scale(1.1);
}

.site-header .nav-toggle:hover span {
    background: #000;
}

/* Mobile nav controls */
.site-header .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.site-header .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header .nav-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #111;
    cursor: pointer;
    z-index: 5;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 90;
}

body.nav-open .nav-overlay {
    display: block;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1199px) {
    .site-header .header-container {
        gap: 16px;
    }

    .site-header .site-nav {
        padding: 12px 24px;
    }

    .site-header .nav-menu {
        gap: 22px;
    }

    .site-header .nav-item > a {
        font-size: 13px;
    }
}

/* Tablet collapse to mobile menu */
@media (max-width: 991px) {
    .site-header .nav-toggle {
        display: flex !important;
    }

    .site-header .site-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 320px;
        max-width: 85vw;
        height: 100vh !important;
        background: #fff !important;
        border-radius: 0 !important;
        padding: 70px 24px 24px !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
        z-index: 95;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        display: block !important;
    }

    body.nav-open .site-header .site-nav {
        transform: translateX(0);
    }

    .site-header .nav-close {
        display: block !important;
    }

    .site-header .nav-menu {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100%;
    }

    .site-header .nav-menu .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .site-header .nav-item > a {
        display: flex !important;
        width: 100%;
        padding: 16px 4px !important;
        font-size: 14px;
    }

    /* Bỏ underline animation trong mobile menu, thay bằng hiệu ứng dịch nhẹ */
    .site-header .nav-item > a::after { display: none; }

    .site-header .nav-item > a:hover {
        padding-left: 12px !important;
        color: #000;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .site-header {
        padding: 10px 0;
    }

 

    .site-header .nav-toggle {
        width: 36px;
        height: 36px;
    }
}

/* ===================================================
   Hero Slider
=================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    background: #f2f2f2;
    overflow: hidden;
}

.hero-slider__track {
    position: relative;
    width: 100%;
    height: 600px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.hero-slide > .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slide__row {
    width: 100%;
    margin: 0;
}

.hero-slide__row > [class*="col-"] {
    padding-left: 16px;
    padding-right: 16px;
}

/* Content (left) */
.hero-slide__content {
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.8s ease 0.15s, opacity 0.8s ease 0.15s;
}

.hero-slide.is-active .hero-slide__content {
    transform: translateX(0);
    opacity: 1;
}

.hero-slide__title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: #111;
    margin: 0 0 18px;
}

.hero-slide__subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}

.hero-slide__price {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 22px;
}

.hero-slide__desc {
    font-size: 15px;
    line-height: 1.7;
    color: #6b6b6b;
    margin: 0 0 32px;
    max-width: 560px;
}

.hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-slide__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    text-transform: none;
    line-height: 1;
    text-decoration: none;
}

.hero-slide__actions .btn--primary {
    background: #111;
    color: #fff;
    border-color: #111;
}

.hero-slide__actions .btn--primary:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.hero-slide__actions .btn--ghost {
    background: transparent;
    color: #111;
    border-color: #111;
    text-transform: uppercase;
}

.hero-slide__actions .btn--ghost:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

/* Image (right) */
.hero-slide__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transform: translateX(40px);
    opacity: 0;
    transition: transform 0.9s ease 0.2s, opacity 0.9s ease 0.2s;
}

.hero-slide.is-active .hero-slide__image {
    transform: translateX(0);
    opacity: 1;
}

.hero-slide__image img {
    max-width: 100%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.15));
}

/* Arrows */
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(6px);
    padding: 0;
}

.hero-slider__arrow:hover {
    background: #111;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.hero-slider__arrow svg {
    width: 22px;
    height: 22px;
}

.hero-slider__arrow--prev { left: 24px; }
.hero-slider__arrow--next { right: 24px; }

/* Dots */
.hero-slider__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    padding: 0;
    margin: 0;
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.25s ease;
    min-height: auto;

}

.hero-slider__dot:hover {
    background: rgba(0, 0, 0, 0.45);
}

.hero-slider__dot.is-active {
    background: #111;
    transform: scale(1.4);
}

/* Drag cursor */
.hero-slider { cursor: grab; }
.hero-slider.is-dragging { cursor: grabbing; user-select: none; }
.hero-slider.is-dragging .hero-slide__image img { pointer-events: none; }
.hero-slider.is-dragging a,
.hero-slider.is-dragging img { -webkit-user-drag: none; user-select: none; }

/* ===== Slider responsive ===== */
@media (max-width: 1199px) {
    .hero-slider__track { height: 520px; }
    .hero-slide__title { font-size: 36px; }
    .hero-slide__subtitle, .hero-slide__price { font-size: 18px; }
}

@media (max-width: 991px) {
    .hero-slider__track { height: auto; min-height: 480px; }

    .hero-slide > .container {
        padding-top: 40px;
        padding-bottom: 70px;
    }

    .hero-slide__content {
        order: 2;
        text-align: center;
    }

    .hero-slide__desc { margin-left: auto; margin-right: auto; }
    .hero-slide__actions { justify-content: center; }

    .hero-slide__image {
        order: 1;
        height: 280px;
    }

    .hero-slider__arrow--prev { left: 12px; }
    .hero-slider__arrow--next { right: 12px; }
    .hero-slider__arrow { width: 40px; height: 40px; }
}

@media (max-width: 575px) {
    .hero-slide > .container {
        padding-top: 24px;
        padding-bottom: 60px;
    }
    .hero-slide__title { font-size: 26px; }
    .hero-slide__subtitle, .hero-slide__price { font-size: 15px; }
    .hero-slide__desc { font-size: 13px; margin-bottom: 22px; }
    .hero-slide__image { height: 220px; }
    .hero-slide__actions .btn { padding: 12px 22px; font-size: 13px; }
    .hero-slider__arrow { display: none; }
}

/* ===================================================
   Product Section
=================================================== */
.product-section {
    padding: 56px 0;
}

.product-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.product-section__title {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: -0.2px;
}

.product-section__view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #2b6cff;
    transition: gap 0.25s ease, color 0.25s ease;
    width: 100%;
    justify-content: right;
}

.product-section__view-all:hover {
    color: #1a4ed8;
    gap: 8px;
}

.product-section__view-all svg {
    width: 16px;
    height: 16px;
}

/* Grid - 4 sản phẩm trên hàng (desktop) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

.product-card__media {
    position: relative;
    display: block;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
    display: block;
    transition: opacity 0.5s ease;
}

/* Ảnh chính */
.product-card__image--primary {
    position: relative;
    z-index: 1;
}

/* Ảnh phụ chồng lên, ẩn ban đầu */
.product-card__image--secondary {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
}

/* Hover: chỉ fade chéo, KHÔNG scale/box-shadow card */
.product-card.has-second-image:hover .product-card__image--primary {
    opacity: 0;
}

.product-card.has-second-image:hover .product-card__image--secondary {
    opacity: 1;
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2b6cff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(43, 108, 255, 0.25);
    pointer-events: none;
}

.product-card__body {
    padding: 14px 6px 6px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #2b6cff;
    margin: 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title a {
    color: inherit;
    transition: color 0.2s ease;
}

.product-card__title a:hover {
    color: #1a4ed8;
}

.product-card__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: auto;
}

.product-card__price-old,
.product-card__price-old .woocommerce-Price-amount {
    font-size: 13px;
    color: #9aa0a6;
    text-decoration: line-through;
    font-weight: 400;
}

.product-card__price-new,
.product-card__price-new .woocommerce-Price-amount {
    font-size: 16px;
    color: #111;
    font-weight: 800;
}

/* Khi giá là .price kèm cả 2 (Woo render) */
.product-card__price-new del,
.product-card__price-new del .woocommerce-Price-amount {
    font-size: 13px;
    color: #9aa0a6;
    font-weight: 400;
    margin-right: 6px;
}

.product-card__price-new ins,
.product-card__price-new ins .woocommerce-Price-amount {
    text-decoration: none;
    color: #111;
    font-weight: 800;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .product-section { padding: 40px 0; }
    .product-section__title { font-size: 22px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 575px) {
    .product-section { padding: 30px 0; }
    .product-section__title { font-size: 18px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card__title { font-size: 14px; }
    .product-card__price-new,
    .product-card__price-new .woocommerce-Price-amount { font-size: 15px; }
    .product-card__badge { font-size: 11px; padding: 3px 7px; }
}

/* ===================================================
   News Archive (category.php)
=================================================== */
.news-archive {
    padding: 40px 0 60px;
}

.news-archive__header {
    margin-bottom: 22px;
    border-bottom: 2px solid #2b6cff;
    padding-bottom: 0;
    display: inline-block;
}

.news-archive__title {
    display: inline-block;
    background: #2b6cff;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 22px;
    margin: 0;
    border-radius: 6px 6px 0 0;
    letter-spacing: 0.5px;
}

.news-archive__empty {
    padding: 24px 0;
    color: #6b6b6b;
}

/* News list */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.news-item {
    display: flex;
    gap: 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.news-item__media {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: block;
}

.news-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-item__image {
    transform: scale(1.04);
}

.news-item__date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2b6cff;
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(43, 108, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 44px;
}

.news-item__date-day {
    font-size: 18px;
    font-weight: 800;
}

.news-item__date-month {
    font-size: 11px;
    font-weight: 600;
    text-transform: lowercase;
}

.news-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.news-item__title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    line-height: 1.35;
    margin: 0;
}

.news-item__title a {
    color: inherit;
    transition: color 0.2s ease;
}

.news-item__title a:hover {
    color: #2b6cff;
}

.news-item__excerpt {
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.news-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: #2b6cff;
    color: #fff;
}

/* ===== Sidebar ===== */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar "dính" lại khi cuộn hết, tránh để trống bên phải (desktop) */
@media (min-width: 992px) {
    .news-sidebar {
        position: sticky;
        top: 90px; /* chừa khoảng cho header sticky */
        align-self: flex-start; /* cần thiết để sticky hoạt động trong flex row */
    }
}

.sidebar-block__title {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    letter-spacing: 0.5px;
}

.sidebar-products,
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-product,
.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar-product__media,
.sidebar-post__media {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
    display: block;
}

.sidebar-product__image,
.sidebar-post__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.sidebar-post__image {
    object-fit: cover;
    padding: 0;
}

.sidebar-product__body,
.sidebar-post__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-product__title,
.sidebar-post__title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-product__title a,
.sidebar-post__title a {
    color: inherit;
    transition: color 0.2s ease;
}

.sidebar-product__title a:hover,
.sidebar-post__title a:hover {
    color: #2b6cff;
}

.sidebar-product__price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar-product__price-old,
.sidebar-product__price-old .woocommerce-Price-amount {
    font-size: 12px;
    color: #9aa0a6;
    text-decoration: line-through;
    font-weight: 400;
}

.sidebar-product__price-new,
.sidebar-product__price-new .woocommerce-Price-amount {
    font-size: 14px;
    color: #111;
    font-weight: 800;
}

.sidebar-product__price-new del,
.sidebar-product__price-new del .woocommerce-Price-amount {
    font-size: 12px;
    color: #9aa0a6;
    font-weight: 400;
    margin-right: 4px;
    text-decoration: line-through;
}

.sidebar-product__price-new ins,
.sidebar-product__price-new ins .woocommerce-Price-amount {
    text-decoration: none;
    color: #111;
    font-weight: 800;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .news-archive { padding: 30px 0 40px; }
    .news-item__media { width: 220px; }
    .news-item__title { font-size: 16px; }
    .news-sidebar { margin-top: 20px; }
}

@media (max-width: 575px) {
    .news-item {
        flex-direction: column;
        gap: 14px;
        padding: 10px;
    }
    .news-item__media {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .news-item__title { font-size: 15px; }
    .news-item__excerpt { font-size: 13px; }
    .news-archive__title { font-size: 15px; padding: 8px 16px; }
    .sidebar-product__media,
    .sidebar-post__media { width: 70px; height: 70px; }
}

/* ===================================================
   Single Post (single.php)
=================================================== */
.single-post {
    background: #fff;
}

.single-post__header {
    margin-bottom: 24px;
}

.single-post__category {
    display: inline-block;
    background: #2b6cff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    transition: background 0.2s ease;
}

.single-post__category:hover {
    background: #1a4ed8;
    color: #fff;
}

.single-post__title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
    margin: 0 0 16px;
}

.single-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #6b6b6b;
    font-size: 14px;
}

.single-post__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-post__meta-item svg {
    width: 16px;
    height: 16px;
    color: #2b6cff;
}

.single-post__thumbnail {
    margin: 0 0 26px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.single-post__image {
    width: 100%;
    height: auto;
    display: block;
}

.single-post__content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.single-post__content > * {
    margin-bottom: 18px;
}

.single-post__content p {
    margin: 0 0 18px;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
    font-weight: 800;
    color: #111;
    line-height: 1.35;
    margin: 28px 0 14px;
}

.single-post__content h2 { font-size: 24px; }
.single-post__content h3 { font-size: 20px; }
.single-post__content h4 { font-size: 18px; }

.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 14px 0;
}

.single-post__content a {
    color: #2b6cff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.single-post__content a:hover {
    color: #1a4ed8;
}

.single-post__content ul,
.single-post__content ol {
    padding-left: 22px;
    margin: 0 0 18px;
}

.single-post__content ul { list-style: disc; }
.single-post__content ol { list-style: decimal; }

.single-post__content li {
    margin-bottom: 8px;
}

.single-post__content blockquote {
    border-left: 4px solid #2b6cff;
    background: #f5f8ff;
    padding: 14px 18px;
    margin: 18px 0;
    color: #444;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.single-post__content iframe,
.single-post__content video {
    max-width: 100%;
    border-radius: 8px;
    margin: 14px 0;
}

/* Tags */
.single-post__tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.single-post__tags-label {
    font-weight: 700;
    color: #111;
    margin-right: 4px;
}

.single-post__tag {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.single-post__tag:hover {
    background: #2b6cff;
    color: #fff;
}

/* Prev / Next */
.single-post__nav {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.single-post__nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 48%;
    padding: 12px 16px;
    border: 1px solid #ececec;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.single-post__nav-link:hover {
    background: #f5f8ff;
    border-color: #2b6cff;
}

.single-post__nav-link--next {
    text-align: right;
    margin-left: auto;
}

.single-post__nav-label {
    font-size: 12px;
    color: #2b6cff;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.single-post__nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 991px) {
    .single-post__title { font-size: 26px; }
    .single-post__content { font-size: 15px; }
}

@media (max-width: 575px) {
    .single-post__title { font-size: 20px; }
    .single-post__meta { gap: 12px; font-size: 13px; }
    .single-post__content { font-size: 14px; line-height: 1.7; }
    .single-post__content h2 { font-size: 20px; }
    .single-post__content h3 { font-size: 17px; }
    .single-post__nav {
        flex-direction: column;
    }
    .single-post__nav-link {
        max-width: 100%;
    }
    .single-post__nav-link--next {
        text-align: left;
        margin-left: 0;
    }
}



/* ===================================================
   CART PAGE (WooCommerce) — scoped to .woocommerce-cart
   Palette: ink #111 · accent #2b6cff · soft #f3f4f6
=================================================== */

/* ----- Page rhythm + heading ----- */
body.woocommerce-cart #content {
    background: #fff;
}

body.woocommerce-cart .row-main {
    padding-top: 36px;
    padding-bottom: 72px;
}

/* Tiêu đề trang (chèn 1 lần, ngay trên thông báo) */
body.woocommerce-cart .col-inner > .woocommerce::before {
    content: "Giỏ hàng";
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.3px;
    margin: 0 0 24px;
}

/* ----- Thông báo "đã thêm vào giỏ" ----- */
body.woocommerce-cart .woocommerce-notices-wrapper {
    margin-bottom: 6px;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body.woocommerce-cart .woocommerce-message .message-container,
body.woocommerce-cart .woocommerce-info .message-container,
body.woocommerce-cart .woocommerce-error .message-container {
    max-width: none !important;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 13px 18px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: #eef6f0 !important;
    color: #1f7a45 !important;
    border: 1px solid #cfe9d8;
    border-left: 4px solid #2e9e5b;
}

body.woocommerce-cart .woocommerce-info .message-container {
    background: #eef3ff !important;
    color: #1a4ed8 !important;
    border-color: #d3e0ff;
    border-left-color: #2b6cff;
}

body.woocommerce-cart .woocommerce-error .message-container {
    background: #fdeeee !important;
    color: #c0392b !important;
    border-color: #f6d4d1;
    border-left-color: #e05a4f;
}

body.woocommerce-cart .woocommerce-message .button,
body.woocommerce-cart .woocommerce-info .button {
    margin-left: auto !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #1f7a45 !important;
    border: 1px solid currentColor !important;
    box-shadow: none !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
}

body.woocommerce-cart .woocommerce-message .button:hover {
    background: #2e9e5b !important;
    color: #fff !important;
    border-color: #2e9e5b !important;
}

/* ----- Layout 2 cột ----- */
body.woocommerce-cart .woocommerce.row.row-divided {
    margin-top: 4px;
}

body.woocommerce-cart .cart-collaterals .col-inner {
    padding: 0;
}

/* ----- Bảng sản phẩm ----- */
body.woocommerce-cart .woocommerce-cart-form__contents {
    width: 100%;
    border: none;
    border-collapse: collapse;
    margin: 0;
}

body.woocommerce-cart .woocommerce-cart-form__contents thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9097a1;
    text-align: left;
    padding: 0 10px 14px;
    border: none;
    border-bottom: 1px solid #ececec;
    background: transparent;
}

body.woocommerce-cart .woocommerce-cart-form__contents thead th.product-subtotal {
    text-align: right;
}

body.woocommerce-cart .woocommerce-cart-form__contents tbody td {
    padding: 18px 10px;
    border: none;
    border-bottom: 1px solid #f1f2f4;
    vertical-align: middle;
    background: transparent;
}

/* Phân bổ chiều rộng cột: tên sản phẩm chiếm phần còn lại,
   các cột giá/số lượng/tạm tính co theo nội dung (không xuống dòng) */
body.woocommerce-cart .woocommerce-cart-form__contents th.product-price,
body.woocommerce-cart .woocommerce-cart-form__contents th.product-quantity,
body.woocommerce-cart .woocommerce-cart-form__contents th.product-subtotal,
body.woocommerce-cart .woocommerce-cart-form__contents td.product-price,
body.woocommerce-cart .woocommerce-cart-form__contents td.product-quantity,
body.woocommerce-cart .woocommerce-cart-form__contents td.product-subtotal {
    width: 1%;
    white-space: nowrap;
}

body.woocommerce-cart .woocommerce-cart-form__contents td.product-name,
body.woocommerce-cart .woocommerce-cart-form__contents th.product-name {
    width: auto;
    min-width: 160px;
}

/* Nút xoá sản phẩm */
body.woocommerce-cart td.product-remove {
    width: 44px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.woocommerce-cart td.product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f2f4;
    color: #9aa0a6 !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.woocommerce-cart td.product-remove .remove:hover {
    background: #ffe7e7;
    color: #e53935 !important;
    transform: rotate(90deg);
}

/* Ảnh sản phẩm */
body.woocommerce-cart td.product-thumbnail {
    width: 96px;
}

body.woocommerce-cart td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    max-width: 80px;
    object-fit: contain;
    padding: 6px;
    background: #f3f4f6;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

body.woocommerce-cart td.product-thumbnail a:hover img {
    transform: scale(1.05);
}

/* Tên sản phẩm */
body.woocommerce-cart td.product-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

body.woocommerce-cart td.product-name > a {
    color: #111;
    transition: color 0.2s ease;
}

body.woocommerce-cart td.product-name > a:hover {
    color: #2b6cff;
}

/* Giá / tạm tính */
body.woocommerce-cart td.product-price {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

body.woocommerce-cart td.product-subtotal {
    text-align: right;
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

/* Ô số lượng (Flatsome ux-quantity) */
body.woocommerce-cart .ux-quantity.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e4e9;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 40px;
}

body.woocommerce-cart .ux-quantity .ux-quantity__button {
    width: 36px;
    height: 100%;
    border: none !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart .ux-quantity .ux-quantity__button:hover {
    background: #f3f6ff !important;
    color: #2b6cff !important;
}

body.woocommerce-cart .ux-quantity input.qty {
    width: 46px;
    height: 100%;
    border: none !important;
    border-left: 1px solid #eef0f3 !important;
    border-right: 1px solid #eef0f3 !important;
    border-radius: 0 !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    background: #fff !important;
    box-shadow: none !important;
    padding: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
}

body.woocommerce-cart .ux-quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .ux-quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ----- Hàng nút (tiếp tục mua / cập nhật) ----- */
body.woocommerce-cart td.actions {
    padding: 24px 10px 6px !important;
    border-bottom: none !important;
    text-align: left;
    white-space: normal;
}

body.woocommerce-cart td.actions .continue-shopping {
    display: inline-block;
    vertical-align: middle;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.woocommerce-cart .button-continue-shopping.button,
body.woocommerce-cart td.actions button[name="update_cart"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    white-space: nowrap;
    margin: 0 !important;
    padding: 11px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    text-transform: none !important;
    letter-spacing: 0.2px;
    box-shadow: none !important;
    min-height: 0 !important;
    transition: all 0.2s ease;
}

/* Tiếp tục xem sản phẩm: outline trung tính */
body.woocommerce-cart .button-continue-shopping.button {
    background: #fff !important;
    color: #111 !important;
    border: 1.5px solid #e2e4e9 !important;
}

body.woocommerce-cart .button-continue-shopping.button:hover {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

/* Ẩn nút "Cập nhật giỏ hàng" (số lượng tự cập nhật khi bấm − / +) */
body.woocommerce-cart td.actions button[name="update_cart"] {
    display: none !important;
}

/* ----- Khối tổng cộng (sidebar) ----- */
body.woocommerce-cart .cart_totals {
    background: #f8f9fb;
    border: 1px solid #ececf1;
    border-radius: 16px;
    padding: 24px;
}

/* Ẩn bảng tiêu đề rỗng do Flatsome render thừa */
body.woocommerce-cart .cart_totals > table:not(.shop_table) {
    display: none;
}

body.woocommerce-cart .cart_totals h2 {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0 0 18px;
}

body.woocommerce-cart .cart_totals .shop_table {
    width: 100%;
    border: none;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
}

body.woocommerce-cart .cart_totals .shop_table th,
body.woocommerce-cart .cart_totals .shop_table td {
    border: none;
    padding: 12px 0;
    background: transparent;
}

body.woocommerce-cart .cart_totals .shop_table th {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #5b616b;
}

body.woocommerce-cart .cart_totals .shop_table td {
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

body.woocommerce-cart .cart_totals .cart-subtotal th,
body.woocommerce-cart .cart_totals .cart-subtotal td {
    border-bottom: 1px dashed #dfe3ea;
}

body.woocommerce-cart .cart_totals .order-total th {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    padding-top: 16px;
}

body.woocommerce-cart .cart_totals .order-total td {
    padding-top: 16px;
}

body.woocommerce-cart .cart_totals .order-total td strong,
body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount {
    font-size: 20px;
    font-weight: 800;
    color: #2b6cff;
}

/* ----- Nút MUA NGAY (đổi cam -> xanh thương hiệu) ----- */
body.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 20px;
    padding: 0;
}
.row-divided>.col+.col:not(.large-12) {
    border-left: none !important;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 5px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #fff !important;
    background: #2b6cff !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(43, 108, 255, 0.22) !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #1a4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(43, 108, 255, 0.28) !important;
}

/* ----- Giỏ hàng trống (1 thẻ gọn, canh giữa) ----- */
body.woocommerce-cart .woocommerce > .text-center {
    max-width: 560px;
    margin: 8px auto 0;
    padding: 48px 28px !important;
    background: #f8f9fb;
    border: 1px solid #ececf1;
    border-radius: 16px;
}

body.woocommerce-cart .wc-empty-cart-message {
    margin: 0 0 22px;
}

body.woocommerce-cart .wc-empty-cart-message .woocommerce-info,
body.woocommerce-cart .wc-empty-cart-message .message-container {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    display: block;
    text-align: center !important;
    font-size: 18px;
    font-weight: 600;
    color: #555 !important;
}

body.woocommerce-cart .return-to-shop {
    margin: 0;
    text-align: center;
}

body.woocommerce-cart .return-to-shop .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #fff !important;
    background: #2b6cff !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(43, 108, 255, 0.26) !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.woocommerce-cart .return-to-shop .button:hover {
    background: #1a4ed8 !important;
    transform: translateY(-2px);
}

/* ----- Responsive ----- */

/* Stack 2 cột sớm cho tablet để dễ đọc */
@media (max-width: 991px) {
    body.woocommerce-cart .woocommerce.row.row-divided {
        display: block;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.woocommerce-cart .woocommerce.row.row-divided > .col.large-7,
    body.woocommerce-cart .woocommerce.row.row-divided > .cart-collaterals.large-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        border-left: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-cart .cart-collaterals {
        margin-top: 28px;
    }
}

@media (max-width: 575px) {
    body.woocommerce-cart .row-main {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    body.woocommerce-cart .col-inner > .woocommerce::before {
        font-size: 22px;
        margin-bottom: 18px;
    }

    /* Bảng dạng responsive: mỗi sản phẩm là 1 dòng gọn */
    body.woocommerce-cart td.product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px;
        max-width: 64px;
    }

    body.woocommerce-cart td.product-thumbnail {
        width: 78px;
    }

    body.woocommerce-cart td.product-name {
        font-size: 14px;
        min-width: 0;
    }

    /* Nút xoá: cho khoảng thở mép trái, không bị cắt */
    body.woocommerce-cart td.product-remove {
        width: 34px;
        padding-left: 2px !important;
    }

    body.woocommerce-cart td.product-remove .remove {
        margin: 0 !important;
        width: 26px;
        height: 26px;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents thead th {
        padding-left: 2px;
    }

    body.woocommerce-cart .mobile-product-price {
        font-size: 13px;
        color: #2b6cff;
        font-weight: 700;
        margin-top: 4px;
    }

    /* Hàng nút: xếp dọc, full-width, dễ chạm */
    body.woocommerce-cart td.actions {
        padding: 18px 0 4px !important;
    }

    body.woocommerce-cart td.actions .continue-shopping {
        display: block;
        width: 100%;
        margin: 0 0 10px !important;
    }

    body.woocommerce-cart .button-continue-shopping.button,
    body.woocommerce-cart td.actions button[name="update_cart"] {
        display: flex;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    body.woocommerce-cart .cart_totals {
        padding: 20px;
    }
}