/*
Theme Name: ErgoDesk Essentials
Theme URI: https://example.com/ergodesk-essentials
Author: ErgoDesk Essentials
Author URI: https://example.com
Description: Ein professionelles WordPress-Theme für Amazon Affiliate Websites, optimiert für ergonomische Home-Office-Produkte. Responsives Design mit Produktkarten, Affiliate-Bannern und SEO-Optimierung.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ergodesk-essentials
Tags: blog, e-commerce, one-column, custom-menu, featured-images, translation-ready, custom-logo

ErgoDesk Essentials WordPress Theme
Copyright 2026 ErgoDesk Essentials
*/

/* ============================================
   CSS Custom Properties (from original design)
   ============================================ */
:root {
  --ed-background: #ffffff;
  --ed-foreground: #1e293b;
  --ed-card: #ffffff;
  --ed-card-foreground: #1e293b;
  --ed-primary: #0d9488;
  --ed-primary-foreground: #ffffff;
  --ed-primary-light: #ccfbf1;
  --ed-primary-dark: #0f766e;
  --ed-secondary: #f0fdfa;
  --ed-secondary-foreground: #1e293b;
  --ed-muted: #f1f5f9;
  --ed-muted-foreground: #64748b;
  --ed-accent: #d1fae5;
  --ed-accent-foreground: #0f766e;
  --ed-border: #e2e8f0;
  --ed-ring: #0d9488;
  --ed-destructive: #ef4444;
  --ed-radius: 0.625rem;
  --ed-radius-sm: 0.375rem;
  --ed-radius-lg: 0.875rem;
  --ed-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --ed-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --ed-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --ed-font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ed-font-display: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --ed-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ed-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ed-foreground);
  background-color: var(--ed-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ed-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ed-primary-dark);
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ed-font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ed-foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

/* ============================================
   Layout
   ============================================ */
.ed-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .ed-container { padding: 0 1.5rem; }
}

.ed-section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .ed-section { padding: 4rem 0; }
}

/* ============================================
   Header
   ============================================ */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--ed-border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ed-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.ed-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ed-foreground);
}

.ed-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--ed-primary);
  color: var(--ed-primary-foreground);
}

.ed-logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ed-logo-text {
  font-family: var(--ed-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Desktop Nav */
.ed-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .ed-nav { display: flex; }
}

.ed-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-muted-foreground);
  border-radius: var(--ed-radius-sm);
  transition: color 0.15s, background-color 0.15s;
  text-decoration: none;
}

.ed-nav a:hover,
.ed-nav a.current-menu-item > a,
.ed-nav .current_page_item > a {
  color: var(--ed-foreground);
  background-color: var(--ed-muted);
}

/* Mobile Menu Toggle */
.ed-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--ed-radius-sm);
  color: var(--ed-foreground);
}

.ed-mobile-toggle:hover {
  background-color: var(--ed-muted);
}

@media (min-width: 768px) {
  .ed-mobile-toggle { display: none; }
}

.ed-mobile-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Nav */
.ed-mobile-nav {
  display: none;
  border-top: 1px solid var(--ed-border);
  background: var(--ed-background);
  padding: 1rem;
}

.ed-mobile-nav.is-open {
  display: block;
}

@media (min-width: 768px) {
  .ed-mobile-nav { display: none !important; }
}

.ed-mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-muted-foreground);
  border-radius: var(--ed-radius-sm);
  transition: color 0.15s, background-color 0.15s;
  text-decoration: none;
}

.ed-mobile-nav a:hover {
  color: var(--ed-foreground);
  background-color: var(--ed-muted);
}

/* ============================================
   Hero Section
   ============================================ */
.ed-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdfa, #ffffff, #ecfeff);
}

.ed-hero-inner {
  position: relative;
  padding: 5rem 0 4rem;
}

@media (min-width: 640px) {
  .ed-hero-inner { padding: 7rem 0 5rem; }
}

@media (min-width: 768px) {
  .ed-hero-inner { padding: 9rem 0 6rem; }
}

.ed-hero-content {
  max-width: 42rem;
}

.ed-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .ed-hero h1 { font-size: 3rem; }
}

@media (min-width: 768px) {
  .ed-hero h1 { font-size: 3.75rem; }
}

.ed-hero h1 .ed-text-primary {
  color: var(--ed-primary);
  display: block;
}

.ed-hero p {
  font-size: 1.125rem;
  color: var(--ed-muted-foreground);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 36rem;
}

@media (min-width: 640px) {
  .ed-hero p { font-size: 1.25rem; }
}

.ed-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .ed-hero-actions { flex-direction: row; }
}

/* ============================================
   Buttons
   ============================================ */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--ed-font-sans);
  border-radius: var(--ed-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

.ed-btn svg {
  width: 1rem;
  height: 1rem;
}

.ed-btn-primary {
  background: var(--ed-primary);
  color: var(--ed-primary-foreground);
  border-color: var(--ed-primary);
}

.ed-btn-primary:hover {
  background: var(--ed-primary-dark);
  border-color: var(--ed-primary-dark);
  color: var(--ed-primary-foreground);
}

.ed-btn-outline {
  background: transparent;
  color: var(--ed-foreground);
  border-color: var(--ed-border);
}

.ed-btn-outline:hover {
  background: var(--ed-muted);
}

.ed-btn-ghost {
  background: transparent;
  color: var(--ed-primary);
  border-color: transparent;
}

.ed-btn-ghost:hover {
  background: var(--ed-muted);
}

.ed-btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.ed-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.ed-btn-amazon {
  background: #ff9900;
  color: #111;
  border-color: #e88b00;
  font-weight: 600;
  width: 100%;
}

.ed-btn-amazon:hover {
  background: #e88b00;
  color: #111;
}

.ed-btn-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.ed-btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ============================================
   Cards
   ============================================ */
.ed-card {
  background: var(--ed-card);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.ed-card:hover {
  box-shadow: var(--ed-shadow-lg);
}

.ed-card-interactive:hover {
  transform: translateY(-2px);
}

.ed-card-content {
  padding: 1.5rem;
}

/* Category Cards */
.ed-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .ed-categories-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (min-width: 768px) {
  .ed-categories-grid { grid-template-columns: repeat(4, 1fr); }
}

.ed-category-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.ed-category-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-category-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ed-category-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-foreground);
}

/* Color variants for categories */
.ed-cat-teal { background: #f0fdfa; color: #0f766e; }
.ed-cat-blue { background: #eff6ff; color: #1d4ed8; }
.ed-cat-orange { background: #fff7ed; color: #c2410c; }
.ed-cat-purple { background: #faf5ff; color: #7e22ce; }
.ed-cat-rose { background: #fff1f2; color: #be123c; }
.ed-cat-amber { background: #fffbeb; color: #b45309; }
.ed-cat-green { background: #f0fdf4; color: #15803d; }
.ed-cat-indigo { background: #eef2ff; color: #4338ca; }

/* Article Cards */
.ed-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .ed-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ed-articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.ed-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ed-article-card .ed-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ed-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ed-article-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.ed-article-card:hover h3 {
  color: var(--ed-primary);
}

.ed-article-card .ed-excerpt {
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
  line-height: 1.625;
  flex: 1;
  margin-bottom: 1rem;
}

.ed-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ed-article-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--ed-muted-foreground);
}

.ed-article-date svg {
  width: 0.75rem;
  height: 0.75rem;
}

.ed-read-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-primary);
  transition: gap 0.2s;
}

.ed-article-card:hover .ed-read-more {
  gap: 0.5rem;
}

.ed-read-more svg {
  width: 1rem;
  height: 1rem;
}

/* Product Cards */
.ed-product-card {
  margin-bottom: 1.25rem;
}

.ed-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ed-product-card h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

.ed-product-card .ed-description {
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
  line-height: 1.625;
  margin-bottom: 1rem;
}

.ed-product-price {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ed-product-price span {
  color: var(--ed-primary);
}

.ed-product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.ed-product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
  margin-bottom: 0.375rem;
}

.ed-product-features li svg {
  width: 1rem;
  height: 1rem;
  color: var(--ed-primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* ============================================
   Badges
   ============================================ */
.ed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--ed-radius-sm);
  background: var(--ed-accent);
  color: var(--ed-accent-foreground);
  white-space: nowrap;
}

.ed-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.ed-badge-read-time {
  background: transparent;
  color: var(--ed-muted-foreground);
}

/* ============================================
   Affiliate Disclosure Banner
   ============================================ */
.ed-affiliate-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  background: rgba(209, 250, 229, 0.3);
  font-size: 0.75rem;
  color: var(--ed-muted-foreground);
}

.ed-affiliate-banner svg {
  width: 1rem;
  height: 1rem;
  color: var(--ed-primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.ed-affiliate-banner a {
  color: var(--ed-primary);
  font-weight: 500;
}

.ed-affiliate-banner a:hover {
  text-decoration: underline;
}

/* ============================================
   CTA Section
   ============================================ */
.ed-cta {
  border-radius: 1rem;
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  padding: 2rem;
  text-align: center;
  color: #ffffff;
}

@media (min-width: 640px) {
  .ed-cta { padding: 3rem; }
}

.ed-cta h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.ed-cta p {
  color: rgba(204, 251, 241, 0.9);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* ============================================
   Section Headers
   ============================================ */
.ed-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ed-section-header h2 {
  margin-bottom: 0.75rem;
}

.ed-section-header p {
  color: var(--ed-muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

.ed-section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.ed-section-header-flex h2 {
  margin-bottom: 0.5rem;
}

.ed-section-header-flex p {
  color: var(--ed-muted-foreground);
}

/* ============================================
   Article Single Page
   ============================================ */
.ed-article-hero {
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.6), transparent);
  padding: 2.5rem 0;
}

@media (min-width: 640px) {
  .ed-article-hero { padding: 3.5rem 0; }
}

.ed-article-hero .ed-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
  border-radius: var(--ed-radius-sm);
  text-decoration: none;
}

.ed-article-hero .ed-back-link:hover {
  background: var(--ed-muted);
  color: var(--ed-foreground);
}

.ed-article-hero .ed-back-link svg {
  width: 1rem;
  height: 1rem;
}

.ed-article-hero .ed-article-meta {
  margin-bottom: 1rem;
}

.ed-article-hero h1 {
  font-size: 1.875rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .ed-article-hero h1 { font-size: 2.25rem; }
}

@media (min-width: 768px) {
  .ed-article-hero h1 { font-size: 3rem; }
}

/* Article Content */
.ed-article-content {
  max-width: 48rem;
}

.ed-article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.ed-article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.ed-article-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: var(--ed-muted-foreground);
}

.ed-article-content ul,
.ed-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ed-muted-foreground);
}

.ed-article-content li {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.25rem;
}

.ed-article-content strong {
  color: var(--ed-foreground);
  font-weight: 600;
}

.ed-article-content img {
  border-radius: var(--ed-radius);
  margin: 1.5rem 0;
}

.ed-separator {
  border: none;
  border-top: 1px solid var(--ed-border);
  margin: 2.5rem 0;
}

/* ============================================
   Footer
   ============================================ */
.ed-footer {
  border-top: 1px solid var(--ed-border);
  background: rgba(241, 245, 249, 0.4);
}

.ed-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .ed-footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .ed-footer-inner { grid-template-columns: repeat(3, 1fr); }
}

.ed-footer-brand p {
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
  line-height: 1.625;
}

.ed-footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ed-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ed-footer-links li {
  margin-bottom: 0.5rem;
}

.ed-footer-links a {
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}

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

.ed-footer-disclosure p {
  font-size: 0.75rem;
  color: var(--ed-muted-foreground);
  line-height: 1.625;
}

.ed-footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--ed-border);
  text-align: center;
}

.ed-footer-bottom p {
  font-size: 0.75rem;
  color: var(--ed-muted-foreground);
}

/* ============================================
   WordPress-Specific
   ============================================ */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

.wp-caption img {
  border-radius: var(--ed-radius);
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin: 0 1rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-item img {
  border-radius: var(--ed-radius-sm);
}

/* Navigation Links */
.ed-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ed-border);
}

.nav-previous a,
.nav-next a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-primary);
}

/* Comments */
.ed-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ed-border);
}

.ed-comments h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ed-border);
}

.comment-author {
  font-weight: 600;
  font-size: 0.875rem;
}

.comment-meta {
  font-size: 0.75rem;
  color: var(--ed-muted-foreground);
  margin-bottom: 0.5rem;
}

.comment-content p {
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
}

/* Comment Form */
.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--ed-foreground);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  font-family: var(--ed-font-sans);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--ed-ring);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.comment-form .submit {
  background: var(--ed-primary);
  color: var(--ed-primary-foreground);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--ed-radius);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.comment-form .submit:hover {
  background: var(--ed-primary-dark);
}

/* Pagination */
.ed-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.ed-pagination a,
.ed-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
  text-decoration: none;
  transition: all 0.15s;
}

.ed-pagination a:hover {
  background: var(--ed-muted);
  color: var(--ed-foreground);
}

.ed-pagination .current {
  background: var(--ed-primary);
  color: var(--ed-primary-foreground);
  border-color: var(--ed-primary);
}

/* Widgets */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ed-primary);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  margin-bottom: 0.375rem;
}

.widget ul li a {
  font-size: 0.875rem;
  color: var(--ed-muted-foreground);
}

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

/* Sidebar */
.ed-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ed-with-sidebar { grid-template-columns: 1fr 300px; }
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form .search-field {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  font-family: var(--ed-font-sans);
  font-size: 0.875rem;
}

.search-form .search-submit {
  background: var(--ed-primary);
  color: var(--ed-primary-foreground);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--ed-radius-sm);
  font-weight: 500;
  cursor: pointer;
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Sticky post indicator */
.sticky .ed-card {
  border-color: var(--ed-primary);
  border-width: 2px;
}

/* ============================================
   Page Template
   ============================================ */
.ed-page-header {
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.6), transparent);
  padding: 3rem 0 2rem;
}

.ed-page-header h1 {
  font-size: 2.25rem;
}

@media (min-width: 768px) {
  .ed-page-header h1 { font-size: 3rem; }
}

/* ============================================
   404 Page
   ============================================ */
.ed-404 {
  text-align: center;
  padding: 6rem 0;
}

.ed-404 h1 {
  font-size: 6rem;
  color: var(--ed-primary);
  margin-bottom: 1rem;
}

.ed-404 p {
  color: var(--ed-muted-foreground);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* ============================================
   Custom Post Type: Product
   ============================================ */
.ed-product-single {
  max-width: 48rem;
}

.ed-product-single .ed-product-image {
  border-radius: var(--ed-radius-lg);
  margin-bottom: 2rem;
  overflow: hidden;
}

.ed-product-single .ed-product-image img {
  width: 100%;
  height: auto;
}

.ed-product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 0.5rem;
}

.ed-product-rating svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* ============================================
   Utility Classes
   ============================================ */
.ed-text-center { text-align: center; }
.ed-text-primary { color: var(--ed-primary); }
.ed-text-muted { color: var(--ed-muted-foreground); }
.ed-mt-0 { margin-top: 0; }
.ed-mt-4 { margin-top: 1rem; }
.ed-mt-8 { margin-top: 2rem; }
.ed-mt-10 { margin-top: 2.5rem; }
.ed-mb-0 { margin-bottom: 0; }
.ed-mb-2 { margin-bottom: 0.5rem; }
.ed-mb-4 { margin-bottom: 1rem; }
.ed-mb-6 { margin-bottom: 1.5rem; }
.ed-mb-8 { margin-bottom: 2rem; }
.ed-flex { display: flex; }
.ed-items-center { align-items: center; }
.ed-gap-2 { gap: 0.5rem; }
.ed-gap-4 { gap: 1rem; }
.ed-hidden-mobile { display: none; }

@media (min-width: 640px) {
  .ed-hidden-mobile { display: block; }
}

.ed-hidden-desktop { display: block; }

@media (min-width: 768px) {
  .ed-hidden-desktop { display: none; }
}
