:root {
    --theme: #e8b31c;
    --theme-dark: #c99a18;
    --theme-light: #f0c940;
    --red: #de2327;
    --dark: #000000;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --border: #e0e0e0;
    --footer-bg: #1a1a1a;
    --radius: 8px;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); margin: 0; line-height: 1.6; }
a { color: var(--text); text-decoration: none; transition: color .3s; }
a:hover { color: var(--theme); }

/* Header */
.section-header { position: sticky; top: 0; z-index: 1000; }
.header-top { background: #fff; padding: 10px 0; }
.header-top .logo img { max-height: 70px; }
.header-slogan { color: var(--theme); font-weight: 500; font-size: 16px; }
.head-contact a { color: var(--text); font-size: 14px; }
.head-contact a:hover { color: var(--theme); }
.search-box { position: relative; }
.search-toggle { background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.search-dropdown { position: absolute; right: 0; top: 100%; width: 280px; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); padding: 10px; display: none; z-index: 100; }
.search-dropdown.active { display: block; }
.search-dropdown form { display: flex; }
.search-dropdown input { flex: 1; border: 1px solid var(--border); padding: 8px 12px; border-radius: 4px 0 0 4px; outline: none; }
.search-dropdown button { background: var(--theme); color: #fff; border: none; padding: 8px 15px; border-radius: 0 4px 4px 0; cursor: pointer; }

.change-language { position: relative; }
.lang-current { display: flex; align-items: center; gap: 5px; cursor: pointer; padding: 6px 10px; background: var(--bg-alt); border-radius: 4px; font-size: 14px; }
.lang-dropdown { position: absolute; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); min-width: 160px; display: none; z-index: 100; max-height: 300px; overflow-y: auto; }
.lang-dropdown.active { display: block; }
.lang-item { display: block; padding: 8px 15px; font-size: 14px; border-bottom: 1px solid var(--bg-alt); }
.lang-item:hover, .lang-item.active { background: var(--bg-alt); color: var(--theme); }

.header-bottom { background: var(--dark); padding: 5px 0; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; justify-content: center; gap: 5px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; padding: 12px 20px; color: #fff; font-size: 16px; font-weight: 500; white-space: nowrap; }
.nav-menu > li > a:hover, .nav-menu > li:hover > a { color: var(--theme); }
.nav-menu .has-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-menu .has-dropdown > a .fa-chevron-down { font-size: 10px; }
.nav-menu .dropdown { position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; list-style: none; padding: 10px 0; margin: 0; box-shadow: var(--shadow); border-radius: var(--radius); display: none; z-index: 200; }
.nav-menu .has-dropdown:hover .dropdown { display: block; }
.nav-menu .dropdown li a { display: block; padding: 8px 20px; color: var(--text); font-size: 14px; }
.nav-menu .dropdown li a:hover { background: var(--bg-alt); color: var(--theme); }

.mobile-menu-toggle { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 10px; }
@media (max-width: 991px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 10px; }
    .nav-menu.active { display: flex; }
    .nav-menu .dropdown { position: static; background: rgba(255,255,255,0.05); box-shadow: none; border-radius: 0; }
    .nav-menu .dropdown li a { color: #ccc; }
}

/* Banner */
.banner-swiper { width: 100%; }
.banner-swiper .swiper-slide { position: relative; }
.banner-swiper .swiper-slide img { width: 100%; height: auto; min-height: 300px; object-fit: cover; }
.banner-swiper .swiper-button-next, .banner-swiper .swiper-button-prev { color: #fff; }
.banner-swiper .swiper-pagination-bullet-active { background: var(--theme); }

/* Section Titles */
.section-title { text-align: center; padding: 40px 0 20px; position: relative; }
.section-title .sub { font-size: 90px; font-weight: 900; color: rgba(0,0,0,0.03); position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-transform: uppercase; line-height: 1; pointer-events: none; white-space: nowrap; }
.section-title strong { font-size: 40px; font-weight: 700; text-transform: uppercase; position: relative; z-index: 1; color: var(--text); }

/* About Section */
.about-section { padding: 60px 0; background: var(--bg-alt); }
.about-section .about-img img { width: 100%; border-radius: 0 40px 0 0; }
.about-desc { font-size: 16px; line-height: 1.8; margin: 20px 0 30px; }
.btn-theme { display: inline-block; padding: 12px 30px; background: transparent; color: var(--theme); border: 2px solid var(--theme); border-radius: 4px; font-weight: 600; text-transform: uppercase; font-size: 16px; cursor: pointer; transition: all .3s; }
.btn-theme:hover { background: var(--theme); color: #fff; }
.btn-theme-solid { background: var(--theme); color: #fff; }
.btn-theme-solid:hover { background: var(--theme-dark); }

/* Stats */
.stats-section { padding: 30px 0; background: var(--bg-alt); }
.stats-section .stat-card { text-align: center; padding: 40px 20px; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); transition: transform .3s; }
.stats-section .stat-card:hover { transform: translateY(-5px); }
.stats-section .stat-icon { font-size: 40px; margin-bottom: 15px; }
.stats-section .stat-icon img { height: 50px; }
.stats-section .stat-number { font-size: 64px; font-weight: 700; color: var(--theme); line-height: 1; }
.stats-section .stat-number sup { font-size: 40px; }
.stats-section .stat-title { font-size: 16px; color: var(--text-light); margin-top: 10px; text-transform: capitalize; }

/* Products */
.products-section { padding: 60px 0; }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; height: 100%; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 25px rgba(0,0,0,0.15); }
.product-card .product-img { position: relative; overflow: hidden; padding-top: 75%; }
.product-card .product-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card .product-info { padding: 20px; }
.product-card .product-info h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-info .desc { font-size: 14px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 15px; }
.product-card .product-btn { display: inline-block; padding: 8px 24px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; text-transform: uppercase; transition: all .3s; }
.product-card .product-btn:hover { background: var(--theme); color: #fff; border-color: var(--theme); }

/* Product swiper */
.product-swiper { padding: 10px 0 40px; }
.product-swiper .swiper-button-next, .product-swiper .swiper-button-prev { color: var(--theme); }
.product-swiper .swiper-pagination-bullet-active { background: var(--theme); }
.swiper-slide { height: auto; }

/* Category Tabs */
.cat-tabs-section { padding: 40px 0 60px; position: relative; }
.cat-tabs-section .nav-tabs { border: none; justify-content: center; gap: 10px; margin-bottom: 30px; }
.cat-tabs-section .nav-tabs .nav-link { border: none; padding: 15px 40px; font-size: 18px; font-weight: 500; color: var(--text); border-radius: 4px; cursor: pointer; background: var(--bg-alt); transition: all .3s; }
.cat-tabs-section .nav-tabs .nav-link.active, .cat-tabs-section .nav-tabs .nav-link:hover { background: var(--theme); color: #fff; }
.cat-tabs-section .tab-pane img { width: 100%; border-radius: var(--radius); }

/* Video Section */
.video-section { padding: 40px 0; background: var(--bg-alt); }
.video-wrapper { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Industry Apps */
.apps-section { padding: 60px 0; }
.app-swiper-thumbs .swiper-slide { cursor: pointer; opacity: .6; transition: opacity .3s; }
.app-swiper-thumbs .swiper-slide-thumb-active { opacity: 1; }
.app-swiper-thumbs img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); }
.app-info { padding: 30px; }
.app-info h3 { font-size: 28px; font-weight: 600; margin-bottom: 15px; }
.app-info p { font-size: 16px; color: var(--text-light); margin-bottom: 20px; }
.app-info .btn-theme { border-radius: 4px; }

/* Contact Page */
.contact-section { padding: 60px 0; }
.contact-form .form-control { border: 1px solid var(--border); padding: 12px 15px; border-radius: 4px; margin-bottom: 15px; width: 100%; font-size: 14px; }
.contact-form textarea.form-control { min-height: 150px; resize: vertical; }
.contact-form .btn-submit { background: var(--theme); color: #fff; border: none; padding: 14px 40px; font-size: 16px; font-weight: 600; border-radius: 4px; cursor: pointer; transition: all .3s; width: 100%; }
.contact-form .btn-submit:hover { background: var(--theme-dark); }
.contact-info-card { padding: 30px; background: var(--bg-alt); border-radius: var(--radius); }
.contact-info-card .info-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-card .info-item i { font-size: 24px; color: var(--theme); width: 30px; text-align: center; margin-top: 3px; }

/* Product Detail */
.product-detail { padding: 60px 0; }
.product-gallery .main-img { width: 100%; border-radius: var(--radius); margin-bottom: 15px; }
.product-gallery .thumb-list { display: flex; gap: 10px; }
.product-gallery .thumb-list img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color .3s; }
.product-gallery .thumb-list img.active, .product-gallery .thumb-list img:hover { border-color: var(--theme); }
.product-info h1 { font-size: 32px; font-weight: 700; margin-bottom: 15px; }
.product-info .product-meta { margin-bottom: 20px; color: var(--text-light); font-size: 14px; }
.product-info .product-meta span { margin-right: 20px; }
.product-desc { font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.inquiry-form-box { background: var(--bg-alt); padding: 30px; border-radius: var(--radius); }
.inquiry-form-box h4 { font-size: 22px; font-weight: 600; margin-bottom: 20px; }

/* Breadcrumb */
.breadcrumb-nav { background: var(--bg-alt); padding: 15px 0; font-size: 14px; }
.breadcrumb-nav a { color: var(--text-light); }
.breadcrumb-nav a:hover { color: var(--theme); }
.breadcrumb-nav span { color: var(--theme); }

/* Pagination */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination-wrap .page-link { display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); }
.pagination-wrap .page-link.active, .pagination-wrap .page-link:hover { background: var(--theme); color: #fff; border-color: var(--theme); }

/* Sidebar */
.aside-sidebar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 999; }
.aside-sidebar .side-content { list-style: none; margin: 0; padding: 0; }
.aside-sidebar .side-content li { position: relative; }
.aside-sidebar .iconBox { width: 50px; height: 50px; background: var(--theme); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 18px; }
.aside-sidebar .iconBox .ico-val { font-size: 10px; margin-top: 2px; }
.aside-sidebar .hideBox { position: absolute; right: 100%; top: 0; background: #fff; padding: 10px 15px; box-shadow: var(--shadow); white-space: nowrap; display: none; }
.aside-sidebar .side-content li:hover .hideBox { display: block; }

/* Footer */
.section-footer { background: var(--footer-bg); color: #ccc; padding: 60px 0 20px; }
.section-footer a { color: #ccc; }
.section-footer a:hover { color: var(--theme); }
.foot-title { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 15px; position: relative; padding-bottom: 10px; }
.foot-title:after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--theme); }
.foot-nav { list-style: none; padding: 0; margin: 0; }
.foot-nav li { margin-bottom: 8px; }
.foot-nav li a { font-size: 14px; }
.foot-contact { list-style: none; padding: 0; margin: 0; }
.foot-contact li { margin-bottom: 8px; font-size: 14px; }
.foot-contact li i { color: var(--theme); margin-right: 8px; width: 16px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; color: #fff; transition: all .3s; }
.foot-social a:hover { background: var(--theme); }

/* RTL */
[dir="rtl"] .aside-sidebar { right: auto; left: 0; }
[dir="rtl"] .aside-sidebar .hideBox { right: auto; left: 100%; }
[dir="rtl"] .foot-title:after { left: auto; right: 0; }

/* Responsive */
@media (max-width: 1200px) {
    .section-title .sub { font-size: 60px; }
    .section-title strong { font-size: 32px; }
    .stats-section .stat-number { font-size: 48px; }
}
@media (max-width: 768px) {
    .section-title .sub { font-size: 40px; }
    .section-title strong { font-size: 24px; }
    .stats-section .stat-number { font-size: 36px; }
    .stats-section .stat-number sup { font-size: 24px; }
    .cat-tabs-section .nav-tabs .nav-link { padding: 10px 20px; font-size: 14px; }
    .about-section .about-img { margin-top: 30px; }
}

/* Error pages */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 120px; font-weight: 900; color: var(--theme); margin-bottom: 0; }
.error-page h2 { font-size: 30px; margin-bottom: 20px; }

/* Alert */
.alert { padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
