/* ============================================
   EQUIPMENT TECH - Premium Industrial Website
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --navy: #0b1f3a;
    --navy-dark: #071a33;
    --navy-light: #1b3554;
    --orange: #ff7a00;
    --yellow: #f7b500;
    --blue: #00a6ff;
    --blue-light: #00bcf2;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --gradient-primary: linear-gradient(135deg, var(--orange), var(--yellow));
    --gradient-accent: linear-gradient(135deg, var(--blue), var(--blue-light));
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(255, 122, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Utilities ---------- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    padding: 0.25em 0; /* Nới rộng vùng gradient lên trên và xuống dưới */
    margin: -0.25em 0; /* Bù lại khoảng cách để không làm nhảy bố cục */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.text-white {
    color: var(--white) !important;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Section Styles ---------- */
.section-badge {
    display: inline-block;
    background: rgba(255, 122, 0, 0.1);
    color: var(--orange);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 12px;
}

/* ---------- Animations ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 31, 58, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    transition: var(--transition);
}

#main-header.scrolled {
    padding: 8px 0;
    background: rgba(11, 31, 58, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-weight: 800;
    font-size: 20px;
}

.logo-eq {
    color: var(--yellow);
}

.logo-tech {
    color: var(--blue);
}

/* Menu */
.menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.menu > a, .menu-dropdown > a {
    display: inline-flex;
    align-items: center;
    height: 40px !important;
    padding: 0 8px;
    box-sizing: border-box;
    gap: 6px;
    letter-spacing: 0.5px;
}

.menu a:hover,
.menu a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Dropdown Menu Styles */
.menu-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px !important;
}

/* Không dùng ::after của menu-dropdown nữa */

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--navy-dark);
    min-width: 240px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 10px;
}

/* Cầu nối tàng hình siêu cấp chống mất hover tuyệt đối */
.dropdown-content::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--navy-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    font-size: 15px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--orange);
    padding-left: 25px;
}

.dropdown-content i {
    width: 20px;
    text-align: center;
    color: var(--orange);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Header Actions Alignment */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--orange);
    color: var(--orange);
}

/* Quote button */
.btn-quote {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(7, 26, 51, 0.4), rgba(11, 31, 58, 0.3)),
        url("../img/banner/hero.jpg") center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Chỉ dịch chuyển khung chứa nội dung chính của Hero */
.hero > .container {
    max-width: 1400px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 8% !important; /* Đẩy vào 8% để không bị quá sát lề trái */
}

/* Đảm bảo phần thống kê vẫn căn giữa */
.hero-stats .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px; /* Nới rộng ra 600px để cân đối */
    padding: 60px 0 40px;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 122, 0, 0.15);
    color: var(--orange);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 122, 0, 0.25);
}

.hero h1 {
    font-size: 40px; /* Giảm kích thước xuống 40px cho tinh tế */
    font-weight: 900;
    color: var(--white);
    line-height: 1.4;
    padding-top: 10px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc strong {
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 0 0 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-experience {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.about-content .section-title {
    text-align: left;
}

.about-content>p {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--gray-50);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--navy-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.service-card>p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-link {
    color: var(--orange);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    gap: 12px;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 100px 0;
    background: var(--gray-50);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-img-wrap {
    position: relative;
    height: 220px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.product-img-wrap img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-info>p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
    padding: 100px 0;
    background: var(--white);
}

.project-layout {
    display: flex;
    gap: 20px;
    height: 500px;
}

.project-left {
    flex: 2;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.project-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-left:hover img {
    transform: scale(1.05);
}

.project-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    position: relative;
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-item:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--white);
    transition: var(--transition);
}

.project-left .project-overlay {
    padding: 32px;
}

.project-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-overlay h3,
.project-overlay h4 {
    font-weight: 700;
    margin-bottom: 4px;
}

.project-overlay h3 {
    font-size: 22px;
}

.project-overlay h4 {
    font-size: 15px;
}

.project-overlay p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PARTNERS
   ============================================ */
.partners {
    padding: 80px 0;
    background: var(--gray-50);
}

.partners-track-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    gap: 40px;
    animation: scroll-partners 30s linear infinite;
    width: max-content;
}

.partner-logo {
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 80px;
    transition: var(--transition);
}

.partner-logo:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-glow);
}

.partner-logo span {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-500);
    letter-spacing: 2px;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 166, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cta-content {
    color: var(--white);
}

.cta-content .section-badge {
    background: rgba(0, 166, 255, 0.15);
    color: var(--blue);
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-content>p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 36px;
    font-size: 16px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-info-item>i {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-item strong {
    display: block;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 2px;
}

.contact-info-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Contact Form */
.cta-form form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.cta-form h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select {
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.form-group select option {
    background: var(--navy);
    color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
}

.footer-col>p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--orange);
    padding-left: 6px;
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
}

.contact-list i {
    color: var(--orange);
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
}

.footer-bottom strong {
    color: var(--white);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 122, 0, 0.4);
}

/* ============================================
   SEARCH
   ============================================ */

/* Search Toggle Button */
.search-toggle {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: rgba(255, 122, 0, 0.15);
    border-color: var(--orange);
    color: var(--orange);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.25);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 51, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search Modal */
.search-modal {
    width: 100%;
    max-width: 680px;
    padding: 0 20px;
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.search-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}

/* Close Button */
.search-close {
    position: absolute;
    top: 0;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Search Header */
.search-header {
    margin-bottom: 28px;
    padding-right: 60px;
}

.search-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.search-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Search Input */
.search-input-wrap {
    position: relative;
    margin-bottom: 24px;
}

.search-input-wrap>i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s;
}

.search-input-wrap:focus-within>i {
    color: var(--orange);
}

#searchInput {
    width: 100%;
    padding: 18px 50px 18px 54px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--green);
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#searchInput:focus {
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.search-clear.visible {
    opacity: 1;
}

.search-clear:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Search Results */
.search-results {
    max-height: 45vh;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.search-results::-webkit-scrollbar {
    width: 5px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.35);
}

.search-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.search-empty p {
    font-size: 15px;
}

/* Result Item */
.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 122, 0, 0.3);
    transform: translateX(4px);
}

.search-result-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.search-result-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-info mark {
    background: rgba(255, 122, 0, 0.3);
    color: var(--orange);
    padding: 1px 3px;
    border-radius: 3px;
}

.search-result-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.search-result-badge.product {
    background: rgba(0, 166, 255, 0.15);
    color: var(--blue);
}

.search-result-badge.service {
    background: rgba(255, 122, 0, 0.15);
    color: var(--orange);
}

.search-result-badge.project {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.search-result-badge.page {
    background: rgba(247, 181, 0, 0.15);
    color: var(--yellow);
}

.search-no-result {
    text-align: center;
    padding: 40px 20px;
}

.search-no-result i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
    display: block;
}

.search-no-result p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

.search-no-result span {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

/* Search Suggestions */
.search-suggestions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-suggestions>span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.search-tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.search-tag:hover {
    background: rgba(255, 122, 0, 0.15);
    border-color: rgba(255, 122, 0, 0.3);
    color: var(--orange);
}

/* ============================================
   FLOATING PARTICLES (decorative)
   ============================================ */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }

    .section-title {
        font-size: 30px;
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(7, 26, 51, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        z-index: 999;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        font-size: 20px;
        padding: 14px 32px;
    }

    .btn-quote {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 300px;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .project-layout {
        flex-direction: column;
        height: auto;
    }

    .project-left {
        height: 300px;
    }

    .project-right {
        flex-direction: row;
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 32px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .project-right {
        flex-direction: column;
        height: auto;
    }

    .project-item {
        height: 160px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-form form {
        padding: 24px;
    }

    .cta-content h2 {
        font-size: 28px;
    }
}

/* ============================================
   MVC COMPONENTS
   ============================================ */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--gray-100);
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-top: 70px; /* Account for fixed header */
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--orange);
    font-weight: 500;
}

.breadcrumb i {
    font-size: 10px;
    color: var(--gray-300);
}

.breadcrumb span {
    color: var(--gray-700);
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.pagination span.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-50);
}

/* Sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    transition: var(--transition);
}

.sidebar-item > a:hover, .sidebar-item.active > a {
    background: var(--gray-50);
    color: var(--orange);
}

.sidebar-sub, .sidebar-sub-2 {
    padding-left: 20px;
    margin-top: 4px;
    display: none;
}

.sidebar-item.open > .sidebar-sub, .sidebar-item.open > .sidebar-sub-2, .sidebar-item:hover > .sidebar-sub.flyout {
    display: block;
}

.sidebar-sub li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--gray-500);
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar-sub li a:hover {
    color: var(--blue-light);
    background: rgba(0, 188, 242, 0.05);
    padding-left: 24px;
}

.sidebar-sub li.active > a {
    color: var(--orange);
    font-weight: 600;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    margin-top: 70px;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Product Detail */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

.gallery-main {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.gallery-main img {
    max-height: 400px;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: var(--transition);
}

.thumb:hover, .thumb.active {
    border-color: var(--orange);
}

.thumb img {
    max-height: 100%;
}

.product-detail-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.meta-item {
    font-size: 14px;
}

.product-price-box {
    margin-bottom: 30px;
}

.price-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--orange);
}

.price-note {
    font-size: 14px;
    color: var(--gray-500);
}

.product-short-desc {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Tabs */
.product-tabs {
    margin-top: 60px;
}

.tab-nav {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--navy);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.tab-content {
    display: none;
    line-height: 1.8;
}

.tab-content.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.spec-name {
    width: 30%;
    font-weight: 600;
    color: var(--navy);
    background: var(--gray-50);
}

/* Search Modal Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-modal {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

.search-header {
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.search-header h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    gap: 15px;
}

.search-input-wrap i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 20px;
}

.search-input-wrap input {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 20px 20px 20px 60px;
    border-radius: 12px;
    font-size: 18px;
    font-family: inherit;
    outline: none;
}

.search-submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0 40px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.search-results {
    margin-top: 40px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.search-no-results {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--white);
    padding: 5px;
    border-radius: 8px;
}

.search-item-info h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 4px;
}

.search-item-info span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
}

/* Category grid (for service page) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 32px;
    color: var(--orange);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.cat-count {
    font-size: 12px;
    color: var(--gray-500);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--gray-300);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 18px;
}

/* Helpers */
.text-muted { color: var(--gray-500); }
.text-danger { color: var(--admin-danger); }

/* Responsive adjustments */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        top: 0;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SEARCH OVERLAY & MODAL
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 51, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: var(--white);
    width: 90%;
    max-width: 640px;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
    position: relative;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

.search-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}

.search-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 16px;
    transition: var(--transition);
}

.search-close:hover {
    background: var(--gray-200);
    color: var(--navy);
}

.search-header {
    margin-bottom: 20px;
}

.search-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.search-header p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Search Input */
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    transition: var(--transition);
    margin-bottom: 12px;
}

.search-input-wrap:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.search-input-wrap > i {
    color: var(--gray-300);
    font-size: 18px;
    flex-shrink: 0;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    outline: none;
}

.search-input-wrap input::placeholder {
    color: var(--gray-300);
}

.search-clear {
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    display: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    color: var(--navy);
}

.search-submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

/* Search Tags */
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.search-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.search-tag:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

/* Search Results */
.search-results {
    overflow-y: auto;
    max-height: 40vh;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
}

.search-empty,
.search-no-result {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-300);
}

.search-empty i,
.search-no-result i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.search-empty p,
.search-no-result p {
    font-size: 14px;
    color: var(--gray-500);
}

.search-no-result span {
    font-size: 13px;
    color: var(--gray-300);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.search-result-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info p {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info mark {
    background: rgba(255, 122, 0, 0.15);
    color: var(--orange);
    padding: 1px 3px;
    border-radius: 3px;
}

.search-result-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-badge.product {
    background: rgba(0, 166, 255, 0.1);
    color: var(--blue);
}

.search-result-badge.service {
    background: rgba(255, 122, 0, 0.1);
    color: var(--orange);
}

.search-result-badge.project {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.search-result-badge.page {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Search Form Inline (for search results page) */
.search-form-inline {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 600px;
}

.search-form-inline input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

.search-form-inline input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

/* Inline search on product page */
.inline-search {
    display: flex;
    gap: 0;
}

.inline-search input {
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
    width: 200px;
}

.inline-search input:focus {
    border-color: var(--orange);
}

.inline-search button {
    padding: 10px 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.inline-search button:hover {
    opacity: 0.9;
}

/* Products header with count and search */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-count {
    font-size: 14px;
    color: var(--gray-500);
}

/* Mobile search */
@media (max-width: 768px) {
    .search-modal {
        width: 95%;
        padding: 20px;
        margin-top: 5vh;
    }
    .search-tags {
        display: none;
    }
    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================
   PRODUCT DETAIL WITH SIDEBAR
   ============================================ */

/* Wrapper section cho trang có sidebar */
.content-with-sidebar {
    background: var(--gray-50);
    padding-bottom: 60px;
}

/* Khi product-detail-grid nằm trong sidebar layout,
   chuyển sang 1 cột, bỏ padding dư */
.content-main .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 0 0 40px;
    gap: 40px;
}

/* Khi màn hình đủ rộng, hiển thị ảnh + info 2 cột */
@media (min-width: 1100px) {
    .content-main .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Kết quả liên quan trong content-main */
.related-products {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}

/* Sidebar sub-menu luôn hiển thị khi active (flyout mode) */
.sidebar-item.active > .sidebar-sub.flyout {
    display: block;
}



/* Responsive: sidebar layout chuyển về 1 cột trên mobile */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        display: none; /* Ẩn sidebar trên mobile nhỏ */
    }
}

@media (max-width: 768px) {
    .content-main .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .product-actions {
        flex-wrap: wrap;
    }
    .product-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

