/*
Theme Name: Memip Child
Description: This is a child theme for Memip Theme
Author: Timomedia
Template: memip
Version: 3.1
*/

/*************** CSS VARIABLES ***************/
:root {
    /* Bảng màu đỏ rượu vang trầm - phù hợp tiếng Việt, sang trọng hơn đỏ tươi */
    --primary-color: #b71c1c;     /* đỏ vang trầm (was #b71c1c đỏ tươi) */
    --primary-dark: #8b1414;      /* đỏ đậm cho hover */
    --primary-light: #d62828;     /* đỏ sáng cho accent (badge sale) */
    --primary-soft: #fbeaea;      /* đỏ rất nhạt cho background hover */
    --text-color: #3c3c3c;
    --text-light: #565656;
    --text-dark: #000000;
    --border-color: #e6e6e6;
    --border-dashed: #ddd;
    --bg-light: #f7f7f7;
    --bg-white: #fff;
    --price-color: #b71c1c;       /* giá tiền dùng cùng tone đỏ vang */
    --link-color: #4a4a4a;
    --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/*************** FONT TIẾNG VIỆT ĐỒNG BỘ ***************/
body {
    font-family: var(--font-family);
}
input,
textarea,
select,
button,
.button {
    font-family: inherit;
}

/*************** PAGE LOADER ***************/
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    text-align: center;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/*************** SO SÁNH SẢN PHẨM ***************/
.compare-btn {
    position: absolute;
    top: 50px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.col.product:hover .compare-btn,
.product-small:hover .compare-btn {
    opacity: 1;
    transform: translateY(0);
}
.compare-btn:hover,
.compare-btn.in-compare {
    background: var(--primary-color);
    color: #fff;
}
.compare-btn i {
    font-size: 14px;
}

#compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
    z-index: 9997;
    border-top: 3px solid var(--primary-color);
}
.compare-bar-content {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}
.compare-items {
    display: flex;
    gap: 10px;
    flex: 1;
}
.compare-item-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    overflow: hidden;
}
.compare-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.compare-item-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 14px;
    cursor: pointer;
    padding: 0;
}
.compare-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.compare-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
.compare-now-btn,
.compare-clear-btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.compare-now-btn {
    background: var(--primary-color);
    color: #fff;
}
.compare-now-btn:hover {
    background: var(--primary-dark);
}
.compare-clear-btn {
    background: #f5f5f5;
    color: #666;
}
.compare-clear-btn:hover {
    background: #e0e0e0;
}

/* Compare Popup */
#compare-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}
.compare-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
.compare-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}
.compare-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
}
.compare-popup-content h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    text-align: center;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
}
.compare-table th,
.compare-table td {
    padding: 12px;
    border: 1px solid #e6e6e6;
    text-align: center;
    vertical-align: middle;
}
.compare-table th img {
    max-width: 150px;
    height: auto;
}
.compare-label {
    font-weight: 600;
    background: #f9f9f9;
    color: #333;
    text-align: left !important;
    width: 150px;
}
.compare-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}
.in-stock { color: #28a745; }
.out-stock { color: #dc3545; }
.compare-loading {
    text-align: center;
    padding: 50px;
}
.compare-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
}
.compare-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
    .compare-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    .compare-items {
        width: 100%;
        overflow-x: auto;
    }
    .compare-table th,
    .compare-table td {
        padding: 8px 5px;
        font-size: 12px;
    }
    .compare-table th img {
        max-width: 80px;
    }
}

/*************** GỢI Ý MÓN ĂN ***************/
.food-pairing-section {
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}
.food-pairing-title {
    font-size: 18px;
    margin: 0 0 5px 0;
    color: #333;
}
.food-pairing-intro {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
}
.food-pairing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.food-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ffe0b2;
    transition: all 0.3s ease;
}
.food-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.food-icon {
    font-size: 32px;
    flex-shrink: 0;
}
.food-info {
    flex: 1;
}
.food-info strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}
.food-info span {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}
@media (max-width: 767px) {
    .food-pairing-grid {
        grid-template-columns: 1fr;
    }
}

/*************** CART DRAWER ***************/
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}
.cart-drawer.open {
    visibility: visible;
    opacity: 1;
}
.cart-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.cart-drawer-content {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.cart-drawer.open .cart-drawer-content {
    right: 0;
}
.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e6e6e6;
    background: #f9f9f9;
}
.cart-drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.cart-drawer-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.cart-drawer-empty {
    text-align: center;
    padding: 50px 20px;
}
.cart-drawer-empty i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}
.cart-drawer-empty p {
    color: #999;
    margin-bottom: 20px;
}
.cart-drawer-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cart-drawer-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.cart-drawer-item .item-image {
    width: 70px;
    flex-shrink: 0;
}
.cart-drawer-item .item-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.cart-drawer-item .item-details {
    flex: 1;
}
.cart-drawer-item .item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    line-height: 1.3;
}
.cart-drawer-item .item-name:hover {
    color: var(--primary-color);
}
.cart-drawer-item .item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.cart-drawer-item .item-qty-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-drawer-item .item-qty {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    text-align: center;
}
.cart-drawer-item .remove-item {
    background: #f5f5f5;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.cart-drawer-item .remove-item:hover {
    background: var(--primary-color);
    color: #fff;
}
.cart-drawer-footer {
    padding: 15px 20px;
    border-top: 1px solid #e6e6e6;
    background: #f9f9f9;
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 15px;
}
.cart-subtotal strong {
    color: var(--primary-color);
    font-size: 18px;
}
.cart-drawer-buttons {
    display: flex;
    gap: 10px;
}
.cart-drawer-buttons .button {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
}
.cart-drawer-buttons .view-cart {
    background: #f5f5f5;
    color: #333;
}
.cart-drawer-buttons .checkout-button {
    background: var(--primary-color);
    color: #fff;
}
body.cart-drawer-open {
    overflow: hidden;
}

/*************** EXIT-INTENT POPUP ***************/
#exit-intent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}
.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
.exit-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popIn 0.4s ease;
}
@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.exit-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}
.exit-icon {
    font-size: 60px;
    margin-bottom: 15px;
}
.exit-popup-inner h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px 0;
}
.exit-popup-inner > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}
.exit-coupon {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 2px dashed #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.coupon-code {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 5px;
}
.coupon-desc {
    font-size: 14px;
    color: #666;
}
.exit-cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.exit-cta-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}
.exit-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    margin-bottom: 0;
}

/*************** NEWSLETTER POPUP ***************/
#newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
}
.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}
.newsletter-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #fff, #f9f9f9);
    border-radius: 15px;
    max-width: 420px;
    width: 90%;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.newsletter-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}
.newsletter-icon {
    font-size: 50px;
    margin-bottom: 10px;
}
.newsletter-inner h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
}
.newsletter-inner > p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 15px;
}
.newsletter-form input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
}
.newsletter-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.newsletter-form button:hover {
    background: var(--primary-dark);
}
.newsletter-note {
    font-size: 12px;
    color: #999;
    margin: 0;
}
.newsletter-success {
    padding: 20px 0;
}
.newsletter-success .success-icon {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    line-height: 60px;
    margin: 0 auto 15px;
}
.newsletter-success h3 {
    color: #28a745;
    margin: 0 0 10px 0;
}

/*************** GIFT OPTIONS ***************/
.gift-options {
    background: #f9f9f9;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}
.gift-options-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}
.gift-option {
    margin-bottom: 10px;
}
.gift-option:last-of-type {
    margin-bottom: 0;
}
.gift-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}
.gift-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.gift-label {
    flex: 1;
    color: #333;
}
.gift-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
}
.engrave-text-wrap,
.gift-card-wrap {
    margin-top: 10px;
    padding-left: 28px;
}
.engrave-text-input,
.gift-card-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.gift-card-textarea {
    min-height: 60px;
    resize: vertical;
}

/*************** WISHLIST ***************/
.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    transition: all 0.3s ease;
}
.wishlist-btn:hover,
.wishlist-btn.in-wishlist {
    color: var(--primary-color);
}
.wishlist-btn i {
    font-size: 16px;
}
.wishlist-btn.in-wishlist i {
    animation: heart-beat 0.5s ease;
}
@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
.wishlist-btn-single {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin: 10px 0;
    transition: all 0.3s ease;
}
.wishlist-btn-single:hover,
.wishlist-btn-single.in-wishlist {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(183, 28, 28, 0.05);
}
.wishlist-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.wishlist-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/*************** BUY NOW BUTTON ***************/
.buy-now-btn {
    background: linear-gradient(135deg, #ff6b00, #ff9500) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.85em 1.5em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}
.buy-now-btn:hover {
    background: linear-gradient(135deg, #e55a00, #e58400) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}
.buy-now-btn i {
    margin-right: 5px;
}

/*************** RECENTLY VIEWED ***************/
.recently-viewed-section {
    padding: 30px 0;
    background: #f9f9f9;
    margin-top: 30px;
}
.section-title-recently {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}
.recently-viewed-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.recently-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    padding: 10px;
    transition: all 0.3s ease;
}
.recently-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.recently-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.recently-item img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 8px;
}
.recently-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin: 0 0 5px 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 34px;
}
.recently-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}
.recently-price del {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}
@media (max-width: 991px) {
    .recently-viewed-products {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .recently-viewed-products {
        grid-template-columns: repeat(2, 1fr);
    }
    .recently-name {
        font-size: 12px;
    }
}

/*************** SOCIAL SHARE ***************/
.social-share-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
}
.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.share-buttons {
    display: flex;
    gap: 8px;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}
.share-btn i {
    font-size: 16px;
}
.share-fb {
    background: #1877f2;
}
.share-zalo {
    background: #0068ff;
}
.share-email {
    background: #ea4335;
}
.share-copy {
    background: #6c757d;
}

/*************** FLOATING CONTACT BUTTONS ***************/
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}
.float-btn:hover {
    transform: scale(1.1);
    color: #fff;
}
.float-btn i {
    font-size: 22px;
    color: #fff;
}
.float-btn i:before {
    color: #fff;
}
.float-phone {
    background: linear-gradient(135deg, #b71c1c, #b71c1c);
    animation: pulse-phone 2s infinite;
}
@keyframes pulse-phone {
    0% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(183, 28, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0); }
}
.float-zalo {
    background: linear-gradient(135deg, #0068ff, #0052cc);
}
.float-scroll-top {
    background: #333;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.float-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.float-label {
    position: absolute;
    right: 60px;
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.float-btn:hover .float-label {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 767px) {
    .floating-contact {
        right: 15px;
        bottom: 75px;
    }
    .float-btn {
        width: 45px;
        height: 45px;
    }
    .float-btn i {
        font-size: 20px;
    }
    .float-label {
        display: none;
    }
}

/*************** STOCK URGENCY ***************/
.stock-urgency {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stock-urgency.low-stock {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    animation: pulse-stock 1.5s infinite;
}
@keyframes pulse-stock {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.stock-urgency.in-stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}
.stock-urgency i {
    font-size: 16px;
}

/*************** SALE COUNTDOWN ***************/
.sale-countdown {
    background: linear-gradient(135deg, #b71c1c, #ff6b6b);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}
.countdown-label {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.countdown-item {
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 5px;
    min-width: 55px;
}
.countdown-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.countdown-text {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.9;
}
.countdown-ended {
    font-size: 16px;
    font-weight: 600;
    padding: 10px;
}
@media (max-width: 767px) {
    .countdown-item {
        padding: 6px 8px;
        min-width: 45px;
    }
    .countdown-number {
        font-size: 20px;
    }
    .countdown-text {
        font-size: 10px;
    }
}

/*************** QUICK VIEW ***************/
.quick-view-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}
.col.product:hover .quick-view-btn,
.product-small:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}
.quick-view-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.quick-view-btn i {
    font-size: 16px;
}

/* Quick View Popup */
#quick-view-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}
.qv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
.qv-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}
.qv-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}
.qv-close:hover {
    color: var(--primary-color);
}
.qv-loading {
    padding: 60px;
    text-align: center;
}
.qv-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.quick-view-content {
    display: flex;
    padding: 20px;
}
.qv-image {
    width: 45%;
    position: relative;
    padding-right: 20px;
}
.qv-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.qv-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}
.qv-info {
    width: 55%;
    padding-left: 20px;
}
.qv-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.4;
}
.qv-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.qv-price del {
    font-size: 16px;
    color: #999;
    font-weight: 400;
    margin-right: 10px;
}
.qv-short-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}
.qv-stock {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.qv-stock.in-stock {
    background: #d4edda;
    color: #155724;
}
.qv-stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}
.qv-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.qv-add-to-cart {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.qv-add-to-cart:hover {
    background: var(--primary-dark);
    color: #fff;
}
.qv-view-detail {
    background: #f5f5f5;
    color: #333;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.qv-view-detail:hover {
    background: #e0e0e0;
    color: #333;
}
@media (max-width: 767px) {
    .qv-modal {
        max-width: 95%;
        max-height: 85vh;
    }
    .quick-view-content {
        flex-direction: column;
        padding: 15px;
    }
    .qv-image {
        width: 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }
    .qv-info {
        width: 100%;
        padding-left: 0;
    }
    .qv-title {
        font-size: 18px;
    }
    .qv-price {
        font-size: 20px;
    }
    .qv-buttons {
        flex-direction: column;
    }
    .qv-add-to-cart,
    .qv-view-detail {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/*************** TRUST BADGES ***************/
.trust-badges-header {
    display: flex;
    gap: 20px;
    margin-left: 30px;
}
.trust-badges-header .badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.trust-badges-header .badge-item i {
    color: var(--primary-color);
    font-size: 16px;
}
.trust-badges-product {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
}
.trust-badges-product .badge-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}
.trust-badges-product .badge-row:last-child {
    margin-bottom: 0;
}
.trust-badges-product .badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.trust-badges-product .badge-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/*************** LEGAL WARNING BAR ***************/
.legal-warning-bar {
    background: #fff3cd;
    color: #856404;
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid #ffc107;
}
.legal-warning-bar span {
    display: block;
}
.legal-warning-product {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 13px;
    margin-top: 10px;
    border-left: 4px solid #ffc107;
}
.legal-warning-product p {
    margin: 0;
}

/*************** FOMO POPUP ***************/
#fomo-popup {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 99999;
    max-width: 320px;
    animation: slideInLeft 0.4s ease;
}
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.fomo-content {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border: 1px solid #e6e6e6;
    position: relative;
}
.fomo-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    color: #999;
    padding: 0;
}
.fomo-close:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.fomo-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}
.fomo-info {
    flex: 1;
}
.fomo-text {
    font-size: 13px;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.4;
}
.fomo-text a {
    color: var(--primary-color);
    font-weight: 600;
}
.fomo-time {
    font-size: 11px;
    color: #999;
    margin: 0;
}
@media (max-width: 767px) {
    #fomo-popup {
        left: 10px;
        right: 10px;
        bottom: 75px;
        max-width: none;
    }
}

/*************** STICKY ADD-TO-CART MOBILE ***************/
#sticky-cart-mobile {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: bottom 0.3s ease;
    display: none;
}
#sticky-cart-mobile.visible {
    bottom: 62px;
}
.sticky-cart-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 100%;
}
.sticky-cart-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
}
.sticky-cart-price del {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-right: 4px;
}
.sticky-cart-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: all 0.3s ease;
}
.sticky-cart-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}
.sticky-cart-btn i {
    font-size: 16px;
}
@media (max-width: 360px) {
    .sticky-cart-price { font-size: 15px; }
    .sticky-cart-btn { padding: 10px 12px; font-size: 13px; }
}
@media (max-width: 767px) {
    #sticky-cart-mobile {
        display: block;
    }
    body.single-product {
        padding-bottom: 130px;
    }
}

/*************** ADD CUSTOM CSS HERE.   ***************/

.deals-progress {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-color);
    height: 100%;
    border-radius: 50px;
}
.cart-item ul.nav-dropdown {
    min-width: 300px;
}
.total_sale:before {
    content: "|";
    margin: 0px 7px;
    color: var(--text-light);
}
.box-text .star-rating {
    display: inline-block;
    margin: 0;
}
.total_sale {
    display: inline-block;
    color: var(--text-light);
}
.single a.button.size-guide:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: unset;
}
.single a.button.size-guide {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-left: 8px;
}
.sticky-add-to-cart--active  a.button.size-guide {
	display: none;
}
.process-bar span {
    z-index: 1;
    position: relative;
}
.process-bar {
    background: #ec7c7c;
    border-radius: 50px;
    font-size: 13px;
    text-align: center;
    color: var(--bg-white);
    line-height: 1.5em;
    position: relative;
    overflow: hidden;
	margin-top: 3px;
	display: none;
}
.hot-deal .process-bar {
    display: block;
}
.menu-item img._mi {
    width: 35px;
}
.menu-item-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    fill: currentColor;
}
/* Menu icon cho desktop */
#wide-nav .menu-item-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
}
/* Menu icon cho mobile sidebar */
.off-canvas .menu-item-icon,
.mobile-sidebar .menu-item-icon,
.sidebar-menu .menu-item-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}
/* Menu icon trong mega menu dropdown */
.nav-dropdown .menu-item-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}
/* Màu icon theo context */
#wide-nav .menu-item-icon {
    color: #b71c1c;
}
.off-canvas .menu-item-icon,
.mobile-sidebar .menu-item-icon {
    color: #333;
}

/* Ẩn menu trái xấu xí trên trang chủ - dùng menu ngang trên cùng thôi */
#wide-nav>.flex-row>.flex-left {
    display: none !important;
}
#wide-nav>.flex-row>.flex-center {
    width: 100%;
    max-width: 100%;
    flex: 1;
    margin: 0;
    text-align: center;
}
/* Menu chính chiếm full width và canh giữa */
#wide-nav .nav-vertical-fly-out,
#wide-nav .nav-vertical {
    display: none !important;
}
/* RULE CŨ - đã thay bằng .qka-nav-bar ở cuối file. Comment để khỏi đè lên header mới.
#wide-nav {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}
#wide-nav .nav {
    justify-content: center;
    flex-wrap: wrap;
}
#wide-nav .nav>li>a {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    transition: all 0.3s ease;
}
#wide-nav .nav>li>a:hover {
    color: #b71c1c;
    background: rgba(183, 28, 28, 0.05);
}
*/

div#mega-menu-title {
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    font-size: 16px;
}
#mega-menu-wrap {
    width: 100%;
    background: #b71c1c;
}
.nav>li>a, .nav-dropdown>li>a, .nav-column>li>a {
    color: rgb(73 73 73);
}
.box-category .box-text {
    padding: 0;
}
.sf-menu * {
    text-transform: uppercase;
}
.sf-vertical.sf-arrows li:hover>.sf-with-ul:after {
    border-left-color: #b71c1c;
}
.sf-menu a {
    padding: 0.7em 1em;
	border-top: 1px solid #ddd;
}
.sf-menu ul {
    min-width: 17em;
}
.info-content {
    border-bottom: 1px dashed #e3656a;
    padding: 1px 0px;
}
.info-content span {
    width: 25%;
    display: inline-block;
}
.box-advanced {
    margin-bottom: 15px;
}
.woocommerce-variation-availability {
    display: none;
}
ul#header-contact a, li.cart-item > a {
    background: #b71c1c;
    color: #fff;
    padding: 11px 15px;
    border-radius: 5px;
	font-size: 15px;
}
li.cart-item > a {
    padding: 8.5px 15px;
}
li.cart-item > a:hover {
    color: #fff;
}
.header-search-form-wrapper input {
    height: 3em;
    border: 1px solid #b71c1c;
    box-shadow: none;
    border-radius: 5px 0px 0px 5px;
	border-right: 0;
}
.account-link i.icon-user {
    color: #b71c1c;
}
.header-search-form-wrapper .searchform .button.icon{
	height: 3.1em;
	padding: 0px 20px;
	background: #b71c1c;
	border-radius: 0px 5px 5px 0px;
	box-shadow: none;
}
div#top-bar ul li li a {
    color: #000;
}
.header-main i.icon-menu {
	display: none;
}
.stuck .header-main .nav>li>a>i.icon-menu{
	display: block;
}
.stuck .header-main .nav ul#header-contact li a, .stuck .header-main .nav li.cart-item a {
    line-height: 16px;
}
/* width drawer định nghĩa trong block MOBILE SIDEBAR ở cuối file */
.stuck #logo img {
    padding: 5px 0px;
}
div#top-bar a {
    color: #fff;
    font-weight: 500;
    font-size: 0.86em;
}
#top-bar li.html {
    font-size: 0.86em;
}
.nav-dropdown>li>a, .nav-column>li>a {
    display: block;
    text-transform: capitalize;
    color: #000;
}
.stuck #logo {
    width: 228px;
}
.img-banner {
	border: 4px solid #fff;
    cursor: pointer;
}
.col.product.type-product {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 10px;
    border-right: 1px solid #e6e6e6;
}
.row-xsmall>.flickity-viewport>.flickity-slider>.col, .row-xsmall>.col {
    padding: 10px;
}
span.amount {
    white-space: nowrap;
    color: #dc0000;
    font-weight: bold;
	font-size: 18px;
}
del span.amount {
    color: #252525;
	font-size: 14px;
    opacity: .6;
}
.section-title-normal {
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 0;
	margin-top: 30px;
}
.related-products-wrapper .badge-container {
    margin-top: 10px;
}
.section-title-normal span {
    border-bottom: 2px solid #b71c1c;
    margin-bottom: -2px;
	width: calc(25% - 14px);
	position: relative;
    border-left: 10px solid #b71c1c;
    padding-bottom: 0;
    padding-left: 10px;
}
.header-main .nav-left {
    justify-content: space-around;
}
.stuck .header-main .nav-left {
    justify-content: flex-start;
}
.section-title-normal span:before {
    content: "";
    border: 5px solid #b71c1c;
    border-color: transparent transparent transparent #b71c1c;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: 0px;
}
.title-top .section-title-normal span {
    width: auto;
}
.no-padding-bottom {
    padding-bottom: 0 !important;
}
ul.dmsp li {
    margin-left: 0;
    text-transform: uppercase;
}
ul.dmsp li ul li {
    padding: 3px 10px;
	border-bottom: 1px dashed #ddd;
}
ul.dmsp li a {
    font-size: 0.9em;
}
ul.dmsp li ul li:hover {
    background: #f7f7f7;
}
.name.product-title a {
    max-height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    width: 100%;
	 font-size: 16px;
}
.box-text .price-wrapper {
    margin-top: 10px;
}
.box-text .price-wrapper .price {
    display: block;
    margin-top: 6px;
}
.box-text.box-text-products {
    padding-bottom: 0.2em;
    padding-top: 0.5em;
}
.badge-container {
    margin: 0px 0 0 0;
}
.badge-inner {
    font-size: 0.8em;
    border-radius: 2px;
    padding: 2px 5px;
}
.badge {
    display: table;
    z-index: 20;
    pointer-events: none;
    height: 1.4em;
    width: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.sidebar-inner {
    background: #ffff;
	padding: 0px 15px 15px;
}
.absolute-footer {
    color: rgba(0,0,0,0.5);
    padding: 7px 0 7px;
    font-size: .9em;
}
.footer-secondary {
    padding: 0px 0;
}
.copyright-footer {
    margin-top: 6px;
}
.back-to-top.active{
    border-color: #b71c1c;
    color: #b71c1c;
}
.back-to-top.active:hover{
	color: #fff;
}
.footer-wrapper {
    font-size: 15px;
	color: #3c3c3c;
}
.footer-wrapper a {
    color: #3c3c3c;
}
span.widget-title {
    font-size: 1.2em;
    font-weight: 600;
}
.is-outline {
    color: #7b7b7b;
}
.sidebar-inner span.widget-title {
    font-size: 1.1em;
	font-weight: 600;
	border-left: 5px solid #b71c1c;
    position: relative;
    padding-left: 10px;
    margin-bottom: 15px;
    display: block;
}
.sidebar-inner a, .widget_price_filter .price_label {
    color: #4a4a4a;
}
.sidebar-inner span.widget-title:before, .yith-wcan-filters .yith-wcan-filter h4:before {
    content: "";
    border: 5px solid #b71c1c;
    border-color: transparent transparent transparent #b71c1c;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: -1px;
}
.yith-wcan-filters .yith-wcan-filter h4 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1em;
	border-left: 5px solid #b71c1c;
    position: relative;
    padding-left: 10px;
    margin-bottom: 15px;
	line-height: 1.2em;
}
.filter-item input {
    padding-left: 0;
    margin-left: 0;
    margin-right: 5px;
	margin-bottom: 0;
    margin-top: 0;
}
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.label {
    border-radius: 2px;
    display: inline-block;
    padding: 2px 4px;
    text-align: center;
}
.yith-wcan-filters {
    margin-bottom: 0;
}
.yith-wcan-filters .yith-wcan-filter:last-child {
    margin-bottom: 0;
}
.category-page-row {
    padding-top: 10px;
}
/* Đồng bộ visible body width = 1230 với megamenu/header/footer:
 * Bỏ outer padding 2 col (sidebar trái + main phải), giữ inner gutter 30px ở giữa.
 * Sidebar widget bắt đầu đúng x=68 (mép trái dropdown), products kết thúc đúng x=1298 (mép phải dropdown). */
.row.category-page-row > .col.large-3 {
    padding-left: 0 !important;
    padding-right: 15px !important;
}
.row.category-page-row > .col.large-9 {
    padding-left: 15px !important;
    padding-right: 0 !important;
}
.row.category-page-row > .col.large-3 .sidebar-inner.col-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.yith-wcan-filters .yith-wcan-filter {
    margin-bottom: 20px;
}
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item {
    line-height: 1.7;
}
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item label {
    font-weight: 500;
}
input[type=checkbox], input[type=radio] {
    display: inline;
    margin-right: 5px;
}
.sidebar-inner .widget .is-divider.small {
    display: none;
}
.sidebar-inner .widget {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0px;
    padding-bottom: 1em;
	padding-top: 1em;
}
.widget_price_filter span {
    font-weight: 500;
}
.widget_price_filter .ui-slider-horizontal {
    height: 4px;
    border-radius: 99px;
}
.widget_price_filter .ui-slider .ui-slider-range {
    opacity: 1;
    background-color: #b71c1c;
}
.widget_price_filter .ui-slider .ui-slider-handle {
    width: 11px;
    height: 11px;
    background-color: #b71c1c;
}
.woocommerce .widget_layered_nav ul.yith-wcan-label li a, .woocommerce-page .widget_layered_nav ul.yith-wcan-label li a, .woocommerce .widget_layered_nav ul.yith-wcan-label li span, .woocommerce-page .widget_layered_nav ul.yith-wcan-label li span {
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
    display: block;
    margin: 5px 5px 5px 0;
    padding: 3px;
    font-size: 14px;
}
.woocommerce .widget_layered_nav ul.yith-wcan-label li a:hover, .woocommerce-page .widget_layered_nav ul.yith-wcan-label li a:hover, .woocommerce .widget_layered_nav ul.yith-wcan-label li.chosen a, .woocommerce-page .widget_layered_nav ul.yith-wcan-label li.chosen a {
    border: 1px solid #b71c1c;
    background-image: none;
    background-color: #b71c1c;
    color: #fff;
}
.sidebar-inner .widget a {
    font-size: 15px;
}
.sidebar-inner span.amount {
    font-size: 15px;
}
.sidebar-inner del span.amount {
    font-size: 13px;
}
ul.menu>li+li, .widget>ul>li+li {
    border-top: 0;
}
.sidebar-inner .widget:last-child {
    border: none;
    padding-bottom: 0;
}
.sidebar-menu ul#mega_menu {
    display: block;
}
/* Ẩn sidebar menu trái trên trang chủ.
 * KHÔNG ẨN .sidebar-menu nằm trong .mobile-sidebar (drawer mobile) — chỉ ẩn sidebar widget cấu trúc của trang. */
.home #mega_menu,
.home .nav-vertical-fly-out,
.home .vertical-menu,
.home .sidebar-categories,
.home #wrapper > .sidebar-menu,
.home #content > .sidebar-menu,
.home #col-left .sidebar-menu,
.home .main .sidebar-menu {
    display: none !important;
}
/* Đảm bảo content full width khi không có sidebar */
.home .row.dmsp,
.home .col.dmsp,
.home ul.dmsp {
    display: none !important;
}
body p {
    font-size: 15px;
}
.breadcrumbs {
    text-transform: inherit;
	font-size: 14px;
}
.woocommerce-result-count, .woocommerce-ordering, .woocommerce-ordering select {
    font-size: 14px;
}
.woocommerce-ordering, .woocommerce-ordering select {
    margin: 0px 0;
    height: 30px;
}
.product-short-description ul li {
    margin-left: 0;
}
.product-short-description ul {
    list-style-type: none;
}
.product-short-description ul li:before {
    content: "\e00a";
    font-family: 'fl-icons' !important;
    font-weight: 400;
	font-size: 13px;
	color: #b71c1c;
    margin-right: 5px;
}
.product-short-description {
    color: #292929;
	font-size: 15px;
	border-bottom: 1px dashed #ddd;
    margin-bottom: 10px;
}
h1.product-title.product_title {
    font-size: 1.5em;
	margin-bottom: 0;
}
.page-title-inner {
    position: relative;
    padding-top: 0px;
}
.product-info span.amount {
    font-size: 25px;
}
.product-info del span.amount {
    font-size: 18px;
}
label, legend {
    font-size: 15px;
}
.thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li {
    color: #424242;
}
.thwvsf-wrapper-ul .thwvsf-item-span.item-span-text {
    font-size: 15px;
}
.thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-selected, .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-selected:hover, .thwvsf-wrapper-ul .thwvsf-wrapper-item-li:hover {
    -webkit-box-shadow: 0 0 0 2px #b71c1c;
    box-shadow: 0 0 0 2px #b71c1c;
}
.social-icons a.button.icon {
    margin-right: 7px;
}
button.view-more-button {
    margin-top: 30px;
}
.product_meta .posted_in {
    display: none;
}
.product_meta>span {
    display: block;
    border-top: 0;
    padding: 5px 0;
    font-size: 15px;
    border-bottom: 1px dashed #ddd;
}
.product-info .is-divider {
    display: none;
}
.single_variation_wrap {
    border-bottom: 1px dashed #ddd;
}
.product-summary .variations_button {
    padding: 0em 0;
}
.variations {
    margin-bottom: 10px;
}
.chinh-sach .icon-box-text p {
    margin-bottom: 0;
}
.single form.cart {
    margin-bottom: 10px;
}
.product-tabs li a {
    font-size: 16px;
}
.product-thumbnails img {
    padding: 0px;
}
.page-title:not(.featured-title)+main .product-main {
    padding-top: 0;
}
.chinh-sach .col {
    padding-bottom: 0;
}
.row.chinh-sach {
    padding-bottom: 0;
}
/* width */
.vertical-thumbnails::-webkit-scrollbar {
  width: 5px;
	display: none;
}
/* Track */
.vertical-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
.product-thumbnails a:hover, .product-thumbnails .is-nav-selected a {
    border-color: rgb(133, 189, 55);
}
.single .yith-wfbt-form span.amount {
    font-size: 17px;
}
.single .yith-wfbt-form del span.amount {
    font-size: 14px;
	text-decoration: line-through;
}
.yith-wfbt-section .yith-wfbt-item label {
    padding-left: 30px;
    position: relative;
    display: block;
    font-size: 0;
    float: left;
    width: 100%;
}
.woocommerce div.product .yith-wfbt-item span.price {
    color: inherit;
    font-size: inherit;
    width: 35%;
    float: right;
	line-height: 25px;
	text-align: right
}
.yith-wfbt-item span.product-name {
    font-size: 15px;
    width: 65%;
    float: left;
	color: #3a3a3a;
}
.woocommerce div.product .yith-wfbt-item span.price span.amount {
    font-size: 16px;
}
.woocommerce div.product .yith-wfbt-item span.price del span.amount {
    font-size: 13px;
}
.yith-wfbt-section.woocommerce {
    width: 100%;
    float: left;
    border: 1px dashed #b71c1c;
    border-radius: 5px;
    padding: 10px;
	padding-bottom: 0;
    margin-top: 10px;
    background: #fff;
}
.yith-wfbt-section h3 {
    text-transform: uppercase;
}
.related .col.product.type-product {
    border-top: 1px solid #e6e6e6;
}
.related .row {
    border-left: 1px solid #e6e6e6;
}
body:not(.home) #footer {
    margin-top: 50px;
}
.km_box {
    font-size: 15px;
	border-bottom: 1px dashed #ddd;
    margin-bottom: 10px;
    padding-bottom: 5px;
}
.km_box h4 {
    text-transform: uppercase;
}
.km_box ul {
    list-style-type: none;
	margin-bottom: 0;
}
.km_box ul li:before {
    content: "\e604";
    font-family: 'fl-icons';
    margin-right: 5px;
    color: #e40000;
}
.km_box ul li {
    margin-left: 0;
}
.footer-wrapper a.icon, .footer-wrapper i {
    color: #808080;
}
.widget ul.categories {
    text-transform: capitalize;
}
.yith-wfbt-submit-block {
    text-align: right;
}
input.yith-wfbt-submit-button.button {
    margin-right: 0;
    font-size: 14px;
	width: auto;
    margin-top: 5px;
}
.yith-wfbt-submit-block span.total_price_label {
    font-size: 15px;
}
.product-container .row {
    background: #fff;
	padding-bottom: 20px;
    border-radius: 0px 0px 5px 5px;
}
.product-footer .tab-panels {
    background: #fff;
	padding: 15px 20px 0px;
    border-radius: 5px;
}
.product-footer .container {
    padding: 0;
}
.related.related-products-wrapper.product-section .row {
    padding: 0px 0px;
    margin: 0;
}
.product-main {
    margin-bottom: 15px;
}
h3.product-section-title-related{
    margin-right: 0;
    max-width: 100%;
	position: relative;
	z-index: 0;
	font-size: 18px;
}
h3.product-section-title-related span {
    position: relative;
    z-index: 1;
    padding-right: 25px;
    color: #b71c1c;
    background: #f7f7f7;
}
h3.product-section-title-related span:after {
    content: "";
    background: #b71c1c;
    width: 5px;
    height: 5px;
    display: block;
    position: absolute;
    right: 5px;
    bottom: 4px;
}
h3.product-section-title-related:after {
    content: "";
    border-bottom: 5px solid #eaeaea;
    position: absolute;
    bottom: 19px;
    right: 0;
    width: 100%;
}
.product-main {
	padding-bottom: 0px;
}
.product-gallery, .product-info {
    padding-top: 15px;
}
.sticky-add-to-cart--active {
    background-color: #ffffff;
	border-color: #f7f7f7;
}
.slider-nav-circle .flickity-prev-next-button svg, .slider-nav-circle .flickity-prev-next-button .arrow {
    border-radius: 100%;
    border: 2px solid #ddd;
    background: #ddd;
    color: #737272;
}
.content-product {
    background: #fff;
    border-radius: 5px;
}
.content-product .entry-content {
    padding-top: 1em;
    padding-bottom: 1em;
}
.product-header {
    padding: 0;
	position: relative;
    z-index: 0;
}
.product-section {
    border-top: 0px;
}
.product-header h5 {
    display: inline-block;
    background: #f7f7f7;
    width: auto;
    position: relative;
    color: #b71c1c;
    z-index: 1;
    padding-right: 25px;
    font-size: 18px;
}
.product-header:after {
    content: "";
    border-bottom: 5px solid #eaeaea;
    position: absolute;
    bottom: 14px;
    right: 0;
    width: 100%;
}
.product-header h5:after {
    content: "";
    background: #b71c1c;
    width: 5px;
    height: 5px;
    display: block;
    position: absolute;
    right: 5px;
    bottom: 4px;
}
.back-to-top.active i {
    color: #b71c1c;
}
.back-to-top.active:hover i {
	color: #fff;
}
h3#reply-title {
    font-size: 18px;
}
dl {
    text-transform: inherit;
}
ul.product_list_widget li dl {
    font-size: 13px;
}
dl dt p, dl dd p {
    margin: 0;
    padding: 0;
    font-size: inherit;
}
ul.product_list_widget li a:not(.remove) {
    font-size: 14px;
}
ul.product_list_widget li .quantity {
    opacity: 1;
}
.widget_shopping_cart_content span.amount {
    font-size: 15px;
}
.widget_shopping_cart_content del span.amount {
    font-size: 12px;
}
/* Bottom nav mobile — bar gọn, icon nhỏ, label tinh tế (phù hợp tiếng Việt nhiều dấu) */
.fix-mobile {
    position: fixed;
    bottom: 0px;
    width: 100%;
    left: 0;
    background: #b71c1c;
    padding-bottom: env(safe-area-inset-bottom, 0px); /* iPhone notch safe area */
    z-index: 999;
    display: none;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
}
.ux-swatch.selected {
    -webkit-box-shadow: 0 0 0 0.1rem #b71c1c;
    box-shadow: 0 0 0 0.1rem #b71c1c;
}
.fix-mobile ul li a, .fix-mobile ul li a i {
    margin: 0 auto;
    display: block;
    font-size: 10.5px;       /* label nhỏ lại cho gọn, đủ đọc */
    line-height: 1.15;
    letter-spacing: 0;
    color: #fff !important;
}
.fix-mobile ul li a {
    padding: 4px 2px 3px;     /* nén tight */
}
.fix-mobile ul li a i:before {
    font-size: 20px;          /* 30 → 20, icon nhỏ gọn */
    color: #ffffff;
    line-height: 1;
}
.fix-mobile [data-icon-label]:after {
    background: #fff !important;
    color: #151515;
    font-size: 11px;
    right: -6px;
    top: -3px;
}
.fix-mobile ul.header-nav.nav {
    height: 48px;             /* 59 → 48, ăn vào sync với body.has-bottom-nav padding-bottom */
    margin: 0;
}
.fix-mobile ul li {
    text-align: center;
    width: 20%;
    padding: 0;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fix-mobile .nav>li>a>i+span,
.fix-mobile ul li a span {
    margin-left: 0;
    margin-top: 2px;
    display: block;
    line-height: 1.1;
    font-weight: 500;
    /* !important vì rule global `body span:not(...)` ở style.css có specificity (0,4,3) thắng (0,1,4) */
    font-size: 10.5px !important;
    letter-spacing: 0;
}
.fix-mobile span.hide-for-small {
    display: block !important;
}
.fix-mobile i.icon-home {
    background: url(./images/home-white.svg) center/contain no-repeat;
    width: 22px;              /* 33→22 đồng bộ icon-font 20px */
    height: 22px;
    display: inline-block;
}
i.icon-consultation:before {
    content: "\f075";
    font-family: 'FontAwesome';
    font-size: 28px;
    color: #ffffff;
}
i.icon-sale:before {
    content: "\f06b";
    font-family: 'FontAwesome';
    font-size: 28px;
    color: #ffffff;
}
i.icon-search:before {
    content: "\f002";
    font-family: 'FontAwesome';
    font-size: 26px;
    color: #ffffff;
}
i.icon-zalo:before {
    content: "\f0e6";
    font-family: 'FontAwesome';
    font-size: 28px;
    color: #0068ff;
}
i.icon-messenger:before {
    content: "\f39f";
    font-family: 'FontAwesome';
    font-size: 28px;
    color: #0084ff;
}
.fix-mobile ul li a i.icon-consultation:before,
.fix-mobile ul li a i.icon-sale:before,
.fix-mobile ul li a i.icon-search:before {
    line-height: 22px;       /* sync với icon-font 20px ở bar mới (48px) */
}

/* === FIX bottom nav icons (FontAwesome không enqueue → 3 icon rỗng) ===
 * icon-search / icon-sale: dùng fl-icons có sẵn (codepoints \e012, \e004)
 * icon-consultation: fl-icons không có chat bubble → SVG data-URI inline (giống pattern icon-home)
 */
.fix-mobile i.icon-search:before,
.fix-mobile i.icon-sale:before {
    font-family: 'fl-icons' !important;
    font-size: 22px !important;
    line-height: 22px !important;
    color: #fff !important;
}
.fix-mobile i.icon-search:before { content: "\e012" !important; }
.fix-mobile i.icon-sale:before   { content: "\e004" !important; }

.fix-mobile i.icon-consultation {
    width: 22px;
    height: 22px;
    display: inline-block;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><path d='M12 2C6.48 2 2 6.04 2 11c0 2.6 1.24 4.94 3.22 6.55-.06.71-.27 1.93-.96 3.16-.13.23.05.51.31.49 2.06-.16 3.85-1.04 4.94-1.74.8.22 1.63.34 2.49.34 5.52 0 10-4.04 10-9S17.52 2 12 2zM8 12.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z'/></svg>") center/contain no-repeat !important;
}
.fix-mobile i.icon-consultation:before { content: none !important; }

/* Consultation Popup */
#consultation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

/* Mobile Search Popup */
#mobile-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
}
.search-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.search-popup-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-height: 100vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
.search-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    z-index: 10;
}
.mobile-search-form {
    display: flex;
    margin-bottom: 15px;
    margin-right: 35px;
    margin-top: 5px;
}
.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #b71c1c;
    border-radius: 5px 0 0 5px;
    font-size: 15px;
    margin: 0;
    height: auto;
    box-shadow: none;
}
.mobile-search-input:focus {
    border-color: #b71c1c;
    box-shadow: none;
    outline: none;
}
.mobile-search-btn {
    background: #b71c1c;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 18px;
    box-shadow: none;
    margin: 0;
}
.mobile-search-btn:hover {
    background: #b71c1c;
    color: #fff;
}
.mobile-search-btn i {
    color: #fff;
}

.consultation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
.consultation-content {
    position: absolute;
    bottom: 62px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
.consultation-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}
.consultation-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}
.consultation-options {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.consultation-btn {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    gap: 5px;
    white-space: nowrap;
    line-height: 1.2;
}
.consultation-btn i {
    font-size: 18px;
    margin-right: 0;
}
.consultation-btn span {
    font-size: 13px;
    font-weight: 600;
}
.zalo-btn {
    background: #0068ff;
    color: #fff;
}
.zalo-btn:hover {
    background: #0052cc;
    color: #fff;
}
.messenger-btn {
    background: #0084ff;
    color: #fff;
}
.messenger-btn:hover {
    background: #006acc;
    color: #fff;
}
.phone-btn {
    background: #b71c1c;
    color: #fff;
}
.phone-btn:hover {
    background: #b71c1c;
    color: #fff;
}
.consultation-btn i.icon-zalo:before,
.consultation-btn i.icon-messenger:before {
    color: #fff;
}
.consultation-btn i.icon-phone:before {
    color: #fff;
    font-size: 26px;
}

.home .product-category img {
    border-radius: 7px;
}
.home .row-xsmall>.flickity-viewport>.flickity-slider>.col.product-category {
    padding: 7px;
}
.fix-mobile ul li a i.icon-menu:before {
    font-size: 22px;
    font-weight: 900;
    line-height: 22px;
}
.fix-mobile ul li a i.icon-shopping-basket:before {
    font-size: 20px;
    line-height: 22px;
}
.fix-mobile ul li a i.icon-phone:before {
    font-size: 20px;
    line-height: 22px;
}
.fix-mobile ul li a.header-cart-link {
    padding: 0;
    background: transparent;
}
.fix-mobile ul li a.mobile-bottom-cart {
    padding: 0;
    background: transparent;
    position: relative;
}
.fix-mobile ul li a.mobile-bottom-cart i.icon-shopping-basket:before {
    font-size: 20px;
    line-height: 22px;
}
.fix-mobile ul li a.mobile-bottom-cart i.mobile-bottom-cart-icon[data-icon-label]:after {
    content: attr(data-icon-label);
    position: absolute;
    background: #fff;
    color: #b71c1c;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    top: 4px;
    right: calc(50% - 16px);
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
}
    text-transform: inherit;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 0;
	letter-spacing: 0;
	margin-top: 5px;
}
.product-category.col {
    padding: 7px;
}
nav.breadcrumbs {
    text-align: left;
    display: block;
}
.checkout-breadcrumbs a, .breadcrumbs a {
    color: #717171;
}
.shop_table tfoot th {
    font-size: 100%;
}
dl, th, td {
    font-size: 1em;
}
dl.variation {
    font-size: 0.9em;
}
td {
    color: #000000;
}
.product-total span.amount {
    font-size: 16px;
}
input[type='email'], input[type='date'], input[type='search'], input[type='number'], input[type='text'], input[type='tel'], input[type='url'], input[type='password'], textarea, select, .select-resize-ghost, .select2-container .select2-choice, .select2-container .select2-selection {
    font-size: 1em;
}
.hot-deal .price-wrapper {
    margin-top: 7px;
}
.hot-deal .total_sale {
    display: none;
}
.hot-deal .box-text .price-wrapper .price {
    margin-top: 3px;
}
.hot-deal .ux-timer {
    position: absolute;
    top: 17px;
    right: 0;
    width: 215px;
    font-size: 130% !important;
    margin: 0;
}
.hot-deal .ux-timer span {
    padding: 7px 7px 0px;
    background: transparent;
}
.hot-deal .ux-timer span strong {
    font-size: 45%;
    opacity: 1;
    margin-top: 2px;
}
.nav li.nav-icon a {
    color: #b71c1c;
}
@media screen and (max-width: 991px){
	.header-main i.icon-menu {
		display: block;
	}
	.section-title-normal span {
		width: auto;
	}
	.section-title-normal {
		font-size: 1em;
	}
	ul.dmsp li a {
		font-size: 0.8em;
	}
	body p {
		font-size: 14px;
	}
	.col.product span.amount {
		font-size: 16px;
	}
	.col.product del span.amount {
		font-size: 13px;
	}
	.footer .col {
		width: 50%;
	}
	.category-filter-row {
		padding: 10px 0;
		float: left;
	}
	.woocommerce-ordering, .woocommerce-ordering select {
		margin: 10px 0;
		height: 30px;
		float: right;
	}
	.product-gallery.large-6.col {
		width: 50%;
	}
	.page-title:not(.featured-title)+main .product-main {
		padding-top: 0;
	}
	h1.product-title.product_title {
		font-size: 1.2em;
		margin-bottom: 0;
	}
	.product-short-description {
		font-size: 14px;
	}
	label, legend {
		font-size: 14px;
	}
	.thwvsf-wrapper-ul .thwvsf-item-span.item-span-text {
		font-size: 13px;
	}
	.thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li {
		width: auto;
		height: 30px;
	}
	.km_box {
		font-size: 14px;
	}
	.chinh-sach .icon-box-img {
		width: 30px !important;
	}
	.icon-box-left .icon-box-img+.icon-box-text {
		padding-left: 0.5em;
	}
	.chinh-sach .icon-box-text p {
		margin-bottom: 0;
		font-size: 13px;
	}
	.chinh-sach .col {
		padding: 0 10px;
		width: auto;
		max-width: unset;
		flex-basis: auto;
		-ms-flex-preferred-size: unset;
	}
	input.yith-wfbt-submit-button.button {
		width: auto;
	}
	.yith-wfbt-section h3 {
		text-transform: uppercase;
		margin-bottom: 0;
	}
	.yith-wfbt-item span.product-name {
		font-size: 13px;
		width: 70%;
	}
	.woocommerce div.product .yith-wfbt-item span.price {
		width: 30%;
		float: right;
		line-height: 20px;
	}
	.woocommerce div.product .yith-wfbt-item span.price span.amount {
		font-size: 15px;
	}
	.woocommerce div.product .yith-wfbt-item span.price del span.amount {
		font-size: 12px;
	}
	.product-container .product-gallery .row {
		padding-bottom: 5px;
	}
	.product-header h5 {
		padding-left: 15px;
	}
}
@media screen and (max-width: 767px){
	.yith-wfbt-section.woocommerce {
		margin-top: 0px;
	}
	.section-title-normal {
		margin-top: 0px;
	}
	body .header.show-on-scroll, .stuck .header-main {
		height: 60px!important;
	}
	body .stuck #logo img {
		max-height: 60px!important;
	}
	p.name.product-title {
		font-size: 13px;
	}
	.fix-mobile, .header-main i.icon-menu {
		display: block;
	}
	.col.product span.amount {
		font-size: 16px;
	}
	body.has-bottom-nav {
		padding-bottom: 48px;
	}
	.section-title-normal span {
		width: auto;
	}
	.category-filter-row {
		padding: 0px 0;
		float: left;
		display: none;
	}
	.filter-button {
		display: flex;
    	align-items: center;
		margin-top: 0;
	}
	.filter-button i {
		font-size: 18px;
		line-height: 1.5;
		margin-right: 5px;
	}
	.woocommerce-ordering, .woocommerce-ordering select {
		margin: 0px 0;
		height: 30px;
		float: right;
		    display: none;
	}
	.name.product-title a {
		font-size: 15px;
	}
	.star-rating {
		font-size: 14px;
	}
	.total_sale:before {
		margin: 0px 5px;
	}
	.total_sale {
		transform: translateY(-2px);
	}
	.box-text .price-wrapper {
		margin-top: 5px;
	}
	.box-text .price-wrapper .price {
		display: block;
		margin-top: 4px;
	}
	body:not(.home) #footer {
		margin-top: 10px;
	}	
	.header-main .nav-left {
		justify-content: start;
	}
	.breadcrumbs {
		text-transform: inherit;
		font-size: 13px;
		margin-bottom: 5px;
		text-align: left;
	}
	.category-page-row {
		padding-top: 0px;
	}
	.col.product del span.amount {
		font-size: 14px;
	}
	.page-title-inner {
		min-height: unset;
	}
	h1.product-title.product_title {
		font-size: 1.1em;
		margin-bottom: 0;
	}
	.product-container .row {
		padding-bottom: 10px;
	}
	.product-info span.amount {
		font-size: 20px;
	}
	.product-info del span.amount {
		font-size: 16px;
	}
	.product-short-description, label, legend, .thwvsf-wrapper-ul .thwvsf-item-span.item-span-text,
	.km_box, body p{
		font-size: 13px;
	}
	.thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li {
		width: 52px;
		height: 25px;
	}
	.quantity+.button, .quantity input[type="number"] {
		margin-right: 0;
		font-size: 14px;
	}
	.quantity input {
		line-height: 1.4em;
		min-height: unset;
	}
	input.yith-wfbt-submit-button.button {
		margin-right: 0;
		font-size: 13px;
		margin-bottom: 0;
	}
	.yith-wfbt-submit-block span.total_price_label {
		font-size: 14px;
	}
	.single .yith-wfbt-form span.amount {
		font-size: 16px;
	}
	.single .yith-wfbt-form del span.amount {
		font-size: 12px;
		text-decoration: line-through;
	}
	.entry-summary ul li.yith-wfbt-item {
		margin-left: 0;
	}
	.yith-wfbt-section .yith-wfbt-items {
		list-style: none;
		float: left;
	}
	.yith-wfbt-item span.product-name {
		font-size: 12px;
		width: 70%;
		float: left;
		color: #3a3a3a;
	}
	.woocommerce div.product .yith-wfbt-item span.price {
		width: 30%;
		line-height: 20px;
	}
	.woocommerce div.product .yith-wfbt-item span.price span.amount {
		font-size: 14px;
	}
	.woocommerce div.product .yith-wfbt-item span.price del span.amount {
		font-size: 12px;
	}
	.chinh-sach .icon-box-img {
		width: 30px !important;
	}
	.chinh-sach .icon-box-left .icon-box-img+.icon-box-text {
		padding-left: 5px;
	}
	.chinh-sach .icon-box-text p {
		margin-bottom: 0;
		font-size: 11px;
		font-weight: 600;
		color: #3a3a3a;
	}
	.product-header h5 {
		margin-top: 10px;
		padding-left: 15px;
		font-size: 16px;
	}
	.product-main {
		padding-bottom: 0px;
	}
	.page-title:not(.featured-title)+main .product-main {
		padding-top: 0;
	}
	h3.product-section-title-related span {
		padding-left: 15px;
		font-size: 16px;
	}
	.related.related-products-wrapper.product-section .row {
		padding: 0px 15px;
		margin: 0;
	}
	.related.related-products-wrapper .flickity-viewport{
		border-left: 0.5px solid #e6e6e6;
	}
	.has-border {
		border: 2px solid #446084;
		padding: 10px 10px 0px;
	}
	h3#reply-title {
		font-size: 16px;
	}
	.comment-respond form#commentform {
		margin-bottom: 0;
	}
	.row-small>.flickity-viewport>.flickity-slider>.col{
		padding: 0 6.8px 9.6px;
		margin-bottom: 0;
	}
	.product-thumbnails img {
		padding: 0px;
	}
	.footer .col {
		width: 100%;
	}
	.product-gallery.large-6.col {
		width: 100%;
	}
	.hot-deal .ux-timer {
		top: -12px;
		right: -6px;
		width: 165px;
		font-size: 100% !important;
	}
	.hot-deal .ux-timer span {
		padding: 5px 5px 1px;
	}
	.hot-deal .ux-timer span strong {
		font-size: 55%;
	}
	.box-advanced {
		margin-bottom: 15px;
		font-size: 14px;
	}
	.info-content span {
		width: 37%;
		display: inline-block;
	}
	.single a.button.size-guide {
		width: 100%;
		margin-left: 0;
	}
	.ux-swatch--label {
		min-width: 30px;
		min-height: 25px;
		padding: 0 5px;
		font-size: 13px;
	}
	.variations td.label {
		padding-right: 5px;
	}
	.single-product .mfp-container {
		padding: 0;
	}
	.yith-wfbt-section .yith-wfbt-submit-block {
		margin-bottom: 0 !important;
	}
	.yith-wfbt-submit-block .yith-wfbt-submit-button {
		margin: 5px 0 0;
	}
	.yith-wfbt-section .yith-wfbt-items {
		margin: 10px 0 10px !important;
	}
}

/*************************************************************
 * NEW HEADER - QKA STYLE
 * Cấu trúc: Top bar mỏng | Main row (logo+search+account) | Nav bar đỏ
 * Override các rule cũ trong file này bằng selector specificity cao hơn
 *************************************************************/

/* ===== ĐỒNG BỘ CONTAINER 1230px CHO TOÀN SITE =====
 * MỌI CHỖ phải = chiều rộng header 1230px - không có ngoại lệ */

/* Biến CSS để mọi chỗ tham chiếu */
:root {
    --site-max-width: 1230px;
}

/* Override TOÀN BỘ .container ở mọi vị trí */
body .container,
body.home .container,
body #content .container,
body #footer .container,
body .footer-wrapper .container,
body .absolute-footer .container,
body main .container,
body .page-wrapper .container,
body .row-container,
body .legal-warning-footer .container,
body .page-title .container,
body section .container,
body article .container,
body .section .section-content,
body section.section .section-content,
body .section-content,
body .footer-1 .container,
body .footer-2 .container,
body .footer-3 .container,
body .product-section .container,
body .related .container,
body .woocommerce .container,
body div[class*="container"]:not(.flickity-viewport):not(.row-collapse):not([class*="pswp__"]) {
    max-width: 1230px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    /* padding-left: 15px !important; */
    /* padding-right: 15px !important; */
    box-sizing: border-box !important;
    width: 100% !important;
}
/* Mobile: giảm padding container để không bị hẹp quá nhiều */
@media (max-width: 767px) {
    body div[class*="container"]:not(.flickity-viewport):not(.row-collapse):not([class*="pswp__"]) {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

/* .row: tự giới hạn 1230px = bằng container, đồng bộ width toàn site */
body .row {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 1230px !important;
}

/* Section full-width OK, nhưng content bên trong 1230px */
body section.section,
body .section {
    width: 100% !important;
    max-width: 100% !important;
}

/* Footer full-width nhưng container bên trong 1230px */
body #footer,
body .footer-wrapper,
body .footer-1,
body .footer-2,
body .footer-3 {
    width: 100% !important;
}

/* CTA card (Cam Kết, Newsletter): khớp đúng 1230px như mọi chỗ */
body.home .section.dark .section-bg,
body.home section.dark .section-bg,
body.home .section .section-bg[style*="rgb(237"],
body.home .section .section-bg[style*="rgb(183"],
body.home .section .section-bg[style*="rgb(45"],
body.home section.section.dark:before {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 30px) !important;
    max-width: 1230px !important;  /* ĐÚNG 1230 không phải 1200 */
    border-radius: 12px !important;
}

/* Banner slider [memip_banner_slider]: full container = 1230px */
body .memip-banner-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
}

/* Body không được constrain */
body {
    max-width: 100% !important;
}

/* Override Flatsome theme option max_width nếu có */
.large,
.large-12.col,
.large-12 {
    max-width: 100% !important;
}

/* ===== HERO SLIDER & MỌI SLIDER UX-SLIDER: ép 1230px khớp header ===== */
body.home .section:first-of-type,
body.home .section:has(.ux-slider),
body.home .section:has(.flickity-enabled) {
    max-width: 1230px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}
body.home .section:first-of-type .ux-slider,
body.home .section:first-of-type .flickity-enabled,
body.home .ux-slider,
body.home .flickity-viewport {
    max-width: 100% !important;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}
body.home .ux-banner {
    border-radius: 10px;
}
/* Ux-products slider trong section: cũng tuân 1230px container */
body.home .ux_products,
body.home .products {
    max-width: 100% !important;
}

/* ===== FONT SIZE NHỎ LẠI CHO HỢP TIẾNG VIỆT ===== */
/* Mặc định Flatsome 16px → giảm còn 14px cho dễ đọc tiếng Việt
 * KHÔNG set font-weight ở đây vì H tags mặc định đã 700 (Flatsome) */
body {
    font-size: 14px !important;
    line-height: 1.55;
}
body p,
body div,
body span:not(.amount):not(.qka-cart-badge):not(.qka-icon-circle):not(.qka-hotline-text strong) {
    font-size: 14px;
}
body p {
    font-size: 14px !important;
}
/* Heading - tỉ lệ nhỏ gọn cho VN (theo demo qkawine) */
body h1, body .h1 { font-size: 22px !important; line-height: 1.3; }
body h2, body .h2 { font-size: 18px !important; line-height: 1.3; }
body h3, body .h3 { font-size: 16px !important; line-height: 1.35; }
body h4, body .h4 { font-size: 15px !important; line-height: 1.4; }
body h5, body .h5 { font-size: 14px !important; line-height: 1.4; }
body h6, body .h6 { font-size: 13px !important; line-height: 1.4; }
/* Banner / Hero H giữ to nhưng vẫn nhỏ hơn trước */
body .banner h1, body .hero h1 { font-size: 32px !important; }
body .banner h2, body .hero h2 { font-size: 24px !important; }
/* Section title đặc thù */
body .section-title-normal { font-size: 15px !important; }
body .section-title-recently { font-size: 15px !important; }
body .product-section-title-related { font-size: 16px !important; }
/* Product title trên card */
body .name.product-title a,
body p.name.product-title { font-size: 13px !important; line-height: 1.4; font-weight: 500 !important; }
/* Single product title */
body h1.product-title.product_title { font-size: 20px !important; }
/* Price */
body span.amount { font-size: 15px !important; }
body del span.amount { font-size: 12px !important; }
body .product-info span.amount { font-size: 20px !important; }
body .product-info del span.amount { font-size: 14px !important; }
/* Form, input */
body input[type='text'],
body input[type='email'],
body input[type='search'],
body input[type='tel'],
body input[type='password'],
body input[type='number'],
body textarea,
body select { font-size: 14px !important; }
/* Button */
body .button,
body button,
body .btn,
body input[type='submit'] { font-size: 13px !important; }
/* Breadcrumbs */
body .breadcrumbs { font-size: 12px !important; }
/* Widget title - đã H thì khỏi tô đậm thêm, chỉ chỉnh size */
body .widget-title,
body span.widget-title { font-size: 14px !important; }

/* Fix uppercase, h6, span.widget-title, th */
.uppercase, h6, span.widget-title, th {
    letter-spacing: .05em;
    line-height: 0.05;
    /* text-transform: uppercase; */
}
/* Footer text */
body .footer-wrapper { font-size: 13px !important; }
body .footer-wrapper a { font-size: 13px; }
body .absolute-footer { font-size: 12px !important; }

/* Mobile: giảm thêm 1 cấp */
@media (max-width: 767px) {
    body { font-size: 13px !important; }
    body p { font-size: 13px !important; }
    body h1 { font-size: 19px !important; }
    body h2 { font-size: 16px !important; }
    body h3 { font-size: 15px !important; }
    body h4 { font-size: 14px !important; }
    body .banner h1, body .hero h1 { font-size: 24px !important; }
    body .banner h2, body .hero h2 { font-size: 19px !important; }
    body .name.product-title a { font-size: 12px !important; }
    body span.amount { font-size: 14px !important; }
    body h1.product-title.product_title { font-size: 17px !important; }
    body .section-title .section-title-main { font-size: 14px !important; }
}

/* ===== FLATSOME [title] SHORTCODE - ÉP CỐ ĐỊNH ===== */
/* H2 mặc định đã đậm, KHÔNG cần style="bold" làm đậm thêm. Giữ font-weight: 600 (semibold) */
body h2.section-title,
body h3.section-title,
body h4.section-title,
body .section-title {
    font-weight: 600 !important;
}
/* Span chứa text thật - override inline style size="..." */
body .section-title .section-title-main {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}
/* Bold variant - bỏ double bold, chỉ giữ vạch ngang trang trí */
body h2.section-title-bold .section-title-main,
body h3.section-title-bold .section-title-main,
body .section-title-bold .section-title-main {
    font-size: 15px !important;
    font-weight: 700 !important; /* bold cho variant này thôi, không gấp đôi */
}
body .section-title-bold-center .section-title-main,
body .section-title-center .section-title-main {
    font-size: 15px !important;
    font-weight: 600 !important;
}
/* Link "Xem tất cả →" bên phải */
body .section-title a {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #666 !important;
}
body .section-title a:hover {
    color: var(--primary-color) !important;
}

/* ===== ĐỒNG BỘ SECTION TRÊN TRANG HOME ===== */
/* CHIẾN LƯỢC: KHÔNG override background section - để Flatsome tự render.
 * Chỉ giảm padding + style cards bên trong */

/* Container bên trong section: ép 1230px */
body.home .section .section-content,
body.home .section > .row,
body.home .section .row {
    max-width: 1230px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* PADDING GỌN: 18px trên dưới → gap 36px giữa section (was 70px) */
body.home .section {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}
/* Hero slider section: padding 0 */
body.home .section:first-of-type,
body.home .section:has(.ux_slider),
body.home .section:has(.flickity-enabled) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Section CTA dark (có class .dark hoặc .section-dark): padding to hơn */
body.home .section.dark,
body.home section.dark {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}
/* Banner đôi nhỏ */
body.home .section:has(.ux_banner[style*="height: 200px"]),
body.home .section:has(.ux_banner[style*="height: 220px"]) {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* ===== Cards bên trong section (Why us / Trust badges với inline white bg) ===== */
/* Catch mọi div có inline background trắng/sáng và style thành card */
body.home .section div[style*="background:#fff"],
body.home .section div[style*="background: #fff"],
body.home .section div[style*="background:white"],
body.home .section div[style*="background: white"],
body.home .section div[style*="background:#ffffff"],
body.home .section div[style*="background: #ffffff"] {
    background: #fafafa !important;
    border: 1px solid #ebebeb !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    transition: all 0.25s ease;
}
body.home .section div[style*="background:#fff"]:hover,
body.home .section div[style*="background: #fff"]:hover,
body.home .section div[style*="background:white"]:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color) !important;
}

/* ===== NEWSLETTER CTA BUTTON: ép đỏ thay vì white-outline (vô hình) ===== */
body.home .section .button.is-outline.white,
body.home .section .button.is-outline[class*="white"],
body.home section.dark .button.is-outline,
body.home .section[class*="newsletter"] .button {
    background: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
}
body.home section.dark .button.is-outline:hover,
body.home .section .button.is-outline.white:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* Mobile: padding gọn hơn */
@media (max-width: 767px) {
    body.home .section {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    body.home .section.dark {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }
}

/* ===== CTA SECTIONS - card style (không full width) =====
 * Section CTA có bg đậm: constrain bg vào 1200px như card thay vì full màn hình.
 * KHÔNG override bg của section (để Flatsome tự render bg_color) */
body.home .section.dark .section-bg,
body.home section.dark .section-bg,
body.home .section .section-bg[style*="rgb(237"],
body.home .section .section-bg[style*="rgb(183"],
body.home .section .section-bg[style*="rgb(45"] {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: calc(100% - 30px) !important;
    max-width: 1200px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Backup: nếu Flatsome không render bg vào section-bg child, ép trực tiếp section.dark
 * có gradient đỏ vang đặc trưng VN */
body.home section.section.dark:not(:has(.section-bg[style*="rgb"])),
body.home section.section.dark .section-content {
    position: relative;
    z-index: 1;
}
/* Đảm bảo TEXT trắng trong dark section luôn hiện */
body.home section.section.dark h1,
body.home section.section.dark h2,
body.home section.section.dark h3,
body.home section.section.dark h4,
body.home section.section.dark p,
body.home section.section.dark span,
body.home section.section.dark a:not(.button) {
    color: #fff !important;
}
/* Nếu section.dark KHÔNG có section-bg với màu inline → tạo card đỏ bằng pseudo */
body.home section.section.dark:not(:has(.section-bg.bg-loaded)):before,
body.home section.section.dark:not(:has(.section-bg[style])):before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 1200px;
    background: linear-gradient(135deg, var(--primary-color), #8b1414);
    border-radius: 12px;
    z-index: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Mobile: CTA card co lại sát 2 mép */
@media (max-width: 767px) {
    body.home .section.dark .section-bg,
    body.home section.dark .section-bg,
    body.home section.section.dark:before {
        width: calc(100% - 20px) !important;
        border-radius: 8px !important;
    }
}

/* ===== 8 DANH MỤC TRÊN HOME - PHONG CÁCH VN (TIKI/SHOPEE) ===== */
/* Mặc định [ux_product_categories style="overlay"] tạo box vuông to với overlay
 * → Override sang dạng: icon tròn 80px, text dưới, không viền */
body.home .product-category,
body.home .col.product-category {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 5px !important;
    margin: 0 !important;
}
body.home .product-category .box,
body.home .product-category > .box {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}
/* Khung ảnh: bo tròn 50% (icon tròn) */
body.home .product-category .box-image {
    width: 75px !important;
    height: 75px !important;
    max-height: 75px !important;
    min-height: 75px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f7f5f0 !important;
    border: 2px solid #f0e8e0 !important;
    transition: all 0.25s ease;
    flex-basis: auto !important;
}
body.home .product-category .box-image:before {
    display: none !important;
    content: none !important;
}
body.home .product-category .box-image > .image,
body.home .product-category .box-image > div {
    width: 100% !important;
    height: 100% !important;
    padding-top: 0 !important;
}
body.home .product-category .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
/* Khung text: căn giữa dưới */
body.home .product-category .box-text {
    padding: 8px 2px 0 !important;
    text-align: center !important;
    background: transparent !important;
    position: static !important;
    transform: none !important;
}
body.home .product-category .box-text .header-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.3;
    color: #333 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.home .product-category .box-text .is-divider,
body.home .product-category .box-text p,
body.home .product-category .category-count {
    display: none !important;
}
/* Overlay text style: ép sang dạng dưới */
body.home .product-category.has-hover .box-text,
body.home .product-category .box-overlay {
    position: static !important;
    background: transparent !important;
    color: #333 !important;
    transform: none !important;
    padding: 8px 2px 0 !important;
    text-align: center !important;
}
body.home .product-category .box-text-inner.dark a {
    color: #333 !important;
}
/* Hover: icon đỏ + scale */
body.home .product-category:hover .box-image {
    border-color: var(--primary-color) !important;
    transform: scale(1.05);
}
body.home .product-category:hover .box-text .header-title {
    color: var(--primary-color) !important;
}
/* Container row: căn giữa, gap đều */
body.home .product-category-row,
body.home [class*="ux_product_categories"] .row {
    justify-content: center;
}

/* Mobile: icon 60px, text 11px */
@media (max-width: 767px) {
    body.home .product-category .box-image {
        width: 60px !important;
        height: 60px !important;
        max-height: 60px !important;
        min-height: 60px !important;
    }
    body.home .product-category .box-text .header-title {
        font-size: 11px !important;
    }
}

/* ===== TOP BAR ===== */
.qka-top-bar {
    background: #b71c1c;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 0;
}
.qka-top-bar .qka-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1230px;
    margin: 0 auto;
    padding: 5px 15px;
    gap: 20px;
}
.qka-top-bar .qka-top-welcome {
    color: #fff;
    font-weight: 500;
    opacity: 0.95;
}

/* ===== LEGAL WARNING FOOTER ===== */
.legal-warning-footer {
    background: #fff3cd;
    color: #856404;
    padding: 12px 0;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid #ffc107;
    border-bottom: 1px solid #ffc107;
}
.legal-warning-footer .container span {
    display: block;
    font-weight: 500;
}
.qka-top-bar .qka-top-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.qka-top-bar .qka-top-menu li {
    margin: 0;
    padding: 0;
    border: none;
}
.qka-top-bar .qka-top-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.qka-top-bar .qka-top-menu a:hover {
    opacity: 0.8;
    color: #fff;
}

/* ===== MAIN ROW ===== */
.qka-main {
    background: #fff;
    padding: 0;
    border-bottom: 0;
}
.qka-main .qka-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1230px;
    margin: 0 auto;
    padding: 10px 15px;
    gap: 30px;
}
/* Bỏ padding mặc định của Flatsome trên #masthead */
.qka-main#masthead,
#masthead.qka-main {
    min-height: 0 !important;
}
.qka-main + #wide-nav,
.qka-main + .qka-nav-bar {
    margin-top: 0 !important;
}
.qka-main .qka-logo {
    flex: 0 0 auto;
    max-width: 200px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}
.qka-main .qka-logo .qka-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
/* SVG cần width/height cụ thể, GIỚI HẠN trong khung để không đè lên nav */
.qka-main .qka-logo .qka-logo-img {
    height: 55px !important;
    width: 160px !important;
    max-height: 55px !important;
    max-width: 200px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain;
    object-position: left center;
    /* Logo flush trái container - không dịch */
    margin-left: 0;
}
.qka-main .qka-logo {
    padding: 0;
    overflow: hidden;
    align-self: center;
}
.qka-main .qka-logo a {
    overflow: hidden;
    display: block;
    height: 55px;
}
/* Override mọi rule cũ có thể ẩn logo */
.qka-main .qka-logo,
.qka-main .qka-logo a,
.qka-main .qka-logo img {
    visibility: visible !important;
    opacity: 1 !important;
}
.qka-main .qka-logo .qka-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #b71c1c;
}

/* Search bar - chiếm hết khoảng giữa */
.qka-main .qka-search-wrap {
    flex: 1 1 auto;
    max-width: none;
    min-width: 280px;
    position: relative;
}

/* ===== Search suggestions popup ===== */
.qka-search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    width: 720px;
    max-width: calc(100vw - 60px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.22);
    border: 1px solid #eee;
    padding: 22px 26px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    max-height: 80vh;
    overflow-y: auto;
}
.qka-search-suggestions.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Mũi tên chỉ vào input */
.qka-search-suggestions:before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    transform: rotate(45deg);
}
.qka-search-suggestions .search-section {
    margin-bottom: 20px;
}
.qka-search-suggestions .search-section:last-child {
    margin-bottom: 0;
}
.qka-search-suggestions h4 {
    font-size: 15px;
    font-weight: 700;
    color: #b71c1c;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Tag chips - Top tìm kiếm + Thương hiệu */
.qka-search-suggestions .search-tags,
.qka-search-suggestions .search-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.qka-search-suggestions .search-tags a,
.qka-search-suggestions .search-brands a {
    display: inline-block;
    padding: 7px 14px;
    background: #f5f5f5;
    color: #444;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.qka-search-suggestions .search-tags a:hover,
.qka-search-suggestions .search-brands a:hover {
    background: #fff5f5;
    color: #b71c1c;
    border-color: #b71c1c;
}
/* Ưu đãi hot - grid 2 cột */
.qka-search-suggestions .search-deals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.qka-search-suggestions .search-deal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
    border: 1px solid transparent;
}
.qka-search-suggestions .search-deal-item:hover {
    background: #fff5f5;
    border-color: #ffd6d8;
}
.qka-search-suggestions .search-deal-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.qka-search-suggestions .deal-info {
    flex: 1;
    min-width: 0;
}
.qka-search-suggestions .deal-name {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 3px;
}
.qka-search-suggestions .deal-price {
    display: block;
    font-size: 13px;
    color: #b71c1c;
    font-weight: 700;
}
.qka-search-suggestions .deal-price del {
    color: #999;
    font-weight: 400;
    font-size: 11px;
    margin-right: 5px;
}
/* Scrollbar */
.qka-search-suggestions::-webkit-scrollbar { width: 6px; }
.qka-search-suggestions::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 3px; }
.qka-search-suggestions::-webkit-scrollbar-thumb { background: #b71c1c; border-radius: 3px; }

/* Mobile: popup full width */
@media (max-width: 767px) {
    .qka-search-suggestions {
        width: calc(100vw - 30px);
        left: 50%;
        transform: translateX(-50%) translateY(-6px);
    }
    .qka-search-suggestions.open {
        transform: translateX(-50%) translateY(0);
    }
    .qka-search-suggestions .search-deals {
        grid-template-columns: 1fr;
    }
}
.qka-main .qka-search-form {
    position: relative;
    display: flex;
    width: 100%;
    margin: 0;
    border: 2px solid #b71c1c;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
}
.qka-main .qka-search-icon {
    display: flex;
    align-items: center;
    padding: 0 12px 0 18px;
    color: #999;
    font-size: 16px;
}
.qka-main .qka-search-input {
    flex: 1;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 10px 5px;
    font-size: 14px;
    background: transparent;
    margin: 0;
    height: auto;
    min-height: 40px;
}
.qka-main .qka-search-input:focus {
    border: none;
    box-shadow: none;
    outline: none;
}
.qka-main .qka-search-btn {
    background: #b71c1c;
    color: #fff;
    border: none;
    padding: 0 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
}
.qka-main .qka-search-btn:hover {
    background: #b71c1c;
}

/* Account block - bám sát mép phải */
.qka-main .qka-account-block {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
    margin-left: auto;
}
.qka-main .qka-account-link,
.qka-main .qka-cart-link,
.qka-main .qka-hotline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.qka-main .qka-account-link:hover,
.qka-main .qka-cart-link:hover {
    color: #b71c1c;
}
.qka-main .qka-icon-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #b71c1c;
    font-size: 18px;
}
.qka-main .qka-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #b71c1c;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
}
.qka-main .qka-link-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Hotline */
.qka-main .qka-hotline {
    padding-left: 15px;
    border-left: 1px solid #e6e6e6;
    margin-left: 5px;
}
.qka-main .qka-hotline-icon {
    color: #fff;
    background: #b71c1c;
    border-color: #b71c1c;
    animation: qka-pulse 2s infinite;
}
@keyframes qka-pulse {
    0% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(183, 28, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0); }
}
.qka-main .qka-hotline-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.qka-main .qka-hotline-text strong {
    color: #b71c1c;
    font-size: 18px;
    font-weight: 700;
}
.qka-main .qka-hotline-text small {
    color: #999;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Mobile elements: ẩn trên desktop, hiện trên mobile */
.qka-main .qka-mobile-left,
.qka-main .qka-mobile-right {
    display: none;
}

/* ===== NAV BAR (red) ===== */
.qka-nav-bar {
    background: #b71c1c !important;
    border-bottom: 0;
    margin: 0;
    padding: 0;
    position: relative; /* Anchor cho mega menu full-width */
}
.qka-nav-bar .qka-nav-inner {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px !important;
    position: relative;
}
/* OVERRIDE: ép menu ul và li về padding 0 - thắng mọi rule Flatsome cha */
.qka-nav-bar ul.qka-main-nav,
.qka-nav-bar ul.nav.qka-main-nav,
#wide-nav.qka-nav-bar ul.qka-main-nav {
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
}
.qka-nav-bar .qka-main-nav > li,
.qka-nav-bar ul.nav > li,
#wide-nav.qka-nav-bar > .qka-nav-inner > ul > li {
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
}
/* ITEM ĐẦU: padding-left = 0 → mép trái icon/chữ THẲNG mép trái logo container */
.qka-nav-bar .qka-main-nav > li:first-child > a,
#wide-nav.qka-nav-bar ul > li:first-child > a {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}
.qka-nav-bar .qka-main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: space-between; /* dàn đều item đầu↔logo trái, item cuối↔mép phải dropdown */
    width: 100%;
    background: transparent;
}
.qka-nav-bar .qka-main-nav > li {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
}
.qka-nav-bar .qka-main-nav > li {
    flex-shrink: 0;
    white-space: nowrap;
}
.qka-nav-bar .qka-main-nav > li > a {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 9px 6px !important;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 12px !important;
    font-weight: 600;
    text-decoration: none;
    border: none;
    background: transparent;
    transition: background 0.2s;
    line-height: 1.3;
    letter-spacing: 0.1px;
    white-space: nowrap;
}
.qka-nav-bar .qka-main-nav > li > a:hover,
.qka-nav-bar .qka-main-nav > li.current-menu-item > a {
    background: rgba(0,0,0,0.15) !important;
    color: #fff !important;
}
/* Icon trên nav bar: MÀU TRẮNG (override #wide-nav .menu-item-icon{color:red} cũ) */
.qka-nav-bar .qka-main-nav > li > a .menu-item-icon,
#wide-nav.qka-nav-bar .qka-main-nav > li > a .menu-item-icon {
    width: 14px !important;
    height: 14px !important;
    fill: #fff !important;
    color: #fff !important;
    flex-shrink: 0;
    margin-right: 2px;
}
/* Item nav-icon (Flatsome icon-only menu): icon font cũng phải trắng */
.qka-nav-bar .qka-main-nav li.nav-icon > a,
.qka-nav-bar .qka-main-nav li.nav-icon > a i,
.qka-nav-bar .qka-main-nav li.nav-icon > a i:before,
#wide-nav.qka-nav-bar li.nav-icon a {
    color: #fff !important;
}
/* Home icon đặc biệt: dùng SVG home trắng inline thay cho background image cũ */
.qka-nav-bar .qka-main-nav li.nav-icon > a i.icon-home {
    background: none !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex;
    align-items: center;
}
.qka-nav-bar .qka-main-nav li.nav-icon > a i.icon-home:before {
    content: "\f015"; /* FontAwesome home */
    font-family: 'FontAwesome';
    font-size: 16px;
    color: #fff;
}
/* Nếu không có FontAwesome, fallback bằng emoji nhà */
.qka-nav-bar .qka-main-nav li.nav-icon > a:empty:before {
    content: "🏠";
    font-size: 16px;
}
/* ===== ITEM ĐẦU TIÊN: thẳng mép trái với logo =====
 * Áp dụng cho BẤT KỲ menu nào ở vị trí đầu (Trang Chủ / Rượu Vang / Khuyến Mãi...)
 * Logo container và nav container có cùng padding-left 15px → item đầu cần padding-left: 0
 * để mép trái icon/chữ khớp đúng mép trái logo. */
.qka-nav-bar .qka-main-nav > li:first-child > a {
    padding-left: 0 !important;
}

/* Đánh dấu menu có con bằng mũi tên */
.qka-nav-bar .qka-main-nav > li.menu-item-has-children > a:after {
    content: "\25BE"; /* ▾ */
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.8;
}

/* ============================================
 * MEGA MENU - VIẾT LẠI SẠCH (v2 - 2026-06-01)
 * ============================================
 * Cấu trúc DOM:
 *   <ul.qka-main-nav>
 *     <li.qka-active> RƯỢU VANG
 *       <ul.sub-menu> (TOP DROPDOWN - hiện khi qka-active)
 *         <li> LOẠI VANG
 *           <a> LOẠI VANG
 *           <ul.sub-menu> (COLUMN ITEMS - LUÔN HIỆN)
 *             <li><a>Vang đỏ</a></li>
 *             <li><a>Vang trắng</a></li>
 *
 * Quy tắc:
 * 1. TOP dropdown (cấp 1): ẨN mặc định, HIỆN khi li có .qka-active
 * 2. COLUMN dropdown (cấp 2+): LUÔN HIỆN trong mega menu
 * 3. Empty items: ẨN
 * ============================================ */

/* ===== 1. TOP DROPDOWN (cấp 1) =====
 * !important armed để chống Flatsome cha:
 *  - `.active > ul.sub-menu:not(.nav-dropdown) { display:block !important }`
 *  - `li.current-dropdown > .nav-dropdown { left:-15px; opacity:1; visibility:visible }`
 *  - `li.has-dropdown:hover > .nav-dropdown-full { left:50%!important; position:fixed }`
 * Các rule kia có thể tự bật dropdown ngay cả khi qka-active KHÔNG có,
 * gây phantom hit area: dropdown invisible nhưng vẫn nuốt click.
 * Closed-state phải KHOÁ CỨNG, chỉ active rule mới được mở.
 */
.qka-nav-bar .qka-main-nav > li > .sub-menu,
.qka-nav-bar .qka-main-nav > li > .nav-dropdown {
    position: absolute;
    top: 100%;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 20px 25px;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(5px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    z-index: 100;
    border-radius: 0 0 8px 8px;
    pointer-events: none !important;
    /* MEGA: full container 1230px, căn giữa */
    width: 1230px;
    max-width: calc(100vw - 30px);
    left: -9999px !important; /* ẨN OFF-SCREEN khi closed - tránh phantom hit area */
    margin-left: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0 25px;
}
/* Mở dropdown CHỈ khi JS thêm class .qka-active.
 * !important để thắng lại closed-state phía trên.
 */
.qka-nav-bar .qka-main-nav > li.qka-active > .sub-menu,
.qka-nav-bar .qka-main-nav > li.qka-active > .nav-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto !important;
    left: 50% !important;
    margin-left: -615px !important; /* căn giữa */
}
/* Item cha mega menu: position static để dropdown anchor vào nav-bar */
.qka-nav-bar .qka-main-nav > li.menu-item-has-children {
    position: static;
}
/* Responsive < 1260px: dropdown bám sát 2 mép */
@media (max-width: 1259px) {
    .qka-nav-bar .qka-main-nav > li.qka-active > .sub-menu,
    .qka-nav-bar .qka-main-nav > li.qka-active > .nav-dropdown {
        left: 15px !important;
        margin-left: 0 !important;
        width: calc(100vw - 30px);
    }
}

/* ===== 2. COLUMN HEADER (level 2 - tiêu đề cột "LOẠI VANG") ===== */
.qka-nav-bar .qka-main-nav > li > .sub-menu > li,
.qka-nav-bar .qka-main-nav > li > .nav-dropdown > li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.qka-nav-bar .qka-main-nav > li > .sub-menu > li > a,
.qka-nav-bar .qka-main-nav > li > .nav-dropdown > li > a {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 0 0 8px;
    margin-bottom: 10px;
    font-size: 13px;
    background: transparent;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.qka-nav-bar .qka-main-nav > li > .sub-menu > li > a:hover,
.qka-nav-bar .qka-main-nav > li > .nav-dropdown > li > a:hover {
    color: var(--primary-color);
    background: transparent;
}

/* ===== 3. COLUMN ITEMS (level 3+ - "Vang đỏ, Vang trắng...") ===== */
/* LUÔN HIỆN khi nằm bên trong dropdown - không phụ thuộc qka-active */
.qka-nav-bar .qka-main-nav .sub-menu .sub-menu,
.qka-nav-bar .qka-main-nav .nav-dropdown .nav-dropdown,
.qka-nav-bar .qka-main-nav .sub-menu .nav-dropdown,
.qka-nav-bar .qka-main-nav .nav-dropdown .sub-menu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    width: auto;
    left: auto;
    top: auto;
    pointer-events: auto;
    grid-template-columns: none;
    list-style: none;
    transition: none;
    /* GIỚI HẠN chiều cao + scroll */
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f5f5f5;
}
/* Scrollbar đỏ thanh mảnh */
.qka-nav-bar .qka-main-nav .sub-menu .sub-menu::-webkit-scrollbar,
.qka-nav-bar .qka-main-nav .nav-dropdown .nav-dropdown::-webkit-scrollbar {
    width: 4px;
}
.qka-nav-bar .qka-main-nav .sub-menu .sub-menu::-webkit-scrollbar-track,
.qka-nav-bar .qka-main-nav .nav-dropdown .nav-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 2px;
}
.qka-nav-bar .qka-main-nav .sub-menu .sub-menu::-webkit-scrollbar-thumb,
.qka-nav-bar .qka-main-nav .nav-dropdown .nav-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}
.qka-nav-bar .qka-main-nav .sub-menu .sub-menu li,
.qka-nav-bar .qka-main-nav .nav-dropdown .nav-dropdown li,
.qka-nav-bar .qka-main-nav .sub-menu .nav-dropdown li,
.qka-nav-bar .qka-main-nav .nav-dropdown .sub-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}
.qka-nav-bar .qka-main-nav .sub-menu .sub-menu li > a,
.qka-nav-bar .qka-main-nav .nav-dropdown .nav-dropdown li > a,
.qka-nav-bar .qka-main-nav .sub-menu .nav-dropdown li > a,
.qka-nav-bar .qka-main-nav .nav-dropdown .sub-menu li > a {
    display: block;
    padding: 3px 0 !important;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5 !important;
    min-height: 0 !important;
    text-transform: none;
    text-decoration: none;
    background: transparent;
    border: 0;
    transition: color 0.15s, padding-left 0.15s;
}
.qka-nav-bar .qka-main-nav .sub-menu .sub-menu li > a:hover,
.qka-nav-bar .qka-main-nav .nav-dropdown .nav-dropdown li > a:hover,
.qka-nav-bar .qka-main-nav .sub-menu .nav-dropdown li > a:hover,
.qka-nav-bar .qka-main-nav .nav-dropdown .sub-menu li > a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    background: transparent;
}

/* ===== 4. ẨN EMPTY MENU ITEMS ===== */
.qka-nav-bar .qka-main-nav a:empty,
.qka-nav-bar .qka-main-nav li:has(> a:empty) {
    display: none !important;
}

/* ===== 4b. UNIFORM DROPDOWN MARKER (•) =====
 * Toàn bộ megamenu dùng 1 dấu chấm đỏ thống nhất - không phải đụng code khi thêm rượu mới.
 * - Ẩn mọi .menu-item-icon SVG cũ trong dropdown (PHP vẫn inject từ title keywords, ta che đi)
 * - ::before bullet đỏ trước MỌI item (column header + column items). */
.qka-nav-bar .qka-main-nav > li > .sub-menu .menu-item-icon,
.qka-nav-bar .qka-main-nav > li > .nav-dropdown .menu-item-icon {
    display: none !important;
}
.qka-nav-bar .qka-main-nav > li > .sub-menu li > a::before,
.qka-nav-bar .qka-main-nav > li > .nav-dropdown li > a::before {
    content: "•";
    color: var(--primary-color);
    font-size: 14px;
    line-height: 1;
    margin-right: 6px;
    flex-shrink: 0;
}

/* ===== 5. CHẶN FLATSOME :hover (tránh dropdown nhảy lung tung) ===== */
.qka-nav-bar .qka-main-nav > li:hover:not(.qka-active) > .sub-menu,
.qka-nav-bar .qka-main-nav > li:hover:not(.qka-active) > .nav-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}



/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .qka-top-bar .qka-top-inner {
        flex-direction: column;
        gap: 4px;
        padding: 6px 10px;
        text-align: center;
    }
    .qka-top-bar .qka-legal-text {
        font-size: 12px;
    }
    .qka-top-bar .qka-top-menu {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .qka-main .qka-main-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
    }
    .qka-main .qka-logo {
        order: 2;
        flex: 1;
        max-width: none;
        text-align: center;
    }
    .qka-main .qka-logo img {
        max-height: 45px;
    }
    .qka-main .qka-mobile-left,
    .qka-main .qka-mobile-right {
        display: flex;
        flex: 0 0 auto;
    }
    .qka-main .qka-mobile-left { order: 1; }
    .qka-main .qka-mobile-right { order: 3; }
    .qka-main .qka-search-wrap {
        order: 4;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .qka-nav-bar {
        display: none; /* mobile dùng hamburger + bottom-nav, ẩn thanh nav ngang */
    }
}

@media (max-width: 480px) {
    .qka-top-bar .qka-top-menu a {
        font-size: 12px;
    }
    .qka-main .qka-search-input {
        font-size: 13px;
    }
}

/* ===== NEUTRALIZE OLD CSS that conflicts ===== */
/* Các rule cũ targeting #wide-nav background, color #333 đã được .qka-nav-bar override
 * bằng !important và specificity cao hơn. Không xoá rule cũ để tránh phá trang chưa update.
 */
.qka-main #logo a {
    display: inline-block;
}
.qka-main #logo img {
    padding: 0;
}

/* Disable old contact bar / cart red block when new header active */
body .qka-main .qka-account-block ul#header-contact a,
body .qka-main .qka-account-block li.cart-item > a {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* ============================================
 * PRODUCT CARD - TIKI/SHOPEE STYLE (VN)
 * Áp dụng cho tất cả grid sản phẩm (home, shop, category, related)
 * ============================================ */

.col.product .product-small,
.col.product .product-small.box,
.col.product .box {
    position: relative;
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.col.product:hover .product-small,
.col.product:hover .box {
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Bỏ border cũ */
.col.product.type-product {
    background: transparent !important;
    border: 0 !important;
    padding: 8px !important;
}
.related .col.product.type-product {
    border-top: 0 !important;
}
.related .row {
    border-left: 0 !important;
}

/* ===== ẢNH SẢN PHẨM ===== */
.col.product .box-image,
.col.product .product-small .box-image {
    position: relative;
    overflow: hidden;
    background: #fafafa;
    margin: 0 !important;
}
.col.product .box-image img {
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
}
.col.product:hover .box-image img {
    transform: scale(1.05);
}

/* ===== BADGE SALE (góc trên trái - đỏ) ===== */
.col.product .badge.onsale,
.col.product .badge-container .onsale {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    box-shadow: 0 2px 6px rgba(183, 28, 28, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.col.product .badge-container {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 10;
    margin: 0 !important;
}
.col.product .badge {
    height: auto !important;
}

/* Badge ribbon ngắn gọn "Giảm giá!" → "-XX%" */
.col.product .onsale {
    min-width: 38px;
    text-align: center;
}

/* ===== ICON Wishlist/Compare/QuickView góc phải ===== */
.col.product .wishlist-btn,
.col.product .quick-view-btn,
.col.product .compare-btn {
    top: 8px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    background: rgba(255,255,255,0.95) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}
.col.product .wishlist-btn {
    left: auto !important;
    right: 8px !important;
}
.col.product .quick-view-btn {
    right: 8px !important;
    top: 45px !important;
}
.col.product .compare-btn {
    right: 8px !important;
    top: 82px !important;
}
.col.product .wishlist-btn i,
.col.product .quick-view-btn i,
.col.product .compare-btn i {
    font-size: 12px !important;
}

/* Trên mobile: chỉ giữ wishlist */
@media (max-width: 767px) {
    .col.product .quick-view-btn,
    .col.product .compare-btn { display: none !important; }
}

/* ===== KHỐI TEXT BÊN DƯỚI ẢNH ===== */
.col.product .box-text,
.col.product .box-text-products,
.col.product .product-small .box-text {
    padding: 10px 12px 12px !important;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Tiêu đề sản phẩm */
.col.product .name.product-title {
    margin: 0 0 6px 0 !important;
    min-height: 36px;
}
.col.product .name.product-title a {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #333 !important;
    font-weight: 500 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 36px !important;
    transition: color 0.15s;
}
.col.product:hover .name.product-title a {
    color: var(--primary-color) !important;
}

/* Star rating + review count */
.col.product .star-rating {
    display: inline-block !important;
    font-size: 11px !important;
    margin: 0 !important;
    height: 12px !important;
    line-height: 12px !important;
    vertical-align: middle;
}
.col.product .star-rating + .total_sale {
    display: inline-block;
    font-size: 11px !important;
    color: #999;
    margin-left: 4px;
    transform: translateY(-1px);
}
.col.product .total_sale {
    color: #999 !important;
    font-size: 11px !important;
    font-weight: 500;
}
.col.product .total_sale:before {
    content: "·" !important;
    color: #ccc !important;
    margin: 0 6px !important;
}

/* ===== KHỐI GIÁ ===== */
.col.product .price-wrapper {
    margin: auto 0 0 !important;  /* đẩy giá xuống đáy card */
    padding-top: 6px;
}
.col.product .price-wrapper .price {
    display: block !important;
    margin-top: 0 !important;
    line-height: 1.2;
}
.col.product .price ins {
    background: none !important;
    text-decoration: none !important;
}
.col.product span.amount {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.2;
}
.col.product del span.amount {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    text-decoration: line-through;
    opacity: 1 !important;
    margin-right: 4px;
}
.col.product del {
    margin-right: 0 !important;
    opacity: 1 !important;
}

/* Tỉ lệ % giảm (nếu plugin hỗ trợ) */
.col.product .price-percent {
    background: #fff3cd;
    color: #b71c1c;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

/* ===== "Đã bán X" với progress bar ===== */
.col.product .process-bar,
.col.product .hot-deal .process-bar {
    height: 16px;
    font-size: 11px !important;
    line-height: 16px !important;
    margin-top: 6px;
    background: #ffe5e5;
    color: #b71c1c;
}
.col.product .deals-progress {
    background: linear-gradient(90deg, #ff8a80, var(--primary-color));
}

/* ===== NÚT "Thêm vào giỏ" mini ===== */
.col.product .add_to_cart_button,
.col.product .button.add_to_cart_button,
.col.product .product_type_simple {
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 8px 12px !important;
    margin: 8px 0 0 !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    box-shadow: none !important;
}
.col.product .add_to_cart_button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(183, 28, 28, 0.25) !important;
}
.col.product .add_to_cart_button.added:after {
    content: "✓";
    margin-left: 5px;
}

/* Variable / external product button */
.col.product .product_type_variable,
.col.product .product_type_external {
    background: #fff !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
}

/* Mobile: ép nhỏ hơn */
@media (max-width: 767px) {
    .col.product .product-small,
    .col.product .box {
        border-radius: 6px !important;
    }
    .col.product .box-text {
        padding: 8px 8px 10px !important;
    }
    .col.product .name.product-title a {
        font-size: 12px !important;
    }
    .col.product span.amount {
        font-size: 14px !important;
    }
    .col.product .add_to_cart_button {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
    .col.product .badge.onsale {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

/* ============================================
 * SINGLE PRODUCT PAGE - TỐI ƯU CONVERSION (VN)
 * ============================================ */

/* Layout */
.single-product .product-main {
    padding: 20px 0 !important;
}
.single-product .product-gallery {
    padding-right: 25px;
}
@media (max-width: 991px) {
    .single-product .product-gallery {
        padding-right: 0;
    }
}

/* Gallery ảnh */
.single-product .product-images .flickity-viewport,
.single-product .product-images img {
    border-radius: 10px;
}
.single-product .product-thumbnails {
    margin-top: 12px;
}
.single-product .product-thumbnails img {
    border-radius: 6px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.single-product .product-thumbnails .is-nav-selected img,
.single-product .product-thumbnails a:hover img {
    border-color: var(--primary-color) !important;
}

/* Title */
.single-product h1.product-title.product_title {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
    color: #1a1a1a !important;
}

/* SKU + brand */
.single-product .product_meta {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    font-size: 12px;
    color: #888;
}
.single-product .product_meta > span {
    display: inline-block !important;
    border: 0 !important;
    padding: 0 12px 0 0 !important;
    font-size: 12px !important;
    color: #777 !important;
}

/* Khối giá nổi bật */
.single-product .product-info .price-wrapper,
.single-product .product-info > p.price,
.single-product .product-info .price:not(del):not(ins) {
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    padding: 1px 18px !important;
    border-radius: 8px;
    /* border-left: 4px solid var(--primary-color); */
    margin: 12px 0 15px !important;
}
.single-product .product-info span.amount {
    font-size: 28px !important;
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}
.single-product .product-info del span.amount {
    font-size: 16px !important;
    color: #999 !important;
    font-weight: 400 !important;
    margin-right: 12px;
    text-decoration: line-through;
    opacity: 1 !important;
}
.single-product .product-info ins {
    background: none !important;
    text-decoration: none !important;
}

/* Short description */
.single-product .product-short-description {
    background: #fafafa;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    margin: 0 0 15px !important;
}
.single-product .product-short-description ul {
    margin: 0 !important;
    padding: 0 !important;
}
.single-product .product-short-description ul li {
    list-style: none !important;
    padding: 4px 0 4px 22px !important;
    position: relative;
    margin: 0 !important;
    line-height: 1.5;
}
.single-product .product-short-description ul li:before {
    content: "✓" !important;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
    font-weight: 700;
    font-family: inherit !important;
}

/* Quantity + Add to cart */
.single-product .product-info form.cart {
    margin: 0 0 12px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 10px;
    flex-wrap: wrap;
}
.single-product .product-info form.cart .quantity {
    flex: 0 0 auto;
}
.single-product .product-info .quantity input.qty {
    width: 70px !important;
    height: 46px !important;
    padding: 0 8px !important;
    font-size: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    text-align: center;
}
.single-product .product-info form.cart .single_add_to_cart_button {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    padding: 0 10px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.25) !important;
    transition: all 0.2s;
}
.single-product .product-info form.cart .single_add_to_cart_button:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.35) !important;
}
.single-product .buy-now-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    padding: 0 10px !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trust badges product polish */
.trust-badges-product {
    background: linear-gradient(135deg, #fff8e1, #ffffff) !important;
    border: 1px solid #ffd54f !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    margin: 15px 0 !important;
}
.trust-badges-product .badge-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px; /* Tăng gap cột từ 20px lên 40px để dịch badge phải sang phải */
    margin: 0 !important;
}
.trust-badges-product .badge-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
    color: #444 !important;
}
/* Badge ở cột phải (item thứ 3 và 4) - thêm margin-left để dịch thêm sang phải */
.trust-badges-product .badge-row .badge-item:nth-child(3),
.trust-badges-product .badge-row .badge-item:nth-child(4) {
    margin-left: 20px;
}
.trust-badges-product .badge-item svg,
.trust-badges-product .badge-item i {
    width: 22px !important;
    height: 22px !important;
    color: var(--primary-color) !important;
    fill: var(--primary-color) !important;
    flex-shrink: 0;
}

/* Stock urgency polish */
.stock-urgency {
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 14px !important;
    margin: 12px 0 !important;
}
.stock-urgency.low-stock {
    background: linear-gradient(90deg, #fff3cd, #ffe5b4) !important;
    border: 0 !important;
    border-left: 4px solid #f57c00 !important;
    color: #d84315 !important;
}
.stock-urgency.in-stock {
    background: linear-gradient(90deg, #d4edda, #e8f5e9) !important;
    border: 0 !important;
    border-left: 4px solid #28a745 !important;
    color: #1b5e20 !important;
}

/* Sale countdown polish */
.sale-countdown {
    border-radius: 10px !important;
    padding: 16px 18px !important;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.2);
}
.countdown-number {
    font-size: 26px !important;
}

/* KM box */
.km_box {
    background: #fff8e1;
    border: 1px dashed #ffc107;
    border-radius: 8px;
    padding: 12px 15px !important;
    margin: 12px 0 !important;
}
.km_box h4 {
    color: var(--primary-color) !important;
    margin: 0 0 8px !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Box advanced - info NCC */
.box-advanced {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 8px 12px !important;
    margin: 12px 0 !important;
}
.info-content {
    padding: 5px 0 !important;
    border-bottom: 1px dashed #f0f0f0 !important;
    font-size: 13px;
}
.info-content:last-child {
    border-bottom: 0 !important;
}
.info-content span {
    color: #777 !important;
    font-weight: 500;
}
.info-content a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== GIÁ + META - DISABLED, dùng style-qkawine-fix.css =====

/* ===== GIÁ + META - Giống ảnh 3.png ===== */

/* Container chính - flex ngang */
.qkawine-price-meta {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 10px 0 15px 0;
    flex-wrap: nowrap;
    width: 100%;
}

/* ===== BOX GIÁ BÊN TRÁI ===== */
.price-box {
    background: linear-gradient(135deg, #e65100 0%, #c62828 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    width: 130px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badge giảm giá - đỏ đậm như ảnh 3 */
.price-box .discount-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #c62828;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Giá sale (trắng to) */
.price-box .sale-price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.2;
}
.price-box .sale-price .woocommerce-Price-amount {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}
/* Symbol ₫ nhỏ ở trên (superscript) */
.price-box .sale-price sup,
.price-box .regular-price sup {
    font-size: 12px !important;
    vertical-align: super;
    line-height: 0;
}

/* Giá gốc gạch ngang (nhỏ hơn, mờ hơn) */
.price-box .regular-price {
    font-size: 14px !important;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: line-through;
    margin-top: 4px;
}
.price-box .regular-price .woocommerce-Price-amount {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px !important;
}

/* ===== META BÊN PHẢI ===== */
.meta-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 2px;
}

/* Hàng 1: SKU + Rating */
.meta-line-1 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}
.meta-line-1 .meta-sku {
    color: #666;
}
.meta-line-1 .meta-stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 1px;
}
.meta-line-1 .meta-rating-text {
    color: #666;
}

/* Hàng 2: Đã bán + Còn hàng */
.meta-line-2 {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
}
.meta-line-2 .meta-sold {
    color: #666;
}
.meta-line-2 .meta-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.meta-line-2 .meta-stock.in-stock {
    color: #11B400;
}
.meta-line-2 .meta-stock.out-stock {
    color: #d32f2f;
}
.meta-line-2 .meta-stock svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .qkawine-price-meta {
        flex-direction: column;
    }
    .price-box {
        min-width: auto;
        width: 100%;
    }
}

*/

/* Original product info box CSS - keep below */
/* Product Info Box - Grid 2 cột như ảnh 3.png */
.product-info-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 12px 15px !important;
    margin: 15px 0 !important;
}
.product-info-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-transform: none !important;
}
.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}
.product-info-item {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
}
.info-label {
    color: #777 !important;
    font-weight: 500;
    min-width: 85px;
    flex-shrink: 0;
}
.info-value {
    color: #333 !important;
    font-weight: 500;
    flex: 1;
}
.info-value a {
    color: var(--primary-color) !important;
    font-weight: 500;
}
.info-value a:hover {
    text-decoration: underline;
}

/* Responsive - mobile hiện 1 cột */
@media (max-width: 480px) {
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .product-info-box {
        padding: 10px 12px !important;
    }
}

/* Product tabs */
.single-product .product-footer .tab-panels {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 22px 10px !important;
    border: 1px solid #f0f0f0;
}
/* Bỏ padding nested .woocommerce-tabs.container (đã có outer .container 15px) */
.single-product .product-footer .woocommerce-tabs.container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
@media (max-width: 767px) {
    .single-product .product-footer .tab-panels {
        padding: 16px 6px !important;
        border-radius: 6px !important;
    }
    /* Nội dung mô tả mobile: chữ phải đủ to (default 13px → 15px) */
    .single-product #tab-description,
    .single-product #tab-description p,
    .single-product #tab-description li,
    .single-product #tab-description td,
    .single-product .entry-content p,
    .single-product .entry-content li {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }
    /* Bảng giá: override inline style 13px → 15px */
    .single-product .memip-price-table th,
    .single-product .memip-price-table td {
        font-size: 14.5px !important;
        padding: 10px 6px !important;
    }
    .single-product .memip-price-table thead th { font-size: 15.5px !important; }
    .single-product .memip-price-table-caption { font-size: 13.5px !important; }
}
.single-product .product-tabs {
    border-bottom: 2px solid var(--primary-color) !important;
}
.single-product .product-tabs li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    color: #666 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s;
}
.single-product .product-tabs li.active a,
.single-product .product-tabs li a:hover {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
    background: transparent !important;
}

/* Social share */
.social-share-wrapper {
    margin: 18px 0 !important;
    padding: 15px 0 !important;
}
.share-btn {
    width: 38px !important;
    height: 38px !important;
}

/* Mobile single product */
@media (max-width: 767px) {
    .single-product h1.product-title.product_title {
        font-size: 18px !important;
    }
    .single-product .product-info span.amount {
        font-size: 22px !important;
    }
    /* Giảm padding cho trang chi tiết sản phẩm trên mobile */
    .single-product .product-main > .row,
    .single-product .product-footer > .row,
    .single-product .related.products > .row {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .single-product .shop-container,
    .single-product .product-container {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .single-product .product-info .price-wrapper,
    .single-product .product-info > p.price {
        padding: 10px 12px !important;
    }
    .single-product .product-info form.cart {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .single-product .product-info .quantity input.qty {
        width: 50px !important;
        height: 38px !important;
        font-size: 13px !important;
    }
    .single-product .product-info form.cart .single_add_to_cart_button,
    .single-product .buy-now-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 38px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    /* Trust badges: giữ grid 2x2 trên mobile (compact hơn stack dọc 4 dòng).
     * Bóp gap + font + icon size để fit container ~270-330px. */
    .trust-badges-product {
        padding: 10px 12px !important;
    }
    .trust-badges-product .badge-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 10px !important;
    }
    .trust-badges-product .badge-item {
        font-size: 12px !important;
        gap: 6px !important;
        min-width: 0;
    }
    .trust-badges-product .badge-item svg,
    .trust-badges-product .badge-item i {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Hạ font dưới 360 cho 3 nút qty/add/buy khít hơn */
@media (max-width: 359px) {
    .single-product .product-info form.cart .single_add_to_cart_button,
    .single-product .buy-now-btn {
        font-size: 10px !important;
        padding: 0 4px !important;
    }
    .single-product .product-info .quantity input.qty {
        width: 42px !important;
    }
    /* Trên màn cực hẹp: rút gọn "THÊM VÀO GIỎ HÀNG" -> "THÊM" */
    .single-product .product-info form.cart .single_add_to_cart_button {
        font-size: 0 !important;
    }
    .single-product .product-info form.cart .single_add_to_cart_button::before {
        content: "Thêm giỏ";
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }
    .single-product .buy-now-btn {
        font-size: 0 !important;
    }
    .single-product .buy-now-btn::before {
        content: "Mua ngay";
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
    }
    .single-product .buy-now-btn i {
        display: none !important;
    }
}

/* ===== ẨN SKU + DANH MỤC + THẺ SẢN PHẨM Ở PRODUCT META (single product) ===== */
/* Giữ DOM để Woo + plugin SEO vẫn đọc được, chỉ ẩn visual */
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
    display: none !important;
}
/* Nếu sau khi ẩn 3 dòng trên mà .product_meta rỗng → ẩn luôn cả wrapper */
.single-product .product_meta:empty {
    display: none !important;
}

/* ===== ẨN THÔNG TIN SẢN PHẨM THỪA (xuất xứ, kho hàng, thương hiệu, tính chất, loại sản phẩm) ===== */
/* Ẩn tab "Thông tin thêm" chứa product attributes vì đã dùng product_attributes riêng */
/* KHÔNG dùng .panel chung — sẽ ẩn cả Description. PHP đã unset tab additional_information rồi. */
.single-product .woocommerce-tabs .additional_information_tab,
.single-product .woocommerce-tabs .panel.woocommerce-Tabs-panel--additional_information,
.single-product .woocommerce-product-attributes,
.single-product table.shop_attributes,
.single-product .product-attributes {
    display: none !important;
}
/* Ẩn các custom field hoặc meta field thừa nếu có */
.single-product .custom-field,
.single-product .meta-field,
.single-product .product-extra-info {
    display: none !important;
}

/* ===== ẨN BADGE "ĐÃ BÁN: X" Ở SHOP LOOP =====
 * Class .hidden-sale đã được set sẵn từ PHP (inc/woocommerce-product-fields.php).
 * Giữ DOM + meta _custom_sale_stock trong DB để admin vẫn nhập được + bật lại dễ.
 * Định vị vang premium → không hiện social-proof số lượng bán.
 */
.total_sale.hidden-sale { display: none !important; }

/* ============================================
 * MOBILE SIDEBAR (wineinsiders pattern) - 2026-06-03
 * Drawer slide-in từ trái, bg trắng-be, items 52px có separator,
 * sub-menu xổ inline (accordion) khi tap toggle button.
 * Tất cả selectors scope dưới .off-canvas-left hoặc .mobile-sidebar
 * để không leak sang desktop nav.
 * ============================================ */

/* ----- 1. Drawer container ----- */
.off-canvas-left .mfp-content,
.off-canvas-right .mfp-content {
    --drawer-width: 320px;
    width: 320px;
}
.off-canvas-left .mfp-content {
    background: #fdfcf9 !important;
    box-shadow: 2px 0 16px rgba(0,0,0,0.18);
}

/* ----- 2. Sidebar root container ----- */
.mobile-sidebar,
.mobile-sidebar .sidebar-menu {
    background: #fdfcf9;
    padding: 0;
    color: #2b1a14;
}
.mobile-sidebar .nav.nav-sidebar {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ----- 3. Item rows (level 1) ----- */
.mobile-sidebar .nav-sidebar > li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    list-style: none;
    margin: 0;
}
.mobile-sidebar .nav-sidebar > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 56px 0 16px; /* chừa chỗ cho .toggle button bên phải */
    color: #2b1a14 !important;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    line-height: 1.3;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}
.mobile-sidebar .nav-sidebar > li > a:hover,
.mobile-sidebar .nav-sidebar > li.active > a {
    background: #f5efe6;
    color: #b71c1c !important;
}
.mobile-sidebar .nav-sidebar > li > a .menu-item-icon,
.mobile-sidebar .nav-sidebar > li > a > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: currentColor;
    fill: currentColor;
}

/* ----- 4. Toggle button (caret) ----- */
.mobile-sidebar .nav-sidebar li.has-child > .toggle,
.mobile-sidebar .nav-sidebar li.menu-item-has-children > .toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    border: 0;
    background: transparent;
    color: #6b5a4f;
    cursor: pointer;
    transition: transform 0.2s, color 0.15s;
    padding: 0;
    margin: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-sidebar .nav-sidebar li.has-child > .toggle i,
.mobile-sidebar .nav-sidebar li.menu-item-has-children > .toggle i {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s;
}
.mobile-sidebar .nav-sidebar li.active > .toggle i,
.mobile-sidebar .nav-sidebar li.has-child.active > .toggle i {
    transform: rotate(180deg);
}
.mobile-sidebar .nav-sidebar li.active > .toggle {
    color: #b71c1c;
}

/* ----- 5. Sub-menu = iOS slide panel ----- */
/* Sidebar-menu là sân khấu, mỗi cấp menu trượt ngang. */
.mobile-sidebar > .sidebar-menu {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mobile-sidebar > .sidebar-menu > .nav.nav-sidebar {
    flex: 1;
    min-height: 0;
    position: relative;
    left: 0;
    /* iOS-style easing: nhanh ra, chậm về cuối */
    transition: left .32s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: left;
}
.mobile-sidebar > .sidebar-menu > .nav.nav-sidebar.has-active-child {
    left: -100%;
}
/* Level-1 li: dùng flex để button.toggle nằm cùng row với <a>, không cần absolute.
 * Lý do: muốn submenu (position absolute) reference nav-sidebar height, KHÔNG phải li (52px).
 * → bỏ position relative trên li level-1, layout toggle bằng flex. */
.mobile-sidebar > .sidebar-menu > .nav.nav-sidebar > li {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.mobile-sidebar > .sidebar-menu > .nav.nav-sidebar > li > a {
    flex: 1 1 auto;
    padding-right: 16px;
}
.mobile-sidebar > .sidebar-menu > .nav.nav-sidebar > li > button.toggle,
.mobile-sidebar > .sidebar-menu > .nav.nav-sidebar > li > .toggle {
    position: static;
    flex: 0 0 52px;
    align-self: stretch;
    height: auto;
}
/* Sub-menu nằm ngoài viewport bên phải nav-sidebar (left:100%).
 * Animation đến từ nav-sidebar.left transition — submenu là con, dịch chuyển cùng.
 * Khi parent.active, chỉ toggle visibility (không thêm transform để tránh dịch 2 lần). */
.mobile-sidebar .nav-sidebar > li.has-child > .sub-menu,
.mobile-sidebar .nav-sidebar > li.has-child > .children,
.mobile-sidebar .nav-sidebar > li.menu-item-has-children > .sub-menu,
.mobile-sidebar .nav-sidebar > li.menu-item-has-children > .children {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fdfcf9;
    list-style: none;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    visibility: hidden;
    pointer-events: none;
}
.mobile-sidebar .nav-sidebar > li.has-child.active > .sub-menu,
.mobile-sidebar .nav-sidebar > li.has-child.active > .children,
.mobile-sidebar .nav-sidebar > li.menu-item-has-children.active > .sub-menu,
.mobile-sidebar .nav-sidebar > li.menu-item-has-children.active > .children {
    visibility: visible;
    pointer-events: auto;
}

/* Level-3+ submenu: dùng accordion (display none/block), nằm trong slide panel level-2 */
.mobile-sidebar .nav-sidebar .sub-menu .sub-menu,
.mobile-sidebar .nav-sidebar .sub-menu .children,
.mobile-sidebar .nav-sidebar .children .sub-menu,
.mobile-sidebar .nav-sidebar .children .children {
    position: static;
    width: auto;
    height: auto;
    left: auto;
    top: auto;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    transition: none;
    display: none;
}
.mobile-sidebar .nav-sidebar .sub-menu li.active > .sub-menu,
.mobile-sidebar .nav-sidebar .sub-menu li.active > .children,
.mobile-sidebar .nav-sidebar .children li.active > .sub-menu,
.mobile-sidebar .nav-sidebar .children li.active > .children {
    display: block;
}

/* Back-row (JS inject vào đầu mỗi sub-menu) */
.mobile-sidebar .parent-link-back {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #f5efe6;
    list-style: none;
    margin: 0;
}
.mobile-sidebar .parent-link-back > button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    background: transparent;
    border: 0;
    color: #b71c1c;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    text-align: left;
}
.mobile-sidebar .parent-link-back svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 20px;
}

/* Forward arrow trong toggle: ẩn caret cũ, vẽ arrow phải bằng pseudo */
.mobile-sidebar .nav-sidebar li.has-child > .toggle > i,
.mobile-sidebar .nav-sidebar li.menu-item-has-children > .toggle > i {
    display: none;
}
.mobile-sidebar .nav-sidebar li.has-child > .toggle::after,
.mobile-sidebar .nav-sidebar li.menu-item-has-children > .toggle::after {
    content: '';
    width: 20px;
    height: 20px;
    background: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23362319'><path d='M14 18L12.6 16.55L16.15 13H4V11H16.15L12.6 7.45L14 6L20 12L14 18Z'/></svg>");
}
.mobile-sidebar .nav-sidebar li.active > .toggle i,
.mobile-sidebar .nav-sidebar li.has-child.active > .toggle i {
    transform: none;
}

/* ----- Nested toggle (level-2+) accordion chevron -----
 * Khác level-1: KHÔNG dùng forward-arrow (→), dùng caret-down (▼) vì là accordion mở inline.
 * Lưu ý: class chỉ là `.nested-toggle` (không kèm .toggle) để tránh delegated handler của Flatsome
 * trên `.toggle` chạy đè và làm class .active không persist. Xem comment trong mobile-drawer-slide.js. */
.mobile-sidebar .nav-sidebar .sub-menu li > button.nested-toggle,
.mobile-sidebar .nav-sidebar .children li > button.nested-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #6b5a4f;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}
.mobile-sidebar .nav-sidebar .sub-menu li > button.nested-toggle svg,
.mobile-sidebar .nav-sidebar .children li > button.nested-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform .2s ease;
}
.mobile-sidebar .nav-sidebar .sub-menu li.active > button.nested-toggle svg,
.mobile-sidebar .nav-sidebar .children li.active > button.nested-toggle svg {
    transform: rotate(180deg);
}
.mobile-sidebar .nav-sidebar .sub-menu li.active > button.nested-toggle,
.mobile-sidebar .nav-sidebar .children li.active > button.nested-toggle {
    color: #b71c1c;
}
/* Đảm bảo li level-2+ có position relative để toggle absolute bám được */
.mobile-sidebar .nav-sidebar .sub-menu > li,
.mobile-sidebar .nav-sidebar .children > li {
    position: relative;
}
/* Chừa chỗ cho toggle 44px ở mép phải */
.mobile-sidebar .nav-sidebar .sub-menu > li.menu-item-has-children > a,
.mobile-sidebar .nav-sidebar .sub-menu > li.has-child > a,
.mobile-sidebar .nav-sidebar .children > li.menu-item-has-children > a,
.mobile-sidebar .nav-sidebar .children > li.has-child > a {
    padding-right: 48px;
}
/* Level-3 accordion: rule cũ hiện block khi parent.active — giữ nguyên, chỉ thêm visual cho indent */
.mobile-sidebar .nav-sidebar .sub-menu .sub-menu,
.mobile-sidebar .nav-sidebar .sub-menu .children,
.mobile-sidebar .nav-sidebar .children .sub-menu,
.mobile-sidebar .nav-sidebar .children .children {
    background: rgba(0,0,0,0.025);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Footer drawer (hotline + trust badges) */
.mobile-sidebar .mobile-drawer-footer {
    padding: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: #f9f5ee;
    flex: 0 0 auto;
}
.mobile-sidebar .mobile-drawer-footer .hotline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e6dfd2;
    border-radius: 12px;
    color: #b71c1c !important;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    text-decoration: none;
}
.mobile-sidebar .mobile-drawer-footer .hotline-row i {
    font-size: 18px;
}
.mobile-sidebar .mobile-drawer-footer .trust-badges-header {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.mobile-sidebar .mobile-drawer-footer .badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a4a42;
}
.mobile-sidebar .mobile-drawer-footer .badge-item i {
    color: #b71c1c;
    font-size: 14px;
}
/* Sub-menu items */
.mobile-sidebar .nav-sidebar .sub-menu > li,
.mobile-sidebar .nav-sidebar .children > li {
    list-style: none;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mobile-sidebar .nav-sidebar .sub-menu > li:last-child,
.mobile-sidebar .nav-sidebar .children > li:last-child {
    border-bottom: 0;
}
.mobile-sidebar .nav-sidebar .sub-menu > li > a,
.mobile-sidebar .nav-sidebar .children > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 32px;
    padding-right: 16px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 400;
    color: #5a4a42 !important;
    text-transform: none;
    text-decoration: none;
    background: transparent;
    line-height: 1.3;
}
.mobile-sidebar .nav-sidebar .sub-menu > li > a:hover,
.mobile-sidebar .nav-sidebar .children > li > a:hover {
    background: #f0e7d8;
    color: #b71c1c !important;
}
/* Level 3+ nested */
.mobile-sidebar .nav-sidebar .sub-menu .sub-menu > li > a,
.mobile-sidebar .nav-sidebar .children .children > li > a {
    padding-left: 48px;
    font-size: 13px;
    color: #7a6a60 !important;
}

/* ----- 6. Search bar pill ----- */
.mobile-sidebar .nav-sidebar > li.header-search-form {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: transparent;
}
.mobile-sidebar .nav-sidebar > li.header-search-form > a,
.mobile-sidebar .nav-sidebar > li.header-search-form:hover {
    background: transparent;
}
.mobile-sidebar li.header-search-form .header-search-form-wrapper,
.mobile-sidebar li.header-search-form .searchform-wrapper {
    width: 100%;
}
.mobile-sidebar li.header-search-form form.searchform {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #d9cfc2;
    border-radius: 24px;
    overflow: hidden;
    height: 42px;
    padding: 0;
    box-shadow: none;
}
.mobile-sidebar li.header-search-form .flex-row {
    width: 100%;
    align-items: stretch;
    margin: 0;
}
.mobile-sidebar li.header-search-form .flex-col {
    padding: 0 !important;
}
.mobile-sidebar li.header-search-form input.search-field {
    border: 0 !important;
    background: transparent !important;
    padding: 0 16px !important;
    flex: 1;
    height: 42px;
    font-size: 14px;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #2b1a14;
}
.mobile-sidebar li.header-search-form input.search-field::placeholder {
    color: #9a8b80;
}
.mobile-sidebar li.header-search-form button[type="submit"],
.mobile-sidebar li.header-search-form button.icon,
.mobile-sidebar li.header-search-form .button.icon {
    background: transparent !important;
    color: #2b1a14 !important;
    box-shadow: none !important;
    padding: 0 14px !important;
    height: 42px !important;
    min-width: 42px;
    border-radius: 0 !important;
    border: 0 !important;
}
.mobile-sidebar li.header-search-form button.icon i,
.mobile-sidebar li.header-search-form .button.icon i {
    color: #2b1a14 !important;
    font-size: 16px;
}

/* ----- 7. Close button (X) - Flatsome inject vào .mfp-wrap ----- */
.mfp-wrap.off-canvas-left > button.mfp-close,
.mfp-wrap.off-canvas-right > button.mfp-close {
    position: fixed;
    top: 8px;
    left: calc(var(--drawer-width, 320px) - 52px);
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #2b1a14;
    opacity: 1;
    z-index: 1100;
    cursor: pointer;
    line-height: 1;
    right: auto;
}
.mfp-wrap.off-canvas-right > button.mfp-close {
    left: auto;
    right: calc(var(--drawer-width, 320px) - 52px);
}
.mfp-wrap.off-canvas-left > button.mfp-close svg,
.mfp-wrap.off-canvas-right > button.mfp-close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}
/* Tránh X đè lên search bar - đẩy search xuống dưới một chút */
.mobile-sidebar > .sidebar-menu {
    padding-top: 52px;
}

/* ============================================
 * MOBILE-ONLY TOGGLES (đi cùng body class từ filter body_class)
 * - body.fomo-mobile-off → ẩn #fomo-popup chỉ trên ĐT (desktop vẫn hiện)
 * - body.floating-mobile-off → ẩn .float-phone + .float-zalo trên ĐT (giữ .float-scroll-top)
 * Admin tắt/bật qua Memip Settings, không cần đụng CSS lần nào nữa.
 * ============================================ */
@media (max-width: 767px) {
    body.fomo-mobile-off #fomo-popup { display: none !important; }
    body.floating-mobile-off .floating-contact .float-phone,
    body.floating-mobile-off .floating-contact .float-zalo { display: none !important; }
}

/* ===== 3 NÚT LIÊN HỆ: FANPAGE + HOTLINE + ZALO (chi tiết sản phẩm) ===== */
/* Container: full-width của form.cart parent (chỉ ~270-320px trên mobile),
 * cho phép flex children co lại để 3 nút luôn fit cùng dòng. */
.memip-contact-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.btn-contact,
.btn-contact-hotline,
.btn-contact-zalo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    gap: 6px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Fanpage - Xanh dương */
.btn-contact {
    background: linear-gradient(135deg, #0084ff, #0066cc) !important;
    color: #fff !important;
}
.btn-contact:hover {
    background: linear-gradient(135deg, #0066cc, #004499) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 132, 255, 0.3) !important;
}

/* Hotline - Đỏ */
.btn-contact-hotline {
    background: linear-gradient(135deg, #b71c1c, #8b1414) !important;
    color: #fff !important;
}
.btn-contact-hotline:hover {
    background: linear-gradient(135deg, #8b1414, #6b0f0f) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(183, 28, 28, 0.3) !important;
}

/* Zalo - Xanh lam */
.btn-contact-zalo {
    background: linear-gradient(135deg, #0084ff, #0066cc) !important;
    color: #fff !important;
}
.btn-contact-zalo:hover {
    background: linear-gradient(135deg, #0066cc, #004499) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 132, 255, 0.3) !important;
}

/* Icon trong nút */
.btn-contact i,
.btn-contact-hotline i,
.btn-contact-zalo i {
    font-size: 18px !important;
    display: inline-block !important;
}

/* Span text trong nút */
.btn-contact span,
.btn-contact-hotline span,
.btn-contact-zalo span {
    display: inline-block !important;
}
/* .contact-prefix là span CON bên trong span ngoài → cần dạng inline
 * để trailing whitespace "Liên hệ " thật sự tạo gap với text "Fanpage" theo sau.
 * Inline-block sẽ "ăn" mất whitespace cuối → "Liên hệFanpage" dính liền. */
.btn-contact .contact-prefix,
.btn-contact-hotline .contact-prefix,
.btn-contact-zalo .contact-prefix {
    display: inline !important;
}

/* Mobile: ẩn prefix "Liên hệ " để 3 nút fit dưới 360px viewport.
 * Chỉ giữ Fanpage / Hotline / Zalo + icon. */
@media (max-width: 480px) {
    .memip-contact-row { gap: 6px !important; }
    .btn-contact,
    .btn-contact-hotline,
    .btn-contact-zalo {
        padding: 7px 6px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    .btn-contact .contact-prefix,
    .btn-contact-hotline .contact-prefix,
    .btn-contact-zalo .contact-prefix {
        display: none !important;
    }
    .btn-contact i,
    .btn-contact-hotline i,
    .btn-contact-zalo i {
        font-size: 16px !important;
    }
}
/* Extra-small (<360px, iPhone SE 1st gen): bóp thêm padding/icon */
@media (max-width: 359px) {
    .memip-contact-row { gap: 4px !important; }
    .btn-contact,
    .btn-contact-hotline,
    .btn-contact-zalo {
        padding: 6px 3px !important;
        font-size: 10.5px !important;
        gap: 3px !important;
    }
    .btn-contact i,
    .btn-contact-hotline i,
    .btn-contact-zalo i {
        display: none !important;
    }
}

/* =====================================================================
 * BLOG SINGLE: TỪ KHOÁ (inline) + BÀI VIẾT LIÊN QUAN
 * Đồng bộ palette #ed1c24 (đỏ rượu) + #b71c1c (đỏ đậm) của trang chủ.
 * Container theo chuẩn site width 1230px (entry-content đã giới hạn rồi).
 * ===================================================================== */

/* ---- TỪ KHOÁ BÀI VIẾT (inline, ngăn cách dấu phẩy) ---------------- */
.memip-post-tags {
    margin: 26px 0 18px !important;
    padding: 10px 0 0;
    border-top: 1px solid #ececec;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
.memip-post-tags__label {
    font-weight: 600;
    color: #222;
    margin-right: 6px;
}
body #content .memip-post-tags__list a,
.memip-post-tags__list a {
    color: #b71c1c;
    text-decoration: none;
    text-transform: lowercase;
    border-bottom: 1px dashed transparent;
    transition: color .2s ease, border-color .2s ease;
}
body #content .memip-post-tags__list a:hover,
.memip-post-tags__list a:hover {
    color: #ed1c24;
    border-bottom-color: #ed1c24;
}

/* ---- BÀI VIẾT LIÊN QUAN ------------------------------------------- */
.memip-related-posts {
    margin: 40px 0 30px;
}
.memip-related-posts__head {
    position: relative;
    margin-bottom: 22px;
    text-align: left;
}
.memip-related-posts__title {
    position: relative;
    display: inline-block;
    margin: 0 !important;
    padding: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    text-transform: none;
}
.memip-related-posts__title span {
    position: relative;
    display: inline-block;
    padding-left: 16px;
}
.memip-related-posts__title span::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: #ed1c24;
    border-radius: 4px;
}
.memip-related-posts__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,#ed1c24 0%, rgba(237,28,36,0) 100%);
    border-radius: 3px;
}

.memip-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.memip-related-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.memip-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -16px rgba(237,28,36,.22);
    border-color: #f5c2c5;
}

.memip-related-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
}
.memip-related-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.memip-related-card:hover .memip-related-card__thumb img {
    transform: scale(1.06);
}
.memip-related-card__cat {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(237,28,36,.95);
    border-radius: 999px;
    letter-spacing: .1px;
    backdrop-filter: blur(2px);
}

.memip-related-card__body {
    flex: 1;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.memip-related-card__title {
    margin: 0 !important;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.memip-related-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.memip-related-card__title a:hover {
    color: #ed1c24;
}
.memip-related-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: #888;
    padding-top: 8px;
    border-top: 1px dashed #ececec;
}
.memip-related-card__date i {
    margin-right: 4px;
    font-size: 13px;
    vertical-align: -1px;
    opacity: .8;
}
.memip-related-card__more {
    color: #ed1c24;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}
.memip-related-card__more:hover {
    color: #b71c1c;
}
.memip-related-card__more span {
    display: inline-block;
    transition: transform .2s ease;
}
.memip-related-card__more:hover span {
    transform: translateX(3px);
}

/* ---- TABLET ---- */
@media (max-width: 991px) {
    .memip-related-posts__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
    .memip-related-posts__title { font-size: 20px; }
}

/* ---- MOBILE ---- */
@media (max-width: 600px) {
    .memip-post-tags { font-size: 13.5px; }
    .memip-related-posts { margin: 30px 0 20px; }
    .memip-related-posts__title { font-size: 18px; }
    .memip-related-posts__grid { grid-template-columns: 1fr; gap: 14px; }
    .memip-related-card__body { padding: 12px 14px 14px; }
    .memip-related-card__title { font-size: 15px; }
}

/* =====================================================================
 * MỤC LỤC BÀI VIẾT (TOC) - SEO + UX
 * Render server-side, đặt sau H2 đầu, có nút thu/mở, scroll spy.
 * ===================================================================== */
.memip-toc {
    --toc-red: #ed1c24;
    --toc-red-dark: #b71c1c;
    margin: 24px 0 28px;
    background: #fff7f7;
    border: 1px solid #fadcde;
    border-left: 4px solid var(--toc-red);
    border-radius: 8px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.55;
}
.memip-toc__head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: #1a1a1a;
    font: inherit;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.memip-toc__head:hover { background: rgba(237,28,36,.05); }
.memip-toc__icon {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 18px; height: 18px;
}
.memip-toc__icon span {
    display: block;
    height: 2.5px;
    background: var(--toc-red);
    border-radius: 2px;
}
.memip-toc__icon span:nth-child(1) { width: 100%; }
.memip-toc__icon span:nth-child(2) { width: 70%; }
.memip-toc__icon span:nth-child(3) { width: 85%; }
.memip-toc__head-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.memip-toc__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .1px;
    text-transform: none !important;
}
.memip-toc__hint {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.memip-toc__chev {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--toc-red);
    transition: transform .25s ease;
}
.memip-toc[data-collapsed="true"] .memip-toc__chev { transform: rotate(-90deg); }
.memip-toc[data-collapsed="true"] .memip-toc__body { display: none; }

.memip-toc__body {
    padding: 4px 16px 14px 16px;
    border-top: 1px dashed #f3c5c8;
    background: #fff;
}
body #content .memip-toc__list,
body #content .memip-toc__sublist,
.memip-toc__list,
.memip-toc__sublist {
    list-style: none !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    counter-reset: none;
}
.memip-toc__sublist {
    margin: 6px 0 6px 18px !important;
    border-left: 2px dashed #fadcde;
    padding-left: 12px !important;
    display: none; /* Ẩn mặc định */
}
.memip-toc__sublist[data-collapsed="false"] {
    display: block; /* Hiện khi toggle */
}
.memip-toc__item {
    margin: 4px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.memip-toc__item::before,
.memip-toc__item::marker { content: none !important; }

body #content .memip-toc a,
.memip-toc a {
    display: inline-block;
    color: #2c2c2c;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
body #content .memip-toc a:hover,
.memip-toc a:hover {
    color: var(--toc-red);
    border-bottom-color: var(--toc-red);
}
body #content .memip-toc a.is-active,
.memip-toc a.is-active {
    color: var(--toc-red-dark);
    font-weight: 700;
}
.memip-toc__item--h2 > a { font-weight: 600; }
.memip-toc__item--h3 > a { font-size: 14px; color: #555; }
.memip-toc__num {
    display: inline-block;
    min-width: 22px;
    color: var(--toc-red);
    font-weight: 700;
}

/* Smooth-scroll offset cho heading khi click anchor */
.entry-content h2[id],
.entry-content h3[id] {
    scroll-margin-top: 90px;
}

@media (max-width: 600px) {
    .memip-toc { font-size: 14.5px; }
    .memip-toc__title { font-size: 15px; }
    .memip-toc__item--h3 > a { font-size: 13.5px; }
    .memip-toc__body { padding: 4px 14px 12px 14px; }
}

/* =====================================================================
 * TRANG CHỦ: KHỐI 5 BÀI VIẾT MỚI NHẤT (TIN TỨC)
 * Layout 1 bài lớn nổi bật bên trái + 4 bài nhỏ list bên phải.
 * Đỏ #ed1c24 chủ đạo, badge "MỚI", date theo định dạng dd/mm/yyyy.
 * ===================================================================== */
.memip-home-news {
    --news-red: #ed1c24;
    --news-red-dark: #b71c1c;
    max-width: var(--site-max-width, 1230px);
    margin: 40px auto 30px;
    padding: 0 15px;
}
.memip-home-news__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0e6e6;
    position: relative;
}
.memip-home-news__head::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 120px;
    height: 2px;
    background: var(--news-red);
}
.memip-home-news__title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    letter-spacing: .3px;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.memip-home-news__title::before {
    content: "";
    display: inline-block;
    width: 8px; height: 28px;
    background: var(--news-red);
    border-radius: 3px;
}
.memip-home-news__sub {
    margin: 0;
    font-size: 13.5px;
    color: #777;
    font-weight: 400;
}
.memip-home-news__viewall {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--news-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}
.memip-home-news__viewall:hover { color: var(--news-red-dark); }
.memip-home-news__viewall span { transition: transform .2s ease; display: inline-block; }
.memip-home-news__viewall:hover span { transform: translateX(3px); }

.memip-home-news__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
}

/* Bài nổi bật bên trái */
.memip-home-news__hero {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 380px;
    display: block;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 8px 24px -16px rgba(0,0,0,.25);
    transition: transform .3s ease, box-shadow .3s ease;
}
.memip-home-news__hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -14px rgba(237,28,36,.4);
}
.memip-home-news__hero-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.memip-home-news__hero:hover .memip-home-news__hero-img {
    transform: scale(1.04);
}
.memip-home-news__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.85) 100%);
}
.memip-home-news__hero-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 22px 24px 24px;
    z-index: 2;
    color: #fff;
}
.memip-home-news__hero-cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--news-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.memip-home-news__hero-title {
    margin: 0 0 8px !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.32;
    color: #fff !important;
    /* clamp 3 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.memip-home-news__hero-excerpt {
    margin: 0 0 10px !important;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,.88);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.memip-home-news__hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: rgba(255,255,255,.85);
}
.memip-home-news__hero-meta i { margin-right: 4px; opacity: .85; }
.memip-home-news__badge-new {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background: #fff;
    color: var(--news-red);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .5px;
    box-shadow: 0 4px 10px -4px rgba(0,0,0,.3);
}

/* 4 bài nhỏ bên phải - list ngang */
.memip-home-news__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.memip-home-news__item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.memip-home-news__item:hover {
    border-color: #f5c2c5;
    box-shadow: 0 8px 18px -14px rgba(237,28,36,.4);
    transform: translateX(2px);
}
.memip-home-news__item-thumb {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}
.memip-home-news__item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.memip-home-news__item:hover .memip-home-news__item-thumb img {
    transform: scale(1.07);
}
.memip-home-news__item-body {
    padding: 10px 12px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}
.memip-home-news__item-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}
.memip-home-news__item:hover .memip-home-news__item-title {
    color: var(--news-red);
}
.memip-home-news__item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}
.memip-home-news__item-meta i { font-size: 12px; opacity: .8; }
.memip-home-news__item-cat {
    display: inline-block;
    padding: 1px 8px;
    background: #fff0f0;
    color: var(--news-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1px;
    border-radius: 4px;
}

/* TABLET */
@media (max-width: 991px) {
    .memip-home-news__grid { grid-template-columns: 1fr; }
    .memip-home-news__hero { min-height: 320px; }
    .memip-home-news__hero-title { font-size: 19px; }
    .memip-home-news__title { font-size: 22px; }
}

/* MOBILE */
@media (max-width: 600px) {
    .memip-home-news { margin: 28px auto 20px; padding: 0 4px; }
    .memip-home-news__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .memip-home-news__title { font-size: 20px; }
    .memip-home-news__title::before { width: 6px; height: 22px; }
    .memip-home-news__hero { min-height: 260px; }
    .memip-home-news__hero-body { padding: 16px 18px 18px; }
    .memip-home-news__hero-title { font-size: 16.5px; -webkit-line-clamp: 2; }
    .memip-home-news__hero-excerpt { font-size: 13px; -webkit-line-clamp: 2; }
    .memip-home-news__item { grid-template-columns: 110px 1fr; gap: 10px; }
    .memip-home-news__item-body { padding: 8px 10px 8px 0; }
    .memip-home-news__item-title { font-size: 13.5px; -webkit-line-clamp: 2; }
}

/* ==========================================================================
   MEMIP CATEGORY DESC — collapsible (Xem thêm / Thu gọn)
   - Mặc định clamp ~4 dòng, fade overlay, click button bung full.
   - Toàn bộ HTML vẫn render trong DOM → SEO không mất nội dung.
   ========================================================================== */
body .memip-cat-desc {
    position: relative;
    margin: 14px auto 22px;
    max-width: var(--site-max-width, 1230px);
    padding: 18px 22px 14px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    color: #2c2c2c;
    font-size: 15px;
    line-height: 1.7;
}
body .memip-cat-desc__inner {
    overflow: hidden;
    transition: max-height .35s ease;
}
body .memip-cat-desc__inner > *:first-child { margin-top: 0; }
body .memip-cat-desc__inner > *:last-child  { margin-bottom: 0; }
body .memip-cat-desc__inner h2,
body .memip-cat-desc__inner h3 {
    font-size: 17px;
    line-height: 1.45;
    margin: 14px 0 8px;
    color: #1f1f1f;
    font-weight: 600;
}
body .memip-cat-desc__inner h2 { font-size: 19px; }
body .memip-cat-desc__inner p { margin: 0 0 10px; }
body .memip-cat-desc__inner a { color: #ed1c24; text-decoration: underline; }
body .memip-cat-desc__inner a:hover { color: #b71c1c; }
body .memip-cat-desc__inner ul,
body .memip-cat-desc__inner ol { margin: 0 0 10px 22px; }

/* trạng thái collapsed: clamp max-height ~ 4 dòng (4 × 1.7em ≈ 6.8em) */
body .memip-cat-desc--collapsible.is-collapsed .memip-cat-desc__inner {
    max-height: 7em;
}
body .memip-cat-desc--collapsible:not(.is-collapsed) .memip-cat-desc__inner {
    max-height: 4000px; /* đủ lớn cho mọi nội dung, transition vẫn mượt */
}

/* fade overlay chỉ hiện khi collapsed */
body .memip-cat-desc__fade {
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 46px;
    height: 56px;
    background: linear-gradient(180deg, rgba(250,250,250,0) 0%, #fafafa 90%);
    pointer-events: none;
    opacity: 1;
    transition: opacity .25s ease;
}
body .memip-cat-desc--collapsible:not(.is-collapsed) .memip-cat-desc__fade {
    opacity: 0;
}

/* button toggle */
body .memip-cat-desc__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #ed1c24;
    border-radius: 999px;
    color: #ed1c24;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
body .memip-cat-desc__toggle:hover,
body .memip-cat-desc__toggle:focus-visible {
    background: #ed1c24;
    color: #fff;
    outline: none;
}
body .memip-cat-desc__toggle-more,
body .memip-cat-desc__toggle-less {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
body .memip-cat-desc[data-collapsed="true"]  .memip-cat-desc__toggle-less { display: none; }
body .memip-cat-desc[data-collapsed="false"] .memip-cat-desc__toggle-more { display: none; }

@media (max-width: 549px) {
    body .memip-cat-desc {
        margin: 10px 12px 18px;
        padding: 14px 16px 12px;
        font-size: 14px;
    }
    body .memip-cat-desc__inner h2 { font-size: 17px; }
    body .memip-cat-desc__inner h3 { font-size: 15.5px; }
}

/* ============================================
 * Plugin wc-custom-product-info — override
 * Plugin gốc: grid auto-fit minmax(250px,1fr) → mobile fallback 1 cột;
 * label flex-shrink:0 nhưng không giới hạn width → value bị nén bé.
 * Fix: ép label width hợp lý, value flex:1, font rõ hơn ở mobile.
 * ============================================ */
.single-product .custom-product-info-wrapper .product-info-item {
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
}
.single-product .custom-product-info-wrapper .product-info-label {
    flex: 0 0 auto;
    min-width: 78px;
    max-width: 110px;
    color: #555 !important;
}
.single-product .custom-product-info-wrapper .info-value {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
    color: #222;
    font-weight: 500;
}
.single-product .custom-product-info-wrapper .product-info-item .info-icon {
    margin-top: 2px;
}

@media (max-width: 767px) {
    .single-product .custom-product-info-wrapper {
        grid-template-columns: 1fr !important;
        gap: 0;
        font-size: 14px;
    }
    .single-product .custom-product-info-wrapper .product-info-item {
        padding: 8px 0;
        margin: 0;
    }
    .single-product .custom-product-info-wrapper .product-info-label {
        min-width: 88px;
        max-width: 100px;
        font-weight: 600;
    }
    .single-product .custom-product-info-wrapper .info-value {
        font-size: 14px;
    }
}

/* =============================================================
   FAKE RATING BLOCK (inc/feature-fake-rating.php)
   - Layout: stars + caption bên trái, đã bán + còn hàng bên phải
   - Style copy hướng qkawine
   ============================================================= */
.memip-rating-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin: .5rem 0 1rem;
    padding: .4rem 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    line-height: 1.4;
}
.memip-rating-left,
.memip-rating-right {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.memip-rating-right {
    color: #555;
}
.memip-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
.memip-stars-bg,
.memip-stars-fg {
    display: inline-flex;
    gap: 2px;
    white-space: nowrap;
}
.memip-stars-bg { color: #ddd; }
.memip-stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #ffc107;
}
.memip-stars-fg svg { flex-shrink: 0; }
.memip-rating-caption {
    color: #666;
    font-size: 13px;
}
.memip-sold {
    color: #444;
}
.memip-stock {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-weight: 500;
}
.memip-stock--in { color: #11B400; }
.memip-stock--out { color: #c00; }
.memip-stock svg { vertical-align: middle; }

@media (max-width: 480px) {
    .memip-rating-block { font-size: 12px; }
    .memip-rating-caption { font-size: 12px; }
}

/* =============================================================
   FIX CHIỀU RỘNG TRANG SINGLE PRODUCT - ĐỒNG BỘ 1230PX VỚI MEGAMENU
   Megamenu (.qka-nav-inner) có padding 0 (đã override ở line 7365-7368)
   nên trang single product cũng phải padding 0 để đồng bộ width.
   ============================================================= */
.single-product .product-main > .row,
.single-product .product-footer > .row,
.single-product .related.products > .row,
.single-product .row.large-columns- {
    max-width: 1230px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Override padding của shop-container và product-container */
.single-product .shop-container,
.single-product .product-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =============================================================
   ẨN TAB "MÔ TẢ" NHƯNG GIỮ NỘI DUNG
   Ẩn tab navigation "Mô tả" nhưng vẫn hiển thị nội dung mô tả
   ============================================================= */
.single-product .description_tab {
    display: none !important;
}

/* Luôn hiển thị panel description (nội dung mô tả) */
.single-product .woocommerce-Tabs-panel--description {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* =============================================================
   SECTION "VANG CHO MỌI DỊP - PHONG CÁCH SỐNG THỜI THƯỢNG"
   CSS Grid 3 cột (1fr 2.5fr 1fr) × 3 hàng 250px.
   Layout: cột trái = ảnh tall (2 hàng) + ảnh short (1 hàng);
   cột giữa = 1 ảnh full 3 hàng; cột phải = 3 ảnh đều nhau.
   Mobile ≤768px stack 1 cột, items 180px, center 260px.
   ============================================================= */
.box-banner {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    grid-template-rows: repeat(3, 250px);
    gap: 12px;
}

.box-banner .item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.box-banner .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.box-banner .left-top    { grid-column: 1; grid-row: 1 / span 2; }
.box-banner .left-bottom { grid-column: 1; grid-row: 3; }
.box-banner .center      { grid-column: 2; grid-row: 1 / span 3; }
.box-banner .right-top    { grid-column: 3; grid-row: 1; }
.box-banner .right-middle { grid-column: 3; grid-row: 2; }
.box-banner .right-bottom { grid-column: 3; grid-row: 3; }

@media (max-width: 768px) {
    .box-banner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 140px 140px 260px 160px;
        gap: 10px;
        padding: 0 4px;
    }
    .box-banner .item     { height: auto; }
    .box-banner .left-top     { grid-column: 1; grid-row: 1 / span 2; }
    .box-banner .left-bottom  { grid-column: 2; grid-row: 1; }
    .box-banner .right-top    { grid-column: 2; grid-row: 2; }
    .box-banner .center       { grid-column: 1 / span 2; grid-row: 3; }
    .box-banner .right-middle { grid-column: 1; grid-row: 4; }
    .box-banner .right-bottom { grid-column: 2; grid-row: 4; }
}

/* =============================================================
   ĐỒNG BỘ WIDTH TRANG CHỦ = HEADER/FOOTER (1230px)
   Vấn đề: row title (.row-small) trực tiếp = 1230 ✓
   Nhưng row [ux_products] + .box-banner nằm nested trong col của row-small
   → col mặc định padding 9.8 → col-inner chỉ 1210 → row con co lại 1210 ❌
   → lệch 10px so với title/header.
   Fix: kéo các row con đó tràn ra +20px bằng negative margin,
   align lại với mép header.
   Bỏ qua row trong col span=9 (Thời trang nữ/nam: sidebar+products).
   ============================================================= */
body.home #content .row.row-small > .col.large-12 > .col-inner > .row.equalize-box,
body.home #content .row.row-small > .col.large-12 > .col-inner > .row.featured,
body.home #content .row.row-small > .col.large-12 > .col-inner > .box-banner,
body.home #content .row.row-small > .col.large-12 > .col-inner > .container.section-title-container,
body.home #content .row.row-small > .col.large-12 > .col-inner > .container.title-top {
    width: calc(100% + 20px) !important;
    max-width: calc(100% + 20px) !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
}

/* Title shortcode: bỏ padding 15 nội bộ container để text bám sát mép trái header (x=85) */
body.home #content .row.row-small > .col.large-12 > .col-inner > .container.section-title-container,
body.home #content .row.row-small > .col.large-12 > .col-inner > .container.title-top {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Mobile: thêm padding cho tiêu đề section để không bị sát mép */
@media (max-width: 767px) {
    body.home #content .row.row-small > .col.large-12 > .col-inner > .container.section-title-container,
    body.home #content .row.row-small > .col.large-12 > .col-inner > .container.title-top {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

/* =============================================================
   ĐỒNG BỘ NEWS + FOOTER với product/box-banner = 1230px x=85
   News (.memip-home-news) outer 1230 nhưng padding 15 hai bên
   → children co lại 1200 x=100 ❌. Bỏ padding để children
   tràn full 1230 khớp với product slider phía trên.
   Footer .memip-footer__container outer 1230 nhưng inner-block
   (__legal-inner, __copy-inner) padding 15 → bỏ luôn.
   ============================================================= */
body.home .memip-home-news {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Mobile: thêm padding cho tin tức trên trang chủ */
@media (max-width: 600px) {
    body.home .memip-home-news {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}
/* Rule cũ ~line 3431 dùng `body div[class*="container"]` ép padding 15px
   lên các block class chứa chữ "container" (gồm .memip-footer__container).
   Specificity của nó: (0,3,2). Để đè, ta cần ≥ (0,3,2) — thêm
   attribute selector trùng + :not(#x) bịa để bump lên (1,3,2). */
body div.memip-footer__container[class*="container"]:not(#x),
body div.memip-footer__legal-inner[class*="container"]:not(#x),
body div.memip-footer__copy-inner[class*="container"]:not(#x),
body div.memip-footer__main-inner[class*="container"]:not(#x) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Mobile: thêm padding cho footer container */
@media (max-width: 767px) {
    body div.memip-footer__container[class*="container"]:not(#x),
    body div.memip-footer__legal-inner[class*="container"]:not(#x),
    body div.memip-footer__copy-inner[class*="container"]:not(#x),
    body div.memip-footer__main-inner[class*="container"]:not(#x) {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

/* Header menu .qka-nav-inner: bỏ padding 0 15 để "Rượu Vang" align x=85
   khớp với title/product/news/footer body. KHÔNG chạm megamenu dropdown.
   Specificity bump (1,3,2) đè rule cũ ~line 3431. */
body div.qka-nav-inner[class*="container"]:not(#x) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =============================================================
   ĐỒNG BỘ HERO SLIDER + ROW 4 BANNER với mép body x=85/1315
   Cả 2 row outer đã 1230 x=85 ✓, nhưng col đầu/cuối có
   padding 9.8 → banner mép ngoài bị thụt 10px vào trong.
   Bỏ padding-left của col đầu + padding-right của col cuối
   để mép banner ngoài cùng khít với mép title/product.
   Giữ nguyên gap giữa các col bên trong.
   ============================================================= */
body.home #content > .row.row-small:first-of-type > .col:first-child,
body.home #content > .row.row-small.hide-for-small > .col:first-child {
    padding-left: 0 !important;
}
body.home #content > .row.row-small:first-of-type > .col:last-child,
body.home #content > .row.row-small.hide-for-small > .col:last-child {
    padding-right: 0 !important;
}

/* =============================================================
   GIẢM HEADER HEIGHT 175→136 + GIẢM BO TRÒN + KÉO HERO LÊN 8px
   ============================================================= */
/* Header bands: theme custom (QKA) không dùng .flex-row của Flatsome
   → target trực tiếp #top-bar / .header-main / .header-bottom */
#top-bar {
    min-height: 24px !important;
    max-height: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
}
.header-main {
    min-height: 70px !important;
    max-height: 70px !important;
    height: 70px !important;
}
.header-bottom {
    min-height: 42px !important;
    max-height: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
}
/* Logo + img scale theo bar mới */
.header-main #logo {
    max-height: 50px !important;
}
.header-main #logo img,
.header-main img.header_logo,
.header-main .header_logo img {
    max-height: 46px !important;
    height: auto !important;
    width: auto !important;
}

/* Bo tròn nhẹ: hero slider 10→5, box-banner 12→6 */
body.home .flickity-viewport {
    border-radius: 5px !important;
}
.box-banner .item {
    border-radius: 6px !important;
}

/* Kéo hero row lên 8px để dính sát menu band */
body.home #content > .row.row-small:first-of-type {
    margin-top: -8px !important;
}

/* =============================================================
   HERO ROW: ép side col (banner phải) cao bằng hero slider (trái)
   Slider hero h = 44% × col-9 width = 401. Side img natural ratio
   325:725 → 411 → cao hơn 10px. Dùng align-items: stretch + force
   side img height 100% với object-fit: cover.
   Chỉ áp dụng desktop (cột stack trên mobile span__sm=12).
   ============================================================= */
@media (min-width: 850px) {
    body.home #content > .row.row-small:first-of-type {
        align-items: stretch !important;
    }
    body.home #content > .row.row-small:first-of-type > .col.large-3 > .col-inner {
        height: 100% !important;
        position: relative !important;
    }
    body.home #content > .row.row-small:first-of-type > .col.large-3 .img {
        height: 100% !important;
    }
    body.home #content > .row.row-small:first-of-type > .col.large-3 .img-inner {
        height: 100% !important;
        padding-top: 0 !important;
        position: relative !important;
    }
    body.home #content > .row.row-small:first-of-type > .col.large-3 .img-inner img,
    body.home #content > .row.row-small:first-of-type > .col.large-3 .img img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
}

/* ---------------------------------------------------------------
   Shop sidebar (trang category): nén khoảng cách các dòng filter
   Vấn đề: .count có line-height ~42px kế thừa từ rule khác →
   mỗi <li> bị đẩy cao 48px trong khi text chỉ cần ~21px.
   Fix: ép line-height của a + .count về 20px, giảm padding li.
   --------------------------------------------------------------- */
#shop-sidebar .woocommerce-widget-layered-nav-list,
#shop-sidebar .product-categories,
#shop-sidebar .menu,
#shop-sidebar ul.cat-list {
    margin: 0 !important;
    padding: 0 !important;
}
#shop-sidebar .woocommerce-widget-layered-nav-list li,
#shop-sidebar .product-categories li,
#shop-sidebar .menu > li,
#shop-sidebar ul.cat-list li {
    padding: 2px 0 !important;
    margin: 0 !important;
    line-height: 20px !important;
    min-height: 0 !important;
    border-bottom: 0 !important;
}
#shop-sidebar .woocommerce-widget-layered-nav-list li a,
#shop-sidebar .product-categories li a,
#shop-sidebar .menu > li > a,
#shop-sidebar ul.cat-list li a {
    line-height: 20px !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    display: inline !important;
}
#shop-sidebar .woocommerce-widget-layered-nav-list li .count,
#shop-sidebar .product-categories li .count,
#shop-sidebar li .count {
    line-height: 20px !important;
    padding: 0 !important;
    margin-left: 4px !important;
    display: inline !important;
    height: auto !important;
    vertical-align: baseline !important;
}

/* ---------------------------------------------------------------
   Phân trang shop catalog: nén size trên mobile để không wrap 2 hàng
   Kết hợp với filter woocommerce_pagination_args (end=1, mid=1).
   --------------------------------------------------------------- */
@media (max-width: 549px) {
    .woocommerce-pagination ul.page-numbers {
        gap: 4px !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        padding: 0 4px !important;
    }
    .woocommerce-pagination ul.page-numbers li {
        margin: 0 !important;
    }
    .woocommerce-pagination ul.page-numbers li .page-number,
    .woocommerce-pagination ul.page-numbers li > a,
    .woocommerce-pagination ul.page-numbers li > span {
        min-width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        padding: 0 6px !important;
        font-size: 12px !important;
    }
    .woocommerce-pagination ul.page-numbers li .page-number.dots {
        min-width: 18px !important;
        padding: 0 2px !important;
    }
}
