/* ==========================================================================
   Hair Color Shop - Master Styling
   Modern, Luxury Salon Aesthetic (Davines Inspiration)
   ========================================================================== */

:root {
    --primary-color: #8B1E3F;
    --primary-hover: #701630;
    --secondary-color: #C59B27;
    --secondary-hover: #a5811d;
    --dark-color: #1a1a1a;
    --light-color: #fcfbfa;
    --gray-bg: #f5f2ed;
    --border-color: #e5ded4;
    --text-muted: #736b63;
    --text-dark: #2c2724;
    --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--light-color);
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Headings scale */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: #1a1514;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1, .h1 { font-size: clamp(1.85rem, 4vw, 2.35rem); }
h2, .h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.1rem; }
h5, .h5 { font-size: 0.98rem; font-weight: 600; }
h6, .h6 { font-size: 0.88rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   Top Bar & Navbar
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: var(--dark-color);
    color: #dedede;
    font-size: 0.85rem;
    padding: 7px 0;
}

.top-bar a {
    color: #e0d9cf;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.site-navbar,
.main-navbar,
nav.navbar.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1060 !important;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin-right: 1.5rem;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition);
}

.footer-logo-img {
    height: 46px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .brand-logo-img {
        height: 40px;
        max-width: 145px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        height: 35px;
        max-width: 125px;
    }
    .footer-logo-img {
        height: 38px;
        max-width: 140px;
    }
}

/* --------------------------------------------------------------------------
   Product Enterprise Navigation & Menu Micro-Interactions
   -------------------------------------------------------------------------- */
.main-menu {
    flex-wrap: nowrap !important;
}

.main-menu .nav-item {
    white-space: nowrap !important;
    flex-shrink: 0;
}

.main-menu .nav-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #2c2523 !important;
    padding: 0.7rem 0.7rem !important;
    white-space: nowrap !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0;
}

@media (min-width: 1200px) {
    .main-menu .nav-link {
        padding: 0.75rem 0.85rem !important;
        font-size: 0.94rem;
        gap: 0.4rem;
    }
}

@media (min-width: 1400px) {
    .main-menu .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.96rem;
        gap: 0.45rem;
    }
}

/* Sliding gradient underline effect */
.main-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0.7rem;
    right: 0.7rem;
    height: 2.5px;
    background: linear-gradient(90deg, #8B1E3F 0%, #c98a2c 100%);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
    opacity: 0;
}

.main-menu .nav-link:hover::after,
.main-menu .nav-link.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.main-menu .nav-link:hover {
    color: #8B1E3F !important;
}

.main-menu .nav-link.active {
    color: #8B1E3F !important;
    font-weight: 700;
}

/* Menu Item Icons */
.nav-item-icon {
    font-size: 0.92rem;
    color: #8B1E3F;
    opacity: 0.85;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    flex-shrink: 0;
}

.main-menu .nav-link:hover .nav-item-icon,
.main-menu .nav-link.active .nav-item-icon {
    opacity: 1;
    transform: translateY(-2px) scale(1.15);
    color: #8B1E3F;
}

/* Animated Pill Badges (HOT, PRO, DANGER, WARNING, PRIMARY, SUCCESS, DARK) */
.nav-badge-pill {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 0.18rem 0.48rem;
    border-radius: 20px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: #ffffff !important;
    background: #e74c3c; /* Fallback default */
}

.nav-badge-hot,
.nav-badge-danger {
    background: linear-gradient(135deg, #ff334b 0%, #ff7849 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 51, 75, 0.45) !important;
    animation: badgePulse 2s infinite ease-in-out;
}

.nav-badge-pro,
.nav-badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
}

.nav-badge-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4) !important;
}

.nav-badge-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.4) !important;
}

.nav-badge-dark {
    background: linear-gradient(135deg, #212529 0%, #111111 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(33, 37, 41, 0.4) !important;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 10px rgba(231, 76, 60, 0.35);
    }
}

/* Mega-Shop Menu Dropdown */
@media (min-width: 992px) {
    .dropdown-mega-shop {
        position: static !important;
    }
    .dropdown-mega-shop:hover,
    .dropdown-mega-shop.hover-active,
    .dropdown-mega-shop.show,
    .navbar-nav .nav-item.dropdown:hover {
        z-index: 1075 !important;
    }
    .dropdown-mega-shop:hover > .mega-shop-menu,
    .dropdown-mega-shop.hover-active > .mega-shop-menu,
    .dropdown-mega-shop.show > .mega-shop-menu,
    .mega-shop-menu.show,
    .mega-shop-menu:hover {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .mega-shop-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
        position: absolute;
        top: 100%;
        left: 1.5%;
        right: 1.5%;
        width: 97%;
        max-width: 1340px;
        margin: 0 auto !important;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.985);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 20px 50px rgba(43, 34, 30, 0.16), 0 0 0 1px rgba(139, 30, 63, 0.08);
        z-index: 1080 !important;
    }
    /* Invisible hover bridge to eliminate gap between navbar and sub-menu */
    .mega-shop-menu::before {
        content: '';
        position: absolute;
        top: -24px;
        left: 0;
        right: 0;
        height: 24px;
        background: transparent;
        display: block;
        z-index: 1079 !important;
    }
}

.mega-cat-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: #2c2523;
    background: #faf8f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.22s ease;
    white-space: nowrap !important;
    min-width: 0;
}

.mega-cat-item:hover {
    background: #ffffff;
    border-color: rgba(139, 30, 63, 0.22);
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(139, 30, 63, 0.08);
    color: #8B1E3F;
}

.mega-cat-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.mega-cat-item:hover .mega-cat-icon {
    transform: scale(1.15) rotate(4deg);
}

.mega-cat-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex-grow: 1;
    white-space: nowrap !important;
    overflow: hidden;
}

.mega-cat-name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-item-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: rgba(139, 30, 63, 0.1);
    color: #8B1E3F;
    margin-left: 0.25rem;
    letter-spacing: 0.3px;
    white-space: nowrap !important;
    flex-shrink: 0;
}
    background: rgba(139, 30, 63, 0.1);
    color: #8B1E3F;
    margin-left: 0.35rem;
    letter-spacing: 0.3px;
}

.mega-arrow {
    font-size: 0.75rem;
    color: #b0a4a0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.mega-cat-item:hover .mega-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #8B1E3F;
}

/* Mega Menu Right Column - Luxury Quick Links & Collections */
.mega-quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: #2b2b2b;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.mega-quick-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.mega-quick-body {
    flex-grow: 1;
    min-width: 0;
}

.mega-quick-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mega-quick-sub {
    font-size: 0.74rem;
    color: #717171;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-quick-arrow {
    font-size: 0.75rem;
    color: #c0b4b0;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
}

.mega-quick-link:hover {
    background: #fdf8f9;
    border-color: rgba(139, 30, 63, 0.2);
    box-shadow: 0 4px 14px rgba(139, 30, 63, 0.08);
    transform: translateX(4px);
    color: #8B1E3F;
}

.mega-quick-link:hover .mega-quick-icon {
    transform: scale(1.15) rotate(5deg);
}

.mega-quick-link:hover .mega-quick-title {
    color: #8B1E3F;
}

.mega-quick-link:hover .mega-quick-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #8B1E3F;
}

.mega-promo-card {
    background: linear-gradient(135deg, #1c050d 0%, #3e0b1c 45%, #8B1E3F 100%);
    box-shadow: 0 8px 24px rgba(139, 30, 63, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.25);
    transition: all 0.3s ease;
}

.mega-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 30, 63, 0.45);
    border-color: rgba(255, 215, 0, 0.5);
}

.mega-promo-card h6 {
    color: #ffd700 !important;
    font-size: 1.15rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.mega-promo-card p {
    color: #ffffff !important;
    opacity: 0.95 !important;
}

/* Shop Sidebar Category Menu - Professional Interactive Styles */
.shop-cat-menu {
    border: 1px solid #edf0f2;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.shop-cat-header {
    padding: 0.85rem 1.1rem;
    background: #fafbfc;
    border-bottom: 1px solid #edf0f2;
}

.shop-cat-list {
    padding: 0.5rem;
    margin: 0;
    list-style: none;
}

.shop-cat-item {
    margin-bottom: 0.3rem;
}

.shop-cat-item:last-child {
    margin-bottom: 0;
}

.shop-cat-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    border-radius: 9px;
    text-decoration: none;
    color: #333333;
    font-size: 0.86rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap !important;
}

.shop-cat-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.shop-cat-name {
    flex-grow: 1;
    min-width: 0;
    line-height: 1.25;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-cat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 12px;
    background: #f1f3f5;
    color: #555555;
    border: 1px solid #e2e6ea;
    flex-shrink: 0;
    white-space: nowrap !important;
    transition: all 0.22s ease;
}

.shop-cat-arrow {
    font-size: 0.72rem;
    color: #b0a4a0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.22s ease;
}

.shop-cat-link:hover {
    background: #fbf5f7;
    border-color: rgba(139, 30, 63, 0.15);
    color: #8B1E3F;
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(139, 30, 63, 0.06);
}

.shop-cat-link:hover .shop-cat-icon {
    transform: scale(1.15) rotate(4deg);
}

.shop-cat-link:hover .shop-cat-badge {
    background: rgba(139, 30, 63, 0.12);
    color: #8B1E3F;
    border-color: rgba(139, 30, 63, 0.2);
}

.shop-cat-link:hover .shop-cat-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #8B1E3F;
}

.shop-cat-link.active {
    background: linear-gradient(135deg, rgba(139, 30, 63, 0.08) 0%, rgba(139, 30, 63, 0.16) 100%);
    border-color: rgba(139, 30, 63, 0.3);
    border-left: 3.5px solid #8B1E3F;
    color: #8B1E3F;
    font-weight: 700;
}

.shop-cat-link.active .shop-cat-badge {
    background: #8B1E3F;
    color: #ffffff;
    border-color: #8B1E3F;
}

.shop-cat-link.active .shop-cat-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #8B1E3F;
}

/* Sub-category tree styling in Sidebar */
.shop-cat-toggle {
    color: #888888;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.shop-cat-toggle:hover {
    color: #8B1E3F;
    background-color: rgba(139, 30, 63, 0.08);
}
.shop-cat-toggle:not(.collapsed) i {
    transform: rotate(180deg);
    color: #8B1E3F;
}
.shop-subcat-list {
    margin: 0.2rem 0.5rem 0.4rem 1.6rem;
    padding-left: 0.85rem;
    border-left: 2px dashed #e2e8f0;
}
.shop-subcat-item {
    margin-bottom: 0.2rem;
}
.shop-subcat-link {
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    font-size: 0.81rem;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
}
.shop-subcat-link:hover {
    background-color: #fdf2f4;
    color: #8B1E3F;
    transform: translateX(3px);
}
.shop-subcat-link.active-sub {
    background-color: rgba(139, 30, 63, 0.1);
    color: #8B1E3F;
    font-weight: 700;
}
.shop-subcat-link.active-sub .shop-subcat-count {
    background-color: #8B1E3F !important;
    color: #ffffff !important;
    border-color: #8B1E3F !important;
}
.shop-subcat-count {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
}

/* Sub-category Tabs (Enterprise Filter Pills) */
.subcat-tabs-card {
    border: 1px solid #edf0f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.subcat-parent-icon {
    flex-shrink: 0;
}
.subcat-nav-pills {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    margin-bottom: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 30, 63, 0.2) transparent;
}
.subcat-nav-pills::-webkit-scrollbar {
    height: 5px;
}
.subcat-nav-pills::-webkit-scrollbar-track {
    background: transparent;
}
.subcat-nav-pills::-webkit-scrollbar-thumb {
    background: rgba(139, 30, 63, 0.2);
    border-radius: 10px;
}
.subcat-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50rem;
    text-decoration: none;
    transition: all 0.22s ease;
    white-space: nowrap;
}
.subcat-pill-link:hover {
    color: #8B1E3F;
    background: #fdf2f4;
    border-color: rgba(139, 30, 63, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 30, 63, 0.08);
}
.subcat-pill-link .pill-count-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    background: #e9ecef;
    color: #495057;
    transition: all 0.22s ease;
}
.subcat-pill-link .pill-badge-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    letter-spacing: 0.3px;
    border-radius: 10px;
}
.subcat-pill-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #8B1E3F 0%, #a0284d 100%) !important;
    border-color: #8B1E3F !important;
    box-shadow: 0 4px 14px rgba(139, 30, 63, 0.28);
    transform: translateY(-1px);
}
.subcat-pill-link.active .pill-count-badge {
    background: #ffffff !important;
    color: #8B1E3F !important;
}

/* Ensure headings inside dark sections are ALWAYS crisp white */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-gradient-dark h1, .bg-gradient-dark h2, .bg-gradient-dark h3, .bg-gradient-dark h4, .bg-gradient-dark h5, .bg-gradient-dark h6,
[class*="bg-dark"] h1, [class*="bg-dark"] h2, [class*="bg-dark"] h3, [class*="bg-dark"] h4, [class*="bg-dark"] h5, [class*="bg-dark"] h6 {
    color: #ffffff !important;
}

/* Dropdown Menu General Animation */
@media (min-width: 992px) {
    .dropdown-menu:not(.mega-shop-menu) {
        animation: menuSlideFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@keyframes menuSlideFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Navigation Drawer Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        border-radius: 16px;
        padding: 1.25rem 1rem;
        margin-top: 0.75rem;
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
        border: 1px solid rgba(0,0,0,0.06);
    }
    .main-menu .nav-item {
        border-bottom: 1px solid #f4edea;
    }
    .main-menu .nav-item:last-child {
        border-bottom: none;
    }
    .main-menu .nav-link {
        padding: 0.85rem 0.65rem !important;
        font-size: 1rem;
    }
    .main-menu .nav-link::after {
        display: none;
    }
    .main-menu .nav-link.active {
        color: #8B1E3F !important;
        background: #fdf5f7;
        border-radius: 10px;
        padding-left: 1rem !important;
        border-left: 3.5px solid #8B1E3F;
    }
    .mega-shop-menu {
        box-shadow: none !important;
        border: 1px solid #eee;
        margin-top: 0.5rem !important;
    }
    .mega-shop-inner {
        padding: 0.5rem !important;
    }
}

.header-action-btn {
    position: relative;
    font-size: 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    transition: var(--transition);
}

.header-action-btn:hover {
    color: var(--primary-color);
}

/* Luxury Salon Header Action Buttons */
.navbar-right-icons {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-action-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #2b221e;
    background: #fbf9f8;
    border: 1px solid #ebe4e1;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.nav-action-item:hover {
    color: #fff;
    background: #8B1E3F;
    border-color: #8B1E3F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 30, 63, 0.25);
}

.nav-action-item:hover i,
.nav-action-item:hover i.text-danger {
    color: #ffffff !important;
}

.nav-action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 10px;
    color: #fff;
    background: #8B1E3F;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.nav-action-badge.badge-cart {
    background: #c98a2c;
}

.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
    background: #fbf9f8;
    border: 1px solid #ebe4e1;
    color: #2b221e;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.nav-user-pill:hover, .nav-user-pill[aria-expanded="true"] {
    background: #f4edea;
    border-color: #d9cbc6;
    color: #8B1E3F;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.user-dropdown {
    min-width: 250px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.5rem 0;
    margin-top: 0.5rem !important;
}

.user-dropdown .dropdown-header {
    background: #fcfbfa;
    padding: 0.85rem 1rem;
    border-radius: 14px 14px 0 0;
}

.user-dropdown .dropdown-item {
    padding: 0.6rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}

.user-dropdown .dropdown-item:hover {
    background-color: #fdf5f7;
    color: #8B1E3F;
    padding-left: 1.35rem;
}

.badge-counter {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2em 0.5em;
    border-radius: 50rem;
}

/* --------------------------------------------------------------------------
   Hero Carousel
   -------------------------------------------------------------------------- */
.hero-slider {
    position: relative;
    height: 520px;
    width: 100%;
}

@media (max-width: 1400px) {
    .hero-slider {
        height: 480px; /* Tối ưu hoàn hảo cho màn hình HD 720 (1366x768 & 1280x720) */
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 420px; /* Tablet */
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 360px; /* Mobile */
    }
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-color: #0d0a09;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: none;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.22;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.95);
}

.hero-subtitle {
    color: #ffd700 !important;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.6);
    padding: 0.35rem 1.1rem;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-content p.lead {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.95);
    max-width: 620px;
}

.text-hover-gold {
    transition: color 0.3s ease;
}

.text-hover-gold:hover {
    color: #ffd700 !important;
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 30, 63, 0.35);
}

.btn-gold {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
}

.section-title .title-sub {
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    display: inline-block;
    margin-bottom: 0.45rem;
    background: rgba(197, 155, 39, 0.1);
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
}

.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    font-weight: 800;
    color: #1a1514;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.section-title .title-divider {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Product Cards & Gallery Stacking Fix
   -------------------------------------------------------------------------- */
.product-gallery,
.product-gallery.sticky-lg-top,
.product-gallery .main-img-box {
    z-index: 20 !important;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #d1c4b2;
    z-index: 5;
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    background: #fdfcfb;
    overflow: hidden;
}

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

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-sale {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

.badge-new {
    background-color: var(--secondary-color);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

.product-action-btns {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .product-action-btns {
    opacity: 1;
    transform: translateY(0);
}

.btn-card-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: none;
    transition: var(--transition);
}

.btn-card-action:hover {
    background: var(--primary-color);
    color: #fff;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-size: 0.72rem;
    color: #8e837a;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.42;
    height: 2.85em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #211c1a;
    text-decoration: none;
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--primary-color);
}

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

.current-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.old-price {
    font-size: 0.82rem;
    color: #a1968e;
    text-decoration: line-through;
}

.btn-add-to-cart {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 0.55rem 1rem;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Category Card
   -------------------------------------------------------------------------- */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    padding: 1rem 0.65rem 0.85rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(139, 30, 63, 0.1);
    border-color: rgba(139, 30, 63, 0.35);
    color: #8B1E3F;
}

.category-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 0.55rem;
    transition: all 0.25s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(3deg);
}

.category-name {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    color: #222222;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.15rem;
    transition: color 0.2s ease;
}

.category-card:hover .category-name {
    color: #8B1E3F;
}

.category-count {
    font-size: 0.72rem;
    font-weight: 500;
    color: #8c95a0;
    transition: color 0.2s ease;
}

.category-badge-pill {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    padding: 0.12rem 0.42rem;
    border-radius: 6px;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Course Card
   -------------------------------------------------------------------------- */
.course-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.course-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #111;
}

.course-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(139, 30, 63, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.course-card:hover .course-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Floating Contact & Care Widget
   -------------------------------------------------------------------------- */
.floating-widget {
    position: fixed;
    right: 20px;
    bottom: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    position: relative;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.float-zalo {
    background-color: #0068ff;
}

.float-fb {
    background: linear-gradient(135deg, #0084ff, #a033ff);
}

.float-phone {
    background-color: #28a745;
    animation: phonePulse 1.8s infinite;
}

.float-top {
    background-color: var(--dark-color);
    display: none;
}

.float-tooltip {
    position: absolute;
    right: 58px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.float-btn:hover .float-tooltip {
    opacity: 1;
}

@keyframes phonePulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* --------------------------------------------------------------------------
   Responsive Tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-slider {
        height: 380px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Marketing Promo Popup (Enterprise Lightbox)
   -------------------------------------------------------------------------- */
.promo-popup-modal .modal-content {
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
    border: none;
}

.promo-popup-header {
    background: linear-gradient(135deg, #8B1E3F 0%, #4A0E17 100%);
    position: relative;
    overflow: hidden;
}

.promo-header-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.promo-badge {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.35);
    font-size: 0.72rem;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 50px;
}

.promo-modal-title {
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-modal-sub {
    font-size: 0.88rem;
    line-height: 1.4;
}

.promo-brand-logo .promo-logo-img {
    max-height: 48px;
    object-fit: contain;
}

.promo-coupon-box {
    background: #fff8f8;
    border-color: #8B1E3F !important;
    border-radius: 12px;
}

.promo-coupon-text {
    letter-spacing: 2px;
}

/* Bright Luminous Close Button (Requirement 2: Sáng rõ trên nền tối) */
.promo-popup-close-bright {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    z-index: 1055 !important;
    padding: 0 !important;
}

.promo-popup-close-bright:hover {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #ffffff !important;
    transform: rotate(90deg) scale(1.12) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6) !important;
}

/* Template Themes */
.promo-tpl-luxury-gold .promo-header-bg {
    background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.18) 0%, transparent 65%);
}

.promo-tpl-festive-red .promo-header-bg {
    background: radial-gradient(circle at 80% 20%, rgba(255, 224, 102, 0.25) 0%, transparent 65%);
}

.promo-tpl-modern-dark .promo-header-bg {
    background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25) 0%, transparent 65%);
}

.promo-tpl-emerald-green .promo-header-bg {
    background: radial-gradient(circle at 80% 20%, rgba(134, 239, 172, 0.25) 0%, transparent 65%);
}

/* Admin Template Card Radio Hover */
.template-card {
    transition: all 0.2s ease;
    border: 1.5px solid #e2e8f0 !important;
}

.template-card:hover {
    border-color: #8B1E3F !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 30, 63, 0.12);
}

.template-card:has(input[type="radio"]:checked) {
    border-color: #8B1E3F !important;
    background-color: #fff8f8;
    box-shadow: 0 0 0 1px #8B1E3F;
}
