/*
 * HESU Theme - Main Stylesheet
 * Unified CSS from index.html, product-list.html, product-detils.html
 * Primary green: #1F8F5F | Dark background: #0b1120
 */

/* ============================================================
   1. CSS Variables & Reset
   ============================================================ */
:root {
    --primary-green: #1F8F5F;
    --secondary-green: #24a872;
    --dark-bg: #0F172B;
    --darker-bg: #0F172B;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --text-main: #1f2937;
    --card-bg: #f9fafb;
    --bg-gray: #f8f9fa;
    --border-color: #e5e7eb;
    --whatsapp-green: #25d366;

    /* Fluid typography */
    --fs-hero: clamp(2rem, 1.2rem + 2.3vw, 3.5rem);
    --fs-h1: clamp(1.75rem, 0.85rem + 0.85vw, 2.5rem);
    --fs-h2: clamp(1.5rem, 1rem + 1vw, 2rem);
    --fs-h3: clamp(1.15rem, 0.9rem + 0.6vw, 1.5rem);
    --fs-body: 1rem;
    --fs-small: clamp(0.8rem, 0.7rem + 0.2vw, 0.875rem);
    --fs-price: clamp(1.25rem, 1rem + 0.6vw, 1.75rem);

    /* Fluid spacing */
    --space-section: clamp(2.5rem, 2rem + 2vw, 4rem);
    --space-card-gap: clamp(1rem, 1.5vw, 1.875rem);
    --space-element: clamp(0.75rem, 0.5rem + 0.5vw, 1.5rem);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC',
                 -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, 'Inter', sans-serif;
    background-color: #fff;
    color: var(--text-main);
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   2. Layout Utilities
   ============================================================ */
.container {
    /* max-width: 1200px; */
    max-width: min(1440px, 90vw);
    margin-inline: auto;
    padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
}

.section-padding {
    padding: var(--space-section) 0;
    background: #F9FAFB;
}

.section-header,.section-header1,.section-headerp {
    margin-bottom: 3rem;
}

.section-header h2 {
    /* color: var(--primary-green); */
    font-size: clamp(1.25rem, 1rem + 0.5vw, 1.875rem);
    margin-bottom: 0.5rem;
    max-width: 600px;
    margin: auto;
}
.section-header1 h2,.section-headerp h2 {
    /* color: var(--primary-green); */
    font-size: clamp(1.25rem, 1rem + 0.5vw, 1.875rem);
    margin-bottom: 0.5rem;
    max-width: 600px;
}
.section-header h3 ,.section-header1 h3 {
    font-size: 2rem;
    font-weight: 700;
}

.section-header span ,.section-header1 span {
    color: var(--primary-green);
    font-weight: 700;
    /* text-transform: uppercase; */
    font-size: 38px;
}
.section-headerp span {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 20px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 1rem;
    /* max-width: 600px; */
    /* margin: auto; */
}

.section-header1 p ,.section-headerp p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 600px;
}
.section-title-big {
    font-size: clamp(1.75rem, 1rem + 2vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title-big span {
    color: var(--secondary-green);
}

.section-subtitle {
    font-size: 14px;
    color: #999;
    letter-spacing: 3px;
    /* text-transform: uppercase; */
    margin-bottom: 40px;
}

/* ============================================================
   3. Header
   ============================================================ */
header {
    background-color: var(--dark-bg);
    color: #fff;
    padding: clamp(0.6rem, 1vw, 1rem) 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

/* GTranslate 语言切换器 — 位于导航行末尾，始终可见（窄屏不折叠进汉堡菜单） */
.header-lang-switcher {
    display: inline-flex;
    align-items: center;
    margin-left: clamp(0.8rem, 1.2vw, 1.5rem);
    /* color: #fff; */
    font-size: 0.85rem;
    line-height: 1;
}

.header-lang-switcher a,
.header-lang-switcher select {
    /* color: #fff; */
}

.nav-container {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.logo {
    font-size: clamp(1.2rem, 1.2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    color: #fff;
}

.logo i {
    margin-right: 8px;
    color: var(--primary-green);
}

.logo span {
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    gap: clamp(0.8rem, 1.2vw, 1.5rem);
    align-items: center;
    overflow: visible;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(12px, 1.2vw, 20px);
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-btn {
    background-color: var(--primary-green);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
}

/* Hamburger / Mobile Menu */
.nav-links-wrap {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 1.5rem;
    overflow: visible;
}

.nav-contact-btn {
    background-color: var(--primary-green);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.nav-contact-btn:hover {
    background-color: var(--secondary-green);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 1000;
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .close-btn {
    align-self: flex-end;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Regular dropdown sub-menu */
.nav-links .menu-item-has-children {
    position: relative;
}

.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    display: none;
    z-index: 200;
}

.nav-links .menu-item-has-children:hover > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* .nav-links > li.active > a {
    color: var(--primary-green);
} */

.nav-links .sub-menu li {
    padding: 0;
}

.nav-links .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s;
}
.nav-links > li.active {
    background: var(--primary-green);
    color: #fff;
}
.nav-links > li {
    padding: 0px 10px;
    border-radius: 6px;
}
.nav-links > li:hover {
    background: var(--primary-green);
    color: #fff;
}
.nav-links .sub-menu a:hover {
    background: #f0f5fa;
    color: var(--primary-green);
}

/* ============================================================
   3b. Mega Menu (Full-Width with Overlay)
   ============================================================ */
.menu-item-has-children {
    position: relative;
}

/* Dropdown arrow on trigger items */
.mega-trigger > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.mega-trigger.active > a::after {
    transform: rotate(180deg);
}

/* ── Full-width panel ── */
.mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    background: #111827;
    border-top: 3px solid var(--primary-green);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 28px 0 28px 0;
    padding-top: 38px; /* extra 10px to compensate for header overlap */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
    /* top is set dynamically via JS */
    max-height: 70vh;
    overflow-y: auto;
}

/* Custom scrollbar for mega-menu (dark theme) */
.mega-menu::-webkit-scrollbar {
    width: 6px;
}
.mega-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.mega-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.mega-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Card grid ── */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ── Card (image-above, text-below) ── */
.mega-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    /* background: rgba(255, 255, 255, 0.06); */
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s;
}

.mega-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.mega-card-image {
    /* aspect-ratio: 1; */
    overflow: hidden;
    /* background: rgba(255, 255, 255, 0.04); */
    padding: 10px;
}

.mega-card-image img {
    width: 100%;
    margin:auto;
    /* height: 100%; */
    /* object-fit: cover; */
    transition: transform 0.15s;
    opacity: 0.8;
    
}

.mega-card:hover .mega-card-image img {
    transform: scale(1.05);
    opacity: 1;
}
.mega-card:hover .mega-card-name{
    color: var(--primary-green);
    transform: scale(1.2);
}
/* Placeholder when no image */
.mega-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(11, 155, 78, 0.15);
    color: var(--primary-green);
    font-size: 28px;
    font-weight: 700;
}

.mega-card-name {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    color: #e2e8f0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Empty state ── */
.mega-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

/* ── Tab mega menu ── */
.mega-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    /* border-bottom: 1px solid #374151; */
    gap: 0;
    margin-bottom: 20px;
}

.mega-tabs-nav a {
    text-decoration: none;
    color: inherit;
}

.mega-tab-item {
    padding: 12px 20px;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.mega-tab-item:hover {
    color: var(--primary-green);
}

.mega-tab-item.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    font-weight: 600;
}

.mega-tab-pane {
    display: none;
}

.mega-tab-pane.active {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .mega-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 1024px) {
    .mega-menu {
        display: none !important;
    }
    .mega-trigger > a::after {
        display: none;
    }
}

/* ============================================================
   4. Footer
   ============================================================ */
footer {
    background-color: var(--darker-bg);
    color: #fff;
    padding: var(--space-section) 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 3vw, 4rem);
    padding-bottom: var(--space-section);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 3vw, 4rem);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-green);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-green);
}

.footer-contact p {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-green);
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.footer-bottom .footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom .footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom .footer-links a:hover {
    color: var(--primary-green);
}

/* ============================================================
   5. Homepage Sections
   ============================================================ */

/* Hero — styles moved to blocks/hero-carousel/style.css */

/* Hero Buttons (shared across pages) */
.btn-wa {
    background-color: var(--primary-green);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-wa:hover {
    background-color: var(--secondary-green);
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Services Grid — styles moved to blocks/services/style.css */

/* Global Network — styles moved to blocks/global-network/style.css */

/* Why Us — styles moved to blocks/why-us/style.css */

/* Key Facts — styles moved to blocks/key-facts/style.css */

.categories {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Green Banner */
.green-banner,
.features-bar {
    background-color: var(--primary-green);
    color: #fff;
    padding: 2rem 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-card-gap);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.banner-item,
.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.banner-item i,
.feature-item i {
    font-size: 1.5rem;
}
.banner-item svg{
    font-size: 2.5rem;
}
.banner-item h5,
.feature-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.banner-item p,
.feature-content p {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ============================================================
   6. Product List Page
   ============================================================ */

/* Archive Hero Banner */
.archive-hero {
    position: relative;
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/archive-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.archive-hero.hero-carousel {
    display: block;
}

.archive-hero .hero-slide {
    height: 450px;
}

.archive-hero-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.archive-hero-center .hero-btns {
    justify-content: center;
}

.archive-hero h1 {
    font-size: clamp(1.75rem, 1rem + 2vw, 3rem);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.archive-hero p {
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 16px;
    opacity: 0.9;
}

/* Search Bar */
.search-bar-section {
    background: var(--primary-green);
    padding: 30px 0;
}

.search-container {
    max-width: min(800px, 90vw);
    margin: 0 auto;
    display: flex;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #000;
    color: #fff;
    border: none;
    width: 50px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-container button:hover {
    background: #333;
}

/* Search Bar (PHP template class names) */
.search-bar {
    background: var(--primary-green);
    padding: 30px 0;
}

.search-form {
    max-width: min(800px, 90vw);
    margin: 0 auto;
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #000;
    color: #fff;
    border: none;
    width: 50px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #333;
}

/* Inventory / Filters */
.inventory-section {
    padding: 80px 0;
}

.filters {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
}

.filter-label {
    width: 100px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-item {
    padding: 5px 12px;
    background: #F5F5F5;
    border-radius: 4px;
    cursor: pointer;
    color: #000;
    transition: all 0.3s;
}

.filter-item.active {
    background: var(--primary-green);
    color: #fff;
}

/* Product Filters (PHP template class name) */
.product-filters {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* OTHER row: hover dropdown with grid */
.filter-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.filter-trigger {
    padding: 5px 12px;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F5F5F5;
    transition: border-color 0.2s;
}

.filter-trigger:hover {
    border-color: var(--primary-green);
    color: #333;
}

.filter-trigger i {
    font-size: 10px;
    transition: transform 0.2s;
}

.filter-dropdown-wrap:hover .filter-trigger i {
    transform: rotate(180deg);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 560px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 8px 14px 14px;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    pointer-events: none;
}

.filter-dropdown-wrap:hover .filter-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.filter-dropdown-item {
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 11px;
    color: #000;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.filter-dropdown-item:hover,
.filter-dropdown-item.selected {
    background: var(--primary-green);
    color: #fff;
}

.filter-reset {
    padding: 5px 16px;
    border-radius: 4px;
    background: #F5F5F5;
    color: #000;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.filter-reset:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* ============================================================
   Blog Layout (Sidebar + Main)
   ============================================================ */
.blog-layout {
    display: grid;
    grid-template-columns: clamp(220px, 22vw, 300px) 1fr;
    gap: clamp(1.5rem, 2.5vw, 3rem);
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Sidebar Widget Card --- */
.sidebar-widget {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sidebar-widget:hover {
    border-color: #d1f0e2;
    box-shadow: 0 4px 16px rgba(31, 143, 95, 0.08);
}

/* WordPress Default Widgets inside sidebar */
.sidebar-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-widget ul li:first-child {
    padding-top: 0;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-widget ul li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-widget ul li a:hover {
    color: var(--primary-green);
}

/* WP Search Widget */
.sidebar-widget .search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-gray);
    height: 40px;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.sidebar-widget .search-form:focus-within {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 143, 95, 0.1);
}

.sidebar-widget .search-form label {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.sidebar-widget .search-form .search-field {
    flex: 1;
    border: none;
    padding: 0 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: transparent;
    color: var(--text-main);
    height: 100%;
}

.sidebar-widget .search-form .search-field::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.sidebar-widget .search-form .search-submit {
    background: var(--primary-green);
    color: transparent;
    border: none;
    width: 44px;
    min-width: 44px;
    cursor: pointer;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    height: 100%;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

/* Show search icon instead of text */
.sidebar-widget .search-form .search-submit::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    position: absolute;
}

.sidebar-widget .search-form .search-submit:hover {
    background: var(--secondary-green);
}

/* WP Recent Comments Widget */
.sidebar-widget #recentcomments .recentcomments {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.sidebar-widget #recentcomments .recentcomments:first-child {
    padding-top: 0;
}

.sidebar-widget #recentcomments .recentcomments:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-widget #recentcomments .recentcomments a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-widget #recentcomments .recentcomments a:hover {
    color: var(--primary-green);
}

.sidebar-widget #recentcomments .comment-author-link {
    font-weight: 600;
    color: var(--text-main);
}

/* WP Recent Posts Widget — post-date */
.sidebar-widget .post-date {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 3px;
}

/* WP Categories Widget — count */
.sidebar-widget ul li .count {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 2px;
}

/* WP Tag Cloud Widget */
.sidebar-widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-widget .tagcloud a {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px !important;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-widget .tagcloud a:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
    transform: translateY(-1px);
}

/* WP Meta Widget & others — clean up */
.sidebar-widget .screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* --- Sidebar Title --- */
.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sidebar-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--primary-green);
    border-radius: 2px;
}

/* --- Sidebar Search --- */
.sidebar-search {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-gray);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.sidebar-search:focus-within {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 143, 95, 0.1);
}

.sidebar-search input {
    flex: 1;
    border: none;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: transparent;
    width: auto;
    color: var(--text-main);
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.sidebar-search button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    width: 44px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sidebar-search button:hover {
    background: var(--secondary-green);
}

/* --- Sidebar Categories --- */
.sidebar-categories {
    list-style: none;
}

.sidebar-categories li {
    margin-bottom: 1px;
}

.sidebar-categories li:last-child {
    margin-bottom: 0;
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-categories li a::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 6px;
    color: var(--primary-green);
    margin-right: 10px;
    width: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.sidebar-categories li a:hover {
    background: #f0faf5;
    color: var(--primary-green);
}

.sidebar-categories li a:hover::before {
    content: '\f054';
    font-size: 9px;
    font-weight: 900;
    transform: translateX(2px);
}

.sidebar-categories .count {
    background: rgba(31, 143, 95, 0.1);
    color: var(--primary-green);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    transition: all 0.2s;
}

.sidebar-categories li a:hover .count {
    background: var(--primary-green);
    color: #fff;
}

/* --- Sidebar Tags --- */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
    transform: translateY(-1px);
}

/* --- Sidebar Recent Posts --- */
.sidebar-recent {
    list-style: none;
}

.sidebar-widget .sidebar-recent ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-recent li:first-child {
    padding-top: 0;
}

.sidebar-recent li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-recent a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
    padding-left: 14px;
    position: relative;
}

.sidebar-recent a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background: var(--primary-green);
    border-radius: 50%;
    transition: transform 0.2s;
}

.sidebar-recent a:hover {
    color: var(--primary-green);
}

.sidebar-recent a:hover::before {
    transform: scale(1.4);
}

.recent-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
    padding-left: 14px;
}

.recent-date::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 10px;
}

/* --- Sidebar Responsive --- */
@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: clamp(200px, 20vw, 260px) 1fr;
    }
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Blog List Page
   ============================================================ */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.5vw, 1.5rem);
}

.blog-post {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.blog-post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.post-thumb {
    flex-shrink: 0;
    width: clamp(180px, 18vw, 260px);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    min-height: clamp(120px, 12vw, 180px);
    object-fit: cover;
}

.post-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-body h2 {
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-body h2 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.post-body h2 a:hover {
    color: var(--primary-green);
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-meta i {
    margin-right: 4px;
}

.post-excerpt {
    font-size: var(--fs-small);
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 10px;
}

/* ============================================================
   Blog Detail Page
   ============================================================ */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 2.5vw, 2.5rem) 0;
}

.blog-detail-header {
    margin-bottom: clamp(1.5rem, 2vw, 1.875rem);
}

.blog-detail-header h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-detail-meta i {
    margin-right: 4px;
}

.blog-detail-featured {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: clamp(1.5rem, 2vw, 1.875rem);
}

.blog-detail-featured img {
    width: 100%;
    height: auto;
}

.blog-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

.blog-detail-content h2 {
    font-size: var(--fs-h2);
    margin: 2rem 0 1rem;
}

.blog-detail-content h3 {
    font-size: var(--fs-h3);
    margin: 1.5rem 0 0.75rem;
}

.blog-detail-content p {
    margin-bottom: 1.2rem;
}

.blog-detail-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-detail-content a {
    color: var(--primary-green);
    text-decoration: underline;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.blog-detail-content ol {
    list-style: decimal;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.blog-back:hover {
    color: var(--primary-green);
}

@media (max-width: 1024px) {
    .blog-post {
        flex-direction: column;
    }

    .post-thumb {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .blog-detail-header h1 {
        font-size: 24px;
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--space-card-gap);
    margin-bottom: clamp(2rem, 3vw, 3rem);
}

/* Product Card */
.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    min-width: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-img {
    aspect-ratio: 4/3;
    height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-price,
.card-badge-price {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-green);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}

.tag-new,
.card-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3b82f6;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

.card-info {
    padding: 15px;
}

.brand-name,
.card-brand {
    color: #aaa;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.model-name,
.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 5px 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.specs,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.specs span,
.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-inquiry-card,
.btn-card-inquiry {
    width: 100%;
    padding: 12px;
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-inquiry-card:hover,
.btn-card-inquiry:hover {
    background: var(--secondary-green);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.page-btn.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.page-btn:hover:not(.active) {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* WordPress pagination (the_posts_pagination) */
nav.navigation {
    margin-top: 50px;
}

nav.navigation .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

nav.navigation .page-numbers {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    padding: 0 6px;
}

nav.navigation .page-numbers:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

nav.navigation .page-numbers.current {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

nav.navigation .page-numbers.dots {
    border: none;
    cursor: default;
    color: var(--text-muted);
    min-width: auto;
}

nav.navigation .page-numbers.dots:hover {
    color: var(--text-muted);
    border: none;
}

nav.navigation .page-numbers.next,
nav.navigation .page-numbers.prev {
    width: auto;
    padding: 0 16px;
    font-weight: 600;
}

.page-btn.next {
    width: auto;
    padding: 0 20px;
}

/* ============================================================
   7. Product Detail Page
   ============================================================ */

/* Breadcrumb */
.breadcrumb-bar {
    background: var(--primary-green);
    padding: 12px 0;
}

.breadcrumb-bar .breadcrumb {
    position: static;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    font-size: 13px;
    z-index: auto;
}

/* archive-hero / contact-hero 中的面包屑保持原样（绝对定位） */
.archive-hero .breadcrumb,
.contact-hero .breadcrumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 0;
    font-size: 13px;
    z-index: 10;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb i {
    margin-right: 4px;
}

/* Product Hero */
.product-hero {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.product-gallery {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.gallery-main {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    height: clamp(280px, 30vw, 400px);
}

.gallery-main img {
    height: 100%;
    border-radius: 8px;
    display: block;
     object-fit: cover;
}

.main-img {
    width: 100%;
    border-radius: 8px;
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffa500;
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
}

.thumb-nav-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.thumb-arrow {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.thumb-arrow:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.thumb-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.thumb-nav::-webkit-scrollbar {
    display: none;
}

.thumb-nav img {
    width: clamp(50px, 5vw, 66px);
    height: clamp(35px, 3.5vw, 46px);
    min-width: clamp(50px, 5vw, 66px);
    object-fit: cover;
    border: 2px solid #eee;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.thumb-nav img:hover,
.thumb-nav img.active {
    border-color: var(--primary-green);
}

.product-info h1 {
    font-size: var(--fs-h1);
    margin-bottom: 5px;
}

.product-brand {
    color: #aaa;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.price,
.product-price {
    font-size: var(--fs-price);
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 25px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 600;
    color: var(--text-main);
}

.action-btns,
.product-actions {
    display: flex;
    gap: 15px;
    /* justify-content: space-around; */
}

.btn-inquiry,
.btn-whatsapp {
    /* flex: 1; */
    padding: 10px 40px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: opacity 0.3s;
}
.product-params {
    margin-bottom: 2rem;
    /* border-top: 1px solid var(--border-color); */
}

.param-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    /* border-bottom: 1px solid var(--border-color); */
    font-size: 14px;
}

.param-label {
    width: 50%;
    color: var(--text-muted);
    font-weight: 500;
}

.param-value {
    width: 50%;
    color: var(--text-main);
    font-weight: 600;
}
.product-actions .fa-comment-dots,.product-actions .fa-whatsapp{
    font-size: 16px;
}
.btn-inquiry {
    background: var(--primary-green);
}

.btn-whatsapp {
    background: var(--primary-green);
}

.btn-inquiry:hover,
.btn-whatsapp:hover {
    opacity: 0.9;
}

/* Tabs */
.tabs {
    background: #f9f9f9;
    display: flex;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.tab-item {
    padding: 15px 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s;
}

.tab-item.active {
    background: #fff;
    color: var(--primary-green);
    border-top: 2px solid var(--primary-green);
}

.tab-item:hover:not(.active) {
    color: var(--text-main);
}

/* Product Tabs (PHP template wrapper classes) */
.product-tabs {
    margin-top: 40px;
}

.tab-nav {
    background: #f9f9f9;
    display: flex;
    border-top: 1px solid #eee;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.tab-nav .tab-item {
    padding: 15px 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
}

.tab-nav .tab-item.active {
    background: #fff;
    color: var(--primary-green);
    border-top: 2px solid var(--primary-green);
}

.tab-nav .tab-item:hover:not(.active) {
    color: var(--text-main);
}

.tab-contents {
    padding-bottom: 4rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content table,
.tab-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-body {
    padding: 40px 0;
    line-height: 1.8;
    color: var(--text-muted);
}

.product-description {
    padding: 30px 0;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}
.border-top {
    border-top: 1px solid #ececec;
}

/* Detail Sections */
.section-content {
    padding: 50px 0;
    text-align: center;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.visual-banner {
    width: 100%;
    margin: 40px 0;
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
}

.visual-banner img {
    width: 100%;
    border-radius: 10px;
}

/* Stats Banner (overlaid on visual banner) */
.stats-banner,
.banner-stats-overlay {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-green);
}

.stat-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

/* Feature Block */
.feature-block {
    margin: 60px 0;
    text-align: left;
}

.feature-block h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-block p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Car Attributes Grid */
.car-attributes-graphic {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin: 40px auto;
    max-width: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.attr-box {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s;
}

.attr-box.selected {
    border-color: var(--secondary-green);
}

/* Car Attributes (PHP template class names) */
.car-attributes {
    margin: 60px 0;
}

.car-attributes .section-title {
    text-align: center;
    display: block;
    margin-bottom: 30px;
}

.attributes-grid {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin: 0 auto;
    max-width: 700px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.attr-group {
    text-align: center;
}

.attr-group h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.attr-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.attr-item {
    padding: 8px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: default;
    transition: all 0.3s;
}

.attr-item.active {
    border-color: var(--secondary-green);
    color: var(--secondary-green);
    background: rgba(36, 168, 114, 0.05);
}

/* Feature Showcases */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
}

.feature-label {
    background: var(--secondary-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
}

.feature-img img,
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-showcase.reverse {
    grid-template-columns: 2fr 1fr;
}

/* Car Features (PHP template wrapper) */
.car-features {
    margin: 60px 0;
}

.car-features .section-title {
    text-align: center;
    display: block;
    margin-bottom: 30px;
}

/* Color Gallery */
.color-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

/* The Colors (PHP template class) */
.the-colors {
    margin: 60px 0;
}

.the-colors .section-title {
    text-align: center;
    display: block;
    margin-bottom: 30px;
}

.the-colors img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.the-colors p {
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.8;
}

/* Interior Gallery */
.interior-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 40px 0;
}

.interior-gallery img {
    width: 100%;
    border-radius: 8px;
}

/* Interior Section (PHP template class names) */
.interior-section {
    margin: 60px 0;
}

.interior-section .section-title {
    text-align: center;
    display: block;
    margin-bottom: 30px;
}

.interior-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 40px 0;
}

.interior-img {
    border-radius: 8px;
    overflow: hidden;
}

.interior-img img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Exterior Gallery */
.exterior-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.exterior-gallery img {
    width: 100%;
    border-radius: 4px;
}

/* Exterior Section (PHP template class names) */
.exterior-section {
    margin: 60px 0;
}

.exterior-section .section-title {
    text-align: center;
    display: block;
    margin-bottom: 30px;
}

.exterior-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.exterior-img {
    border-radius: 4px;
    overflow: hidden;
}

.exterior-img img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

/* FAQ List (PHP template class names) */
.faq-list {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item h4 {
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 600;
    background: #f9f9f9;
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-item h4:hover {
    background: #f0f0f0;
}

.faq-item p {
    padding: 15px 20px;
    color: var(--text-muted);
    line-height: 1.7;
    display: none;
}

.faq-item.active h4 {
    color: var(--primary-green);
}

.faq-item.active p {
    display: block;
}

/* Related Products */
.related-products {
    padding: 60px 0;
}

.related-products h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Related products — horizontal carousel (scroll-snap + arrows) */
.related-carousel {
    position: relative;
}

.related-carousel__track {
    display: flex;
    gap: var(--space-card-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
    margin-bottom: clamp(2rem, 3vw, 3rem);
}

.related-carousel__track::-webkit-scrollbar {
    display: none;
}

.related-carousel__track > .product-card {
    flex: 0 0 calc((100% - 2 * var(--space-card-gap)) / 3);
    scroll-snap-align: start;
}

.related-carousel__arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    transition: background 0.2s, opacity 0.2s;
}

.related-carousel__arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.related-carousel__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.related-carousel__arrow--prev {
    left: -8px;
}

.related-carousel__arrow--next {
    right: -8px;
}

@media (max-width: 1024px) {
    .related-carousel__track > .product-card {
        flex-basis: calc((100% - var(--space-card-gap)) / 2);
    }
}

@media (max-width: 600px) {
    .related-carousel__track > .product-card {
        flex-basis: 80%;
    }
}

/* ============================================================
   8. Contact Section (shared)
   ============================================================ */
/* NOTE: These styles live here (not in blocks/contact-form/style.css) so that
   template-part pages — single-product.php, page-about-us.php, front-page.php,
   archive-product.php, taxonomy.php — all use template-parts/home/contact.php,
   which renders the .contact-grid markup directly (no ACF block). The block's
   enqueue_style only loads on pages that actually render the acf/contact-form
   block, so a block-only stylesheet leaves these pages unstyled. */

.contact-section {
    background-color: #fff;
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 3vw, 3.75rem);
}

.contact-info h2 {
    font-size: clamp(1.5rem, 1rem + 1vw, 1.875rem);
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.contact-info h3 {
    font-size: clamp(1.5rem, 1rem + 1vw, 1.875rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-whatsapp {
    background: var(--primary-green);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    text-decoration: none;
}

.contact-email {
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-decoration: none;
}

.contact-remark {
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #4b5563;
    margin-top: 2rem;
    max-width: 80%;
}

.contact-form-card {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
}

.contact-form-card p { margin-top: 0.5rem; }

.contact-form-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="tel"],
.contact-form-card input[type="email"],
.contact-form-card textarea {
    width: 100%;
    padding: clamp(0.5rem, 0.8vw, 0.8rem);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--primary-green);
}

.contact-form-card .wpcf7-submit {
    width: 100%;
    background-color: var(--primary-green);
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.contact-form-card .wpcf7-submit:hover {
    background-color: var(--secondary-green);
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-info h3 { font-size: 1.8rem; }
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-wa-alt {
    background: var(--primary-green);
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    max-width: 250px;
    transition: background 0.3s;
}

.btn-wa-alt:hover {
    background: var(--secondary-green);
}

.btn-email-alt {
    border: 1px solid #ddd;
    padding: 15px 25px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #333;
    max-width: 250px;
    transition: border-color 0.3s;
}

.btn-email-alt:hover {
    border-color: var(--primary-green);
}

.note-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    border-left: 4px solid var(--primary-green);
    color: #666;
    font-size: 14px;
}

/* Contact Form */
.form-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.contact-form {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group label span {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-green);
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--secondary-green);
}

.disclaimer {
    font-size: 0.7rem;
    text-align: center;
    color: var(--text-gray);
    margin-top: 1rem;
}

/* Trust Bar */
.trust-bar {
    background: var(--primary-green);
    color: #fff;
    padding: 2rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.trust-item i {
    font-size: 24px;
}

/* ============================================================
   9. Responsive
   ============================================================ */

/* --- 1024px --- */
@media (max-width: 1024px) {
    /* .network-grid — moved to blocks/global-network/style.css */

    .contact-container {
        flex-direction: column;
    }

    .product-hero {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-banner,
    .banner-stats-overlay {
        width: 95%;
        padding: 15px 25px;
    }

    .stat-num {
        font-size: 18px;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {
    /* .services-grid — moved to blocks/services/style.css */

    .specs-grid {
        grid-template-columns: 1fr;
    }

    /* .contact-grid — moved to blocks/contact-form/style.css */

    .contact-faq-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-hero {
        height: 300px;
    }

    .contact-hero h1 {
        font-size: 32px;
    }

    .contact-hero p {
        font-size: 15px;
    }

    .contact-hero-icons {
        display: none;
    }

    /* .contact-info h3 — moved to blocks/contact-form/style.css */

    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .feature-showcase.reverse {
        grid-template-columns: 1fr;
    }

    .feature-label {
        font-size: 18px;
        padding: 25px;
    }

    .car-attributes-graphic {
        padding: 25px;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .product-filters {
        padding: 15px;
    }

    .exterior-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .interior-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .tab-nav {
        overflow-x: auto;
    }

    .tab-nav .tab-item {
        white-space: nowrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-links-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        padding: 1rem;
        flex-direction: column;
        z-index: 100;
    }

    .nav-links-wrap.active {
        display: flex;
    }

    .nav-links-wrap ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .nav-links-wrap ul li {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links-wrap ul li a {
        font-size: 1rem;
    }

    .exterior-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .interior-gallery {
        grid-template-columns: 1fr;
    }

    .section-header h3 {
        font-size: 1.5rem;
    }

    .filters,
    .product-filters {
        padding: 15px;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-label {
        width: auto;
    }

    .archive-hero h1 {
        font-size: 36px;
    }

    .product-info h1 {
        font-size: 24px;
    }

    .price,
    .product-price {
        font-size: 22px;
    }

    .inventory-section {
        padding: 40px 0;
    }

    .search-bar {
        padding: 20px 0;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    /* .hero-btns — moved to blocks/hero-carousel/style.css */

    .footer-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .action-btns,
    .product-actions {
        flex-direction: column;
    }

    .archive-hero h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .archive-hero {
        height: auto;
        min-height: 350px;
        padding: 3rem 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-container button {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        padding: 12px;
        margin-top: 10px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-item {
        font-size: 12px;
        padding: 10px 15px;
    }

    .section-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .car-attributes-graphic {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        padding: 12px;
        margin-top: 10px;
    }

    .product-tabs .tab-nav {
        flex-wrap: wrap;
    }

    .product-tabs .tab-item {
        font-size: 12px;
        padding: 10px 15px;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .feature-showcase.reverse {
        grid-template-columns: 1fr;
    }

    .exterior-grid {
        grid-template-columns: 1fr;
    }

    .interior-grid {
        grid-template-columns: 1fr;
    }

    .banner-stats-overlay {
        position: static;
        transform: none;
        width: 100%;
        border-radius: 8px;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
    }

    .form-card,
    .contact-form {
        padding: 1.5rem;
    }

    /* .stat-badge/.hero-stats — moved to blocks/hero-carousel/style.css */

    .stats-banner {
        position: static;
        transform: none;
        width: 100%;
        border-radius: 8px;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
    }

    .feature-block h2 {
        font-size: 22px;
    }

    .feature-label {
        font-size: 16px;
        padding: 20px;
    }

    .banner-item,
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-btn {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* ============================================================
   10. High DPI (Retina / 4K)
   ============================================================ */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/archive-bg.jpg');
    }

    .archive-hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/archive-bg.jpg');
    }

    .service-card,
    .product-card,
    .form-card,
    .contact-form {
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    }
}

@media (-webkit-min-device-pixel-ratio: 3),
       (min-resolution: 288dpi) {
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg@3x.jpg');
    }

    .archive-hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/archive-bg@3x.jpg');
    }
}

/* ============================================================
   Animations & Transitions
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* ============================================================
   About Us Page
   ============================================================ */

/* Hero */
.about-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-hero-bg--fallback {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: #fff;
}

.about-hero-content h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.about-hero-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    margin-bottom: 30px;
}

.about-hero-divider {
    width: 50px;
    height: 2px;
    background: #fff;
    margin: 0 auto 20px;
}

.about-hero-subtitle-2 {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.about-hero-search {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
}

.about-hero-search i {
    color: #ccc;
    margin-right: 10px;
}

.about-hero-search input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    padding: 5px 10px;
    outline: none;
    font-size: 14px;
}

.about-hero-search input::placeholder {
    color: #ccc;
}

/* Intro: 3-col grid */
.about-intro-section {
    padding: 80px 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

.about-intro-lead h2 {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.4;
}

.about-intro-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.about-intro-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* About Company: 2-col */
.about-company-section {
    padding: 60px 0;
    background: #fff;
    text-align: center;
}

.about-section-heading {
    font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 40px;
}

.about-company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
    align-items: center;
}

.about-company-img {
    border-radius: 8px;
    overflow: hidden;
}

.about-company-img img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.about-company-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-company-content--full {
    grid-column: 1 / -1;
}

.about-company-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-company-body p {
    margin-bottom: 15px;
}

/* Team Section */
.about-team-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.about-team-quote {
    /* font-style: italic; */
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.about-team-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.about-team-video {
    background: #fff;
}

.about-team-video-cover {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.about-team-video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Inline player that replaces the cover on click */
.about-team-video-cover iframe,
.about-team-video-cover video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.about-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s;
}

.about-play-btn:hover {
    opacity: 1;
}

.about-team-video h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.about-team-video p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* About Contact Section */
.about-contact-section {
    padding: 80px 0;
    background: #fff;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-contact-info h2 {
    font-size: 36px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.about-contact-info h3 {
    font-size: clamp(1.25rem, 1rem + 0.8vw, 2rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.about-contact-info > p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.about-contact-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.about-contact-btns .btn-wa {
    background-color: #128c7e;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-weight: 600;
    transition: opacity 0.3s;
}

.about-contact-btns .btn-wa:hover {
    opacity: 0.9;
}

.about-contact-btns .btn-email {
    border: 1px solid #ccc;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    transition: border-color 0.3s;
}

.about-contact-btns .btn-email:hover {
    border-color: #999;
}

.about-support-box {
    background-color: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

.about-contact-form {
    background-color: #f8fafc;
    padding: 40px;
    border-radius: 12px;
}

/* ============================================================
   Contact Us Page
   ============================================================ */

/* Contact Page Hero */
.contact-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(to right, rgba(10, 30, 58, 0.9), rgba(10, 30, 58, 0.4)), var(--dark-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    overflow: hidden;
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.contact-hero p {
    font-size: 18px;
    max-width: 600px;
    opacity: 0.9;
}

.contact-hero-icons {
    position: absolute;
    bottom: 30px;
    left: 10%;
    display: flex;
    gap: 40px;
    opacity: 0.3;
    font-size: 40px;
}

.contact-methods-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 2rem;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0px 4px 4px 0px #00000040;
    padding:20px 10px;
    border: 1px solid #EDEDED;
    border-radius: 10px;
}

.contact-method-icon {
    width: clamp(40px, 3.5vw, 48px);
    height: clamp(40px, 3.5vw, 48px);
    background: #f0faf5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon i {
    font-size: 20px;
    color: var(--primary-green);
}

.contact-method-item h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-method-item p {
    font-size: var(--fs-small);
    color: var(--text-main);
}

.contact-whatsapp-link {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s;
}

.contact-whatsapp-link:hover {
    opacity: 0.8;
}

.contact-form-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-cta-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2rem;
}

.contact-cta-btns .btn-wa {
    background: var(--primary-green);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.3s;
}

.contact-cta-btns .btn-wa:hover {
    opacity: 0.9;
}

.contact-cta-btns .btn-email {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: border-color 0.3s;
}

.contact-cta-btns .btn-email:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.contact-info .section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 14px;
}

.contact-info .green-text {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 18px;
}

.contact-form-card .form-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 14px;
    line-height: 1.6;
}

.contact-form-card .form-footer-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 15px;
}

/* Contact FAQ Section */
.contact-faq-section {
    padding: 80px 0;
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), var(--bg-light);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.contact-faq-section > .container > h2 {
    font-size: 40px;
    color: var(--dark-bg);
    margin-bottom: 40px;
}

.contact-faq-list {
    max-width: 600px;
}

.contact-faq-item {
    margin-bottom: 30px;
}

.contact-faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-faq-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.contact-faq-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.contact-faq-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.contact-faq-card:hover {
    transform: translateY(-5px);
    background: var(--primary-green);
    color: #fff;
}

.contact-faq-card:hover i {
    color: #fff;
}
.contact-faq-card:hover svg {
    color: #fff !important;
}

.contact-faq-card svg{
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-green);
}
.contact-faq-card i {
    font-size: 30px;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-green);
}

.contact-faq-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-faq-card p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

.contact-faq-card:hover p {
    color: rgba(255,255,255,0.85);
}

.contact-map iframe {
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-company-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 400px;
    }

    .about-hero-content h1 {
        font-size: 1.75rem;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
    }

    .about-team-videos {
        grid-template-columns: 1fr;
    }

    .about-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Inquiry Modal
   ============================================================ */
.inquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.inquiry-modal.active {
    display: flex;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.inquiry-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 16, 0.6);
    backdrop-filter: blur(4px);
}

.inquiry-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.inquiry-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
    line-height: 32px;
    text-align: center;
    transition: all 0.2s;
}

.inquiry-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Modal header */
.inquiry-modal-content h2,
.inquiry-modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.25rem;
}

.inquiry-modal-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* CF7 form inside modal */
.inquiry-modal-content .wpcf7-form {
    margin: 0;
}

.inquiry-modal-content .wpcf7-form p {
    margin-bottom: 1rem;
}

.inquiry-modal-content .wpcf7-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.inquiry-modal-content .wpcf7-form input[type="text"],
.inquiry-modal-content .wpcf7-form input[type="email"],
.inquiry-modal-content .wpcf7-form input[type="tel"],
.inquiry-modal-content .wpcf7-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.inquiry-modal-content .wpcf7-form input:focus,
.inquiry-modal-content .wpcf7-form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(31, 143, 95, 0.12);
    background: #fff;
}

.inquiry-modal-content .wpcf7-form textarea {
    min-height: 90px;
    resize: vertical;
}

.inquiry-modal-content .wpcf7-form input[type="submit"],
.inquiry-modal-content .wpcf7-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.inquiry-modal-content .wpcf7-form input[type="submit"]:hover,
.inquiry-modal-content .wpcf7-submit:hover {
    background: var(--secondary-green);
}

/* CF7 validation & response */
.inquiry-modal-content .wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.inquiry-modal-content .wpcf7-form .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.inquiry-modal-content .wpcf7-mail-sent-ok {
    border-color: var(--primary-green) !important;
    color: var(--primary-green);
    background: #f0fdf4;
}

.inquiry-modal-content .wpcf7-validation-errors {
    border-color: #f59e0b !important;
    color: #92400e;
    background: #fffbeb;
}

/* Spinner */
.inquiry-modal-content .wpcf7-spinner {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ========================================
   Topic Page Styles
   ======================================== */

/* ---- Tab Navigation ---- */
.topic-tabs {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}
.topic-tabs__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.topic-tabs__track::-webkit-scrollbar {
    display: none;
}
.topic-tabs__item {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.topic-tabs__item:hover {
    color: #333;
}
.topic-tabs__item.is-active {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom-color: #4CAF50;
}

/* ---- Topic Page Container ---- */
.topic-page {
    min-height: 400px;
}

/* Topic block styles — moved to blocks/topic-*/style.css */

/* 图标 SVG：继承父元素颜色 */
.hesucar-icon {
    fill: currentColor;
}
