/* Custom CSS for MBoisNegoce Theme */

html {
    font-size: 18px;
}

/* Admin bar offset for sticky header */
body.admin-bar #masthead {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar #masthead {
        top: 46px;
    }
}



/* Accessibility */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Basic WooCommerce Overrides */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    padding: 1em 2em 1em 3.5em;
    margin: 0 0 2em;
    position: relative;
    background-color: #f7f6f7;
    color: #515151;
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
}
.woocommerce-message {
    border-top: 3px solid #b45309 !important; /* Amber-700 signature color */
}
.woocommerce-info {
    border-top: 3px solid #171717 !important; /* Neutral-900 */
}
.woocommerce-error {
    border-top: 3px solid #ef4444 !important; /* Red-500 for errors */
}

/* Override WooCommerce default purple button colors with theme's signature color */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce #respond input#submit,
.woocommerce-page a.button, 
.woocommerce-page button.button, 
.woocommerce-page input.button, 
.woocommerce-page #respond input#submit {
    background-color: #171717 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease-in-out !important;
}
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover, 
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover, 
.woocommerce-page button.button:hover, 
.woocommerce-page input.button:hover, 
.woocommerce-page #respond input#submit:hover {
    background-color: #262626 !important;
    color: #ffffff !important;
}

/* Primary buttons (e.g., checkout, place order, add to cart alt style) */
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt, 
.woocommerce #respond input#submit.alt,
.woocommerce-page a.button.alt, 
.woocommerce-page button.button.alt, 
.woocommerce-page input.button.alt, 
.woocommerce-page #respond input#submit.alt {
    background-color: #b45309 !important; /* Amber-700 signature color */
    color: #ffffff !important;
}
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover, 
.woocommerce #respond input#submit.alt:hover,
.woocommerce-page a.button.alt:hover, 
.woocommerce-page button.button.alt:hover, 
.woocommerce-page input.button.alt:hover, 
.woocommerce-page #respond input#submit.alt:hover {
    background-color: #92400e !important; /* Amber-800 */
    color: #ffffff !important;
}

/* Maintain single product custom cart buttons layout */
.woocommerce .woo-custom-add-to-cart button.single_add_to_cart_button.button.alt {
    background-color: #171717 !important; /* Black Add to Cart */
    color: white !important;
}
.woocommerce .woo-custom-add-to-cart button.single_add_to_cart_button.button.alt:hover {
    background-color: #262626 !important;
}


/* WordPress Menu Styling (Desktop) */
#site-navigation > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; justify-content: center; gap: 2.5rem; height: 100%; }
#site-navigation li { position: relative; }
#site-navigation > ul > li { display: flex; align-items: stretch; }
#site-navigation > ul > li > a {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    font-weight: 600;
    height: 100%;
    padding: 0 0.25rem;
}
#site-navigation > ul > li > a:hover { color: #fbbf24; }

/* Reset submenus strictly */
#site-navigation ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0; /* No padding on submenus to ensure pixel-perfect alignment */
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 20px -6px rgba(0, 0, 0, 0.08);
    min-width: 300px;
    border-radius: 0; /* Square corners */
}

/* Level 2 Submenu (First dropdown level - sitting flush with header height) */
#site-navigation > ul > li > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    margin-top: 0;
    transform-origin: top;
    animation: menuSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Level 3 Submenu (Flyout to the right) */
#site-navigation ul.sub-menu li > ul.sub-menu {
    display: none;
    position: absolute;
    top: -1px; /* Aligns perfectly with the top border of Level 2 */
    left: 100%;
    z-index: 50;
    margin-left: 0;
    transform-origin: left;
    animation: menuSlideRight 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Show child sub-menu on parent hover with correct specificity */
#site-navigation > ul > li:hover > ul.sub-menu,
#site-navigation ul.sub-menu li:hover > ul.sub-menu {
    display: block;
}

/* Submenu list items */
#site-navigation ul.sub-menu li {
    display: block;
    width: 100%;
    position: relative;
}

/* Submenu links styling (Full width item style) */
#site-navigation ul.sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem; /* Spacious padding */
    font-size: 0.85rem;
    font-weight: 500;
    color: #404040;
    text-decoration: none;
    transition: all 0.25s ease;
    border-radius: 0; /* Square corners */
    margin: 0; /* Full width hover background */
}

/* Maintain hover state on parent item when child is hovered */
#site-navigation ul.sub-menu li:hover > a {
    background-color: #fffbeb; /* Soft amber bg */
    color: #b45309; /* Amber 700 */
    padding-left: 1.75rem; /* Slide right slightly on hover */
}

/* Arrow styling on desktop - Level 1 Dropdown Indicator */
#site-navigation > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    margin-left: 6px;
    transition: background-color 0.15s;
}

/* Submenu list item containing children styling */
#site-navigation ul.sub-menu li.menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1.5rem; /* Balanced padding right for chevron */
}

/* Level 2 right arrow indicator */
#site-navigation ul.sub-menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    margin-left: auto;
    transition: transform 0.2s, background-color 0.15s;
}

/* Subtle shift animation for chevron */
#site-navigation ul.sub-menu li.menu-item-has-children:hover > a::after {
    transform: translateX(3px);
}

/* Menu animations (Smooth scale drop down and right slide flyout) */
@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: scaleY(0.9) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}
@keyframes menuSlideRight {
    from {
        opacity: 0;
        transform: scaleX(0.9) translateX(-4px);
    }
    to {
        opacity: 1;
        transform: scaleX(1) translateX(0);
    }
}

/* WordPress Menu Styling (Mobile) */
#mobile-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
#mobile-navigation a { display: block; color: inherit; text-decoration: none; }
#mobile-navigation li.menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
#mobile-navigation li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
}
#mobile-navigation ul.sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* WooCommerce Custom Overrides */
/* Hide default woo sorting/result count if they appear twice */
.woocommerce-ordering, .woocommerce-result-count { display: none; }
.woo-custom-ordering .woocommerce-ordering { display: block; margin: 0; }
.woo-custom-ordering .woocommerce-ordering select {
    appearance: none;
    border: 1px solid #d4d4d4;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: white;
    outline: none;
}

/* YITH Wishlist overrides for Product Card */
.product-wishlist-btn .yith-wcwl-add-to-wishlist { margin: 0; }
.product-wishlist-btn .yith-wcwl-add-button > a i { display: none; }
.product-wishlist-btn .yith-wcwl-add-button > a {
    width: 2.25rem; height: 2.25rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    font-size: 0;
}
.product-wishlist-btn .yith-wcwl-add-button > a:hover { background-color: #ffffff; }
.product-wishlist-btn .yith-wcwl-add-button > a::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23404040" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-heart"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>');
    display: block; width: 16px; height: 16px;
}
.product-wishlist-btn .yith-wcwl-wishlistaddedbrowse > a,
.product-wishlist-btn .yith-wcwl-wishlistexistsbrowse > a {
    width: 2.25rem; height: 2.25rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex; align-items: center; justify-content: center;
    font-size: 0;
}
.product-wishlist-btn .yith-wcwl-wishlistaddedbrowse > a::before,
.product-wishlist-btn .yith-wcwl-wishlistexistsbrowse > a::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23b45309" stroke="%23b45309" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-heart"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>');
    display: block; width: 16px; height: 16px;
}
.yith-wishlist-single-wrapper .yith-wcwl-add-to-wishlist { margin: 0; }
.yith-wishlist-single-wrapper .yith-wcwl-add-button > a { font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; color: #171717; text-decoration: none; }

/* Custom Add to Cart Button */
.woo-custom-add-to-cart .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    height: 48px !important;
    background-color: #fff !important;
    overflow: hidden !important;
    margin: 0 0.75rem 0 0 !important;
    float: left !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 130px !important;
    max-width: 140px !important;
}
.woo-custom-add-to-cart .quantity input.qty {
    display: none !important;
}
.woo-custom-add-to-cart .quantity .mbois-single-qty-btn {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 40px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #171717 !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    user-select: none !important;
}
.woo-custom-add-to-cart .quantity .mbois-single-qty-btn:hover {
    background-color: #f5f5f5 !important;
}
.woo-custom-add-to-cart .quantity .mbois-single-qty-btn:active {
    background-color: #e5e5e5 !important;
}
.woo-custom-add-to-cart .quantity .mbois-single-qty-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}
.woo-custom-add-to-cart .quantity .mbois-single-qty-display {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    flex: 1 !important;
    min-width: 44px !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #171717 !important;
    border-left: 1px solid #e5e5e5 !important;
    border-right: 1px solid #e5e5e5 !important;
    background-color: #fff !important;
    user-select: none !important;
}
.woo-custom-add-to-cart button.single_add_to_cart_button {
    background-color: #171717 !important; color: white !important; padding: 0.75rem 2rem !important; border: none !important; cursor: pointer !important; transition: background-color 0.2s !important;
    flex: 1 !important; height: 48px !important; display: flex !important; align-items: center !important; justify-content: center !important;
}
.woo-custom-add-to-cart button.single_add_to_cart_button:hover { background-color: #262626 !important; }
.woo-custom-add-to-cart form.cart { display: flex !important; width: 100% !important; flex-wrap: wrap !important; gap: 0.75rem !important; align-items: center !important; }

/* Pagination Override */
.custom-pagination nav.woocommerce-pagination ul { display: flex; list-style: none; gap: 0.5rem; margin: 0; padding: 0; border: none; }
.custom-pagination nav.woocommerce-pagination ul li { border: none; }
.custom-pagination nav.woocommerce-pagination ul li a, .custom-pagination nav.woocommerce-pagination ul li span {
    display: flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border: 1px solid #d4d4d4; font-size: 0.875rem; text-decoration: none; color: #171717; padding: 0;
}
.custom-pagination nav.woocommerce-pagination ul li span.current { background-color: #171717; color: white; border-color: #171717; }
.custom-pagination nav.woocommerce-pagination ul li a:hover { background-color: #fafafa; }

/* Product Grid Overrides */
.woocommerce ul.products, .woocommerce-page ul.products {
    display: grid !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important;
}
.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
/* Ép ảnh sản phẩm tỉ lệ 1:1 (hình vuông) — MỌI ngữ cảnh */
.mbois-product-thumb {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 1rem !important;
    background-color: #f5f5f5 !important;
}
.mbois-product-thumb img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}


/* Hide YITH Wishlist Text in Product Card */
.product-wishlist-btn .yith-wcwl-add-to-wishlist span { display: none !important; }
.product-wishlist-btn .yith-wcwl-add-to-wishlist .yith-wcwl-tooltip { display: none !important; }
.product-wishlist-btn .yith-wcwl-add-button > a { color: transparent !important; }

/* Ensure sticky details column works correctly and bypasses any overflow issues */
html, body {
    overflow-x: visible !important;
}
main, #page, .site-content {
    overflow: visible !important;
}
.product-info-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 68px !important;
    align-self: start !important;
}
body.admin-bar .product-info-wrapper {
    top: 100px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .product-info-wrapper {
        top: 114px !important;
    }
}


/* WooCommerce Upsells Products Grid Columns (Homepage Style) */
.woocommerce .upsells.products {
    margin-top: 3rem;
}
.woocommerce .upsells.products > h2,
.woocommerce-page .upsells.products > h2 {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
    font-weight: 500 !important;
    color: #171717 !important;
    margin-bottom: 2.5rem !important;
    text-transform: none !important;
}
@media (min-width: 768px) {
    .woocommerce .upsells.products > h2,
    .woocommerce-page .upsells.products > h2 {
        font-size: 2.25rem !important;
        line-height: 2.5rem !important;
    }
}
.woocommerce .upsells.products > h2::before,
.woocommerce-page .upsells.products > h2::before {
    content: "COMPLÉMENTS";
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.woocommerce .upsells.products ul.products,
.woocommerce-page .upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.5rem 1rem !important;
}
@media (min-width: 768px) {
    .woocommerce .upsells.products ul.products,
    .woocommerce-page .upsells.products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2.5rem 1.5rem !important;
    }
}
@media (min-width: 1024px) {
    .woocommerce .upsells.products ul.products,
    .woocommerce-page .upsells.products ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Hide scrollbars for the horizontal slider */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* WooCommerce Reviews & Comments Form Styling (Premium Style) */
#reviews {
    margin-top: 1rem;
}
#reviews #comments h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #171717;
    margin-bottom: 1.5rem;
}
.woocommerce-noreviews {
    color: #737373;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
#review_form_wrapper {
    background: #fbfbfb;
    border: 1px solid #e5e5e5;
    padding: 2rem;
    margin-top: 2rem;
}
#review_form .comment-reply-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #171717;
    display: block;
    margin-bottom: 1.5rem;
}
#commentform {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
#commentform p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
#commentform p.comment-form-cookies-consent {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #525252;
}
#commentform p.comment-form-cookies-consent input {
    margin: 0;
    accent-color: #b45309; /* amber-700 */
}
#commentform label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #171717;
}
#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d4d4d4;
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #171717;
    outline: none;
    transition: all 0.2s ease;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    border-color: #171717;
    box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.05);
}
#commentform textarea {
    min-height: 120px;
    resize: vertical;
}

/* Style WooCommerce Star Ratings in Form */
#commentform .comment-form-rating {
    flex-direction: column;
    align-items: flex-start;
}
#commentform .comment-form-rating p.stars {
    margin: 0;
}
#commentform .comment-form-rating p.stars a {
    color: #d4d4d4;
    font-size: 1.25rem;
    margin-right: 0.25rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

/* WooCommerce Star Rating Colors override */
.woocommerce p.stars a::before,
.woocommerce-page p.stars a::before {
    color: #d4d4d4 !important;
}
.woocommerce p.stars a:hover ~ a::before,
.woocommerce-page p.stars a:hover ~ a::before {
    color: #d4d4d4 !important;
}
.woocommerce p.stars:hover a::before,
.woocommerce-page p.stars:hover a::before {
    color: #f59e0b !important;
}
.woocommerce p.stars.selected a.active::before,
.woocommerce-page p.stars.selected a.active::before {
    color: #f59e0b !important;
}
.woocommerce p.stars.selected a.active ~ a::before,
.woocommerce-page p.stars.selected a.active ~ a::before {
    color: #d4d4d4 !important;
}
.woocommerce p.stars.selected a:not(.active)::before,
.woocommerce-page p.stars.selected a:not(.active)::before {
    color: #f59e0b !important;
}

/* Star Rating styling throughout */
.woocommerce .star-rating,
.woocommerce-page .star-rating {
    color: #f59e0b !important;
}

/* Form Submit Button */
#commentform #submit {
    align-self: flex-start;
    background-color: #171717 !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.75rem 2.5rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}
#commentform #submit:hover {
    background-color: #262626 !important;
}

/* WooCommerce Review List Styling */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.commentlist li.review {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}
.commentlist li.review:last-child {
    border-bottom: none;
}
.commentlist li.review .avatar {
    float: left;
    border-radius: 9999px;
    width: 44px;
    height: 44px;
    margin-right: 1rem;
}
.commentlist li.review .comment-text {
    margin-left: 4rem;
}
.commentlist li.review .comment-text .meta {
    font-size: 0.875rem;
    color: #737373;
    margin-bottom: 0.5rem;
}
.commentlist li.review .comment-text .meta strong {
    color: #171717;
    font-weight: 600;
}
.commentlist li.review .comment-text .star-rating {
    float: right;
    font-size: 0.875rem;
    color: #f59e0b;
}
.commentlist li.review .comment-text .description {
    font-size: 0.875rem;
    color: #404040;
    line-height: 1.6;
}

/* Custom Typography for Article Content (.prose fallback) */
.prose {
    font-size: 1rem;
    line-height: 1.8;
    color: #404040;
}
.prose p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #171717;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.75rem; border-bottom: 1px solid #f0f0f0; padding-bottom: 0.5rem; }
.prose h3 { font-size: 1.375rem; }
.prose h4 { font-size: 1.125rem; }
.prose a {
    color: #b45309;
    text-decoration: underline;
    font-weight: 500;
}
.prose a:hover {
    color: #92400e;
}
.prose ul, .prose ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.prose ul {
    list-style-type: disc;
}
.prose ol {
    list-style-type: decimal;
}
.prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.prose blockquote {
    font-style: italic;
    border-left: 4px solid #b45309;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #525252;
}
.prose img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
    display: block;
}
.prose figure {
    margin: 2.5rem 0;
}
.prose figure figcaption {
    font-size: 0.875rem;
    color: #737373;
    text-align: center;
    margin-top: 0.75rem;
}
.prose hr {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 3.5rem 0;
}

/* Ghi đè kích thước logo ngăn chặn WooCommerce tự động phóng to */
#masthead .mbois-logo {
    height: 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-height: 64px !important;
    max-width: 64px !important;
    object-fit: contain !important;
}
@media (min-width: 768px) {
    #masthead .mbois-logo {
        height: 80px !important;
        width: 80px !important;
        min-width: 80px !important;
        max-height: 80px !important;
        max-width: 80px !important;
    }
}

/* Sửa lỗi giao diện form biến thể WooCommerce bị đè lệch */
.woo-custom-add-to-cart form.variations_form {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}
.woo-custom-add-to-cart form.variations_form .variations {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
    border: none !important;
}
.woo-custom-add-to-cart form.variations_form .variations tbody {
    display: block !important;
    width: 100% !important;
    border: none !important;
}
/* Chuyển tr thành cột dọc: Nhãn ở trên, Swatches ở dưới sát lề trái */
.woo-custom-add-to-cart form.variations_form .variations tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    width: 100% !important;
    border: none !important;
    margin-bottom: 1rem !important;
}
.woo-custom-add-to-cart form.variations_form .variations td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
}
.woo-custom-add-to-cart form.variations_form .variations td.label {
    min-width: unset !important;
    width: auto !important;
}
.woo-custom-add-to-cart form.variations_form .variations label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #171717 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: inline-block !important;
}
.woo-custom-add-to-cart form.variations_form .variations td.value {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}
.woo-custom-add-to-cart form.variations_form .reset_variations {
    display: inline-block !important;
    margin-left: 0.75rem !important;
    font-size: 0.75rem !important;
    color: #ef4444 !important;
    text-decoration: underline !important;
}
.woo-custom-add-to-cart form.variations_form .single_variation_wrap {
    display: block !important;
    width: 100% !important;
    margin-top: 1rem !important;
}
.woo-custom-add-to-cart form.variations_form .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-top: 0.75rem !important;
}
.woo-custom-add-to-cart form.variations_form .woocommerce-variation-add-to-cart .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    margin: 0 !important;
    float: none !important;
    height: 48px !important;
    background-color: #fff !important;
    overflow: hidden !important;
    width: auto !important;
    min-width: 130px !important;
    max-width: 140px !important;
    box-sizing: border-box !important;
}
.woo-custom-add-to-cart form.variations_form .woocommerce-variation-add-to-cart .quantity input.qty {
    display: none !important;
}
.woo-custom-add-to-cart form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #171717 !important;
    color: white !important;
    height: 48px !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
    transition: background-color 0.2s ease-in-out !important;
    flex: 1 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 2rem !important;
}
.woo-custom-add-to-cart form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    background-color: #262626 !important;
}
/* Định dạng nút disabled cao cấp hơn dạng outline xám nhẹ */
.woo-custom-add-to-cart form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button.disabled {
    background-color: transparent !important;
    color: #a3a3a3 !important;
    border: 1px solid #e5e5e5 !important;
    cursor: not-allowed !important;
}
.woocommerce-variation.single_variation {
    margin-bottom: 0.5rem !important;
}
.woocommerce-variation.single_variation .price {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #171717 !important;
}

/* Style Webkit search input clear button (X icon) to be white */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    margin-left: 6px;
}
input[type="search"]::-webkit-search-cancel-button:hover {
    opacity: 1;
}

/* Admin bar offset for desktop sticky bottom navigation row */
@media screen and (min-width: 1280px) {
    body.admin-bar .mbois-navigation-row {
        top: 32px;
    }
}

/* Unified Title Page Breadcrumbs (Yoast / Fallback) */
.yoast-breadcrumbs, 
.breadcrumbs,
#breadcrumbs {
    font-size: 0.75rem !important;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 400 !important;
    display: inline-block;
}
.yoast-breadcrumbs a, 
.breadcrumbs a,
#breadcrumbs a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}
.yoast-breadcrumbs a:hover, 
.breadcrumbs a:hover,
#breadcrumbs a:hover {
    color: #f59e0b !important;
}
.yoast-breadcrumbs span:last-child,
.breadcrumbs span:last-child,
#breadcrumbs span:last-child,
.yoast-breadcrumbs strong,
.breadcrumbs strong,
#breadcrumbs strong {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
}

/* Unified Light Background Breadcrumbs */
.yoast-breadcrumbs-light, 
.breadcrumbs-light,
.yoast-breadcrumbs-light #breadcrumbs {
    font-size: 0.75rem !important;
    letter-spacing: 0.05em;
    color: #737373 !important;
    font-weight: 400 !important;
    display: inline-block;
}
.yoast-breadcrumbs-light a, 
.breadcrumbs-light a,
.yoast-breadcrumbs-light #breadcrumbs a {
    color: #404040 !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}
.yoast-breadcrumbs-light a:hover, 
.breadcrumbs-light a:hover,
.yoast-breadcrumbs-light #breadcrumbs a:hover {
    color: #b45309 !important;
}
.yoast-breadcrumbs-light span:last-child,
.breadcrumbs-light span:last-child,
.yoast-breadcrumbs-light #breadcrumbs span:last-child,
.yoast-breadcrumbs-light strong,
.breadcrumbs-light strong,
.yoast-breadcrumbs-light #breadcrumbs strong {
    color: #171717 !important;
    font-weight: 500 !important;
}

/* Footer Navigation Menu Styling */
footer ul.menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}
footer ul.menu li {
    margin: 0 !important;
    padding: 0 !important;
}
footer ul.menu li a {
    color: #a3a3a3 !important; /* Neutral-400 equivalent */
    font-size: 0.875rem !important; /* text-sm equivalent */
    transition: color 0.15s ease-in-out !important;
    text-decoration: none !important;
}
footer ul.menu li a:hover {
    color: #ffffff !important;
}
footer ul.menu li.menu-item a[href*="promotions"],
footer ul.menu li.menu-item a[href*="promotion"] {
    color: #f59e0b !important; /* amber-500 equivalent */
}
footer ul.menu li.menu-item a[href*="promotions"]:hover,
footer ul.menu li.menu-item a[href*="promotion"]:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   Fluent Form Custom Overrides (Clean, Minimalist Theme Sync)
   ========================================================================== */
.fluentform,
.fluentform_wrapper {
    max-width: 100% !important;
}
.fluentform .ff-el-form-control,
.fluentform textarea.ff-el-form-control {
    border: 1px solid #d4d4d4 !important;
    border-radius: 0px !important;
    background-color: #ffffff !important;
    color: #171717 !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.fluentform .ff-el-form-control:focus,
.fluentform textarea.ff-el-form-control:focus {
    border-color: #171717 !important;
    box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.05) !important;
}
.fluentform label,
.fluentform .ff-el-form-label,
.fluentform .ff-el-form-label label,
.fluentform_wrapper label,
.fluentform_wrapper .ff-el-form-label,
.fluentform_wrapper .ff-el-form-label label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #7f7f7f !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}
.fluentform .ff-required-symbol {
    display: none !important;
}
.fluentform .ff-el-form-control::placeholder,
.fluentform textarea.ff-el-form-control::placeholder {
    color: #a3a3a3 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 300 !important;
}
.fluentform .ff_btn_style,
.fluentform .ff-btn-submit {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: #171717 !important;
    color: #ffffff !important;
    border-radius: 0px !important;
    border: none !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 2.5rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease-in-out !important;
    display: inline-block !important;
    width: auto !important;
    text-transform: none !important;
    box-shadow: none !important;
    height: auto !important;
}
.fluentform .ff_btn_style:hover,
.fluentform .ff-btn-submit:hover {
    background-color: #262626 !important;
}
.fluentform .ff-el-group {
    margin-bottom: 1.25rem !important;
}
.fluentform-success {
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    border-radius: 0px !important;
    font-size: 0.875rem !important;
    padding: 1rem !important;
    margin-bottom: 1.25rem !important;
}
.fluentform-error {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    border-radius: 0px !important;
    font-size: 0.875rem !important;
    padding: 1rem !important;
    margin-bottom: 1.25rem !important;
}





