/* =====================
   Reset & Base
===================== */

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

:root {
  /* Färger från SwePrint3D logotyp - LJUST TEMA */
  --color-primary: #0f1f2e;
  --color-primary-dark: #0a131f;
  --color-accent: #db2732;
  --color-accent-soft: rgba(219, 39, 50, 0.1);
  --color-bg: #f5f1e6;
  --color-text: #0f1f2e;
  --color-text-light: #555;

  /* Gamla variabler för kompatibilitet - UPPDATERADE */
  --bg-main: #f5f1e6;
  --bg-section: #f5f1e6;
  --bg-card: #ffffff;
  --accent: #db2732;
  --accent-soft: rgba(219, 39, 50, 0.1);
  --text-main: #0f1f2e;
  --text-muted: #555;
  --border-subtle: #ddd;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.18s ease-out;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

p,
span,
li {
  font-size: 1rem;
  color: var(--text-muted);
}

/* =====================
   Header / Nav
===================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #ddd;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-image {
  height: 40px;
  width: 40px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.logo-title {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #0f1f2e;
}

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

/* huvudnav i headern */
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  margin-left: 1.25rem;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.15rem;
  transition: color var(--transition-fast);
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

header nav a:hover {
  color: #0f1f2e;
}

header nav a:hover::after {
  width: 100%;
}

/* =====================
   Hero / Start
===================== */

.hero {
  padding: 3rem 0 2rem;
}

.hero-inner {
  max-width: 800px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f1f2e;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(219, 39, 50, 0.3);
}

.btn-primary:hover {
  background: #c71e28;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: #ddd;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.hero-panel {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 1.3rem 1.5rem;
}

.hero-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f1f2e;
  margin-bottom: 0.4rem;
}

.hero-panel p {
  font-size: 0.9rem;
}

/* =====================
   Sektioner / kortare block
===================== */

h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  font-weight: 700;
  color: #0f1f2e;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Galleri / listor på startsidan */

.grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.panel {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-card);
}

.panel h3 {
  font-size: 1.02rem;
  color: #0f1f2e;
  margin-bottom: 0.4rem;
}

/* =====================
   Shop / Butik
===================== */

.shop-section {
  margin-top: 2.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #ddd;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow-card);
  transform: translateY(0) scale(1);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.card-image {
  position: relative;
  width: 100%;
  padding-top: 70%;
  background: #f0f0f0;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-accent-soft);
  color: #c71e28;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--accent);
}

.card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: #0f1f2e;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.25rem;
}

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

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

/* =====================
   Priser & FAQ
===================== */

.faq-section {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid #ddd;
  background: #ffffff;
  padding: 1.5rem 1.75rem;
}

.faq-item + .faq-item {
  border-top: 1px solid #ddd;
  padding-top: 1.1rem;
  margin-top: 1.1rem;
}

.faq-question {
  font-weight: 600;
  color: #0f1f2e;
  margin-bottom: 0.3rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
}

ul {
  list-style: disc;
  margin-left: 1.4rem;
  margin-bottom: 0.75rem;
}

li + li {
  margin-top: 0.2rem;
}

/* =====================
   Footer - ljus layout
===================== */

footer {
  background: #f9f9f9;
  color: var(--text-muted);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: flex-start;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ddd;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.footer-icon {
  width: 24px;
  height: 24px;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin: 0.2rem 0;
  color: var(--text-muted);
}

/* =====================
   Responsivitet – ljusa temat
===================== */

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

@media (max-width: 768px) {
  .page-wrapper {
    padding: 1.5rem 1rem 2.5rem;
  }

  .header-content {
    padding-inline: 1rem;
    flex-wrap: wrap;
  }

  .logo {
    flex: 1 1 100%;
  }

  header nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  header nav a {
    margin-left: 0;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  h1 {
    font-size: 2rem;
  }

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

  .faq-section {
    padding: 1.25rem 1.1rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    width: 100%;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .lead,
  .section-intro {
    font-size: 0.95rem;
  }
}

/* =====================
   Startsida - Grid 4 kolumner
===================== */

.grid-4col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4col {
    grid-template-columns: 1fr;
  }
}

/* Call-to-action sektion */
.cta-section {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(219, 39, 50, 0.1), rgba(219, 39, 50, 0.05));
  border: 1px solid rgba(219, 39, 50, 0.3);
  text-align: center;
}

.cta-section h2 {
  margin-top: 0;
  color: #0f1f2e;
}

.cta-section p {
  max-width: 600px;
  margin: 0.75rem auto 1.5rem;
  color: var(--text-muted);
}

/* =====================
   Produktsidor
===================== */

.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* hindra kolumner från att spränga varandra */
.product-gallery,
.product-main {
  min-width: 0;
}

.product-gallery {
  order: 1;
}

.product-main {
  order: 2;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.product-thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.product-main h1 {
  margin: 0 0 0.4rem;
}

.product-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.product-description {
  margin-bottom: 1rem;
}

.product-kit {
  margin: 1.2rem 0 1.5rem;
}

.product-purchase {
  margin-top: 1rem;
}

.product-price {
  font-weight: 700;
  color: var(--accent);
}

.product-tech {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.product-field {
  margin-bottom: 0.5rem;
}

/* select & inputs för material, storlek, antal */

.product-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.product-field select,
.product-field input[type="number"] {
  width: 100%;
  max-width: 260px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #ffffff;
  font-size: 0.95rem;
  color: #0f1f2e;
  appearance: none;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.product-field select:focus,
.product-field input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(219, 39, 50, 0.18);
  transform: translateY(-1px);
}

.product-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 1rem;
}

.product-field-row .product-field {
  min-width: 160px;
}

.primary-button {
  margin-top: 0.75rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

/* =====================
   Butik – filterknappar
===================== */

.shop-filters {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  flex-wrap: wrap;
}

.filter-button {
  border: 1px solid #bbb;
  background: #ffffff;
  color: #0f1f2e;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.filter-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
