.sf-hidden {
    display: none !important
}

/* Quick contact (floating) icons - show when toggled */
.quick-contact-icons.is-open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Product page - Category sidebar (danh mục cha + con) */
.product-cat-sidebar .product-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-cat-sidebar .product-cat-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.product-cat-sidebar .product-cat-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.product-cat-sidebar .product-cat-item.is-active {
    background-color: #dc2626;
    color: #fff;
}

.product-cat-sidebar .product-cat-item.is-active:hover {
    background-color: #b91c1c;
    color: #fff;
}

.product-cat-sidebar .product-cat-parent-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.product-cat-sidebar .product-cat-parent-row .product-cat-parent {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.product-cat-sidebar .product-cat-toggle {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.product-cat-sidebar .product-cat-toggle:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.product-cat-sidebar .product-cat-toggle .product-cat-toggle-icon {
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.product-cat-sidebar .product-cat-toggle[aria-expanded="true"] .product-cat-toggle-icon {
    transform: rotate(180deg);
}

.product-cat-sidebar .product-cat-children {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    max-height: 0;
    overflow: hidden;
    margin-left: 0.5rem;
    border-left: 2px solid #e5e7eb;
    padding-left: 0.5rem;
    transition: max-height 0.25s ease;
}

.product-cat-sidebar .product-cat-children.is-open {
    max-height: 500px;
}

.product-cat-sidebar .product-cat-children .product-cat-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.product-cat-sidebar .product-cat-children .product-cat-item:hover {
    color: #111827;
}

.product-cat-sidebar .product-cat-children .product-cat-item.is-active {
    background-color: rgba(220, 38, 38, 0.9);
}

:root {
    --sf-img-23: url('./asset/img/logo.png');
}

/* Product Details Table Styles */
table.group_table,
.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

table.group_table thead,
.product-description table thead {
    background: linear-gradient(to right, #ef4444, #dc2626);
}

table.group_table thead th,
.product-description table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

table.group_table tbody tr,
.product-description table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

table.group_table tbody tr:last-child,
.product-description table tbody tr:last-child {
    border-bottom: none;
}

table.group_table tbody tr:hover,
.product-description table tbody tr:hover {
    background-color: #f9fafb;
}

table.group_table tbody tr:nth-child(even),
.product-description table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

table.group_table tbody tr:nth-child(even):hover,
.product-description table tbody tr:nth-child(even):hover {
    background-color: #f3f4f6;
}

table.group_table tbody td,
.product-description table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #374151;
    vertical-align: top;
}

table.group_table tbody td:first-child,
.product-description table tbody td:first-child {
    font-weight: 600;
    color: #111827;
    width: 30%;
}

table.group_table tbody td:last-child,
.product-description table tbody td:last-child {
    color: #6b7280;
}

/* Responsive table */
@media (max-width: 768px) {

    table.group_table,
    .product-description table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.group_table thead,
    .product-description table thead {
        display: none;
    }

    table.group_table tbody tr,
    .product-description table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 0.75rem;
        background: white;
    }

    table.group_table tbody td,
    .product-description table tbody td {
        display: block;
        padding: 0.5rem 0;
        text-align: left;
        border: none;
    }

    table.group_table tbody td:first-child,
    .product-description table tbody td:first-child {
        font-weight: 600;
        color: #ef4444;
        margin-bottom: 0.25rem;
        font-size: 0.875rem;
        width: 100%;
    }

    table.group_table tbody td:before,
    .product-description table tbody td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #6b7280;
    }
}

/* Hero Carousel - Owl Carousel (aspect 2:1, nội dung luôn full) */
.hero-carousel.owl-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1;
}

.hero-carousel .owl-stage-outer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel .owl-stage {
    height: 100%;
}

.hero-carousel .owl-item {
    float: none;
    width: 100%;
    height: 100%;
}

.hero-carousel .hero-slide {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-carousel .hero-slide__inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel .hero-slide__inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel .hero-slide__inner>.absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.hero-carousel .owl-nav button {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151 !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-carousel .owl-nav button:hover {
    background: white !important;
    transform: scale(1.1);
}

.hero-carousel .owl-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.hero-carousel .owl-dots button.owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
    border: none;
}

.hero-carousel .owl-dots button.owl-dot.active {
    background: white !important;
    width: 32px;
    border-radius: 6px;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Category Carousel - Owl Carousel Styles */
.category-carousel.owl-carousel {
    position: relative;
}

.category-carousel .owl-nav {
    margin-top: 2rem;
    text-align: center;
}

.category-carousel .owl-nav button {
    width: 48px;
    height: 48px;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    color: #374151 !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.category-carousel .owl-nav button:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
    transform: scale(1.1);
}

.category-carousel .owl-nav button.owl-prev {
    margin-right: 1rem;
}

.category-carousel .owl-nav button.owl-next {
    margin-left: 1rem;
}

.category-carousel .owl-dots {
    margin-top: 2rem;
    text-align: center;
}

.category-carousel .owl-dots button.owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db !important;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.category-carousel .owl-dots button.owl-dot.active {
    background: #ef4444 !important;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .category-carousel .owl-nav {
        display: none;
    }
}

.category-carousel.owl-carousel .owl-stage {
    padding: 5px 0;
}

/* Blog Carousel - Owl Carousel Styles */
.blog-carousel.owl-carousel {
    position: relative;
}

.blog-carousel .owl-nav {
    margin-top: 2rem;
    text-align: center;
}

.blog-carousel .owl-nav button {
    width: 48px;
    height: 48px;
    background: white !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    color: #374151 !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.blog-carousel .owl-nav button:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
    transform: scale(1.1);
}

.blog-carousel .owl-nav button.owl-prev {
    margin-right: 1rem;
}

.blog-carousel .owl-nav button.owl-next {
    margin-left: 1rem;
}

.blog-carousel .owl-dots {
    margin-top: 2rem;
    text-align: center;
}

.blog-carousel .owl-dots button.owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db !important;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.blog-carousel .owl-dots button.owl-dot.active {
    background: #ef4444 !important;
    width: 32px;
    border-radius: 6px;
}

.blog-carousel.owl-carousel .owl-stage {
    padding: 5px 0;
}

.blog-carousel .owl-item .item {
    height: 100%;
}

.blog-carousel .owl-item article {
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .blog-carousel .owl-nav {
        display: none;
    }
}

.owl-carousel .owl-item img.w-auto {
    width: auto;
}

/* Search Suggestions */
.search-suggestions-wrapper {
    position: relative;
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e5e7eb;
}

.search-suggestions-list {
    padding: 8px 8px;
}

.search-suggestions-list a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
}

.search-suggestions-list a:last-child {
    border-bottom: none;
}

.search-suggestions-list a:hover {
    background-color: #f9fafb;
}

.search-suggestions-list img {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .search-suggestions-dropdown {
        max-width: calc(100vw - 2rem);
    }
}

/* Custom breakpoint for menu at 1200px */
@media (max-width: 1200px) {
    .menu-desktop {
        display: none !important;
    }

    /* Đảm bảo button menu mobile hiển thị */
    #mobile-menu-toggle {
        display: flex !important;
    }

    /* Đảm bảo mobile menu và overlay có thể hiển thị */
    #mobile-menu-overlay {
        display: block !important;
    }

    #mobile-menu {
        display: block !important;
    }
}

@media (min-width: 1201px) {

    /* Ẩn button và mobile menu khi màn hình > 1200px */
    #mobile-menu-toggle {
        display: none !important;
    }

    #mobile-menu-overlay {
        display: none !important;
    }

    #mobile-menu {
        display: none !important;
    }

    /* Đảm bảo menu desktop hiển thị */
    .menu-desktop {
        display: flex !important;
    }
}

/* ============================================
   Mobile Menu Styles
   ============================================ */

/* Mobile Menu Toggle Button */
#mobile-menu-toggle {
    position: relative;
    z-index: 60;
    transition: all 0.3s ease;
}

#mobile-menu-toggle:hover {
    transform: scale(1.05);
}

#mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 40;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#mobile-menu-overlay.menu-overlay-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

#mobile-menu-overlay.menu-overlay-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Mobile Menu Sidebar */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu.menu-open {
    transform: translateX(0) !important;
}

#mobile-menu.menu-closed {
    transform: translateX(100%) !important;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-logo img {
    height: 2.5rem;
    width: auto;
}

/* Mobile Menu Close Button */
#mobile-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

#mobile-menu-close:hover {
    color: #ef4444;
    background: #fef2f2;
    transform: rotate(90deg);
}

#mobile-menu-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Mobile Menu Links */
.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-menu-link:hover {
    color: #ef4444;
    background: #fef2f2;
    transform: translateX(4px);
}

.mobile-menu-link.active {
    color: #ef4444;
    background: #fef2f2;
    font-weight: 600;
}

.mobile-menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #ef4444;
    border-radius: 0 2px 2px 0;
}

/* Mobile Menu Section Divider */
.mobile-menu-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-sub-link {
    display: block;
    padding: 0.625rem 1rem 0.625rem 2rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.mobile-menu-sub-link:hover {
    color: #ef4444;
    background: #fef2f2;
    transform: translateX(4px);
}

.mobile-menu-sub-link.active {
    color: #ef4444;
    background: #fef2f2;
    font-weight: 500;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.mobile-menu-search {
    position: relative;
}

.mobile-menu-search input {
    width: 100%;
    height: 2.5rem;
    padding: 0 1rem 0 1rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.mobile-menu-search input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.mobile-menu-search button {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-search button:hover {
    background: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

.mobile-menu-search button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Mobile Menu Scrollbar */
#mobile-menu::-webkit-scrollbar {
    width: 6px;
}

#mobile-menu::-webkit-scrollbar-track {
    background: #f3f4f6;
}

#mobile-menu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Animation for menu items */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-nav>* {
    animation: slideInRight 0.3s ease forwards;
}

.mobile-menu-nav>*:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-menu-nav>*:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-menu-nav>*:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-menu-nav>*:nth-child(4) {
    animation-delay: 0.2s;
}

.mobile-menu-nav>*:nth-child(5) {
    animation-delay: 0.25s;
}

.mobile-menu-nav>*:nth-child(6) {
    animation-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #mobile-menu {
        width: 100%;
        max-width: 100%;
    }

    .mobile-menu-link {
        font-size: 0.9375rem;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Menu button icon animation */
#mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

#mobile-menu-toggle.menu-active i {
    transform: rotate(90deg);
}

/* ============================================
   Cart Sidebar Styles
   ============================================ */

/* Cart Toggle Button */
#cart-toggle {
    position: relative;
    transition: all 0.3s ease;
}

#cart-toggle:hover {
    transform: scale(1.05);
}

#cart-toggle:active {
    transform: scale(0.95);
}

.cart-count-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Cart Sidebar Overlay */
#cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 40;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#cart-sidebar-overlay.menu-overlay-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

#cart-sidebar-overlay.menu-overlay-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Cart Sidebar */
#cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 400px;
    max-width: 90vw;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

#cart-sidebar.cart-sidebar-open {
    transform: translateX(0) !important;
}

#cart-sidebar.cart-sidebar-closed {
    transform: translateX(100%) !important;
}

/* Cart Sidebar Header */
.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

#cart-sidebar-close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

#cart-sidebar-close:hover {
    color: #ef4444;
    background: #fef2f2;
    transform: rotate(90deg);
}

#cart-sidebar-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Cart Sidebar Content */
.cart-sidebar-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-sidebar-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-sidebar-item:last-child {
    border-bottom: none;
}

.cart-sidebar-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-quantity {
    min-width: 2rem;
}

.cart-item-increase,
.cart-item-decrease {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
    background: white;
    border: 1px solid #d1d5db;
}

.cart-item-increase i,
.cart-item-decrease i {
    pointer-events: none !important;
}

.cart-item-increase:disabled,
.cart-item-decrease:disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
    pointer-events: none !important;
}

.cart-item-increase:hover:not(:disabled),
.cart-item-decrease:hover:not(:disabled) {
    background-color: #f3f4f6 !important;
}

.cart-item-remove {
    align-self: flex-start;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
}

.cart-item-remove i {
    pointer-events: none !important;
}

.cart-item-remove:disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
    pointer-events: none !important;
}

.cart-item-remove:hover {
    background: #fef2f2;
}

.cart-sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Cart Sidebar Footer */
.cart-sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Cart Sidebar Scrollbar */
#cart-sidebar::-webkit-scrollbar {
    width: 6px;
}

#cart-sidebar::-webkit-scrollbar-track {
    background: #f3f4f6;
}

#cart-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#cart-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Prevent body scroll when cart is open */
body.cart-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #cart-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .cart-sidebar-item img {
        width: 60px;
        height: 60px;
    }
}

/* Hide WooCommerce default quantity input in variations form (we have custom one) */
form.variations_form .quantity,
form.variations_form .woocommerce-variation-add-to-cart,
form.variations_form .woocommerce-variation-add-to-cart .quantity {
    display: none !important;
}

/* Ensure only our custom quantity is visible in variations form */
form.variations_form .mb-6:has(#product-quantity) {
    display: block;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: #ff6b35;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-numbers .current {
    color: #fff !important;
    background-color: #ff6b35 !important;
}

.page-numbers .current a,
.page-numbers .current span {
    color: #fff !important;
}

.woocommerce .product-description p {
    margin-bottom: 1rem;
}

.woocommerce .product-description ul {
    list-style: disc;
    padding-left: 1rem;
}

.woocommerce .product-description ol {
    list-style: decimal;
    padding-left: 1rem;
}

.product-cat-item.product-cat-child.is-active {
    color: #fff;
}

/* ========== Trang Sản phẩm - Bộ lọc (sidebar + drawer mobile) ========== */

/* Overlay mobile (chỉ khi mở drawer) */
#mobile-filter-overlay {
    transition: opacity 0.3s ease;
}

@media (min-width: 1024px) {
    #mobile-filter-overlay {
        display: none !important;
    }
}

/* Sidebar bộ lọc: mobile = drawer, desktop = cột bên */
#products-filter-sidebar {
    transition: transform 0.3s ease-out;
}

@media (min-width: 1024px) {
    #products-filter-sidebar {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        transform: none !important;
        width: 16rem !important;
        max-width: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: touch;
    }

    #products-filter-sidebar>div {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
        border-radius: 1rem;
        position: sticky;
        top: 6rem;
    }
}

/* Mobile: drawer ẩn mặc định */
@media (max-width: 1023px) {
    #products-filter-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 50;
        width: 20rem;
        max-width: 85vw;
        background: #fff;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        overflow-y: auto;
        transform: translateX(-100%);
    }

    #products-filter-sidebar>div {
        min-height: 100%;
    }
}

/* Khi drawer mở (JS bỏ class -translate-x-full) */
@media (max-width: 1023px) {
    #products-filter-sidebar.is-open {
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
   .hero-carousel .owl-nav button{
       background: transparent !important;
	   box-shadow: none !important;
	   width: 20px;
	   height: 20px;
	   font-size: 20px !important;
    }
}

/* Trang thanh toán - Khối "Liên hệ ngay" dưới tóm tắt đơn hàng */
.hacomlux-checkout-contact {
    margin-top: 1.25rem;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 0.75rem;
    text-align: center;
}

.hacomlux-checkout-contact__text {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
}

.hacomlux-checkout-contact__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s, transform 0.05s;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.hacomlux-checkout-contact__btn:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.35);
}

.hacomlux-checkout-contact__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.hacomlux-checkout-contact__note {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}