/* =============================================
   QTEK FRONTEND — Modern Design System
   ============================================= */
:root {
    --primary: #0083d1;
    --primary-dark: #006aaa;
    --primary-deeper: #00518a;
    --primary-light: #e8f4fc;
    --primary-glow: rgba(0,131,209,.18);
    --accent: #00c9a7;
    --accent-light: #e6faf7;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    --font-main: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-xs: 0 1px 4px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
    --shadow: 0 4px 24px rgba(0,0,0,.09);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.13);
    --shadow-primary: 0 8px 32px rgba(0,131,209,.22);
    --transition: all .28s cubic-bezier(.4,0,.2,1);
    --transition-slow: all .5s cubic-bezier(.4,0,.2,1);
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-main); color: var(--dark-2); line-height: 1.7; background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; color: var(--dark); }
p { color: var(--gray); }

/* ===== TOPBAR ===== */
.header-topbar {
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 9px 0;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-topbar span { display: flex; align-items: center; gap: 6px; }
.header-topbar i { color: var(--accent); font-size: 12px; }
.lang-btn { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 600; letter-spacing: 1px; padding: 2px 6px; border-radius: 4px; }
.lang-btn:hover, .lang-btn.active { color: #fff; background: rgba(255,255,255,.1); }
.btn-topbar {
    background: linear-gradient(135deg, var(--accent) 0%, #00a88a 100%);
    color: #fff !important;
    padding: 5px 18px; border-radius: 20px; font-size: 12px; font-weight: 700;
    letter-spacing: .3px; transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0,201,167,.3);
}
.btn-topbar:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,201,167,.45); }

/* ===== NAVBAR ===== */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.06);
    padding: 6px 0;
    transition: box-shadow .3s, background .3s;
}
.main-navbar.scrolled {
    background: rgba(255,255,255,.99);
    box-shadow: 0 4px 32px rgba(0,0,0,.12);
}
.main-navbar.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.12); }
.navbar-brand { padding: 0; }
.logo-text { font-size: 26px; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.main-navbar .nav-link {
    font-weight: 500; font-size: 14px;
    color: var(--dark-2) !important;
    padding: 8px 13px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative; white-space: nowrap;
}
.main-navbar .nav-link::after { display: none; }
.main-navbar .nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.main-navbar .nav-link.active { color: var(--primary) !important; background: var(--primary-light); font-weight: 600; }

/* ===== MEGA MENU ===== */
.nav-mega { position: static; }
.nav-caret { font-size: 9px; margin-left: 3px; transition: transform .2s; opacity: .6; }
.nav-mega:hover .nav-caret { transform: rotate(180deg); opacity: 1; }

.cat-mega-panel {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0,0,0,.14);
    border-top: 2px solid var(--primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 9999;
    animation: megaFadeIn .2s cubic-bezier(.4,0,.2,1);
}
@keyframes megaFadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.cat-mega-inner { display: flex; min-height: 300px; }
.cat-mega-sidebar {
    width: 210px; flex-shrink: 0;
    background: var(--light);
    border-right: 1px solid var(--border);
    border-radius: 0 0 0 var(--radius-lg);
    padding: 10px 0; display: flex; flex-direction: column;
}
.cat-sidebar-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; font-size: 13.5px; font-weight: 500; color: var(--dark-3);
    text-decoration: none; transition: var(--transition);
    border-left: 3px solid transparent;
}
.cat-sidebar-item:hover, .cat-sidebar-item.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }
.cat-sidebar-item .fa-chevron-right { font-size: 9px; color: #bbb; }
.cat-sidebar-item.active .fa-chevron-right, .cat-sidebar-item:hover .fa-chevron-right { color: var(--primary); }
.cat-sidebar-all { margin-top: auto; display: flex; align-items: center; padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--primary); border-top: 1px solid var(--border); text-decoration: none; transition: var(--transition); }
.cat-sidebar-all:hover { background: var(--primary-light); }
.cat-mega-content { flex: 1; padding: 20px 24px; overflow: hidden; }
.cat-mega-pane { display: none; }
.cat-mega-pane.active { display: block; animation: megaFadeIn .15s ease; }
.cat-pane-subs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 16px; }
.cat-sub-col { width: 200px; padding: 0 16px 12px 0; }
.cat-sub-heading { display: block; font-size: 12.5px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--primary-light); text-decoration: none; }
.cat-sub-heading:hover { color: var(--primary-dark); }
.cat-sub-list { list-style: none; padding: 0; margin: 0; }
.cat-sub-list li { margin-bottom: 2px; }
.cat-sub-list a { font-size: 13px; color: var(--gray); text-decoration: none; display: block; padding: 3px 0; transition: var(--transition); }
.cat-sub-list a:hover { color: var(--primary); padding-left: 5px; }
.cat-sub-list .fa-angle-right { font-size: 10px; }
.cat-pane-products { border-top: 1px solid var(--border); padding-top: 14px; }
.cat-pane-prod-title { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gray-light); letter-spacing: .7px; margin-bottom: 10px; }
.cat-pane-prod-list { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-prod-card { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: var(--transition); max-width: 240px; background: var(--light); }
.cat-prod-card:hover { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 2px 12px var(--primary-glow); }
.cat-prod-img { width: 40px; height: 40px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.cat-prod-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-prod-name { font-size: 12px; color: var(--dark-3); line-height: 1.4; font-weight: 500; }
.cat-prod-card:hover .cat-prod-name { color: var(--primary); }

/* ===== SEARCH & CART ===== */
.header-search { position: relative; }
.header-search input { border: 1.5px solid var(--border); border-radius: 24px; padding: 8px 40px 8px 16px; font-size: 13px; width: 200px; transition: var(--transition); outline: none; background: var(--light); color: var(--dark-2); }
.header-search input:focus { border-color: var(--primary); width: 240px; background: #fff; box-shadow: 0 0 0 3px var(--primary-light); }
.header-search button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--gray); cursor: pointer; transition: var(--transition); }
.header-search button:hover { color: var(--primary); }
.cart-btn, .cart-btn-mobile { position: relative; color: var(--dark-2); font-size: 20px; padding: 6px; border-radius: 8px; transition: var(--transition); }
.cart-btn:hover, .cart-btn-mobile:hover { color: var(--primary); background: var(--primary-light); }
.cart-count { position: absolute; top: -2px; right: -2px; background: #ef4444; color: #fff; border-radius: 50%; width: 17px; height: 17px; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 1.5px solid #fff; }

/* ===== HERO SLIDER ===== */
.hero-swiper { height: 600px; }
@media(max-width: 768px) { .hero-swiper { height: 420px; } }
.hero-swiper .swiper-slide { position: relative; overflow: hidden; }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); transition: transform 6s ease-out; }
.swiper-slide-active .hero-slide-img { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg,
        rgba(5,15,40,.82) 0%,
        rgba(0,60,140,.55) 50%,
        rgba(0,131,209,.2) 100%);
}
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-content .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    color: #fff; border: 1px solid rgba(255,255,255,.2);
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-badge i { color: var(--accent); }
.hero-title {
    font-size: clamp(26px, 4.5vw, 58px);
    font-weight: 800; color: #fff;
    line-height: 1.15; margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: clamp(14px, 1.8vw, 18px); color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 520px; line-height: 1.7; }
.btn-hero {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--primary); color: #fff;
    padding: 15px 34px; border-radius: 40px;
    font-weight: 700; font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,131,209,.4);
}
.btn-hero:hover { background: #fff; color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.btn-hero-outline {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.12); color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
    padding: 14px 28px; border-radius: 40px;
    font-weight: 600; font-size: 15px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; transform: translateY(-2px); }
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    transition: var(--transition);
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover { background: var(--primary); border-color: transparent; }
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after { font-size: 15px; font-weight: 900; }
.hero-swiper .swiper-pagination-bullet { background: rgba(255,255,255,.5); width: 8px; height: 8px; transition: var(--transition); }
.hero-swiper .swiper-pagination-bullet-active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ===== SECTION COMMON ===== */
section { padding: 80px 0; }
/* DO NOT use nth-child background rule — each section sets its own bg explicitly */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-light); color: var(--primary);
    padding: 5px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px;
}
.section-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
/* keep old class for compatibility */
.section-label { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); padding: 5px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: var(--dark); line-height: 1.25; }
.section-subtitle { color: var(--gray); font-size: 16px; max-width: 560px; margin: 0 auto; }
.section-divider { width: 52px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; margin: 16px 0 28px; }
.section-divider.mx-auto { margin-left: auto; margin-right: auto; }
.divider { height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; width: 52px; margin: 14px 0 28px; }

/* ===== BRAND LOGOS ===== */
/* Wrap swiper in a padded box so inset shadow is visible without overflow: visible */
.brands-swiper-wrap { padding: 6px 0 12px; overflow: hidden; }
.brands-swiper { overflow: hidden; }
.brands-swiper .swiper-wrapper { align-items: stretch; }
.brand-logo-item {
    display: flex; align-items: center; justify-content: center;
    height: 96px;
    padding: 18px 20px; border: 1.5px solid var(--border);
    border-radius: var(--radius); transition: var(--transition);
    background: #fff; cursor: pointer;
    /* inset shadow on hover instead of translateY — no overflow needed */
}
.brand-logo-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-primary);
}
.brand-logo-item img {
    display: block;
    width: 120px; height: 52px;
    object-fit: contain;
    filter: grayscale(55%) opacity(.72);
    transition: var(--transition);
}
.brand-logo-item:hover img { filter: grayscale(0) opacity(1); }

/* ===== BRAND CARDS — brands index page (vertical, auto-height) ===== */
.brand-card-box {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: 24px 18px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: var(--transition);
    height: 100%;
    gap: 10px;
}
.brand-card-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-primary);
    transform: translateY(-2px);
}
.brand-card-box-logo {
    width: 100%; height: 80px;
    display: flex; align-items: center; justify-content: center;
}
.brand-card-box-logo img {
    max-width: 140px; max-height: 70px;
    width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(40%) opacity(.75);
    transition: var(--transition);
}
.brand-card-box:hover .brand-card-box-logo img { filter: grayscale(0) opacity(1); }
.brand-card-box-name {
    font-weight: 700; font-size: 14px; color: var(--dark); line-height: 1.3;
}
.brand-card-box-desc {
    font-size: 12.5px; color: var(--gray); margin: 0; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; background: #fff;
    transition: var(--transition-slow);
    height: 100%; display: flex; flex-direction: column;
    position: relative;
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-primary); transform: translateY(-8px); border-color: transparent; }
.product-card:hover::before { opacity: 1; }
.product-card-img { aspect-ratio: 1; overflow: hidden; background: var(--light); position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.product-card:hover .product-card-img img { transform: scale(1.1); }
.product-card-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .3px; }
.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card-category { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.product-card-name { font-weight: 700; font-size: 14px; color: var(--dark); margin-bottom: 8px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.product-card-name:hover { color: var(--primary); }
.product-card-sku { font-size: 11.5px; color: var(--gray-light); margin-bottom: 10px; font-family: monospace; }
.product-card-price { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -.3px; }
.product-card-price-old { font-size: 13px; color: var(--gray-light); text-decoration: line-through; margin-left: 8px; }
.product-card-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--light); }
.btn-add-cart { flex: 1; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border: none; border-radius: var(--radius-sm); padding: 9px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,131,209,.4); }
.btn-view-detail { background: transparent; border: 1.5px solid var(--border); color: var(--gray); border-radius: var(--radius-sm); padding: 9px 14px; font-size: 13px; cursor: pointer; transition: var(--transition); }
.btn-view-detail:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== SOLUTION CARDS ===== */
.solution-card {
    border-radius: var(--radius-lg); overflow: hidden;
    background: #fff; border: 1.5px solid var(--border);
    height: 100%; transition: var(--transition-slow);
    position: relative;
}
.solution-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--primary); }
.solution-card-img { height: 180px; overflow: hidden; position: relative; }
.solution-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.solution-card:hover .solution-card-img img { transform: scale(1.08); }
.solution-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,131,209,.6)); }
.solution-card-body { padding: 24px; }
.solution-icon { width: 52px; height: 52px; background: var(--primary-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); margin-bottom: 16px; transition: var(--transition); }
.solution-card:hover .solution-icon { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.solution-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.solution-card p { color: var(--gray); font-size: 13.5px; line-height: 1.65; margin: 0; }
.solution-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 13px; margin-top: 16px; transition: var(--transition); }
.solution-link:hover { gap: 10px; color: var(--primary-dark); }

/* ===== PROJECT CARDS ===== */
.project-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 300px; display: block; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.project-card:hover img { transform: scale(1.07); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,15,40,.9) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px; transition: var(--transition);
}
.project-card:hover .project-overlay { background: linear-gradient(to top, rgba(0,50,150,.88) 0%, rgba(0,131,209,.3) 50%, transparent 100%); }
.project-client { font-size: 11px; color: rgba(255,255,255,.75); font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; }
.project-title { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 8px; line-height: 1.4; }
.project-desc { color: rgba(255,255,255,.68); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-arrow { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transform: translateX(10px); transition: var(--transition); }
.project-card:hover .project-arrow { opacity: 1; transform: translateX(0); }

/* ===== NEWS CARDS ===== */
.news-card {
    border-radius: var(--radius); overflow: hidden;
    background: #fff; border: 1.5px solid var(--border);
    transition: var(--transition-slow); height: 100%; display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.news-card:hover .news-card-img img { transform: scale(1.07); }
.news-category-badge { display: inline-flex; align-items: center; background: var(--primary-light); color: var(--primary); padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card-title { font-weight: 700; font-size: 15px; color: var(--dark); margin-bottom: 10px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.news-card-title:hover { color: var(--primary); }
.news-card-date { font-size: 12px; color: var(--gray-light); display: flex; align-items: center; gap: 5px; margin-top: auto; }

/* ===== STATS COUNTER ===== */
.stat-item { text-align: center; padding: 36px 24px; }
.stat-number { font-size: clamp(38px, 5vw, 58px); font-weight: 900; color: var(--primary); line-height: 1; letter-spacing: -1px; }
.stat-number.text-white { color: #fff !important; }
.stat-label { font-size: 14px; color: var(--gray); margin-top: 8px; font-weight: 500; }
.stat-card-alt {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deeper) 100%);
    border-radius: var(--radius-lg); padding: 32px; color: #fff; text-align: center;
    box-shadow: var(--shadow-primary); position: relative; overflow: hidden;
}
.stat-card-alt::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; background: rgba(255,255,255,.07); border-radius: 50%; }
.stat-card-alt .stat-number { color: #fff; }
.stat-card-alt .stat-label { color: rgba(255,255,255,.75); }
.stat-card-plain {
    background: #fff; border-radius: var(--radius-lg); padding: 32px; text-align: center;
    border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-card-plain:hover { border-color: var(--primary); box-shadow: var(--shadow-primary); transform: translateY(-4px); }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 40%, #0a1f5c 100%) !important;
    color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -60px; left: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,131,209,.25) 0%, transparent 70%);
}
.cta-section::after {
    content: ''; position: absolute; bottom: -80px; right: -40px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(0,201,167,.2) 0%, transparent 70%);
}
.cta-section h2 { font-size: clamp(24px, 3vw, 42px); font-weight: 800; color: #fff; }
.cta-section p { color: rgba(255,255,255,.88) !important; font-size: 17px; opacity: 1 !important; }
.btn-cta { background: #fff; color: var(--primary); font-weight: 700; padding: 15px 38px; border-radius: 40px; border: none; transition: var(--transition); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.btn-cta:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.btn-cta-outline { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.35); font-weight: 700; padding: 15px 34px; border-radius: 40px; transition: var(--transition); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; backdrop-filter: blur(8px); }
.btn-cta-outline:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; transform: translateY(-2px); }

/* ===== SECTION VARIANTS ===== */
/* Dark section (used for Projects) */
.section-dark { background: linear-gradient(135deg, #0d1b2a 0%, #0f2a4a 100%); }
.section-dark .section-eyebrow,
.section-dark .section-label { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.section-dark .section-eyebrow::before { background: rgba(255,255,255,.7); }
.section-dark .section-title { color: #fff; }
.section-dark .btn-outline-qtek { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.section-dark .btn-outline-qtek:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Blue-tinted section */
.section-blue-tint { background: linear-gradient(160deg, #e8f4fc 0%, #f5faff 100%); overflow: visible; }

/* Warm-light section */
.section-warm { background: linear-gradient(160deg, #fdf9f4 0%, #fafaf8 100%); }

/* ===== PAGE HERO (BREADCRUMB) ===== */
.page-hero {
    background: linear-gradient(125deg, var(--dark) 0%, #0d2a6e 100%);
    padding: 52px 0; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute;
    top: -80px; right: -60px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,131,209,.22) 0%, transparent 70%);
}
.page-hero::after {
    content: ''; position: absolute;
    bottom: -60px; left: 10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,201,167,.12) 0%, transparent 70%);
}
.page-hero-title { color: #fff; font-weight: 800; font-size: clamp(24px, 3vw, 38px); margin-bottom: 10px; position: relative; z-index: 1; }
.breadcrumb { background: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.breadcrumb-item { font-size: 13px; }
.breadcrumb-item a { color: rgba(255,255,255,.6); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active, .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ===== BUTTONS ===== */
.btn-primary-qtek {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 11px 26px; border-radius: var(--radius-sm);
    border: none; font-weight: 700; font-size: 14px;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 7px;
    cursor: pointer; box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-primary-qtek:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); color: #fff; }
.btn-outline-qtek {
    background: transparent; color: var(--primary);
    padding: 11px 26px; border-radius: var(--radius-sm);
    border: 2px solid var(--primary); font-weight: 700; font-size: 14px;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
}
.btn-outline-qtek:hover { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-primary); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); }
.footer-main { padding: 72px 0 48px; }
.footer-logo-text { font-size: 30px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.footer-logo-text span { color: var(--primary); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.85; margin-bottom: 24px; }
.footer-contact p { font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.6); }
.footer-contact i { color: var(--accent); margin-top: 3px; flex-shrink: 0; font-size: 14px; }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--accent); }
.footer-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.07); position: relative; text-transform: uppercase; letter-spacing: .5px; }
.footer-title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 32px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.45); font-size: 13.5px; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '›'; color: var(--primary); font-size: 14px; opacity: 0; transform: translateX(-4px); transition: var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,.9); padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; transform: none; }
.footer-form { display: flex; flex-direction: column; gap: 10px; }
.footer-form input { background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.1); color: #fff; padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13.5px; outline: none; transition: var(--transition); }
.footer-form input:focus { border-color: var(--primary); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(0,131,209,.15); }
.footer-form input::placeholder { color: rgba(255,255,255,.28); }
.footer-form button { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; padding: 12px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--transition); }
.footer-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.28); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 15px; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ===== BACK TO TOP ===== */
#back-to-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 999; box-shadow: 0 4px 16px var(--primary-glow); }
#back-to-top.show { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-primary); }

/* ===== TOAST ===== */
.qtek-toast { position: fixed; bottom: 84px; right: 24px; padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 9999; max-width: 300px; box-shadow: var(--shadow-lg); }
.qtek-toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.toast-error { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

/* ===== CART ===== */
.cart-table th { background: var(--primary-light); color: var(--primary); font-weight: 700; border: none; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.cart-img { width: 64px; height: 64px; object-fit: contain; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 40px; height: 44px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-input { width: 52px; height: 44px; text-align: center; border: 1.5px solid var(--border); border-radius: 8px; padding: 0; font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== CHECKOUT ===== */
.checkout-section { background: var(--light); min-height: 100vh; padding: 52px 0; }
.checkout-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.checkout-card h5 { font-weight: 700; color: var(--dark); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--primary-light); font-size: 17px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--dark-3); margin-bottom: 6px; }
.form-control, .form-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* ===== ABOUT PAGE ===== */
.core-value-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border-left: 4px solid var(--primary); box-shadow: var(--shadow-sm); height: 100%; transition: var(--transition); }
.core-value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-primary); }
.core-value-icon { font-size: 32px; color: var(--primary); margin-bottom: 14px; }

/* ===== CONTACT ===== */
.contact-info-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deeper) 100%); color: #fff; border-radius: var(--radius-lg); padding: 32px; height: 100%; box-shadow: var(--shadow-primary); }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-info-icon { width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-form-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }

/* ===== PRODUCT DETAIL ===== */
.product-gallery-main { aspect-ratio: 1; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--light); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-gallery-thumb { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.product-gallery-thumb img { width: 68px; height: 68px; object-fit: contain; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; padding: 5px; transition: var(--transition); }
.product-gallery-thumb img.active, .product-gallery-thumb img:hover { border-color: var(--primary); }
.product-price-lg { font-size: 34px; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.product-attributes table { width: 100%; }
.product-attributes td { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.product-attributes td:first-child { font-weight: 600; color: var(--dark-3); width: 40%; background: var(--light); border-radius: 0; }

/* ===== BRAND PAGE ===== */
.brand-hero { background: linear-gradient(135deg, var(--light) 0%, var(--primary-light) 100%); padding: 52px 0; border-bottom: 1.5px solid var(--border); }
.brand-logo-large { max-height: 100px; max-width: 200px; object-fit: contain; }

/* ===== MISC ===== */
.page-section { padding: 72px 0; }
.badge-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.sticky-sidebar { position: sticky; top: 90px; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ===== SCROLL REVEAL CUSTOM ===== */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ===== CERTIFICATION CARDS ===== */
.cert-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    display: flex; flex-direction: column; align-items: center;
    transition: var(--transition);
}
.cert-card:hover { border-color: var(--primary); box-shadow: var(--shadow-primary); transform: translateY(-4px); }
.cert-img-wrap {
    width: 100%; height: 110px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.cert-img-wrap img {
    max-height: 100px; max-width: 100%;
    width: auto; height: auto;
    object-fit: contain;
}
.cert-img-placeholder {
    width: 80px; height: 80px;
    background: var(--primary-light); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: var(--primary);
}
.cert-name { font-size: 14px; font-weight: 700; color: var(--dark); margin: 0 0 4px; line-height: 1.4; }
.cert-issuer { font-size: 12px; color: var(--gray-light); margin: 0; }

/* ===== TEAM CARDS ===== */
.team-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: center;
    height: 100%;
    display: flex; flex-direction: column; align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
    transition: var(--transition-slow);
}
.team-card:hover { box-shadow: var(--shadow-primary); transform: translateY(-6px); border-color: var(--primary); }
.team-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}
.team-card:hover .team-avatar { border-color: var(--primary); }
.team-avatar img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    display: block;
}
.team-avatar-fallback {
    width: 100%; height: 100%;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--primary);
}
.team-name { font-size: 15px; font-weight: 700; color: var(--dark); margin: 0 0 6px; line-height: 1.3; }
.team-position { font-size: 13px; font-weight: 600; color: var(--primary); margin: 0 0 10px; }
.team-bio { font-size: 13px; color: var(--gray); line-height: 1.6; margin: 0; }

/* ===== PAGINATION — FRONTEND ===== */
.qtek-pagination {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px; padding: 20px 0 4px;
}
.pagination-info {
    width: 100%; text-align: center;
    font-size: 13px; color: var(--gray); margin-bottom: 10px;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--dark-3);
    background: #fff; text-decoration: none;
    transition: var(--transition); cursor: pointer; user-select: none;
}
.page-btn:hover:not(.disabled):not(.active):not(.dots) {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
}
.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border-color: var(--primary); font-weight: 700;
    box-shadow: 0 2px 10px var(--primary-glow);
}
.page-btn.disabled { opacity: .38; pointer-events: none; }
.page-btn.dots { border: none; background: none; cursor: default; font-size: 18px; color: var(--gray-light); min-width: 24px; }

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 991px) {
    .main-navbar .navbar-nav { padding: 12px 0; }
    .main-navbar .nav-link { padding: 10px 14px !important; }
    .header-search { display: none; }
    .cat-mega-panel { position: static !important; box-shadow: none; border-radius: var(--radius-sm); border-top: none; animation: none; background: var(--light); margin: 4px 0; }
    .cat-mega-inner { flex-direction: column; min-height: unset; }
    .cat-mega-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); border-radius: 0; flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 4px; }
    .cat-sidebar-item { border-left: none; border-radius: var(--radius-sm); padding: 6px 12px; font-size: 12px; background: #fff; }
    .cat-sidebar-all { margin-top: 0; border-top: none; }
    .cat-mega-content { padding: 12px; }
    .cat-sub-col { width: 100%; }
    .cat-pane-prod-list { flex-direction: column; }
    .nav-mega .cat-mega-panel { display: none !important; }
    .hero-swiper { height: 460px; }
    .hero-title { font-size: 28px; }
    section { padding: 60px 0; }
}
@media (max-width: 576px) {
    .hero-swiper { height: 380px; }
    .hero-content .container { padding: 0 16px; }
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 13px; }
    .btn-hero { padding: 12px 22px; font-size: 13px; }
    section { padding: 48px 0; }
    .product-card-img img { padding: 12px; }
    .footer-main { padding: 48px 0 32px; }
    .page-hero { padding: 40px 0; }
    #back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* === TẠM THỜI ẨN GIÁ — xóa khối này để hiện lại === */
.product-card-price,
.product-card-price-old,
.product-price-lg,
.product-price-lg ~ .badge { display: none !important; }
/* === HẾT KHỐI ẨN GIÁ === */