/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
}

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

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

ul {
  list-style: none;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary);
}

.view-all {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.view-all:hover {
  color: var(--primary-dark);
}

/* ===== Header ===== */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

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

.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links > li > a,
.nav-links > li > span {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-links > li > a:hover,
.nav-links > li > span:hover {
  color: var(--primary);
}

/* Dropdown arrow */
.nav-arrow {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* Level 2 Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
}

.nav-links > li:hover > .nav-dropdown {
  display: block;
}

.nav-dropdown li {
  position: relative;
}

.nav-dropdown a,
.nav-dropdown span {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 10px 16px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.nav-dropdown a:hover,
.nav-dropdown span:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Level 3 Dropdown */
.nav-dropdown .nav-dropdown {
  top: 0;
  left: 100%;
  margin-left: 0;
}

.nav-dropdown li:hover > .nav-dropdown {
  display: block;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 8px 14px;
  gap: 8px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 180px;
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

/* Level 1 */
.mobile-nav > li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav > li:last-child {
  border-bottom: none;
}

.mobile-nav a,
.mobile-nav .mobile-nav-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav .mobile-nav-toggle:hover {
  color: var(--primary);
}

.mobile-nav-arrow {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Level 2 */
.mobile-subnav {
  display: none;
  background: var(--bg-light);
}

.mobile-subnav.active {
  display: block;
}

.mobile-subnav a,
.mobile-subnav .mobile-nav-toggle {
  padding: 12px 20px 12px 32px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Level 3 */
.mobile-subnav .mobile-subnav {
  background: var(--bg-white);
}

.mobile-subnav .mobile-subnav a {
  padding-left: 48px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mobile-subnav .mobile-subnav a:hover {
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
  padding: 80px 0;
  color: #fff;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

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

.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

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

.product-image {
  aspect-ratio: 1;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.product-info {
  padding: 14px;
}

.product-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stars {
  color: var(--accent);
  font-size: 0.85rem;
}

.rating-score {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ===== Categories Grid ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.5rem;
}

.category-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Articles Grid ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

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

.article-image {
  aspect-ratio: 16/10;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.article-content {
  padding: 16px;
}

.article-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.article-tag {
  color: var(--primary);
  font-weight: 500;
}

.article-date {
  color: var(--text-muted);
}

.article-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Article Page Styles ===== */
.article-header {
  background: var(--bg-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

/* Article Featured Image */
.article-featured-image {
  background: var(--bg-white);
  padding: 0 0 40px;
}

.featured-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2/1;
  object-fit: cover;
}

.featured-image-caption {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.85rem;
  padding: 10px 16px;
  text-align: right;
  position: absolute;
  bottom: 0;
  right: 0;
  border-top-left-radius: var(--radius);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 800px;
}

.article-header-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

.article-main {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

/* Quick Comparison Table */
.quick-comparison {
  margin-bottom: 40px;
}

.quick-comparison h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.comparison-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table tr:hover {
  background: var(--bg-light);
}

.comparison-table .product-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comparison-table .mini-img {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.comparison-table .rating {
  color: var(--accent);
}

.winner-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.buy-link {
  color: var(--primary);
  font-weight: 500;
}

.buy-link:hover {
  text-decoration: underline;
}

/* Price Widget */
.price-widget-row {
  background: var(--bg-light);
}

.price-widget-row td {
  padding: 0;
  border: none;
}

.price-widget {
  padding: 16px 20px;
  background: var(--bg-light);
}

.price-widget-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-widget-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-option {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.price-option:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.retailer-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.retailer-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Article Lead */
.article-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Article Body */
.article-body {
  margin-bottom: 40px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 32px 0 16px;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 24px 0 12px;
}

.article-body p {
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.75;
}

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

.article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

/* Product Detail Cards */
.product-detail {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
  border: 1px solid var(--border);
}

.product-detail-header {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.product-detail-image {
  width: 180px;
  height: 180px;
  background: var(--bg-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.product-detail-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-detail-rating .stars {
  color: var(--accent);
}

.product-detail-rating span {
  font-weight: 600;
}

.product-detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-detail-cta {
  display: flex;
  gap: 12px;
}

.product-detail-cta .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.pros, .cons {
  padding: 16px;
  border-radius: var(--radius);
}

.pros {
  background: rgba(34, 197, 94, 0.1);
}

.cons {
  background: rgba(239, 68, 68, 0.1);
}

.pros h4, .cons h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.pros h4 {
  color: #16a34a;
}

.cons h4 {
  color: #dc2626;
}

.pros li, .cons li {
  font-size: 0.85rem;
  margin-bottom: 6px;
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.cons li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--secondary);
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.toc-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.related-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.related-list a:hover {
  color: var(--primary);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

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

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

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

@media (max-width: 768px) {
  /* Reduce container margins on mobile */
  .container {
    padding: 0 10px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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

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

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  /* Article Featured Image - Mobile */
  .article-featured-image {
    padding: 0 0 24px;
  }

  .article-featured-image .container {
    padding: 0;
    max-width: 100%;
  }

  .featured-image-wrapper {
    border-radius: 0;
    box-shadow: none;
  }

  .featured-image-wrapper img {
    aspect-ratio: 16/9;
  }

  .featured-image-caption {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  /* Reduce article padding on mobile */
  .article-main {
    padding: 16px;
  }

  .product-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

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

  /* Mobile: Convert table to card-based flexbox layout */
  .comparison-table thead {
    display: none;
  }

  .comparison-table,
  .comparison-table tbody {
    display: block;
  }

  .comparison-table tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    padding: 16px;
  }

  .comparison-table tr:hover {
    background: var(--bg-light);
  }

  .comparison-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  .comparison-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    flex-shrink: 0;
  }

  .comparison-table td[data-label="Produkt"] {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--border);
  }

  .comparison-table td[data-label="Produkt"]::before {
    display: none;
  }

  .comparison-table .product-col {
    width: 100%;
    justify-content: flex-start;
  }

  .comparison-table td[data-label="Köp"] {
    padding-top: 12px;
    margin-top: 4px;
  }

  /* Price Widget on Mobile */
  .price-widget-row {
    display: block;
    margin-bottom: 24px;
    border: none;
  }

  .price-widget-row td {
    display: block;
    padding: 0;
    border: none;
  }

  .price-widget {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: -8px;
  }
}

@media (max-width: 480px) {
  .products-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

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

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

  .btn {
    width: 100%;
  }

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

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

  .article-header-meta {
    flex-direction: column;
    gap: 8px;
  }

  .product-detail-cta {
    flex-direction: column;
  }
}

/* ===== Category Page Styles ===== */
.category-header {
  background: var(--bg-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.category-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.category-hero-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.category-hero-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.category-hero-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 16px;
}

.category-stats {
  display: flex;
  gap: 24px;
}

.category-stats .stat {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.category-stats .stat strong {
  color: var(--primary);
  font-weight: 700;
}

/* Category Layout */
.category-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

/* Category Sidebar */
.category-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filter-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.filter-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-list li {
  margin-bottom: 8px;
}

.filter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
}

.filter-link:hover {
  color: var(--primary);
}

.filter-link.active {
  color: var(--primary);
  font-weight: 600;
}

.filter-link span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Category Main */
.category-main {
  min-width: 0;
}

/* Featured Section */
.featured-section {
  margin-bottom: 32px;
}

.featured-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.featured-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}

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

.featured-image {
  aspect-ratio: 16/9;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.featured-content {
  padding: 14px;
}

.featured-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.featured-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-options label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-white);
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Category Products Grid */
.category-products {
  grid-template-columns: repeat(4, 1fr);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.page-num:hover {
  background: var(--bg-light);
  color: var(--primary);
}

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

.page-dots {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Category Page Responsive */
@media (max-width: 1024px) {
  .category-layout {
    grid-template-columns: 1fr;
  }

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

  .filter-section {
    margin-bottom: 0;
  }

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

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

@media (max-width: 768px) {
  .category-hero {
    flex-direction: column;
    text-align: center;
  }

  .category-hero-icon {
    margin: 0 auto;
  }

  .category-hero-content p {
    max-width: none;
  }

  .category-stats {
    justify-content: center;
  }

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

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

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

  .results-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .category-products {
    grid-template-columns: 1fr;
  }

  .pagination-numbers {
    display: none;
  }
}

/* ===== Article Category Page Styles ===== */
.featured-article-hero {
  margin-bottom: 32px;
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.featured-article-card:hover {
  box-shadow: var(--shadow);
}

.featured-article-image {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.featured-article-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article-content .featured-tag {
  align-self: flex-start;
  background: var(--accent);
  margin-bottom: 16px;
}

.featured-article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-article-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.featured-article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

@media (max-width: 1024px) {
  .featured-article-card {
    grid-template-columns: 1fr;
  }

  .featured-article-image {
    aspect-ratio: 16/9;
  }

  .featured-article-content {
    padding: 24px;
  }

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

@media (max-width: 768px) {
  .featured-article-content h2 {
    font-size: 1.25rem;
  }

  .featured-article-meta {
    flex-direction: column;
    gap: 6px;
  }

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

@media (max-width: 480px) {
  .article-category-grid {
    grid-template-columns: 1fr;
  }
}
