/* =============================================================
   LinhKien Elec - Modern Premium Design System
   Inspired by DienMayXanh Standard
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --lk-header-bg: #ff6600;
    --lk-header-dark: #e55b00;
    --lk-nav-yellow: #ff6600;
    --lk-nav-yellow-hover: #e05300;
    --lk-text-dark: #0f172a;
    --lk-danger: #ff3b00;
    --lk-success: #10b981;
    --lk-bg-body: #f4f6f9;
    --lk-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    --lk-card-shadow-hover: 0 12px 30px rgba(255, 102, 0, 0.18);
    --lk-radius: 12px;
    --lk-radius-sm: 8px;
    --lk-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Reset & Typography --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--lk-bg-body);
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #ff6600;
    text-decoration: none;
    transition: var(--lk-transition);
}

a:hover {
    color: #e05300;
}

/* --- Sub Banner Card --- */
.sub-banner-card {
    transition: var(--lk-transition);
}

.promo-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.sub-banner-card:hover {
    border-color: #ff6600 !important;
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.15) !important;
    transform: translateY(-3px);
}

/* --- Sub Category Multi-select Filter --- */
.sub-cat-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: var(--lk-transition);
    user-select: none;
}

.sub-cat-label input[type="checkbox"] {
    display: none;
}

.sub-cat-label:hover {
    border-color: #ff6600;
    color: #ff6600;
    background: #fff4ed;
}

.sub-cat-label.active,
.sub-cat-label:has(input:checked) {
    border-color: #ff6600;
    background: #ff6600;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

/* --- Banner / Carousel --- */

/* --- Top Bar --- */
.top-utility-bar {
    background: #e55b00;
    color: #ffffff;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-utility-bar a {
    color: #ffffff;
}

.top-utility-bar a:hover {
    color: #fff0e6;
}

@media (max-width: 767.98px) {
    .top-utility-bar {
        display: none !important;
    }
}

/* --- Main Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.logo img {
    height: 42px;
    object-fit: contain;
}

.logo-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Search Bar */
.search-form {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    border: 2px solid transparent;
    padding: 0 50px 0 20px;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: var(--lk-transition);
}

.search-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #ff6600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--lk-transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.search-btn:hover {
    background: #fff4ed;
    color: #e55b00;
    transform: scale(1.06);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border-radius: var(--lk-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 1050;
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

/* ---- Desktop Action Buttons ---- */
.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff6600;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--lk-transition);
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    white-space: nowrap;
    text-decoration: none;
}

.header-action-btn:hover {
    background: #fff4ed;
    color: #e55b00;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.header-action-btn i {
    font-size: 17px;
    flex-shrink: 0;
}

/* Mobile/Tablet button (smaller) */
.header-action-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    gap: 5px;
}

.header-action-btn-sm i {
    font-size: 15px;
}

/* ---- Mobile Header Layout ---- */
.header-mobile {
    transition: all 0.3s ease;
}

/* Row 1: Logo + Buttons */
.header-mobile-row1 {
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 60px;
    opacity: 1;
}

/* Row 2: Menu + Search + (compact icons) */
.header-mobile-row2 {
    transition: all 0.2s ease;
}

/* Mobile hamburger button */
.btn-mobile-menu {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--lk-transition);
    flex-shrink: 0;
}

.btn-mobile-menu:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
}

/* Offcanvas Mobile Menu Styling */
.mobile-menu-offcanvas {
    max-width: 320px;
}

.mobile-nav-item {
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    background-color: rgba(0,0,0,0.03);
}

.mobile-nav-accordion .accordion-arrow {
    transition: transform 0.25 ease;
}

.mobile-nav-accordion button:not(.collapsed) .accordion-arrow {
    transform: rotate(180deg);
}


/* Mobile search input */
.search-input-mobile {
    height: 36px;
    font-size: 13px;
    padding: 0 40px 0 14px;
    border-radius: 18px;
    min-width: 0;   /* flex shrink correctly */
    width: 100%;
}

/* Compact icon buttons (ẩn khi chưa scroll, hiện khi scroll) */
.header-compact-btns {
    display: none;
    gap: 6px;
    /* overflow phải visible để cart badge không bị clip */
    overflow: visible;
    /* Thêm padding để badge không bị cắt bởi edge */
    padding: 6px 6px 0 0;
    margin: -6px -6px 0 0;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    transition: var(--lk-transition);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-icon-btn:hover {
    background: #fff4ed;
    color: #e55b00;
    transform: scale(1.1);
}

.cart-count-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--lk-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--lk-header-bg);
    box-sizing: border-box;
}

/* ===== SCROLLED STATE (mobile/tablet) ===== */
.header-scrolled .header-mobile-row1 {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}

.header-scrolled .header-compact-btns {
    display: flex;
}

/* Mobile search btn sizing */
@media (max-width: 991.98px) {
    .logo-text {
        font-size: 17px;
    }
    .search-btn {
        width: 30px;
        height: 30px;
        top: 3px;
        right: 3px;
        font-size: 14px;
    }
    /* Search form trên mobile/tablet chiếm toàn bộ chiều rộng, không giới hạn max-width */
    .search-form {
        max-width: none;
        margin: 0;
    }
}

.cart-btn {
    position: relative;
    padding-right: 22px;
}

@media (max-width: 575.98px) {
    .header-action-btn-sm.cart-btn {
        padding-right: 14px;
    }
}

.cart-count {
    background: var(--lk-danger);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    position: absolute;
    top: -5px;
    right: -5px;
    box-sizing: border-box;
}

/* Home Banner Responsive Styling */
.home-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}
/* Cart Badge Bounce Animation & Offcanvas Mini-Cart */
@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

.mini-cart-offcanvas {
    width: 380px !important;
    max-width: 90vw;
}

.extra-small {
    font-size: 11px;
}


/* Sub Navigation Bar (Orange & White Ribbon) */
.header-nav {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 2px solid #ff6600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px 10px 0px;
    color: #1e293b;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: var(--lk-transition);
}

.nav-list li a:hover {
    background: #fff4ed;
    color: #ff6600;
}

/* Desktop dropdown */
.nav-list .nav-dropdown-item {
    position: relative;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 2px solid #ff6600;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 1050;
}

.nav-dropdown li a {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    display: block;
    white-space: nowrap;
}

.nav-dropdown li a:hover {
    background: #fff4ed;
    color: #ff6600;
    padding-left: 22px;
}

.nav-dropdown-item:hover .nav-dropdown {
    display: block;
}

/* Desktop Mega Menu Dropdown for SẢN PHẨM */
.mega-dropdown-item {
    position: relative;
}

.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 680px;
    max-width: 90vw;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #ff6600;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 18px 20px;
    z-index: 1060;
}

.mega-dropdown-item:hover .mega-dropdown {
    display: block;
}

.mega-cat-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13.5px;
    color: #0f172a;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #f1f5f9;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mega-cat-title:hover {
    color: #ff6600;
}

.mega-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-sub-list li a {
    display: block;
    padding: 3px 0;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-sub-list li a:hover {
    color: #ff6600;
    padding-left: 5px;
}

/* Mobile sub-item (tree style) */
.mobile-nav-subitem {
    background: #fafafa;
    transition: background-color 0.2s ease;
}

.mobile-nav-subitem:hover {
    background: #fff4ed;
    color: #ff6600;
}

/* Service Promises Bar */
.service-promises {
    background: #ffffff;
    border-radius: var(--lk-radius);
    padding: 16px 20px;
    box-shadow: var(--lk-card-shadow);
    margin-bottom: 24px;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promise-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.12);
    color: #ff6600;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promise-text h6 {
    font-weight: 700;
    font-size: 13px;
    margin: 0;
}

.promise-text p {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
}

/* Product Section */
.product-section {
    background: #ffffff;
    border-radius: var(--lk-radius);
    padding: 24px;
    box-shadow: var(--lk-card-shadow);
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Product Card */
.product-item {
    /* border-radius: var(--lk-radius);
    border: 1px solid #e2e8f0; */
    padding: 0;
    transition: var(--lk-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-item:hover {
    border-color: #ff6600;
    box-shadow: var(--lk-card-shadow-hover);
    transform: translateY(-4px);
}

.product-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 0;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: transform 0.4s ease;
}

.product-item:hover .product-img img {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--lk-danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(255, 59, 0, 0.4);
    z-index: 2;
}

/* Out-of-stock overlay on product image */
.oos-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 5px 0;
    letter-spacing: 0.3px;
    pointer-events: none;
    z-index: 3;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 12px 8px;
}

.product-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.product-item:hover .product-name {
    color: #ff6600;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.product-price strong {
    font-size: 14px;
    font-weight: 800;
}

.old-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

.stock-status {
    font-size: 11px;
    font-weight: 600;
    /* margin-bottom: 12px; */
}

.add-to-cart-btn {
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: var(--lk-transition) !important;
    color: var(--lk-header-bg) !important;
    border-color: var(--lk-header-bg) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.add-to-cart-btn:hover {
    background: var(--lk-header-bg) !important;
    border-color: var(--lk-header-bg) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25) !important;
}

.buy-now-btn {
    background: var(--lk-header-bg) !important;
    border-color: var(--lk-header-bg) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: var(--lk-transition) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.buy-now-btn:hover {
    background: var(--lk-header-dark) !important;
    border-color: var(--lk-header-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35) !important;
}

.btn-added {
    background-color: var(--lk-success, #10b981) !important;
    border-color: var(--lk-success, #10b981) !important;
    color: #ffffff !important;
}

/* Mobile: product-actions nút liền nhau dạng button-group */
@media (max-width: 767.98px) {

    .product-actions .add-to-cart-btn {
        flex-shrink: 0;
        height: 29px !important;
        width: 32px !important;
    }
    .product-actions .buy-now-btn {
        height: 29px !important;
        font-size: 12px !important;
    }
    .product-actions .btn-secondary {
        border-radius: 6px !important;
        height: 29px !important;
        font-size: 12px !important;
    }
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: var(--lk-transition);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.12);
    color: #ffffff;
}

.float-phone { background:#25d366; }
.float-zalo { background: #0068ff; }
.float-maps { background: #ef4444; }

.float-zalo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Social Icon Buttons (Footer Connect Section) */
.social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.social-icon-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
}

.social-icon-btn svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 50px;
    padding-bottom: 20px;
    font-size: 13px;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ff6600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
}

/* =============================================================
   Homepage & Sidebar Custom Components (Bootstrap 5 System)
   ============================================================= */

/* --- Left Sidebar Component --- */
.sidebar-box {
    background: #ffffff;
    border-radius: var(--lk-radius-sm, 8px);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-header-red {
    background: var(--lk-header-bg, #025fcf);
    color: #ffffff;
    padding: 9px 14px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    color: #1e293b;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-cat-link:hover {
    background: #f8fafc;
    color: var(--lk-header-bg, #025fcf);
    padding-left: 17px;
}

.sidebar-cat-link .cat-check-icon {
    color: #10b981;
    margin-right: 6px;
    font-size: 12px;
    flex-shrink: 0;
}

.sidebar-box .accordion-button {
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-box .accordion-button:hover {
    background-color: #f8fafc !important;
    color: var(--lk-header-bg, #025fcf) !important;
}

.sidebar-subcat-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 28px;
    font-size: 11.5px;
    color: #475569;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.sidebar-subcat-link:hover {
    color: var(--lk-header-bg, #025fcf);
    background-color: #ffffff;
}

/* Sidebar Mini Product Items */
.sidebar-mini-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sidebar-mini-product:last-child {
    border-bottom: none;
}

.sidebar-mini-product:hover {
    background: #f8fafc;
}

.sidebar-mini-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 2px;
}

.sidebar-mini-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-mini-product:hover .sidebar-mini-title {
    color: var(--lk-header-bg, #025fcf);
}

/* --- Homepage Category Grid Component --- */
.home-cat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    /* border-radius: var(--lk-radius-sm, 8px); */
    padding: 0;
    transition: var(--lk-transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.home-cat-card:hover {
    border-color: #ff6600;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.15);
    transform: translateY(-2px);
}

.home-cat-img-box {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    margin-bottom: 0;
    background: #f8f9fa;
}

.home-cat-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-cat-card:hover .home-cat-img-box img {
    transform: scale(1.06);
}

.home-cat-info {
    padding: 8px;
}

@media (max-width: 767.98px) {
    .home-cat-card {
        padding: 0;
    }
    .home-cat-img-box {
        padding-top: 100%;
    }
    .home-cat-info {
        padding: 5px 4px;
    }
    .home-cat-title {
        font-size: 11px !important;
        line-height: 1.25;
        height: 28px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .home-cat-count {
        font-size: 9.5px !important;
    }

    /* Mobile Horizontal Scroll Product Row */
    .mobile-h-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
        margin-right: -12px !important;
        margin-left: -12px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        scrollbar-width: none; /* Firefox */
    }

    .mobile-h-scroll::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .mobile-h-scroll > .col {
        flex: 0 0 52% !important;
        max-width: 52% !important;
        width: 52% !important;
        scroll-snap-align: start;
    }
}

/* --- Section Ribbon Header Component --- */
.ribbon-header-box {
    background: url('../images/bg-main-menu-3.png') no-repeat left center, #eeeeee;
    background-size: 100% 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 0;
    margin-bottom: 20px;
    overflow: hidden;
    height: 38px;
    line-height: 42px;
}

.ribbon-title-badge {
    color: #fff;
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    padding: 0 45px 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.ribbon-title-badge:hover {
    color: #fff;
    text-decoration: none;
}

.ribbon-more-link {
    color: #666666;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.ribbon-more-link:hover {
    color: var(--lk-header-bg, #025fcf);
}

.ribbon-subcat-link {
    color: #666666;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.ribbon-subcat-link:hover {
    color: var(--lk-header-bg, #025fcf);
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .ribbon-header-box {
        background-size: auto 100%;
    }
}

/* --- Circular Sale Badge Component --- */
.sale-badge-circle {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #d30000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(211, 0, 0, 0.4);
    z-index: 2;
}

/* --- Category Section Title Decorative Component --- */
.cat-highlight-header {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.cat-highlight-title {
    display: inline-block;
    border: 1px solid #e2e8f0;
    padding: 8px 30px;
    background: #ffffff;
    font-weight: 800;
    font-size: 13.5px;
    color: #1e293b;
    text-transform: uppercase;
    position: relative;
}

.cat-highlight-title::before,
.cat-highlight-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #cbd5e1;
}

.cat-highlight-title::before {
    right: 100%;
}

.cat-highlight-title::after {
    left: 100%;
}

/* --- Category Card Utility Class --- */
.home-cat-card {
    border: 1px solid #e2e8f0;
    /* border-radius: var(--lk-radius-sm, 8px); */
    padding: 0;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
}

.home-cat-card:hover {
    border-color: var(--lk-header-bg, #025fcf);
    box-shadow: 0 8px 24px rgba(2, 95, 207, 0.12);
    transform: translateY(-3px);
}

/* --- Quick Variant Selection Modal Styling --- */
.qv-modal .modal-content {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.qv-modal .qv-opt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
    transition: var(--lk-transition);
}

.qv-modal .qv-opt-btn:hover {
    border-color: #ff6600;
    color: #ff6600;
    background: #fff4ed;
}

.qv-modal .qv-opt-btn.active,
.qv-modal .qv-opt-btn.btn-primary {
    border-color: #ff6600 !important;
    background-color: #ff6600 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.25);
    font-weight: 600;
}

.qv-modal .qv-qty-group .btn {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #334155;
    transition: var(--lk-transition);
}

.qv-modal .qv-qty-group .btn:hover {
    background: #f1f5f9;
    color: #ff6600;
    border-color: #ff6600;
}

.qv-modal .qv-qty-group input {
    border-color: #cbd5e1;
}

.qv-modal #qvBtnAddCart {
    border: 1.5px solid #ff3b00;
    color: #ff3b00;
    background: #fff;
    transition: var(--lk-transition);
}

.qv-modal #qvBtnAddCart:hover:not(:disabled) {
    background: #fff0ec;
    color: #ff3b00;
    border-color: #ff3b00;
    transform: translateY(-1px);
}

.qv-modal #qvBtnBuyNow {
    background: linear-gradient(135deg, #ff6600 0%, #ff3b00 100%);
    border: none;
    color: #fff;
    transition: var(--lk-transition);
}

.qv-modal #qvBtnBuyNow:hover:not(:disabled) {
    background: linear-gradient(135deg, #e55b00 0%, #e03400 100%);
    box-shadow: 0 4px 15px rgba(255, 59, 0, 0.35);
    transform: translateY(-1px);
}

.qv-modal .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}



/* --- Breadcrumb --- */
.breadcrumb {
    font-size: 13px;
}

.breadcrumb-item + .breadcrumb-item::before {
    font-size: 13px;
}

.breadcrumb-item a {
    color: #ff6600;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}
