/* ==========================================================================
   NAHACO STOREFRONT - RESPONSIVE & UI/UX MODERN ENHANCEMENTS
   Optimized for Desktop, Tablet (768px), and Mobile (360px - 480px)
   ========================================================================== */

/* 1. GLOBAL RESET & MOBILE TOUCH ACCESSIBILITY */
html, body {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, picture, video {
    max-width: 100%;
    height: auto;
}

/* 2. TOP BAR RESPONSIVE */
.header-top {
    font-size: 13px;
    line-height: 1.4;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    white-space: nowrap;
}

.top-bar-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 768px) {
    .header-top {
        min-height: 34px !important;
        font-size: 12px !important;
    }
    .top-bar-container {
        min-height: 34px !important;
        padding: 0 12px !important;
        justify-content: center !important;
    }
    .top-bar-email,
    .top-bar-divider {
        display: none !important;
    }
}

/* 3. MAIN HEADER & MOBILE NAVIGATION TRIGGER */
.header-main {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
    transition: padding 0.2s ease;
}

.header-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo-link img {
    max-height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: max-height 0.2s ease;
}

/* Desktop Search Form (Seamless Pill) */
.header-search-wrap {
    flex: 1;
    max-width: 580px;
}

.header-search-form {
    display: flex;
    align-items: stretch;
    border: 2px solid #7ab800;
    border-radius: 25px;
    background: #ffffff;
    height: 42px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-form:focus-within {
    border-color: #5c8a00;
    box-shadow: 0 0 0 3px rgba(122, 184, 0, 0.15);
}

.header-search-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 18px !important;
    flex: 1 !important;
    outline: none !important;
    font-size: 13.5px !important;
    color: #1f2937 !important;
    height: 100% !important;
    margin: 0 !important;
    font-family: inherit;
}

.header-search-btn {
    background: #7ab800 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 22px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease;
}

.header-search-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: #ffffff !important;
}

.header-search-btn:hover {
    background: #5c8a00 !important;
}

/* Desktop Hotline Box */
.header-hotline-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-hotline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-hotline-icon svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.header-hotline-label {
    font-size: 11.5px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.header-hotline-number {
    font-size: 16px;
    font-weight: 800;
    color: #7ab800;
    text-decoration: none;
    display: block;
    line-height: 1.2;
}

/* Mobile Actions Group (Hidden on Desktop) */
.header-mobile-actions {
    display: none;
    align-items: center;
}

.mobile-hamburger-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 8px !important;
    background: #7ab800 !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4.5px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(122, 184, 0, 0.25) !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.mobile-hamburger-btn:hover {
    background: #6a9f00 !important;
}

.mobile-hamburger-btn:active {
    transform: scale(0.95);
}

.mobile-hamburger-btn .hamburger-bar {
    display: block !important;
    width: 20px !important;
    height: 2.5px !important;
    background-color: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.2s ease !important;
}

/* Mobile Search Bar Row (Clean pill below logo on tablet/mobile) */
.header-mobile-search-row {
    display: none;
    margin-top: 12px;
    width: 100%;
}

.mobile-search-form {
    height: 40px !important;
}

.mobile-search-form .header-search-input {
    font-size: 13px !important;
    padding: 0 14px !important;
}

.mobile-search-form .header-search-btn {
    padding: 0 16px !important;
}

/* Live Search Autocomplete Dropdown */
.search-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 10005;
    overflow: hidden;
    max-height: 460px;
    display: flex;
    flex-direction: column;
    animation: searchSuggestFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-mobile-search-container > .search-suggest-dropdown {
    left: 15px;
    right: 15px;
}

@keyframes searchSuggestFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggest-header {
    padding: 10px 14px 8px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-suggest-count {
    color: #7ab800;
    font-weight: 700;
}

.search-suggest-list {
    overflow-y: auto;
    max-height: 360px;
    margin: 0;
    padding: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.search-suggest-item:last-child {
    border-bottom: none;
}

.search-suggest-item:hover,
.search-suggest-item.is-selected {
    background-color: #f8fafc;
}

.search-suggest-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #eef0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 2px;
}

.search-suggest-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.search-suggest-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-suggest-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggest-item:hover .search-suggest-name {
    color: #7ab800;
}

.search-suggest-name mark,
.search-suggest-name .search-highlight {
    background: #fef08a;
    color: #1f2937;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 700;
}

.search-suggest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #9ca3af;
}

.search-suggest-sku {
    font-weight: 600;
    color: #6b7280;
}

.search-suggest-cat {
    color: #9ca3af;
}

.search-suggest-price {
    font-size: 13px;
    font-weight: 700;
    color: #7ab800;
    margin-top: 1px;
}

.search-suggest-footer {
    padding: 10px 14px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.search-suggest-viewall {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #5c8a00;
    text-decoration: none;
    transition: color 0.15s ease;
}

.search-suggest-viewall:hover {
    color: #7ab800;
    text-decoration: underline;
}

.search-suggest-loading {
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
}

.search-suggest-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #7ab800;
    border-radius: 50%;
    animation: searchSuggestSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes searchSuggestSpin {
    to { transform: rotate(360deg); }
}

.search-suggest-empty {
    padding: 28px 16px;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 991px) {
    .header-main {
        padding: 10px 0 12px;
    }
    .header-search-wrap,
    .header-hotline-box {
        display: none !important;
    }
    .header-mobile-actions {
        display: flex !important;
    }
    .header-mobile-search-row {
        display: block !important;
    }
    .header-logo-link img {
        max-height: 46px;
    }
}

@media (max-width: 480px) {
    .header-logo-link img {
        max-height: 38px;
    }
    .mobile-hamburger-btn {
        width: 38px;
        height: 38px;
    }
}

/* 4. 4 COMMITMENT BOXES (FIX FOR SQUISHED/CLIPPED ICONS & TEXT) */
.header-commitments-wrapper {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
}

.commitment-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.commitment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.commitment-card:hover {
    border-color: #7ab800;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(122, 184, 0, 0.08);
}

.commitment-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.commitment-info {
    min-width: 0;
    flex: 1;
}

.commitment-title {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.commitment-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tablet & Mobile (<= 991px): Sleek horizontal scrollable track of pill cards */
@media (max-width: 991px) {
    .header-commitments-wrapper {
        padding: 6px 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #f0f2f5 !important;
    }
    .header-commitments-wrapper .container {
        padding: 0 12px !important;
        max-width: 100% !important;
    }
    .commitment-boxes-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        padding-bottom: 2px !important;
    }
    .commitment-boxes-grid::-webkit-scrollbar {
        display: none !important;
    }
    .commitment-card {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 7px !important;
        padding: 5px 12px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 20px !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    }
    .commitment-icon {
        width: 22px !important;
        height: 22px !important;
    }
    .commitment-info {
        display: block !important;
    }
    .commitment-title {
        font-size: 11.5px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }
    .commitment-desc {
        display: none !important;
    }
}

/* 5. MAIN NAV BAR & CATEGORY ACCORDION ON TABLET/MOBILE */
.header-nav-bar {
    background: #ffffff;
    border-bottom: 2px solid #7ab800;
    position: relative;
    z-index: 100;
}

.nav-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: stretch;
    height: 46px;
}

.nav-danhmuc-title {
    background: #7ab800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.3px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.nav-danhmuc-title:hover {
    background: #5c8a00;
    color: #ffffff;
}

.nav-danhmuc-dropdown {
    display: none;
    position: absolute;
    top: 46px;
    left: 0;
    width: 260px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 999;
    border-radius: 0 0 6px 6px;
}

/* Show dropdown on hover (Desktop) or when .is-active is toggled (Tablet/Mobile) */
@media (min-width: 992px) {
    .nav-danhmuc-col:hover .nav-danhmuc-dropdown {
        display: block !important;
    }
}

.nav-danhmuc-dropdown.is-open {
    display: block !important;
}

@media (max-width: 991px) {
    /* Hide desktop category navbar on mobile to eliminate visual clutters */
    .header-nav-bar {
        display: none !important;
    }
}

/* 6. MOBILE OFF-CANVAS NAVIGATION DRAWER (REFINED UI/UX) */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.mobile-drawer-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: #ffffff;
    z-index: 99999;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mobile-drawer-panel.is-active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
}

.mobile-drawer-close-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.mobile-drawer-close-btn:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.mobile-drawer-close-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    stroke-width: 2.5px !important;
}

/* Seamless Drawer Search */
.drawer-search-wrap {
    padding: 12px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.drawer-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 25px;
    padding: 0 5px 0 14px;
    height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.drawer-search-form:focus-within {
    border-color: #7ab800;
    box-shadow: 0 0 0 3px rgba(122, 184, 0, 0.15);
}

.drawer-search-icon {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: #9ca3af !important;
    stroke-width: 2.2px !important;
    margin-right: 6px;
}

.drawer-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    color: #1f2937 !important;
    font-family: inherit;
    box-shadow: none !important;
}

.drawer-search-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background: #7ab800 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s ease !important;
}

.drawer-search-btn:hover {
    background: #6a9f00 !important;
}

.drawer-search-btn svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: #ffffff !important;
    stroke-width: 3px !important;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-drawer-nav-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-drawer-nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.mobile-drawer-nav-link:hover,
.mobile-drawer-nav-link.active {
    color: #7ab800;
    background: #f8faf4;
}

.drawer-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 8px;
}

.drawer-chevron-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 6px !important;
    background: transparent !important;
    border: none !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.drawer-chevron-btn:hover {
    background: #f3f4f6 !important;
    color: #7ab800 !important;
}

.drawer-chevron-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    stroke-width: 2.5px !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.drawer-chevron-btn.is-open .drawer-chevron-icon {
    transform: rotate(180deg) !important;
    color: #7ab800 !important;
}

.mobile-drawer-sublist {
    display: none;
    list-style: none;
    margin: 0;
    padding: 8px 16px 10px 24px;
    background: #f9fafb;
    border-left: 3px solid #7ab800;
}

.mobile-drawer-sublist.is-open {
    display: block;
}

.mobile-drawer-sublink {
    display: block;
    padding: 6px 8px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mobile-drawer-sublink:hover {
    color: #7ab800;
}

.mobile-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-hotline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #7ab800;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(122, 184, 0, 0.25);
    transition: background-color 0.2s ease;
}

.drawer-hotline-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: #ffffff !important;
}

.drawer-hotline-btn:hover {
    background: #6a9f00;
}

/* 7. HOMEPAGE GRIDS & SECTIONS RESPONSIVE ADJUSTMENTS */
.flatsome-slider-wrap {
    transition: all 0.2s ease;
}

@media (max-width: 991px) {
    .slider-home-section {
        padding: 0 0 10px;
    }
    .flatsome-slider-wrap {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
    .slider-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .slider-nav-prev { left: 8px; }
    .slider-nav-next { right: 8px; }
}

@media (max-width: 480px) {
    .flatsome-slider-wrap {
        aspect-ratio: 16 / 9;
        max-height: 240px;
    }
    .slider-nav-btn {
        width: 28px;
        height: 28px;
    }
    .slider-dot {
        width: 7px;
        height: 7px;
    }
    .slider-dot.active {
        width: 18px;
    }
}

/* Lockout section tablet & mobile */
.lockout-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .lockout-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .lockout-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .lockout-prod-card {
        padding: 8px !important;
    }
    .lockout-tabs-nav {
        gap: 14px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .lockout-tabs-nav::-webkit-scrollbar {
        display: none !important;
    }
    .lockout-tab-btn {
        font-size: 12.5px !important;
        padding-bottom: 4px !important;
    }
}

/* Product Card Responsiveness */
@media (max-width: 480px) {
    .prod-img-wrap,
    .lockout-prod-img-wrap {
        height: 140px !important;
        padding: 8px !important;
    }
    .prod-img-wrap img,
    .lockout-prod-img-wrap img {
        max-height: 120px !important;
    }
    .prod-info-wrap {
        padding: 8px 10px 12px !important;
        gap: 4px !important;
    }
    .prod-title,
    .lockout-prod-title {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        height: 34px !important;
        min-height: 34px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
    }
    .prod-card-desc {
        display: none !important;
    }
    .prod-price,
    .lockout-prod-price {
        font-size: 13.5px !important;
        font-weight: 700 !important;
    }
    .prod-btn-view,
    .lockout-btn-xem {
        font-size: 11.5px !important;
        padding: 6px 8px !important;
        min-height: 30px !important;
    }
}

/* 8. FOOTER RESPONSIVE GRID */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 40px;
}

@media (max-width: 991px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px !important;
        padding-bottom: 30px !important;
    }
}

@media (max-width: 640px) {
    .footer-main-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding-bottom: 24px !important;
    }
    .footer-wrapper {
        padding-top: 32px !important;
    }
}

/* 9. FLOATING QUICK CONTACT WIDGET (HOTLINE + ZALO + MESSENGER + BACK TO TOP) */
.floating-contact-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 9999;
}

.floating-contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-contact-item {
    position: relative;
    display: flex;
    align-items: center;
}

.floating-contact-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: rgba(17, 24, 39, 0.94);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.floating-contact-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(17, 24, 39, 0.94);
}

.floating-contact-item:hover .floating-contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Base button styles */
.floating-btn-messenger,
.floating-btn-zalo,
.floating-btn-phone {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    position: relative;
}

.floating-icon-img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.25s ease;
}

/* 1. Messenger Button */
.floating-btn-messenger {
    background: linear-gradient(135deg, #00C6FF 0%, #0078FF 50%, #A033FF 100%);
    box-shadow: 0 4px 14px rgba(0, 120, 255, 0.45);
}
.floating-btn-messenger:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(160, 51, 255, 0.55);
}
.floating-btn-messenger:hover .floating-icon-img {
    transform: scale(1.1);
}

/* 2. Zalo Button */
.floating-btn-zalo {
    background: #0068FF;
    background: linear-gradient(135deg, #0084ff 0%, #0068ff 100%);
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.45);
}
.floating-btn-zalo:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.6);
}
.floating-btn-zalo:hover .floating-icon-img {
    transform: scale(1.1);
}

/* 3. Phone Hotline Button */
.floating-btn-phone {
    background: #16a34a;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
}
.floating-btn-phone:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.65);
    color: #ffffff;
}

/* Pulse animation for phone */
.floating-btn-phone::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #16a34a;
    animation: phonePulse 2s infinite ease-out;
    opacity: 0.8;
}

.floating-phone-icon {
    animation: phoneShake 2.5s infinite ease-in-out;
}

@keyframes phonePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes phoneShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-14deg); }
    20%, 40% { transform: rotate(14deg); }
    50% { transform: rotate(0deg); }
}

.floating-btn-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1f2937;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.floating-btn-top.is-visible {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

.floating-btn-top:hover {
    background: #7ab800;
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile responsive rules for widget: clean vertical column on bottom right */
@media (max-width: 768px) {
    .floating-contact-widget {
        bottom: 16px !important;
        right: 12px !important;
        flex-direction: column !important;
        gap: 10px !important;
        z-index: 9999 !important;
        align-items: center !important;
    }

    body.has-admin-bar .floating-contact-widget,
    body:has(#client-admin-bar) .floating-contact-widget,
    body:has(#client-admin-bar-restore:not([hidden])) .floating-contact-widget,
    body.has-admin-bar .floating-btn-top,
    body:has(#client-admin-bar) .floating-btn-top,
    body:has(#client-admin-bar-restore:not([hidden])) .floating-btn-top {
        bottom: 72px !important;
    }

    .floating-contact-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .floating-contact-item {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .floating-btn-messenger,
    .floating-btn-zalo,
    .floating-btn-phone {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
        flex-shrink: 0 !important;
    }

    .floating-icon-img {
        width: 24px !important;
        height: 24px !important;
    }

    .floating-contact-tooltip {
        display: none !important;
    }

    .floating-btn-top {
        position: fixed !important;
        left: 12px !important;
        bottom: 16px !important;
        width: 38px !important;
        height: 38px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        z-index: 9998 !important;
    }
}

/* Global Product Action Buttons (Brand Green #7ab800) */
.prod-btn-view,
.lockout-btn-xem {
    background: #7ab800 !important;
    color: #ffffff !important;
    border: 1px solid #7ab800 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(122, 184, 0, 0.25) !important;
    transition: all 0.2s ease !important;
}

.prod-btn-view:hover,
.lockout-btn-xem:hover,
.product-card-flatsome:hover .prod-btn-view,
.lockout-prod-card:hover .lockout-btn-xem {
    background: #5c8a00 !important;
    border-color: #5c8a00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(92, 138, 0, 0.35) !important;
}

/* Showcase Section Header & View All Link */
.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #7ab800;
    padding-bottom: 8px;
}

.showcase-title {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.35;
    position: relative;
    padding-left: 10px;
    border-left: 4px solid #7ab800;
    display: block;
    flex: 1;
    min-width: 0;
}

.showcase-title::before {
    display: none !important;
}

.showcase-view-all {
    font-size: 13px;
    font-weight: 700;
    color: #7ab800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.showcase-view-all:hover {
    color: #5c8a00 !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .showcase-header {
        gap: 8px;
    }
    .showcase-title {
        font-size: 14px;
        line-height: 1.3;
        padding-left: 8px;
        border-left-width: 3.5px;
    }
    .showcase-view-all {
        font-size: 12px;
    }
}

