:root {
    /* Colors */
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --accent-color: #0d6efd;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-color: #e9ecef;
    --border-radius-lg: 15px;
    --background-light: #FFF;

    /* Typography Scale */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-md: 1.125rem;     /* 18px */
    --font-size-lg: 1.25rem;      /* 20px */
    --font-size-xl: 1.5rem;       /* 24px */
    --font-size-2xl: 1.75rem;     /* 28px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 2.5rem;      /* 40px */

    /* Spacing Scale */
    --spacing-xs: 0.25rem;        /* 4px */
    --spacing-sm: 0.5rem;         /* 8px */
    --spacing-md: 0.75rem;        /* 12px */
    --spacing-base: 1rem;         /* 16px */
    --spacing-lg: 1.25rem;        /* 20px */
    --spacing-xl: 1.5rem;         /* 24px */
    --spacing-2xl: 2rem;          /* 32px */
    --spacing-3xl: 2.5rem;        /* 40px */
    --spacing-4xl: 3rem;          /* 48px */
    --spacing-5xl: 4rem;          /* 64px */

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
}

html {
    width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 90px; /* compensate for fixed navbar */
}

/* Typography System */
h1, .h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
}

h2, .h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

h3, .h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

h4, .h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-base);
    color: var(--text-dark);
}

h5, .h5 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-base);
    color: var(--text-dark);
}

h6, .h6 {
    font-size: var(--font-size-md);
    font-weight: 600;
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-base);
    color: var(--text-dark);
}

small, .small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

/* Section Spacing */
.section-padding {
    padding: var(--spacing-4xl) 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
}

.section-subtitle {
    font-size: var(--font-size-md);
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.container {
    max-width: 1520px !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 5px;
}
/* Navbar */
.navbar {
    background: #FFF !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 700;
    font-size: var(--font-size-2xl);
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: var(--font-size-base);
    color: var(--text-dark) !important;
    margin: 0 var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-base) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Active state for navigation */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    position: relative;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Cart Icon */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.cart-icon-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
    color: white;
}

.cart-icon-wrapper i {
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
    animation: pulse-cart 2s infinite;
}

@keyframes pulse-cart {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


/* Desktop Dropdown Styles */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-toggle::after {
    display: none; /* Hide default Bootstrap arrow */
}

.navbar .dropdown-toggle {
    position: relative;
}

.navbar .dropdown-toggle .dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.navbar .dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.navbar .dropdown-menu {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: block !important; /* Override Bootstrap display:none */
}

/* Show ONLY the immediate level-2 menu on hover */
.navbar .dropdown:hover > .dropdown-menu,
.navbar .dropdown.show > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Prevent nested menus from auto-showing when hovering level-1 */
.navbar .dropdown-menu .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none; /* keep level-3 non-interactive until parent hovered */
}

/* Rotate arrow on hover */
.navbar .dropdown:hover .dropdown-arrow,
.navbar .dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0, 86, 179, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(3px);
}
.dropdown-item.active, .dropdown-item:active {
    background-color: transparent; /* only highlight on :hover, not active */
}
.navbar .dropdown-item.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.navbar .dropdown-item.active::after {
    display: none;
}

.navbar .dropdown li.active > .dropdown-item {
    color: var(--text-dark); /* no forced highlight unless hover */
    border-left-color: transparent;
    background: transparent;
    font-weight: 500;
}

.navbar .dropdown li.active .dropdown-item::after {
    display: none;
}

.navbar .dropdown-item i {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Search Box Styles */
.search-box {
    position: relative;
    min-width: 320px;
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 3.5rem 0 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--secondary-color);
    font-weight: 400;
    line-height: normal;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.15);
}

.search-input:focus ~ .search-icon,
.search-input-wrapper:focus-within .search-icon {
    color: var(--primary-color);
}

.search-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 86, 179, 0.2);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-btn i {
    font-size: 0.95rem;
}

/* Mobile Search Styles */
.mobile-search-box {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
    background: white;
}

.mobile-search-box .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-box .search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.mobile-search-box .search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-search-box .search-input {
    width: 100%;
    height: 48px;
    padding: 0 3.5rem 0 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--secondary-color);
    line-height: normal;
}

.mobile-search-box .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.15);
}

.mobile-search-box .search-input-wrapper:focus-within .search-icon {
    color: var(--primary-color);
}

.mobile-search-box .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 86, 179, 0.2);
}

.mobile-search-box .search-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

@media (max-width: 991px) {
    .search-box {
        display: none;
    }
}

/* Multilevel submenu (level-3) positioning */
.navbar .dropdown-submenu { position: relative; }
.navbar .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: calc(100% - 2px); /* slight overlap to avoid hover gap */
    margin-left: 0;
    margin-top: -8px;
    border-radius: 12px;
    padding: 1rem 0; /* same as level-2 */
    min-width: 220px; /* same baseline width */
    border: none; /* no border like level-2 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); /* match level-2 */
}
.navbar .dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
/* level-3 items follow the same look as level-2 */
.navbar .dropdown-submenu > .dropdown-menu .dropdown-item { margin: 0; border-radius: 0; padding: 0.75rem 1.5rem; }
/* Arrow indicator for level-2 that has children */
.navbar .dropdown-submenu > .dropdown-item::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: #0b57d0;
    font-size: .75rem;
}

/* Keep vertical bar when hovering level-2 that opens submenu */
.navbar .dropdown-submenu:hover > .dropdown-item {
    border-left-color: var(--primary-color);
}

/* Mobile Navigation Styles */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    position: relative;
    z-index: 1050;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Custom Hamburger Icon */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
    top: 8px;
}

.hamburger span:nth-child(4) {
    top: 16px;
}

/* Hamburger to X animation */
.hamburger.active span:nth-child(1) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.hamburger.active span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.active span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Offcanvas Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%; /* keep fully off-canvas without affecting layout */
    width: 360px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu-header {
    background: white;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

.mobile-menu-close-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

.mobile-menu-nav-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
    min-height: 56px;
}

.mobile-menu-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-back {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    margin-right: 1rem;
}

.mobile-menu-back:hover {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 0.5px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.mobile-menu-close:hover {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
}

.mobile-menu-body {
    padding: 0;
    overflow: hidden;
    position: relative;
    height: calc(100vh - 56px);
}

.mobile-menu-content {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.mobile-menu-content {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.mobile-menu-content > .mobile-nav-list[data-menu-level="0"] {
    height: 100%;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    position: relative;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
}

.mobile-submenu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    overflow-y: auto;
    height: 100%;
    width: 100%;
    display: block;
    visibility: hidden;
}

.mobile-nav-item {
    position: relative;
}

.mobile-submenu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    display: block !important;
}

/* Transition for menu sliding out */
.mobile-nav-list.sliding-out {
    transform: translateX(-100%);
    opacity: 0;
}

/* Transition for menu sliding in */
.mobile-nav-list.sliding-in {
    transform: translateX(0);
    opacity: 1;
}

.mobile-center-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
}

.mobile-header-left,
.mobile-right-actions,
.mobile-search-dropdown,
.mobile-search-bar,
.mobile-header-row,
.mobile-center-logo {
    display: none;
}

/* Desktop Logo */
.desktop-logo {
    display: flex;
    align-items: center;
}

.mobile-nav-item {
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 86, 179, 0.05);
    color: var(--primary-color);
}

.mobile-nav-link span {
    flex: 1;
}

.mobile-nav-link .dropdown-arrow {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
}

.mobile-nav-item-with-submenu .mobile-nav-link:hover .dropdown-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

.mobile-contact-btn {
    margin: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.3);
    color: white;
}

.mobile-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: rgba(0, 86, 179, 0.05);
    border-top: 1px solid rgba(0, 86, 179, 0.1);
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    color: white;
}

/* Mobile Navigation Styles - New Design */
.mobile-nav-item {
    margin: 0;
    list-style: none;
}

.mobile-nav-item:last-child .mobile-nav-link {
    border-bottom: none;
}


/* Button */
.btn-read-more {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-read-more:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

/* Categories Filter */
.categories-filter {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-title h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-filter {
    background: #f8f9fa;
    color: var(--text-dark);
    border: 2px solid #e9ecef;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filter:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.badge-featured {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
}

/* Product Category */
.product-category {
    margin-bottom: 0.5rem;
}

.product-category span {
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Product Price */
.product-price {
    margin: 1rem 0;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-send-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #fff;
}

.btn-send-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}

/* Banner Slider Section */
.banner-slider {
    position: relative;
    overflow: hidden;
}


.banner-slider .swiper {
    width: 100%;
    height: 80vh;
    cursor: grab;
    overflow: hidden;
}

.banner-slider .swiper-wrapper {
    height: 100%;
}

.banner-slider .swiper:active {
    cursor: grabbing;
}

.banner-slider .swiper-slide {
    position: relative;
    overflow: hidden;
    height: 80vh;
}

.slide-content {
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-attachment fixed can cause mobile overflow; disable by default */
    background-attachment: scroll;
    transition: background-image 0.5s ease;
}

/* .slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
} */

/* Ensure background images load properly */
.slide-content {
    background-color: #f8f9fa; /* Fallback color while image loads */
}

.slide-content[style*="url("] {
    background-color: transparent;
}

/* Slide Link Styles */
.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Desktop/Mobile Banner Display */
.banner-mobile {
    display: none;
}

.banner-desktop {
    display: flex;
}

@media (max-width: 768px) {
    .banner-desktop {
        display: none;
    }
    
    .banner-mobile {
        display: flex;
    }
    
    /* Adjust banner height for mobile */
    .banner-slider .swiper {
        height: 50vh;
        min-height: 400px;
    }
    
    .banner-slider .swiper-slide {
        height: 50vh;
        min-height: 400px;
    }
    
    .banner-mobile.slide-content {
        height: 50vh;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .banner-slider .swiper,
    .banner-slider .swiper-slide,
    .banner-mobile.slide-content {
        height: 40vh;
        min-height: 300px;
    }
}

.slide-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Section Styles - Already defined above in Typography System */

/* About Section */
.about-feature {
    margin-bottom: 1.5rem;
}


.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Product Cards */
.product-tabs {
    border: none;
    justify-content: center;
    margin-bottom: 3rem;
}

.product-tabs .nav-link {
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-tabs-category {
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-tabs-category img {
    filter: invert(46%) sepia(8%) saturate(282%) hue-rotate(169deg) brightness(93%) contrast(86%);
}

.product-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-tabs .nav-link.active img {
    filter: brightness(0) invert(1);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    /* margin-bottom: 2rem; */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card-body {
    padding: var(--spacing-xl);
}

.product-card-body h5 {
    min-height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-dark);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
}

.product-card h5 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.product-card p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    min-height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: var(--line-height-relaxed);
}

/* New Product Card Layout */
.category-section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-base);
    letter-spacing: 0.5px;
    line-height: var(--line-height-tight);
}

.view-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: var(--line-height-normal);
}

.view-more-link:hover {
    color: #003d82;
    transform: translateX(5px);
}

/* ========== V2 Modern Product Design ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 12px;
    }

    .product-card-v2 {
        border-radius: 16px;
    }

    .product-info-box {
        padding: 16px;
        gap: 10px;
    }

    .product-title-v2 {
        font-size: 14px;
        min-height: 42px;
    }

    .product-img-box {
        padding: 16px;
    }

    .price-current {
        font-size: 18px;
    }

    .price-old {
        font-size: 13px;
    }

    .btn-add-cart {
        height: 40px;
        font-size: 13px;
        gap: 6px;
    }

    .btn-add-cart svg {
        width: 16px;
        height: 16px;
    }

    .discount-tag {
        top: 12px;
        right: 12px;
    }

    .discount-tag span {
        min-width: 48px;
        height: 28px;
        font-size: 12px;
        padding: 0 10px;
    }
}

.product-item {
    position: relative;
}

.product-card-v2 {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.04);
}

.product-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 86, 179, 0.12);
}

/* Discount Tag */
.discount-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.discount-tag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    padding: 0 12px;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.35);
}

/* Flash Sale Title */
.flash-sale-title {
    color: #d32f2f;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flash-sale-title i {
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.flash-sale-tag span {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 800;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Product Image */
.product-img-link {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f6fc 100%);
}

.product-img-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-v2:hover .product-img-main {
    transform: scale(1.08);
}

/* Product Info Box */
.product-info-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-title-link {
    text-decoration: none;
}

.product-title-v2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 48px;
    transition: color 0.25s ease;
}

.product-title-link:hover .product-title-v2 {
    color: #0056b3;
}

/* Product Price */
.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: #0056b3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.price-old {
    font-size: 15px;
    color: #8e8e93;
    text-decoration: line-through;
    font-weight: 500;
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 8px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #003d82 0%, #002952 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.35);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart svg {
    flex-shrink: 0;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Image Wrapper */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    aspect-ratio: 1 / 1;
}

.product-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-modern:hover .product-img img {
    transform: scale(1.15) rotate(2deg);
}

/* Discount Badge */
.product-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.product-discount-badge span {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.35);
    letter-spacing: 0.3px;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.product-card-modern:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.overlay-content span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Product Content */
.product-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
    transition: color 0.3s ease;
}

.product-card-modern:hover .product-name {
    color: #667eea;
}

/* Product Pricing */
.product-pricing {
    margin-top: auto;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.price-sale {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff5252;
    font-family: 'Inter', sans-serif;
}

.price-original {
    font-size: 0.9rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 500;
}

/* Quick Add Button */
.btn-quick-add {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
}

.product-card-modern:hover .btn-quick-add {
    opacity: 1;
    transform: scale(1);
}

.btn-quick-add:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-quick-add:active {
    transform: scale(0.95) !important;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.badge-discount {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    line-height: 1;
    letter-spacing: 0.5px;
}

.badge-label {
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    display: inline-block;
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-new:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-normal);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 44px;
}

.product-price {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: var(--line-height-normal);
}

.current-price {
    color: #e74c3c;
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: var(--line-height-normal);
}

/* Add to Cart Button */
.btn-add-to-cart {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 0 15px 15px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart i {
    font-size: 1rem;
}

/* News Section Layout */
/* Desktop: Show grid, hide swiper */
.news-swiper-mobile {
    display: none;
}

.news-swiper-mobile .newsSwiper {
    padding-bottom: 40px;
}

.news-swiper-mobile .swiper-slide {
    height: auto;
}

.news-swiper-mobile .swiper-pagination {
    bottom: 0;
}

.news-swiper-mobile .swiper-pagination-bullet {
    background: var(--primary-color);
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-body a {
    text-decoration: none;
}

.news-card-body a h5 {
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    min-height: 50px;
}

.news-card-body p {
    min-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.news-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    /*margin-bottom: 1.5rem;*/
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-floating label {
    color: var(--text-light);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 500px;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

/* Footer Brand */
.footer-brand {
    margin-bottom: 2rem;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.brand-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
    color: #ffffff;
}

.social-link i {
    font-size: 1.1rem;
}

/* Footer Title */
.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 1rem;
}

.footer-links a:hover::before {
    width: 8px;
}

/* Contact Info */
.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item-footer i {
    color: white;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item-footer span {
    flex: 1;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

}

@media (max-width: 576px) {
    .footer {
        padding: 2rem 0 0;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .brand-description {
        font-size: 0.95rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 1rem;
    }
}

/* Desktop: Hide mobile menu */
@media (min-width: 992px) {
    .mobile-menu-overlay,
    .mobile-menu,
    .hamburger {
        display: none !important;
    }
}

/* Mobile: Hide desktop menu */
@media (max-width: 991.98px) {
    body {
        padding-top: 158px; /* smaller navbar height on mobile */
    }

    .navbar {
        padding: 0.85rem 0;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    }

    .navbar .container {
        gap: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-nav,
    .btn-contact,
    .desktop-right-actions {
        display: none !important;
    }

    .mobile-menu {
        width: 360px;
    }

    /* Hide desktop logo on mobile */
    .desktop-logo {
        display: none !important;
    }

    /* Show mobile elements on mobile */
    .mobile-header-left,
    .mobile-right-actions,
    .mobile-search-dropdown,
    .mobile-search-bar,
    .mobile-header-row,
    .mobile-center-logo {
        display: flex;
    }

    .mobile-header-row {
        align-items: center;
        width: 100%;
        gap: 0.75rem;
        padding: 0.5rem 0;
        transition: all 0.3s ease;
    }

    .mobile-search-bar {
        display: block;
    }

    /* When scrolled, search bar moves into header row */
    .navbar.scrolled .mobile-header-row {
        gap: 0.375rem;
    }

    .navbar.scrolled .mobile-header-row .mobile-search-bar {
        display: flex;
        flex: 1;
        min-width: 0;
        margin: 0;
        padding: 0;
        order: 2;
    }

    .navbar.scrolled .mobile-header-left {
        flex: 0 0 auto;
        margin-right: 0.25rem;
    }

    .navbar.scrolled .mobile-right-actions {
        flex: 0 0 auto;
        margin-left: 0.25rem;
    }

    .mobile-center-logo {
        justify-content: center;
        flex: 0 0 auto;
        width: 80px;
        padding: 0;
        margin-right: 0.5rem;
    }

    .mobile-center-logo img {
        max-height: 70px !important;
        width: auto;
    }

    .navbar.scrolled .mobile-center-logo {
        width: 60px;
        margin-right: 0.25rem;
    }

    .navbar.scrolled .mobile-center-logo img {
        max-height: 60px !important;
    }

    .mobile-header-left,
    .mobile-right-actions {
        display: flex;
        align-items: center;
    }

    .mobile-header-left {
        flex: 1;
    }

    .mobile-header-left .navbar-toggler {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .navbar.scrolled .mobile-header-left .navbar-toggler {
        width: 36px;
        height: 36px;
    }

    .mobile-right-actions {
        flex: 1;
        justify-content: flex-end;
        gap: 0.65rem;
        align-items: center;
    }

    .mobile-right-actions button,
    .mobile-right-actions a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        box-shadow: none;
        transition: transform 0.2s ease;
    }

    .navbar.scrolled .mobile-right-actions button,
    .navbar.scrolled .mobile-right-actions a {
        width: 36px;
        height: 36px;
    }

    .mobile-right-actions button:active,
    .mobile-right-actions a:active {
        transform: scale(0.94);
    }

    .mobile-search-toggle {
        background: transparent;
        color: var(--primary-color);
        font-size: 1.05rem;
    }

    .mobile-cart-icon {
        color: var(--primary-color);
        padding: 0;
        position: relative;
    }

    .mobile-cart-icon i {
        font-size: 1.1rem;
    }

    .mobile-cart-icon .cart-count {
        top: -6px;
        right: -6px;
    }

    .mobile-search-toggle {
        background: transparent;
        color: var(--primary-color);
        font-size: 1.05rem;
    }

    .mobile-cart-icon {
        color: var(--primary-color);
        padding: 0;
        position: relative;
    }

    .mobile-cart-icon i {
        font-size: 1.1rem;
    }

    .mobile-cart-icon .cart-count {
        top: -6px;
        right: -6px;
    }

    .mobile-search-dropdown {
        display: none;
        position: absolute;
        top: 72px;
        left: 1rem;
        right: 1rem;
        padding: 0.75rem;
        z-index: 1040;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 30px 45px rgba(31, 61, 120, 0.2);
        transform-origin: top;
        transform: translateY(-10px);
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .mobile-search-dropdown.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-search-dropdown .search-input-wrapper {
        padding: 0.4rem 0.5rem;
    }

    .mobile-search-dropdown .search-input {
        border-radius: 50px;
        border: 1px solid rgba(13, 110, 253, 0.25);
        background: rgba(13, 110, 253, 0.05);
        padding-left: 3rem;
    }

    .mobile-search-dropdown .search-btn {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        box-shadow: 0 8px 18px rgba(13, 110, 253, 0.25);
    }

    /* Mobile Search Bar (in header) */
    .mobile-search-bar {
        width: 100%;
        padding: 0;
        margin-top: 0;
        transition: all 0.3s ease;
    }

    /* When scrolled, search bar moves to header row */
    .navbar.scrolled .mobile-search-bar {
        width: auto;
        flex: 1;
        padding: 0;
        margin: 0;
        min-width: 0;
        order: 2;
    }

    .navbar.scrolled .mobile-header-row {
        position: relative;
    }

    .navbar.scrolled .mobile-center-logo {
        order: 1;
    }

    .navbar.scrolled .mobile-right-actions {
        order: 3;
    }

    .mobile-search-bar .search-form {
        width: 100%;
    }

    .mobile-search-bar .search-input-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .mobile-search-bar .search-input {
        width: 100%;
        height: 44px;
        padding: 0 3.5rem 0 1rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        font-size: 0.9375rem;
        background: #ffffff;
        color: #212529;
        transition: all 0.2s ease;
    }

    .navbar.scrolled .mobile-search-bar .search-input {
        height: 40px;
        font-size: 0.875rem;
        padding: 0 3rem 0 0.875rem;
    }

    .mobile-search-bar .search-input:focus {
        outline: none;
        border-color: #0056b3;
        box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.1);
    }

    .mobile-search-bar .search-input::placeholder {
        color: #adb5bd;
        font-weight: 400;
    }

    .mobile-search-bar .search-btn {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #212529;
        padding: 0;
        transition: all 0.2s ease;
    }

    .navbar.scrolled .mobile-search-bar .search-btn {
        width: 32px;
        height: 32px;
        right: 0.375rem;
    }

    .mobile-search-bar .search-btn i {
        font-size: 0.875rem;
    }

    .navbar.scrolled .mobile-search-bar .search-btn i {
        font-size: 0.8125rem;
    }

    .mobile-search-bar .search-btn:hover {
        background: #f8f9fa;
        color: #0056b3;
    }

    .mobile-search-bar .search-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

}

@media (max-width: 768px) {
    /* News Section - Mobile Swiper */
    .news-grid-desktop {
        display: none;
    }

    .news-swiper-mobile {
        display: block;
    }

    .category-section-title {
        font-size: var(--font-size-xl);
    }

    .view-more-link {
        font-size: var(--font-size-sm);
    }

    h1, .h1 {
        font-size: var(--font-size-3xl);
    }

    h2, .h2 {
        font-size: var(--font-size-2xl);
    }

    h3, .h3 {
        font-size: var(--font-size-xl);
    }

    h4, .h4 {
        font-size: var(--font-size-lg);
    }

    h5, .h5 {
        font-size: var(--font-size-md);
    }

    h6, .h6 {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-lg);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-2xl);
    }

    .section-padding {
        padding: var(--spacing-3xl) 0;
    }

    .product-img-wrapper {
        aspect-ratio: 1 / 1;
    }

    .product-name {
        font-size: 0.9rem;
        min-height: 38px;
    }

    .price-sale {
        font-size: 1.1rem;
    }

    .price-original {
        font-size: 0.85rem;
    }

    .btn-quick-add {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        bottom: 12px;
        right: 12px;
    }

    .product-content {
        padding: 1rem;
    }

    /* Old styles for backward compatibility */
    .product-image {
        height: 220px;
    }

    .product-title {
        font-size: 0.95rem;
        min-height: 40px;
    }

    .product-price {
        gap: 0.4rem;
    }

    .old-price {
        font-size: 0.8rem;
    }

    .current-price {
        font-size: 1rem;
    }

    .slide-text h1 {
        font-size: 2.5rem;
    }

    .slide-text p {
        font-size: 1.1rem;
    }

    .slide-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-shop {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }


    .slide-content {
        padding: 2rem 0;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .mobile-menu {
        width: 320px;
    }
}

@media (max-width: 576px) {
    .category-section-title {
        font-size: var(--font-size-lg);
    }

    .view-more-link {
        font-size: var(--font-size-xs);
    }

    h1, .h1 {
        font-size: var(--font-size-2xl);
    }

    h2, .h2 {
        font-size: var(--font-size-xl);
    }

    h3, .h3 {
        font-size: var(--font-size-lg);
    }

    h4, .h4 {
        font-size: var(--font-size-md);
    }

    h5, .h5 {
        font-size: var(--font-size-base);
    }

    h6, .h6 {
        font-size: var(--font-size-sm);
    }

    .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-base);
    }

    .section-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xl);
    }

    .section-padding {
        padding: var(--spacing-2xl) 0;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.9rem;
        min-height: 38px;
    }

    .product-price {
        gap: 0.3rem;
    }

    .old-price {
        font-size: 0.75rem;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .product-badge {
        top: 8px;
        left: 8px;
    }

    .badge-discount {
        font-size: 0.75rem;
        padding: 5px 10px;
        border-radius: 5px;
    }

    .badge-label {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .slide-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .slide-text p {
        font-size: 1rem;
    }

    .btn-shop {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }


    .mobile-menu {
        width: 100%;
        max-width: 320px;
    }

    .section-title {
        font-size: var(--font-size-xl);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 9999;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(-3px);
}

.reading-progress.visible {
    opacity: 1;
    transform: translateY(0);
}

.reading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Fixed Action Buttons */
.fixed-action-buttons {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.action-btn:active {
    transform: scale(0.95);
}

/* Zalo Button */
.zalo-btn {
    background: linear-gradient(135deg, #0068ff, #0047cc);
}

.zalo-btn:hover {
    background: linear-gradient(135deg, #0052cc, #003d99);
}

/* Messenger Button */
.messenger-btn {
    background: linear-gradient(135deg, #0084ff, #0066cc);
}

.messenger-btn:hover {
    background: linear-gradient(135deg, #0066cc, #004d99);
}

/* Call Button */
.call-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.call-btn:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
}

/* Back To Top Button */
.back-to-top-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fixed-action-buttons {
        bottom: 20px;
        right: 15px;
        gap: 12px;
    }

    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fixed-action-buttons {
        bottom: 15px;
        right: 10px;
        gap: 10px;
    }

    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}