/* Google Fonts loaded via <link> in header.php for better performance */

:root {
    --primary: #1E3A8A;
    --primary-dark: #0F172A;
    --secondary: #F8FAFC;
    --accent-red: #DC2626;
    --accent-yellow: #FBBF24;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Limit container max-width for desktop to keep Header & Footer consistently sized */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px !important;
    }
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-red); }

img { max-width: 100%; height: auto; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--accent-yellow); }
.top-bar .separator { margin: 0 12px; opacity: 0.3; }

/* ===== HEADER ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
}
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.logo img { height: 70px; }
.logo-text {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
    line-height: 1.2;
}
.logo-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--primary);
}
/* Desktop: nav không sticky, header sticky đã đủ */
/* Mobile: nav sticky ngay dưới header để menu collapse luôn hiển thị khi scroll */
@media (max-width: 991px) {
    .main-nav {
        position: sticky;
        top: var(--mobile-header-height, 70px);
        z-index: 999;
    }
}
.main-nav .navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 12px 18px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--accent-yellow);
}
.main-nav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-yellow);
    transition: var(--transition);
}
.main-nav .navbar-nav .nav-link:hover::after,
.main-nav .navbar-nav .nav-link.active::after {
    width: 80%;
}
.main-nav .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.main-nav .navbar-toggler-icon {
    filter: invert(1);
}

/* ===== SEARCH BOX IN HEADER ===== */
.header-search {
    position: relative;
    width: 280px;
}
.header-search input {
    border: 2px solid var(--border);
    border-radius: 25px;
    padding: 8px 40px 8px 18px;
    width: 100%;
    font-size: 14px;
    transition: var(--transition);
}
.header-search input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}
.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.header-search button:hover { background: var(--accent-red); }

/* ===== HEADER ACTIONS ===== */
.header-actions {
    gap: 10px;
    flex-shrink: 0;
}
.header-actions a {
    color: var(--text-dark);
    font-size: 13px;
    position: relative;
}
.header-actions a:hover { color: var(--primary); }
.header-actions > a:not(.header-icon-btn) {
    margin-right: 6px;
}
.header-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary) !important;
    margin: 0 !important;
}
.header-icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white) !important;
    transform: translateY(-2px);
}
.header-actions .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-red);
    color: var(--white);
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-user-menu,
.nav-hover-dropdown {
    position: relative;
}
.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 1050;
}
.header-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.header-user-menu:hover .header-dropdown-menu,
.nav-hover-dropdown:hover .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--text-dark) !important;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
}
.header-dropdown-menu a:hover {
    background: rgba(30,58,138,.08);
    color: var(--primary) !important;
    padding-left: 20px;
}
.dropdown-line {
    height: 1px;
    margin: 6px 0;
    background: var(--border);
}
.user-dropdown-menu {
    left: auto;
    right: 0;
    min-width: 180px;
}
.nav-product-menu {
    top: 100%;
    min-width: 240px;
}
.nav-product-menu a {
    font-size: 13px;
}
/* Submenu */
.has-submenu {
    position: relative;
}
.has-submenu > a {
    justify-content: space-between;
}
.submenu-arrow {
    font-size: 10px;
    margin-left: auto;
    opacity: 0.5;
}
.header-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1001;
}
.has-submenu:hover > .header-submenu {
    opacity: 1;
    visibility: visible;
}
.header-submenu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-dark) !important;
    font-size: 13px;
    white-space: nowrap;
}
.header-submenu a:hover {
    background: rgba(30,58,138,.08);
    color: var(--primary) !important;
    padding-left: 20px;
}

/* ===== BANNER SLIDER (Swiper) ===== */
.banner-slider {
    position: relative;
    overflow: hidden;
    background: #0B2A63;
    aspect-ratio: 128 / 50;
}
.banner-slider .swiper {
    width: 100%;
    height: 100%;
}
.banner-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.banner-slider .slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.6) 0%, transparent 70%);
    display: flex;
    align-items: center;
}
.banner-slider .slide-content {
    color: var(--white);
    max-width: 500px;
    padding: 0 60px;
}
.banner-slider .slide-content h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.banner-slider .slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.banner-slider .swiper-button-prev,
.banner-slider .swiper-button-next {
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
}
.banner-slider .swiper-button-prev:hover,
.banner-slider .swiper-button-next:hover {
    background: var(--primary);
}
.banner-slider .swiper-button-prev::after,
.banner-slider .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}
.banner-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
}
.banner-slider .swiper-pagination-bullet-active {
    background: var(--accent-yellow);
    transform: scale(1.2);
}

/* ===== NOTIFICATION POPUP ===== */
.notification-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.62);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .25s ease;
}
.notification-popup-overlay.show {
    display: flex;
    opacity: 1;
}
.notification-popup-box {
    position: relative;
    max-width: min(92vw, 620px);
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0,0,0,.25);
    overflow: hidden;
    transform: scale(.92) translateY(15px);
    transition: transform .25s ease;
}
.notification-popup-overlay.show .notification-popup-box {
    transform: scale(1) translateY(0);
}
.notification-popup-box img {
    display: block;
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
}
.notification-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(15,23,42,.78);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.notification-popup-close:hover { background: var(--accent-red); }
.notification-popup-content {
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-dark);
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}
.section-title p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 15px;
}

/* ===== COMMITMENT BADGES ===== */
.commitment-bar {
    background: var(--secondary);
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}
.commitment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}
.commitment-item i {
    font-size: 28px;
    color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}
.commitment-item h6 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--primary-dark);
}
.commitment-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30,58,138,.25);
    box-shadow: 0 18px 45px rgba(15,23,42,.14);
}
.product-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background: radial-gradient(circle at 50% 35%, #fff 0%, #f4f7fb 70%);
}
.product-card .card-img-wrap::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 10%;
    height: 18px;
    background: radial-gradient(ellipse, rgba(15,23,42,.18), transparent 70%);
    filter: blur(6px);
    opacity: .45;
    z-index: 0;
}
.product-card .card-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .45s ease, filter .45s ease;
    z-index: 1;
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.06) translateY(-3px);
    filter: saturate(1.08) contrast(1.03);
}
.product-card .card-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
    transform: translateX(-120%);
    z-index: 2;
}
.product-card:hover .card-img-wrap::before {
    animation: glassSwipe .75s ease;
}
@keyframes glassSwipe {
    to { transform: translateX(120%); }
}
.product-card .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-card .badge-new,
.product-card .badge-hot {
    color: #fff;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(15,23,42,.16);
}
.product-card .badge-new { background: linear-gradient(135deg, var(--primary), #2563eb); }
.product-card .badge-hot { background: linear-gradient(135deg, var(--accent-red), #f97316); }
.product-card .card-body {
    padding: 16px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card .card-model {
    align-self: flex-start;
    font-size: 11px;
    color: var(--primary);
    background: rgba(30,58,138,.08);
    border-radius: 999px;
    padding: 4px 9px;
    margin-bottom: 9px;
    font-weight: 700;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card .card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    min-height: 40px;
    transition: color .25s ease;
}
.product-card:hover .card-title { color: var(--primary); }
.product-card .card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-red);
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.product-card .card-price .old-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
    margin-left: 0;
}
.product-card .btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-top: auto;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 8px 20px rgba(30,58,138,.18);
}
.product-card .btn-contact:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(30,58,138,.28);
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.sidebar-widget .widget-title {
    background: var(--primary);
    color: var(--white);
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    margin: 0;
}
.sidebar-widget button.widget-title {
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.sidebar-widget .widget-body {
    padding: 15px;
}
.collapsible-body,
.sales-group-body {
    max-height: 900px;
    overflow: hidden;
    transition: max-height .28s ease, padding .28s ease, opacity .22s ease;
    opacity: 1;
}
.collapsible-body:not(.show),
.sales-group-body:not(.show) {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}
.widget-toggle .toggle-icon,
.sales-group-title .toggle-icon {
    transition: transform .25s ease;
}
.widget-toggle.collapsed .toggle-icon,
.sales-group-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}
.compact-hotline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(220,38,38,.08);
    border-radius: 8px;
}
.compact-hotline .hotline-link {
    color: var(--accent-red);
    font-weight: 700;
}
.sales-group {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}
.sales-group-title {
    width: 100%;
    border: 0;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    text-transform: uppercase;
}
.sales-avatar-fallback {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.sidebar-widget .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget .category-list li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
}
.sidebar-widget .category-list li a:hover {
    color: var(--primary);
    padding-left: 8px;
}
.sidebar-widget .category-list li:last-child a { border-bottom: none; }
.category-sublist {
    list-style: none;
    padding: 0 0 0 18px;
    margin: 0;
}
.category-sublist li a {
    padding: 6px 0 !important;
    font-size: 13px !important;
    color: var(--text-muted) !important;
    border-bottom: 1px dashed var(--border) !important;
}
.category-sublist li a:hover {
    color: var(--primary) !important;
}
.category-sublist li:last-child a { border-bottom: none !important; }
.sidebar-widget .sales-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}
.sidebar-widget .sales-person:last-child { border-bottom: none; }
.sidebar-widget .sales-person img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.sidebar-widget .sales-person .info h6 {
    font-size: 14px;
    margin-bottom: 2px;
}
.sidebar-widget .sales-person .info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 60px 0;
    background: var(--secondary);
}
.about-content h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
}
.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ===== PARTNERS MARQUEE ===== */
.partners-section {
    padding: 50px 0;
    background: var(--white);
    overflow: hidden;
}
.partners-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
    display: flex;
    width: max-content;
    animation: partnersMarquee 24s linear infinite;
    will-change: transform;
}
.partners-group {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
    flex-shrink: 0;
}
.partners-group a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.partners-group img {
    height: 64px;
    max-width: 180px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    flex-shrink: 0;
}
@keyframes partnersMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== NEWS CARDS ===== */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.news-card .card-img-wrap {
    overflow: hidden;
    height: 200px;
}
.news-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .card-img-wrap img { transform: scale(1.05); }
.news-card .card-body { padding: 15px; }
.news-card .card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.news-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card .card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== NEWS SCROLL ===== */
.news-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
    padding-bottom: 10px;
}
.news-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.news-scroll-wrapper::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.news-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.news-scroll-track {
    display: flex;
    gap: 20px;
    width: max-content;
}
.news-scroll-track .news-card {
    width: 300px;
    flex-shrink: 0;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}
.contact-form-section h2 {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--white);
}
.contact-form-section .form-control {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: var(--radius);
    padding: 12px 18px;
}
.contact-form-section .form-control::placeholder { color: rgba(255,255,255,0.5); }
.contact-form-section .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent-yellow);
    box-shadow: none;
    color: var(--white);
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 0;
}
.main-footer h5 {
    color: var(--white);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}
.main-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-red);
}
.main-footer p { font-size: 14px; margin-bottom: 8px; }
.main-footer a { color: rgba(255,255,255,0.7); }
.main-footer a:hover { color: var(--accent-yellow); }
.main-footer .footer-links {
    list-style: none;
    padding: 0;
}
.main-footer .footer-links li {
    padding: 4px 0;
}
.main-footer .footer-links li a {
    font-size: 14px;
}
.main-footer .footer-links li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 12px;
}
.main-footer .social-links a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 8px;
    font-size: 16px;
    transition: var(--transition);
}
.main-footer .social-links a:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: translateY(-3px);
}
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 15px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}
.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30,58,138,0.3);
}
.btn-accent {
    background: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.btn-accent:hover {
    background: #B91C1C;
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== PAGE HEADER / BREADCRUMB ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 30px 0;
    color: var(--white);
}
.page-header h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}
.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 5px 0 0;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb a:hover { color: var(--white); }
.page-header .breadcrumb-item.active { color: var(--accent-yellow); }
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 25px;
}

/* ===== PAGINATION ===== */
.pagination {
    justify-content: center;
}
.pagination .page-link {
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 8px 14px;
    font-size: 14px;
    transition: var(--transition);
}
.pagination .page-item.active .page-link {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    
}
.pagination .page-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== PRODUCT DETAIL ===== */
.product-gallery {
    position: relative;
}
.product-gallery .main-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}
.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}
.product-gallery .thumb-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.product-gallery .thumb-item {
    width: 70px;
    height: 70px;
    border: 2px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}
.product-gallery .thumb-item.active,
.product-gallery .thumb-item:hover {
    border-color: var(--primary);
}
.product-gallery .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zoom Button */
.product-gallery .main-image {
    position: relative;
    cursor: pointer;
}
.zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    opacity: 0.7;
}
.zoom-btn:hover {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

/* Lightbox */
.product-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: var(--transition);
}
.lightbox-close:hover { color: var(--accent-red); transform: scale(1.2); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-counter {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.payment-methods { display: grid; gap: 10px; }
.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.payment-option:hover { border-color: var(--primary); background: rgba(30,58,138,.04); }
.payment-option input { margin-top: 4px; }
.payment-option span { display: flex; flex-direction: column; gap: 2px; }
.payment-option small { color: var(--text-muted); font-weight: 400; }
.bank-info-box {
    background: #F8FAFC;
    border: 1px dashed var(--primary);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
}
.job-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}
.job-card:hover {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-red);
}
.job-card h5 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.job-card .job-meta span {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 15px;
}
.job-card .job-meta i { margin-right: 4px; color: var(--primary); }

/* ===== ABOUT PAGE ===== */
.milestone-item {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.milestone-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.milestone-item .year {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Roboto Condensed', sans-serif;
}
.milestone-item p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

/* ===== LOADING ===== */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 30px;
}
.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .banner-slider .slide-content h2 { font-size: 24px; }
    .header-search { width: 200px; }
    .main-nav .navbar-nav { padding-bottom: 10px; }
    .header-dropdown-menu,
    .nav-product-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 6px;
        margin: 0 12px 8px;
    }
    .nav-hover-dropdown:hover .header-dropdown-menu { display: block; }
    .header-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        margin: 0;
    }
    .submenu-arrow { display: none; }
}
@media (max-width: 767px) {
    .banner-slider .slide-content { padding: 0 20px; }
    .banner-slider .slide-content h2 { font-size: 18px; }
    .header-search { display: none; }
    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
    }
    .header-actions {
        display: none !important;
    }
    /* Mobile Header Bar */
    .mobile-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        position: relative;
    }
    .mobile-toggler {
        background: none;
        border: none;
        font-size: 22px;
        color: var(--primary-dark);
        padding: 6px 10px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .mobile-logo {
        position: absolute;
        left: 44%;
        transform: translateX(-50%);
    }
    .mobile-logo img {
        max-height: 50px;
        width: auto;
    }
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    .mobile-header-actions .header-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        background: var(--secondary);
        color: var(--primary-dark);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: var(--transition);
    }
    .mobile-header-actions .header-icon-btn:hover {
        background: var(--primary);
        color: #fff;
    }
    .mobile-header-actions .badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: var(--accent-red);
        color: #fff;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 10px;
        line-height: 1;
    }
    .top-bar .d-flex { flex-wrap: wrap; font-size: 12px; }
    .commitment-bar { padding: 10px 0; }
    .commitment-bar .row { --bs-gutter-x: .35rem; --bs-gutter-y: .35rem; flex-wrap: nowrap; }
    .commitment-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 5px;
        padding: 8px 3px;
        height: 100%;
        background: var(--white);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
    .commitment-item i {
        width: 34px;
        height: 34px;
        font-size: 17px;
        box-shadow: none;
        background: rgba(30,58,138,.08);
    }
    .commitment-item h6 {
        font-size: 10px;
        line-height: 1.2;
        margin: 0;
    }
    .commitment-item p { display: none; }
}
