﻿/* =============================================
   BIOCCE — Industrial Equipment Solutions
   Theme: Industrial Navy + Orange Accent
   ============================================= */

/* ---- Variables ---- */
:root {
    --primary: #0a1628;
    --primary-light: #132042;
    --primary-mid: #1a2d54;
    --accent: #f15a24;
    --accent-light: #ff7a3d;
    --accent-dark: #c44a1d;
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-dark: #0a1628;
    --text: #1a1a2e;
    --text-gray: #5a6a7e;
    --text-light: #8a9aaa;
    --border: #e0e4ea;
    --border-dark: #2a3a54;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
    --radius: 4px;
    --radius-lg: 8px;
    --transition: 0.2s ease;
    --font: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans', sans-serif;
    --container: 1200px;
    --header-h: 62px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-white);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Accent ---- */
.accent { color: var(--accent); }

/* ---- Site Header ---- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--primary);
    z-index: 1000;
    border-bottom: 1px solid var(--border-dark);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-inner > .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.logo-text {
    line-height: 1.2;
}

.logo-main {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 9px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---- Header Actions ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ---- Search ---- */
.search-wrapper {
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--primary-light);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 0 8px;
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--accent);
    background: var(--primary-mid);
}

.search-icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
    color: #fff;
}

.search-input-group input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    padding: 8px 6px;
    width: 100px;
    transition: var(--transition);
}

.search-input-group input:focus { width: 160px; }
.search-input-group input::placeholder { color: var(--text-light); opacity: 1; }

#search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
}

#search-results.active { display: block; }

.search-empty {
    padding: 16px;
    color: var(--text-gray);
    font-size: 13px;
    text-align: center;
}

.search-item {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-light); }

.search-model {
    font-weight: 700;
    color: var(--accent);
    font-size: 12px;
}

.search-name {
    display: block;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.search-desc {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
}

/* ---- Nav Toggle (mobile) ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: var(--transition);
}

/* ---- Navigation ---- */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    margin-left: auto;
}

.nav > a,
.nav .dropdown-toggle {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
}

.nav > a:hover,
.nav > a.active,
.nav .dropdown-toggle:hover {
    color: #fff;
}

.nav > a.active {
    border-bottom: 2px solid var(--accent);
}

/* ---- Dropdown ---- */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 2000;
    padding: 6px 0;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-menu a:hover { background: var(--bg-light); color: var(--accent); }
.dropdown-menu a.active { color: var(--accent); font-weight: 600; }

/* ---- Language Switch ---- */
.lang-switch {
    position: relative;
    flex-shrink: 0;
}

#lang-toggle {
    cursor: pointer;
    color: var(--text-light);
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: var(--primary-light);
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}

#lang-toggle:hover { border-color: var(--accent); color: #fff; }

.dropdown-arrow { font-size: 10px; margin-left: 2px; }

.lang-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    display: none;
    z-index: 2000;
}

.lang-menu.active { display: block; }

.lang-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    transition: var(--transition);
}

.lang-menu a:hover { background: var(--bg-light); }
.lang-menu a.active { color: var(--accent); font-weight: 600; }

/* ---- Mobile menu ---- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    
    .search-input-group input:focus { width: 100px; }
    
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        bottom: 0;
        background: var(--primary);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        display: none;
        overflow-y: auto;
        z-index: 1001;
        height: auto;
    }
    
    .nav.open { display: flex; }
    
    .nav > a,
    .nav .dropdown-toggle {
        padding: 14px 0;
        border-bottom: 1px solid var(--border-dark);
        height: auto;
    }
    
    .nav > a.active { border-bottom: 2px solid var(--accent); }
    
    .dropdown { height: auto; flex-direction: column; align-items: stretch; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        min-width: auto;
        display: none;
        padding-left: 16px;
    }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu a { color: var(--text-light); padding: 10px 0; }
}

/* ---- Hero ---- */
.hero {
    margin-top: var(--header-h);
    min-height: 72vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

/* Split layout */
.hero-split {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-left {
    flex: 0 0 45%;
    max-width: 45%;
    text-align: left;
    padding: 40px 0;
}

.hero-left h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-left .hero-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 460px;
    margin-left: 0;
    margin-right: 0;
}

.hero-left .hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrap {
    position: relative;
    max-width: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient blend mask — left side of image fades into dark */
.hero-image-wrap::before {
    content: 'A';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, transparent 60%, var(--primary) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Warm orange glow behind image */
.hero-right::after {
    content: 'A';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(ellipse at center, rgba(241,90,36,0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative dot pattern */
.hero::before {
    content: 'A';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
    }
    .hero-left {
        flex: none;
        max-width: 100%;
        text-align: center;
        padding-bottom: 20px;
    }
    .hero-left .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-left .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrap {
        max-width: 70%;
    }
    .hero-image-wrap::before {
        background: linear-gradient(to top, transparent 40%, var(--primary) 100%);
    }
}

@media (max-width: 500px) {
    .hero-image-wrap {
        max-width: 100%;
    }
    .hero-left h1 { font-size: 1.8rem; }
    .hero { min-height: 60vh; }
}

/* ---- Buttons ---- */
.btn, .btn-outline {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-mid) 100%);
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn {
    background: var(--accent);
    color: #fff;
}
.btn:hover { background: var(--accent-light); }

.btn-outline {
    border: 1px solid var(--accent);
    color: #fff;
    background: transparent;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.btn-link:hover { gap: 8px; }

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.btn-submit:hover { background: var(--accent-light); }

/* ---- Sections ---- */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 36px;
    font-size: 0.95rem;
}

/* ---- BG variants ---- */
.bg-light { background: var(--bg-light); }
.bg-white { background: #fff; }

/* ---- Page Header ---- */
.page-header {
    margin-top: var(--header-h);
    padding: 50px 0;
    background: var(--primary);
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-gray);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--text-light); }

/* ---- Categories Grid ---- */
.categories-section {
    padding: 80px 0;
}

.categories-section .section-subtitle {
    margin-bottom: 44px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

@media (max-width: 900px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .categories-grid { grid-template-columns: 1fr; }
}

.cat-cell {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 24px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    min-height: 90px;
}

.cat-cell:hover {
    background: var(--bg-light);
    box-shadow: inset 0 0 0 1px var(--accent);
    border-color: var(--accent);
    position: relative;
    z-index: 1;
}

.cat-cell-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.cat-cell:hover .cat-cell-icon {
    opacity: 1;
}

.cat-cell-body {
    flex: 1;
    min-width: 0;
}

.cat-cell-body h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.cat-cell-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cat-cell-tags li {
    font-size: 11px;
    color: var(--text-gray);
    padding: 1px 8px;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.cat-cell-arrow {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-light);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.2s ease;
}

.cat-cell:hover .cat-cell-arrow {
    opacity: 1;
    color: var(--accent);
    transform: translateX(0);
}

/* ---- Product Grid (category pages) ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.product-card > a { display: block; }

.card-img {
    background: var(--bg-light);
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img img { transform: scale(1.03); }

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.card-body .model {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.card-body p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.feature-item .icon { font-size: 2.2rem; margin-bottom: 12px; }

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ---- Stats ---- */
.stats-row {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ---- CTA ---- */
.cta-section {
    background: var(--primary);
    padding: 56px 20px;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-section p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto 24px;
}

/* ---- Contact Layout ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; gap: 28px; }
}

.contact-info h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-item .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
}

.info-item .value {
    font-size: 14px;
    color: var(--text);
}

.info-item .value a { color: var(--accent); }
.info-item .value a:hover { text-decoration: underline; }

/* ---- Inquiry Form ---- */
.inquiry-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: var(--transition);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(241,90,36,0.12);
    outline: none;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
    color: var(--text-light);
}

.inquiry-form input[readonly] {
    background: var(--bg-light);
    color: var(--text-gray);
}

.inquiry-form textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 12px;
}

/* ---- Product Detail Layout ---- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .product-detail-layout { grid-template-columns: 1fr; }
}

.product-gallery .main-img {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-gallery .main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.product-brand {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.product-model-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* ---- Specs Table ---- */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.specs-table th {
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.specs-table td {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
}

.specs-table tr:nth-child(even) td {
    background: var(--bg-light);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--primary);
    width: 45%;
}

/* ---- Product Description (rich area) ---- */
.product-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
}

.product-description ul {
    list-style: disc;
    padding-left: 20px;
    margin: 8px 0;
}

.product-description ul li {
    margin-bottom: 4px;
}

.product-description img {
    margin: 16px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ---- Related Products ---- */
.related-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.related-section h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ---- Product Inquiry Section ---- */
.product-inquiry {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.product-inquiry h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ---- News Grid ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.news-card .card-img {
    aspect-ratio: 16/9;
}

.news-card .card-body {
    padding: 20px;
}

.news-card .date {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.news-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ---- Error Page ---- */
.error-page {
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-page h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.error-page h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 8px 0 12px;
}

.error-page p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 48px 0 20px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col p {
    line-height: 1.7;
}

.footer-col a {
    display: block;
    margin-bottom: 6px;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
}

/* ---- Misc ---- */
.no-products {
    padding: 40px;
    text-align: center;
    color: var(--text-gray);
/* ---- About Page ---- */
.about-intro {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    max-width: 680px;
}

.about-text p {
    color: var(--text-gray);
    line-height: 1.9;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.about-stats {
    flex-shrink: 0;
    padding-top: 50px;
}

.about-stats .stats-row {
    flex-direction: column;
    gap: 20px;
}

.about-stats .stat-item {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
}

.about-stats .stat-number {
    min-width: 60px;
}

@media (max-width: 768px) {
    .about-intro {
        flex-direction: column;
        gap: 20px;
    }
    .about-stats {
        padding-top: 0;
        width: 100%;
    }
    .about-stats .stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }
    .about-stats .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}

/* Features list (about page) */
.features-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-block:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.feature-block-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.feature-block-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.feature-block-body p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Mission cards */
.about-mission {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .about-mission {
        grid-template-columns: 1fr;
    }
}

.mission-card {
    padding: 28px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-top: 3px solid var(--accent);
}

.mission-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.mission-card p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.7;
}


}







/* Mobile & Tablet Optimization */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: transparent; }
  input, select, textarea, button { font-size: 16px !important; }
  .site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 1000; }
}
