:root {
  /* Mörkt tema för hela sajten – samma bakgrund som startsidan. */
  --color-bg: #101010;
  --color-surface: #181818;
  --color-surface-2: #1f1f1f;
  --color-ink: #f2f2f2;
  --color-ink-soft: #b8b8b8;
  --color-border: #2c2c2c;
  --color-heading: #ffffff;
  --color-accent: #e8762c;
  --color-accent-dark: #cf6420;
  --color-link: #f08a45;
  --radius: 10px;
  --max-width: 1120px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 17px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header: se header.css */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--color-accent-dark); text-decoration: none; }

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

/* Sections */
.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Product gallery */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #5a6270 0%, #2f343d 100%);
  border: 1px solid #1f2329;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-order { margin: 2rem 0 0; text-align: center; }
.product-order .btn { font-size: 1.15rem; padding: 1rem 2.4rem; }

.product-pdf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
}
.product-pdf span { color: var(--color-ink-soft); font-size: 0.9rem; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-link);
  margin-top: auto;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  background: var(--color-bg);
}

.badge {
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  width: fit-content;
}

/* Forms */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}

form legend {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-heading);
  margin-bottom: 1rem;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface-2);
  color: var(--color-ink);
}
input:focus, textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.order-table th, .order-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.order-table input[type=number] { width: 5.5rem; }

.order-summary {
  margin-left: auto;
  max-width: 20rem;
}
.order-summary div {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
}
.order-summary .total {
  font-weight: 800;
  font-size: 1.2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}

.errorlist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: #ff8a80;
  font-weight: 600;
}

.help-text { font-size: 0.85rem; color: var(--color-ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

.order-confirm ul { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
.order-confirm a, .terms-check + .help-text a { text-decoration: underline; }
.terms-check { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; }
.terms-check input { margin-top: 0.25rem; }

/* ---------- Produktsidan: intro + nyhetsrutan ---------- */

.product-intro {
  display: flex;
  align-items: center;
  gap: 2rem 3rem;
}
.product-intro__text { flex: 1 1 auto; min-width: 0; }

/* Lutande ruta med glödande orange kant. Slås av/på i admin. */
.news-box {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 25rem);
  margin: 1rem 1.5rem 1.75rem 0;
  transform: rotate(-4deg);
  font-family: "Montserrat", "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-weight: 800;
}
.news-box__inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem 1.6rem 1.1rem;
  background: linear-gradient(160deg, #1b1b1b 0%, #0d0d0d 100%);
  border: 3px solid #ff8a00;
  border-radius: 14px;
  box-shadow:
    0 0 14px rgba(255, 138, 0, 0.55),
    0 0 36px rgba(255, 110, 0, 0.25),
    inset 0 0 18px rgba(255, 138, 0, 0.12);
}
.news-box__icon {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
.news-box__body { min-width: 0; }
.news-box p { margin: 0; }
.news-box__title {
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  padding-right: 0.15em;
  color: #ff8a00;
  background: linear-gradient(180deg, #ffb238 0%, #ff8a00 55%, #f06a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem !important;
}
.news-box__text,
.news-box__highlight {
  font-size: 1rem;
  line-height: 1.25;
}
.news-box__text { color: #fff; }
.news-box__highlight { color: #ff9a1f; }

.news-box__button {
  position: absolute;
  right: 1.5rem;
  bottom: -1rem;
  padding: 0.35rem 1.1rem;
  background: linear-gradient(180deg, #ffa22e 0%, #f07400 100%);
  border-radius: 8px;
  color: #111;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(255, 138, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.5);
}
.news-box__button:hover { color: #000; text-decoration: none; filter: brightness(1.08); }

@media (max-width: 760px) {
  .product-intro { flex-direction: column; align-items: stretch; }
  .news-box { align-self: center; margin: 0.5rem 0.5rem 1.75rem; transform: rotate(-3deg); }
  .news-box__title { font-size: 2.1rem; }
  .news-box__icon { width: 2.8rem; height: 2.8rem; }
  .news-box__inner { gap: 0.6rem; padding: 1rem 1rem 1.5rem 0.8rem; }
  .news-box__text, .news-box__highlight { font-size: 0.8rem; }
}
