/* WearableBeat - Professional Tech News Design */
/* Inspired by Engadget, Tom's Hardware, The Verge */

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

:root {
    /* Brand Colors */
    --color-brand: #00d4aa;
    --color-brand-dark: #00b894;
    --color-brand-light: #00f5c4;

    /* Accent Colors */
    --color-accent-news: #3498db;
    --color-accent-review: #9b59b6;
    --color-accent-guide: #e67e22;
    --color-accent-comparison: #e74c3c;

    /* Neutral Colors */
    --color-text: #1a1a2e;
    --color-text-secondary: #4a4a5a;
    --color-text-muted: #6c6c7c;
    --color-bg: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-dark: #1a1a2e;
    --color-bg-darker: #0f0f1a;
    --color-border: #e8e8ee;
    --color-border-light: #f0f0f5;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --container-max: 1280px;
    --container-narrow: 800px;
    --spacing-section: 60px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===== Layout ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* ===== Header ===== */
.site-header {
    background: var(--color-bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    color: white;
}

.logo img {
    display: block;
    width: min(360px, 42vw);
    height: auto;
}

.logo:hover {
    color: var(--color-brand);
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    gap: 8px;
    min-width: 280px;
}

.header-search input {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.5);
}

.main-nav {
    padding: 12px 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav li {
    flex: 0 0 auto;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

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

.nav-icon {
    width: 18px;
    height: 18px;
}

/* ===== Blog-Style Nav Dropdown (No JS) ===== */
.nav-details {
    position: relative;
}

.nav-details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-details summary::-webkit-details-marker {
    display: none;
}

.nav-details summary:hover,
.nav-details summary.active {
    color: var(--color-brand);
}

.nav-caret {
    width: 16px;
    height: 16px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.nav-details[open] .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    max-height: 420px;
    overflow: auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    z-index: 1000;
}

.nav-dropdown-overlay {
    display: none;
    position: fixed;
    inset: 0;
    /* Sit above page content so clicks close the menu, but below the sticky header. */
    z-index: 900;
    background: rgba(0, 0, 0, 0);
}

.nav-details[open] .nav-dropdown-overlay {
    display: block;
}

.nav-dropdown-menu a,
.nav-dropdown-menu .nav-dropdown-empty {
    display: block;
    padding: 10px 10px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
}

/* (z-index handled in the primary .nav-dropdown-menu rule) */

.nav-dropdown-menu a:hover {
    background: var(--color-bg-secondary);
    color: var(--color-brand-dark);
}

.nav-dropdown-divider {
    border: 0;
    height: 1px;
    background: var(--color-border);
    margin: 8px 6px;
}

.nav-dropdown-empty {
    color: var(--color-text-muted);
}

/* Focus states (keyboard) */
.main-nav a:focus-visible,
.nav-details summary:focus-visible,
.nav-dropdown-menu a:focus-visible {
    outline: 3px solid rgba(0, 212, 170, 0.45);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ===== Blog Feed Layout ===== */
.post-featured {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 28px;
}

.post-featured-media {
    display: block;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-featured-body {
    padding: 22px 22px 18px;
}

.post-featured-body h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 12px 0 10px;
}

.post-featured-body p {
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.home-quad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-item {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 18px;
    align-items: start;
    padding: 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.post-item-media {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
}

.post-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,212,170,0.18) 0%, rgba(155,89,182,0.18) 100%);
}

.post-item-body h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 10px 0 8px;
}

.post-item-body p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-more {
    margin-top: 22px;
}

/* Category index cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    display: block;
    padding: 22px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.category-count {
    color: var(--color-brand-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    padding: 48px 0;
}

/* New Hero Featured Layout */
.hero-featured-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 32px;
}

.hero-image-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-content-container {
    color: white;
}

.hero-content-container h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 16px 0;
}

.hero-content-container h1 a {
    color: white;
}

.hero-content-container h1 a:hover {
    color: var(--color-brand);
}

.hero-excerpt {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-content-container .hero-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Secondary Hero Cards */
.hero-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hero-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.hero-card-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.hero-card-content {
    padding: 20px;
}

.hero-card-content .category-badge {
    margin-bottom: 12px;
}

.hero-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

/* Legacy hero styles (keeping for compatibility) */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.hero-featured {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-featured-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
    z-index: 0;
}

.hero-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-featured-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
}

.category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.badge-news { background: var(--color-accent-news); color: white; }
.badge-review { background: var(--color-accent-review); color: white; }
.badge-guide { background: var(--color-accent-guide); color: white; }
.badge-comparison { background: var(--color-accent-comparison); color: white; }
.badge-meta-review { background: #16a085; color: white; }
.badge-how-to { background: #2c3e50; color: white; }

.hero-featured h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-featured h2 a {
    color: white;
}

.hero-featured h2 a:hover {
    color: var(--color-brand);
}

.hero-featured p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-sidebar-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #2d3436;
    flex: 1;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-sidebar-card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
}

.hero-sidebar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
}

.hero-sidebar-card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
}

.hero-sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.35;
}

.hero-sidebar-card h3 a:hover {
    color: var(--color-brand);
}

.hero-sidebar-card .category-badge {
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 10px;
}

/* ===== Section Styling ===== */
.section {
    padding: var(--spacing-section) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--color-brand);
    border-radius: 2px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-brand);
    transition: gap 0.2s;
}

.view-all:hover {
    gap: 10px;
    color: var(--color-brand-dark);
}

.view-all svg {
    width: 16px;
    height: 16px;
}

.articles-list-intro {
    margin-bottom: 32px;
}

.articles-list-intro h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.articles-list-intro p {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== Article Cards ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card-image {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

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

.article-card-image .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.article-card-content {
    padding: 20px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--color-text);
}

.article-card h3 a:hover {
    color: var(--color-brand-dark);
}

.article-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.article-card-meta time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== Featured Products ===== */
.products-section {
    background: var(--color-bg-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,170,0.1) 0%, rgba(0,184,148,0.1) 100%);
}

.product-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.product-card-content {
    padding: 20px;
}

.product-brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-brand-dark);
    margin-bottom: 6px;
}

.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.product-card h3 a:hover {
    color: var(--color-brand-dark);
}

.product-tagline {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

/* ===== Comparisons Section ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.comparison-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.comparison-card .category-badge {
    margin-bottom: 16px;
}

.comparison-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-text);
}

.comparison-card h3 a:hover {
    color: var(--color-brand-dark);
}

.comparison-card > p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.comparisons-list-page {
    background: linear-gradient(180deg, #f4f6fb 0%, #ffffff 100%);
    border-top: 1px solid var(--color-border-light);
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-card-polished {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.comparison-card-polished .comparison-card-content {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
}

.comparison-card-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comparison-card-polished .category-badge {
    margin-bottom: 0;
}

.comparison-card-polished h2 {
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.comparison-card-polished h2 a:hover {
    color: var(--color-brand-dark);
}

.comparison-card-polished p {
    margin-bottom: 14px;
}

.comparison-card-polished .comparison-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-empty {
    padding: 34px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--color-border);
    background: #fff;
    text-align: center;
}

.comparison-empty h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.comparison-empty p {
    color: var(--color-text-secondary);
}

.comparison-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-secondary);
}

.product-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-brand);
}

/* ===== Brands Section ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.brand-card:hover {
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-bg-dark);
    color: white;
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 16px;
}

.footer-logo img {
    display: block;
    width: min(320px, 100%);
    height: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: white;
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--color-brand);
}

/* ===== Page Header ===== */
.page-header {
    background: var(--color-bg-dark);
    padding: 48px 0;
}

.page-header .breadcrumb {
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

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

.breadcrumb a:hover {
    color: var(--color-brand);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Article Detail ===== */
.article-header {
    background: var(--color-bg-dark);
    padding: 48px 0 60px;
}

.article-header .container {
    max-width: 900px;
}

.article-header .category-badge {
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-featured-image {
    margin-top: -40px;
    margin-bottom: 40px;
}

.article-featured-image .container {
    max-width: 1000px;
}

.article-featured-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-content {
    padding: 40px 0 60px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.main-content {
    min-width: 0;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
}

.review-section-anchor {
    scroll-margin-top: 110px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--color-text);
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 36px 0 16px;
    color: var(--color-text);
}

.article-body ul,
.article-body ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body blockquote {
    border-left: 4px solid var(--color-brand);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--color-bg-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* ===== Sidebar ===== */
.sidebar {
    position: sticky;
    top: var(--sidebar-sticky-top, 170px);
    height: fit-content;
}

.sidebar-rotator {
    position: relative;
    display: grid;
    gap: 16px;
}

.sidebar-rotator.is-animated {
    min-height: 380px;
}

.sidebar-rotator.is-animated .sidebar-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(26px);
    pointer-events: none;
    transition: opacity 0.34s ease, transform 0.34s ease;
}

.sidebar-rotator.is-animated .sidebar-card.is-before {
    transform: translateY(-26px);
}

.sidebar-rotator.is-animated .sidebar-card.is-after {
    transform: translateY(26px);
}

.sidebar-rotator.is-animated .sidebar-card.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sidebar-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.sidebar-list {
    list-style: none;
    display: grid;
}

.sidebar-list li + li {
    border-top: 1px solid var(--color-border-light);
}

.sidebar-list a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.sidebar-list li:last-child a {
    padding-bottom: 0;
}

.sidebar-list a:hover {
    color: var(--color-brand-dark);
    transform: translateX(2px);
}

.sidebar-list-compact a {
    padding: 10px 0;
}

.sidebar-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

.sidebar-item-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.sidebar-action {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-brand-dark);
}

.sidebar-action::after {
    content: '→';
    transition: transform 0.2s ease;
}

.sidebar-action:hover::after {
    transform: translateX(2px);
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.filter-btn.active {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: white;
}

/* ===== Devices (Catalogue) ===== */
.devices-hero {
    background:
        radial-gradient(1200px 500px at 20% 20%, rgba(0, 212, 170, 0.22), rgba(0, 212, 170, 0) 60%),
        radial-gradient(900px 450px at 85% 30%, rgba(52, 152, 219, 0.18), rgba(52, 152, 219, 0) 55%),
        linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    padding: 54px 0;
}

.devices-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
}

.devices-hero-copy h1 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.devices-hero-copy p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    max-width: 58ch;
}

.devices-hero-stats {
    display: flex;
    gap: 12px;
}

.devices-hero-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 16px 18px;
    min-width: 140px;
    text-align: right;
}

.devices-hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.devices-hero-stat-label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.devices-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.devices-page-btn {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.devices-page-btn:hover {
    border-color: rgba(0, 212, 170, 0.45);
    color: var(--color-brand-dark);
}

.devices-page-btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.devices-page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

.devices-page-num,
.devices-page-ellipsis {
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-secondary);
}

.devices-page-num:hover {
    border-color: rgba(0, 212, 170, 0.45);
    color: var(--color-brand-dark);
}

.devices-page-num.is-current {
    background: var(--color-bg-dark);
    border-color: var(--color-bg-dark);
    color: white;
}

.devices-toolbar {
    margin-top: -22px;
    margin-bottom: 18px;
}

.devices-toolbar-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 14px;
    box-shadow: var(--shadow-md);
}

.search-toolbar {
    margin-top: -22px;
    margin-bottom: 18px;
}

.search-toolbar-form {
    grid-template-columns: 1fr auto;
    max-width: 860px;
    margin: 0 auto;
}

.search-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

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

.search-aside .devices-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.search-aside .device-card {
    grid-column: auto;
}

.search-aside .device-card-media {
    aspect-ratio: 16 / 8;
}

.search-aside .device-card-img {
    padding: 12px;
}

.search-aside .device-card-placeholder-mark {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    font-size: 26px;
}

.search-aside .device-chip {
    padding: 5px 8px;
    font-size: 10px;
}

.search-aside .device-card-body {
    padding: 12px;
}

.search-aside .device-card-title {
    font-size: 14px;
    margin-bottom: 6px;
}

.search-aside .device-card-tagline {
    font-size: 12px;
    margin-bottom: 10px;
    min-height: 0;
}

.search-aside .device-card-price {
    font-size: 16px;
}

.search-empty {
    margin-top: 22px;
    color: var(--color-text-secondary);
}

@media (min-width: 1000px) {
    .search-layout {
        grid-template-columns: 1.8fr 1fr;
        align-items: start;
    }
}

.devices-search input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.devices-search input:focus {
    border-color: rgba(0, 212, 170, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.12);
}

.devices-selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.devices-selects select {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    font-size: 13px;
    color: var(--color-text);
    outline: none;
}

.devices-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.devices-apply {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--color-bg-dark);
    color: white;
    border: 1px solid var(--color-bg-dark);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.devices-apply:hover {
    transform: translateY(-1px);
    background: #11112a;
}

.devices-clear {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.devices-clear:hover {
    border-color: rgba(0, 212, 170, 0.5);
    color: var(--color-brand-dark);
}

.devices-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.device-card {
    grid-column: span 3;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.device-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 170, 0.45);
    box-shadow: var(--shadow-hover);
}

.device-card-link {
    display: block;
    height: 100%;
}

.device-card-top {
    position: relative;
    border-bottom: 1px solid var(--color-border-light);
}

.device-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    z-index: 2;
}

.device-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-text-secondary);
}

.device-chip-status.status-available {
    background: rgba(0, 212, 170, 0.18);
    border-color: rgba(0, 212, 170, 0.35);
    color: #0b6a58;
}

.device-chip-status.status-announced {
    background: rgba(52, 152, 219, 0.18);
    border-color: rgba(52, 152, 219, 0.35);
    color: #1f5b8a;
}

.device-chip-status.status-discontinued {
    background: rgba(231, 76, 60, 0.14);
    border-color: rgba(231, 76, 60, 0.3);
    color: #8b2c22;
}

.device-card-media {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(520px 240px at 20% 20%, rgba(0, 212, 170, 0.14), rgba(0, 212, 170, 0) 60%),
        radial-gradient(460px 220px at 80% 25%, rgba(52, 152, 219, 0.11), rgba(52, 152, 219, 0) 55%),
        linear-gradient(135deg, #f7fafc 0%, #eef3f7 100%);
}

.device-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    filter: drop-shadow(0 16px 35px rgba(15, 15, 26, 0.18));
}

.device-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.device-card-placeholder-mark {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0f162b 100%);
    color: rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.8px;
    box-shadow: 0 18px 45px rgba(15, 15, 26, 0.18);
}

.device-card-body {
    padding: 16px;
}

.device-card-brand {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-brand-dark);
    margin-bottom: 6px;
}

.device-card-title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.device-card-tagline {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.device-card-tagline-muted {
    color: var(--color-text-muted);
}

.device-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.device-card-price {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--color-text);
}

.device-card-price-muted {
    color: var(--color-text-muted);
    font-weight: 700;
}

.device-card-date {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.devices-empty {
    grid-column: 1 / -1;
    padding: 40px 22px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
}

.devices-empty h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.devices-empty p {
    color: var(--color-text-secondary);
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .devices-hero-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .devices-hero-stat {
        text-align: left;
        min-width: 0;
    }

    .devices-toolbar-form {
        grid-template-columns: 1fr;
    }

    .search-toolbar-form {
        max-width: none;
    }

    .search-main .article-grid {
        grid-template-columns: 1fr;
    }

    .devices-actions {
        justify-content: flex-start;
    }

    .device-card {
        grid-column: span 6;
    }

    .devices-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .devices-page-numbers {
        order: 3;
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .devices-hero-copy h1 {
        font-size: 34px;
    }

    .devices-selects {
        justify-content: flex-start;
    }

    .devices-selects select {
        width: 100%;
    }

    .device-card {
        grid-column: span 12;
    }
}

/* ===== Product Detail ===== */
.product-header {
    background: var(--color-bg-dark);
    padding: 48px 0;
}

.product-header-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: start;
}

.product-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.product-media {
    padding: 36px 0 0;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.product-media .container {
    max-width: 1100px;
}

.product-hero-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
    height: clamp(260px, 34vw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.product-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-media-caption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 24px;
}

.product-gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    border: 1px solid var(--color-border);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.our-review-callout {
    margin-bottom: 28px;
}

.our-review-card {
    display: block;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-accent-review);
    border-radius: var(--radius-xl);
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.our-review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 170, 0.35);
    box-shadow: var(--shadow-md);
}

.our-review-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.our-review-date {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.our-review-card-body h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.our-review-card-body p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.our-review-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-weight: 700;
    color: var(--color-brand-dark);
}

.our-review-cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.our-review-card:hover .our-review-cta::after {
    transform: translateX(3px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.sidebar-muted {
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.sidebar-tight {
    margin-bottom: 8px;
}

.product-info .product-brand {
    font-size: 13px;
    color: var(--color-brand);
    margin-bottom: 8px;
}

.product-info h1 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.product-variant {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 16px;
}

.product-info .product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand);
}

.product-rating {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    min-width: 160px;
}

.rating-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-brand);
    line-height: 1;
}

.rating-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-top: 8px;
}

.rating-source {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.product-content {
    padding: 48px 0;
}

.product-summary h2,
.product-features h2,
.product-description h2,
.product-specs h2,
.external-reviews h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-summary h2::before,
.product-features h2::before,
.product-description h2::before,
.product-specs h2::before,
.external-reviews h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--color-brand);
    border-radius: 2px;
}

.product-summary,
.product-features,
.product-description,
.product-specs,
.external-reviews {
    margin-bottom: 40px;
}

.product-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.product-features li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: var(--color-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== Spec Table ===== */
.spec-group {
    margin-bottom: 24px;
}

.spec-group h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--color-brand);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--color-border-light);
}

.spec-table tr:nth-child(even) {
    background: var(--color-bg-secondary);
}

.spec-table th,
.spec-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.spec-table th {
    font-weight: 500;
    color: var(--color-text-secondary);
    width: 40%;
}

.spec-table td {
    font-weight: 500;
    color: var(--color-text);
}

/* ===== External Reviews ===== */
.review-list {
    display: grid;
    gap: 16px;
}

.review-card {
    background: var(--color-bg-secondary);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-brand);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-source {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
}

.review-rating {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-brand);
}

.review-verdict {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* ===== Comparison Detail ===== */
.comparison-header {
    background: var(--color-bg-dark);
    padding: 48px 0;
}

.comparison-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.comparison-excerpt {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.comparison-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.comparison-products-header {
    padding: 40px 0;
    background: var(--color-bg-secondary);
}

.products-compared {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.product-compared {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.product-compared:hover {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-md);
}

.product-compared .product-brand {
    margin-bottom: 8px;
}

.product-compared h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-compared .product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 16px;
}

.comparison-product-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    /* Break out of container-narrow (800px) */
    width: calc(100vw - 40px);
    max-width: 1080px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.comparison-product-figure {
    margin: 0;
    text-align: center;
}

.comparison-product-figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.comparison-product-figure figcaption {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

@media (max-width: 600px) {
    .comparison-product-images {
        grid-template-columns: 1fr;
    }
}

.comparison-specs {
    padding: 48px 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

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

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border-light);
}

.comparison-table thead th {
    background: var(--color-bg-dark);
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.comparison-table thead th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--color-bg-secondary);
}

.comparison-table .spec-name {
    font-weight: 600;
    color: var(--color-text);
}

.comparison-content {
    padding: 48px 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-brand-dark);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

/* ===== Status Badges ===== */
.product-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-available {
    background: rgba(0, 212, 170, 0.15);
    color: var(--color-brand-dark);
}

.status-announced {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}

.status-discontinued {
    background: rgba(108, 108, 124, 0.15);
    color: var(--color-text-muted);
}

/* ===== Brand List ===== */
.brand-grid-large {
    grid-template-columns: repeat(4, 1fr);
}

.brand-card-large {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    text-align: left;
}

.brand-card-large h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.brand-card-large p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-count {
    font-size: 13px;
    color: var(--color-brand);
    font-weight: 600;
}

/* ===== Page Content ===== */
.page-content {
    padding: 48px 0;
}

.page-content .container {
    max-width: 800px;
}

.page-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
}

.page-body p {
    margin-bottom: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .hero-featured-new {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-image-container {
        aspect-ratio: 16/9;
        max-height: 400px;
    }

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

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

    .hero-sidebar {
        flex-direction: row;
    }

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

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-grid {
        grid-template-columns: repeat(6, 1fr);
    }

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

@media (max-width: 900px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .sidebar-rotator.is-animated {
        min-height: 0 !important;
    }

    .sidebar-rotator.is-animated .sidebar-card {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

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

    .product-rating {
        margin-top: 24px;
    }

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

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

    .product-hero-image {
        height: clamp(220px, 52vw, 340px);
    }

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

    .comparison-card-polished h2 {
        font-size: 25px;
    }

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

@media (max-width: 768px) {
    :root {
        --spacing-section: 40px;
    }

    .header-search {
        display: none;
    }

    .main-nav ul {
        gap: 20px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .main-nav a,
    .nav-details summary {
        padding: 6px 0;
    }

    .main-nav ul::-webkit-scrollbar {
        height: 0;
    }

    .nav-dropdown-menu {
        position: static;
        margin-top: 10px;
        box-shadow: none;
        max-height: none;
    }

    .post-item {
        grid-template-columns: 1fr;
    }

    .post-item-media {
        aspect-ratio: 16/9;
    }

    .home-quad-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content-container h1 {
        font-size: 28px;
    }

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

    .hero-sidebar {
        flex-direction: column;
    }

    .hero-featured {
        min-height: 350px;
    }

    .hero-featured h2 {
        font-size: 24px;
    }

    .article-grid,
    .product-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-card-polished .comparison-card-content {
        padding: 20px;
    }

    .comparison-card-polished h2 {
        font-size: 22px;
    }

    .comparison-card-polished .comparison-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .page-header h1,
    .article-header h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .brand-grid-large {
        grid-template-columns: 1fr;
    }

    .products-compared {
        grid-template-columns: 1fr;
    }
}

/* ===== PROSE / MARKDOWN CONTENT STYLES ===== */
.prose {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

.prose > *:first-child {
    margin-top: 0;
}

.prose > *:last-child {
    margin-bottom: 0;
}

/* Headings */
.prose h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-brand);
}

.prose h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 36px 0 16px;
}

.prose h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 28px 0 12px;
}

/* Paragraphs */
.prose p {
    margin: 0 0 20px;
}

/* Links */
.prose a {
    color: var(--color-brand-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--color-brand);
}

/* Lists */
.prose ul,
.prose ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.prose li::marker {
    color: var(--color-brand);
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin: 8px 0;
}

/* Blockquotes */
.prose blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-brand);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-text-light);
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.prose table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prose thead {
    background: var(--color-bg-dark);
    color: white;
}

.prose th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prose td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.prose tbody tr:last-child td {
    border-bottom: none;
}

.prose tbody tr:nth-child(even) {
    background: var(--color-bg-light);
}

.prose tbody tr:hover {
    background: rgba(0, 212, 170, 0.05);
}

/* Code */
.prose code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    background: var(--color-bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    color: #e74c3c;
}

.prose pre {
    margin: 28px 0;
    padding: 20px;
    background: var(--color-bg-dark);
    border-radius: 8px;
    overflow-x: auto;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
}

/* Horizontal Rule */
.prose hr {
    margin: 40px 0;
    border: none;
    border-top: 2px solid var(--color-border);
}

/* Strong / Bold */
.prose strong {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Emphasis / Italic */
.prose em {
    font-style: italic;
}

/* Images */
.prose img {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    margin: 24px auto 8px;
    display: block;
}

/* Image captions - targets italic text after images */
.prose p > img + em {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 8px;
    margin-bottom: 24px;
}

/* Center the paragraph containing image + caption */
.prose p:has(> img) {
    text-align: center;
}

/* Featured image in article header */
.featured-image-figure {
    margin: 0;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.featured-image-caption {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Definition Lists (if used) */
.prose dl {
    margin: 24px 0;
}

.prose dt {
    font-weight: 600;
    color: var(--color-text-dark);
    margin-top: 16px;
}

.prose dd {
    margin-left: 24px;
    margin-bottom: 8px;
}

/* Responsive prose */
@media (max-width: 768px) {
    .prose {
        font-size: 16px;
    }

    .prose h2 {
        font-size: 24px;
        margin: 36px 0 16px;
    }

    .prose h3 {
        font-size: 20px;
        margin: 28px 0 12px;
    }

    .prose table {
        font-size: 14px;
    }

    .prose th,
    .prose td {
        padding: 10px 12px;
    }

    /* Make tables scrollable on mobile */
    .prose table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
