/* ============================================================
   Hydrogen Power Generators - Main Stylesheet
   Modern Industrial Design | Deep Blue + Cyan
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #0a2463;
    --color-primary-light: #1e3a8a;
    --color-primary-dark: #051441;
    --color-accent: #00d4ff;
    --color-accent-light: #4de8ff;
    --color-accent-dark: #00a8cc;
    --color-bg: #f5f7fa;
    --color-bg-dark: #e8ecf1;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-light: #4a5568;
    --color-text-lighter: #718096;
    --color-border: #e2e8f0;
    --color-success: #38a169;
    --color-warning: #d69e2e;
    --color-error: #e53e3e;
    --gradient-primary: linear-gradient(135deg, #0a2463 0%, #1e3a8a 50%, #00d4ff 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-dark: linear-gradient(180deg, #051441 0%, #0a2463 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent-dark); }

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

ul, ol { list-style-position: inside; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-dark);
    margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo::before {
    content: "H2";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 900;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher a {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    color: var(--color-text-light);
}

.lang-switcher a.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.lang-switcher a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.lang-switcher a.active:hover {
    color: white;
}

/* --- Mobile Menu Toggle --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
    background: var(--gradient-dark);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(0, 212, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* --- Section Styling --- */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* --- Brand Grid --- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.brand-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.brand-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.brand-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.brand-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.brand-country {
    font-size: 0.8rem;
    color: var(--color-text-lighter);
    margin-top: 0.25rem;
}

/* --- Technology Cards --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tech-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.tech-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.tech-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.tech-stat {
    text-align: center;
    flex: 1;
}

.tech-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
}

.tech-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.product-card-header .brand-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.product-card-header h3 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 0;
}

.tech-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

.product-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-specs {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.product-specs li:last-child { border-bottom: none; }

.product-specs .spec-label {
    color: var(--color-text-light);
}

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

.product-card-actions {
    display: flex;
    gap: 0.5rem;
}

.product-card-actions .btn { flex: 1; }

/* --- Filter Sidebar --- */
.filter-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* --- Product Detail --- */
.product-detail {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.product-hero {
    background: var(--gradient-dark);
    color: white;
    padding: 3rem;
}

.product-hero .breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.product-hero .breadcrumb a { color: var(--color-accent); }

.product-hero h1 { color: white; margin-bottom: 0.5rem; }

.product-hero .product-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.product-hero-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-hero-badges .tech-badge {
    background: rgba(0, 212, 255, 0.2);
}

.product-detail-body {
    padding: 2rem 3rem;
}

.product-section {
    margin-bottom: 2.5rem;
}

.product-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

/* --- Spec Table --- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.spec-table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-primary);
    width: 250px;
}

.spec-table tr:hover { background: var(--color-bg); }

/* --- Compare Table --- */
.compare-section {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: var(--color-bg);
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 200px;
}

.compare-table th {
    background: var(--color-primary);
    color: white;
    font-size: 1rem;
}

.compare-table th:first-child {
    background: var(--color-primary-dark);
}

.compare-table tr:hover { background: rgba(0, 212, 255, 0.03); }

.compare-table .diff-row {
    background: rgba(255, 193, 7, 0.1);
}

.compare-table .diff-row:hover {
    background: rgba(255, 193, 7, 0.15);
}

.compare-product-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.compare-product-brand {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: normal;
}

.compare-add-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-lighter);
    cursor: pointer;
    transition: var(--transition);
}

.compare-add-col:hover { color: var(--color-primary); }

.compare-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light);
}

.compare-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* --- Manufacturer Cards --- */
.mfr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.mfr-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
}

.mfr-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.mfr-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 900;
    flex-shrink: 0;
}

.mfr-info { flex: 1; }

.mfr-info h3 {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.mfr-country {
    font-size: 0.85rem;
    color: var(--color-text-lighter);
    margin-bottom: 0.5rem;
}

.mfr-tech-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.mfr-tech-tag {
    padding: 0.15rem 0.5rem;
    background: var(--color-bg);
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mfr-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Manufacturer Detail --- */
.mfr-detail-hero {
    background: var(--gradient-dark);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.mfr-detail-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.mfr-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.mfr-detail-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: var(--shadow-xl);
}

.mfr-detail-info h1 { color: white; margin-bottom: 0.5rem; }
.mfr-detail-info .tagline { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1rem; }

.mfr-detail-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.mfr-detail-stat {
    text-align: center;
}

.mfr-detail-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
}

.mfr-detail-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.mfr-detail-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px;
}

/* --- Guides --- */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.guide-card-header {
    background: var(--gradient-accent);
    padding: 2rem 1.5rem;
    color: white;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.guide-card-icon {
    font-size: 2.5rem;
}

.guide-card-body {
    padding: 1.5rem;
}

.guide-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent-dark);
    margin-bottom: 0.5rem;
}

.guide-card h3 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.guide-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-lighter);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

/* --- Guide Detail --- */
.guide-detail {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.guide-detail .guide-category {
    margin-bottom: 1rem;
}

.guide-detail h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.guide-detail .guide-meta {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.guide-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.guide-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
}

.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.guide-content th,
.guide-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.guide-content th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-primary);
}

/* --- About & Contact --- */
.about-section,
.contact-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info-item {
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    text-align: center;
}

.contact-info-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-info-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--gradient-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-brand .site-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* --- Compare Floating Bar --- */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.compare-bar.visible {
    transform: translateY(0);
}

.compare-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.compare-bar-items {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.compare-bar-item {
    background: var(--color-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-bar-item .remove {
    cursor: pointer;
    color: var(--color-text-lighter);
    font-weight: bold;
}

.compare-bar-item .remove:hover {
    color: var(--color-error);
}

/* --- Responsive --- */
@media (max-width: 968px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .hero h1 { font-size: 2.2rem; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-md);
        padding: 1rem 20px;
    }
    
    .main-nav.open { display: block; }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--color-border);
    }
    
    .main-nav li:last-child { border-bottom: none; }
    
    .main-nav a {
        display: block;
        padding: 0.75rem 0;
    }
    
    .mobile-toggle { display: block; }
    
    .lang-switcher { display: none; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .mfr-detail-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .mfr-detail-stats {
        justify-content: center;
    }
    
    .product-detail-body {
        padding: 1.5rem;
    }
    
    .product-hero {
        padding: 2rem 1.5rem;
    }
    
    .guide-detail {
        padding: 2rem 1.5rem;
    }
    
    .about-section,
    .contact-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    
    .section { padding: 2.5rem 0; }
    
    .product-grid,
    .mfr-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mfr-card {
        flex-direction: column;
        text-align: center;
    }
    
    .mfr-logo { margin: 0 auto; }
    
    .compare-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }
}
