/* Local Google Fonts */
@font-face {
  font-family: 'VT323';
  src: url('/assets/fonts/VT323-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #151515;
  --muted: #666;
  --border: #ddd;
  --primary: #667eea;
  --primary-dark: #764ba2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.retro-header {
  text-align: center;
  padding: 36px 20px;
  background: #fff;
  border-bottom: 0px solid var(--border);
  margin-bottom: 24px;
}

.retro-header a {
  text-decoration: none;
  color: inherit;
}

.retro-subtitle {
  color: #666;
  font-family: "Courier New", monospace;
  margin-top: 10px;
}

.pixel-heading {
  margin: 0;
  font-family: "VT323", monospace;
  font-size: 52px;
  color: var(--primary);
  letter-spacing: 1px;
}

/* Hero */
.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}


.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  border: 2px solid var(--primary);
  background:
    radial-gradient(circle at top right, rgba(118, 75, 162, 0.14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.hero-copy .eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-home h1 {
  max-width: 720px;
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: clamp(42px, 6vw, 68px);
}

.hero-home p:not(.eyebrow) {
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-cta,
.hero-secondary {
  padding: 14px 18px;
  font-size: 16px;
}

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

.hero-stats div {
  padding: 16px;
  border: 2px solid rgba(102, 126, 234, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.08);
}

.hero-stats strong,
.hero-stats span {
  display: block;
  font-family: "Courier New", monospace;
}

.hero-stats strong {
  color: var(--primary);
  font-size: 22px;
  line-height: 1.15;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* AI search */
.ai-search-box {
  background: #f8f9ff;
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}

.ai-search-box h2 {
  margin: 0 0 8px;
  font-family: "VT323", monospace;
  font-size: 32px;
  color: var(--primary);
}

.ai-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 14px;
}

/* VIGTIG DEL */
.ai-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  max-width: 900px;
}

.ai-input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  font: inherit;
  font-family: "Courier New", monospace;
  font-size: 16px;
}

.ai-button {
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.ai-error {
  display: none;
  margin-top: 12px;
  padding: 10px;
  background: #ffeeee;
  color: #cc2222;
  border: 1px solid #ffcccc;
  border-radius: 8px;
}

.ai-loading {
  color: var(--primary);
  font-family: "Courier New", monospace;
}

/* Notice - Retro style */
.notice {
  background: #f8f9ff;
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 16px 24px;
  margin: 24px 0;
  font-family: "Courier New", monospace;
  color: var(--primary);
}

.notice a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: bold;
}

.notice a:hover {
  text-decoration: underline;
}

.notice-icon {
  margin-right: 8px;
  font-size: 1.2em;
}

/* Cookie notice - centered */
.cookie-notice {
  font-family: "Courier New", monospace;
  color: var(--primary);
  text-align: center;
  margin: 24px 0;
  padding: 12px 0;
}

.cookie-icon {
  margin-right: 8px;
}

.cookie-image {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Filters */
.filter-panel .ai-description {
  max-width: 760px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 12px 0 0 0;
}

.filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filters label:first-of-type {
  grid-column: span 2;
}

.filters label span {
  color: var(--primary-dark);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
}

.filters input,
.filters select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  font: inherit;
  font-family: "Courier New", monospace;
  font-size: 16px;
  background: white;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.reset-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}


.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 24px;
}

.active-filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: "Courier New", monospace;
}

.active-filters-title {
  color: var(--primary-dark);
  font-weight: bold;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 2px solid rgba(102, 126, 234, 0.35);
  border-radius: 999px;
  background: #f8f9ff;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.filter-chip:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.filter-chip-reset {
  background: white;
  color: var(--primary);
}

.sort-form {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: "Courier New", monospace;
}

.sort-form label {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

.sort-form select {
  min-width: 190px;
  height: 42px;
  padding: 0 12px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: white;
  font: inherit;
}

.sort-submit {
  min-height: 42px;
  padding: 9px 12px;
}

.retro-button {
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

/* Product cards - Retro style */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 14px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 12px;
  background: white;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  font-family: "Courier New", monospace;
  color: var(--text);
}

.card h3 a {
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-box {
  padding: 12px;
  border: 2px solid rgba(102, 126, 234, 0.22);
  border-radius: 12px;
  background: #f8f9ff;
}

.price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
}

.price {
  font-size: 22px;
  font-weight: bold;
  font-family: "Courier New", monospace;
  color: var(--primary);
}

.product-info .price {
  font-size: 24px;
}

.product-price-box {
  margin: 12px 0;
}

.product-price-box .meta {
  display: block;
  margin-top: 4px;
}

.savings-callout {
  padding: 12px;
  border: 2px solid rgba(102, 126, 234, 0.22);
  border-radius: 12px;
  background: #f8f9ff;
  color: var(--primary-dark);
  font-family: "Courier New", monospace;
}

.product-main-cta {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.product-info .meta {
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.product-info p:not(.meta):not(.price):not(.savings-callout) {
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--text);
  margin: 16px 0;
}

.product-info p .cta {
  display: inline-block;
  padding: 12px 20px;
  font-size: 16px;
}

.specs,
.merchant {
  font-size: 14px;
  font-family: "Courier New", monospace;
  color: var(--text);
}

.merchant {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.badge-muted {
  background: #f8f9ff;
  color: var(--primary-dark);
  border: 1px solid rgba(102, 126, 234, 0.35);
}

.cta,
.small-cta,
.secondary-cta {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-family: "Courier New", monospace;
  cursor: pointer;
}

.secondary-cta {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.actions .cta,
.actions .secondary-cta {
  flex: 1;
  text-align: center;
}

/* Product detail - Retro style */
.product-detail {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 0px solid var(--primary);
  border-radius: 14px;
}

.product-image img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.product-info h1 {
  font-family: "Courier New", monospace;
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--text);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: white;
  border: 0px solid var(--primary);
  border-radius: 10px;
  padding: 12px;
  margin: 16px 0;
}

.spec-grid div {
  border: none;
  background: transparent;
  padding: 6px 0;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.spec-grid strong {
  color: var(--primary);
}

/* Tables - Retro style */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 14px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.table th {
  background: #f8f9ff;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.best-offer-row {
  background: #f8f9ff;
}

.best-offer-row td {
  border-bottom: 2px solid rgba(102, 126, 234, 0.22);
}

.best-offer-row .badge {
  margin-left: 6px;
}

.section-heading,
.product-detail h2 {
  font-family: "VT323", monospace;
  font-size: 24px;
  color: var(--primary);
  margin: 24px 0 12px;
}

/* Mobile */
@media (max-width: 760px) {
  .container {
    padding: 16px;
  }

  .filters,
  .grid,
  .ai-input-group,
  .product-detail,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .filters label:first-of-type {
    grid-column: auto;
  }

  .filter-actions {
    flex-direction: column;
  }

  .results-toolbar,
  .active-filters,
  .sort-form {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-form {
    width: 100%;
    margin-left: 0;
  }

  .sort-form select {
    width: 100%;
  }

  .filter-chip {
    justify-content: center;
  }

  .ai-button,
  .retro-button,
  .reset-filters,
  .sort-submit {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .product-main-cta {
    max-width: none;
  }

  .pixel-heading {
    font-size: 42px;
  }

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


  .hero-home {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

  .hero-cta,
  .hero-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Homepage guidance and usability helpers */
.hero-benefits {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-family: "Courier New", monospace;
  font-size: 15px;
}

.hero-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(102, 126, 234, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.compact-eyebrow {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.helper-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: white;
  border: 2px solid rgba(102, 126, 234, 0.28);
  color: var(--primary-dark);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
}

.example-prompts,
.budget-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  font-family: "Courier New", monospace;
}

.example-prompts button,
.budget-shortcuts a {
  border: 2px solid rgba(102, 126, 234, 0.28);
  border-radius: 999px;
  background: white;
  color: var(--primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.example-prompts button:hover,
.example-prompts button:focus-visible,
.budget-shortcuts a:hover,
.budget-shortcuts a:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.budget-shortcuts {
  align-items: center;
  margin: 16px 0 0;
}

.budget-shortcuts span {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.guidance-panel {
  background: #fff;
  border: 2px solid rgba(102, 126, 234, 0.34);
  border-radius: 14px;
  margin: 24px 0;
  padding: 24px;
}

.guidance-panel h2 {
  margin: 0;
  color: var(--primary);
  font-family: "VT323", monospace;
  font-size: 32px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guidance-grid article {
  border: 2px solid rgba(102, 126, 234, 0.18);
  border-radius: 12px;
  background: #f8f9ff;
  padding: 16px;
}

.guidance-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.guidance-grid h3 {
  margin: 12px 0 6px;
  font-family: "Courier New", monospace;
  font-size: 18px;
}

.guidance-grid p {
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 14px;
}

@media (max-width: 760px) {
  .section-title-row,
  .guidance-grid {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    flex-direction: column;
  }

  .example-prompts button,
  .budget-shortcuts a {
    width: 100%;
    text-align: center;
  }
}
