/* Kolstrup Tuning – match old dark PrestaShop theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #ccc;
  background: #0d0d0d;
  background-image:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)),
    url('img/Ford-popular-rotrex/Jade-Burnout.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
}

/* Base mobile-friendly */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.btn, .cart-icon, .cat-list > li > a, .slider-arrow, .slider-dot {
  -webkit-tap-highlight-color: rgba(196,30,30,0.3);
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
}
input, textarea, button, select {
  font-size: 16px; /* prevents iOS zoom on focus */
}
.search-input { font-size: 16px; }


a { color: #e63939; text-decoration: none; }
a:hover { text-decoration: underline; color: #ff5555; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ===== TOP BAR ===== */
.topbar {
  background: #111;
  border-bottom: 1px solid #222;
  font-size: 11px;
  padding: 6px 0;
  color: #999;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a {
  color: #bbb;
  margin-left: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.topbar a:hover { color: #fff; }
.flags { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; }
.flag {
  display: inline-block;
  width: 22px;
  height: 14px;
  background: #444;
  border: 1px solid #555;
  font-size: 9px;
  text-align: center;
  line-height: 14px;
  color: #ccc;
}

/* ===== HEADER / LOGO BAR ===== */
.site-header {
  background: #111;
  padding: 0;
}
.header-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.logo-link {
  display: block;
  background: #c41e1e;
  padding: 8px 16px;
  flex-shrink: 0;
}
.logo-link img {
  height: 48px;
  width: auto;
  display: block;
}
.logo-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 10px 16px;
  background: #c41e1e;
}
.logo-fallback:hover { text-decoration: none; color: #fff; }
.logo-fallback span { font-size: 12px; opacity: 0.9; }

.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #1a1a1a;
  padding: 10px 16px;
  flex-wrap: wrap;
}
.search-form {
  display: flex;
}
.search-input {
  width: 180px;
  padding: 7px 10px;
  border: none;
  border-radius: 2px 0 0 2px;
  font-size: 13px;
  background: #fff;
  color: #333;
}
.search-btn {
  padding: 7px 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
}
.search-btn:hover { background: #555; }

.header-links a {
  color: #ccc;
  font-size: 11px;
  text-transform: uppercase;
  margin-left: 10px;
}
.header-links a:hover { color: #fff; }

.cart-icon {
  background: #c41e1e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.cart-icon:hover { background: #a01818; color: #fff; text-decoration: none; }

/* ===== MAIN COLUMNS ===== */
.main-wrap { padding: 20px 0 50px; }
.columns {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* Sidebar categories - RED buttons like screenshot */
.sidebar { width: 210px; flex-shrink: 0; }
.cat-block {
  background: #1a1a1a;
  border: 1px solid #333;
  overflow: hidden;
}
.cat-title {
  background: #2a2a2a;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.cat-list { list-style: none; }
.cat-list > li > a {
  display: block;
  background: #c41e1e;
  color: #fff !important;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #a01818;
  text-decoration: none !important;
}
.cat-list > li > a:hover {
  background: #e63939;
}
.cat-list ul {
  list-style: none;
  background: #222;
}
.cat-list ul a {
  display: block;
  padding: 8px 14px 8px 20px;
  color: #bbb !important;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  border-bottom: 1px solid #333;
  text-decoration: none !important;
}
.cat-list ul a:hover {
  background: #2a2a2a;
  color: #fff !important;
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 12px 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-top: none;
}
.pay-badge {
  background: #fff;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
}

/* Center column */
.center-col { flex: 1; min-width: 0; }

/* SLIDER */
.slider {
  position: relative;
  background: #111;
  border: 1px solid #333;
  overflow: hidden;
  margin-bottom: 18px;
}
.slide {
  display: none;
  position: relative;
}
.slide.active { display: block; }
.slide img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: scale-down;
  display: block;
}
.slide-caption {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.55);
  padding: 16px 20px;
  max-width: 55%;
  color: #fff;
}
.slide-caption h2 {
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: 600;
}
.slide-caption p {
  font-size: 13px;
  color: #ddd;
}
.slider-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}
.slider-dot.active { background: #c41e1e; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
}
.slider-arrow:hover { background: rgba(196,30,30,0.8); }
.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }

/* Populær section */
.popular-box {
  background: #1a1a1a;
  border: 1px solid #333;
  margin-bottom: 18px;
}
.popular-title {
  background: #2a2a2a;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}
.popular-empty {
  background: #3a5a9a;
  color: #fff;
  padding: 12px 14px;
  font-size: 13px;
}

/* CMS bottom info */
.cms-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  padding: 10px 0;
}
.cms-left .cms-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.cms-icon {
  width: 40px;
  height: 40px;
  background: #c41e1e;
  flex-shrink: 0;
}
.cms-item h3 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}
.cms-item p {
  color: #999;
  font-size: 12px;
}
.cms-right h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
}
.cms-right .highlight {
  color: #e63939;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.cms-right p {
  color: #999;
  font-size: 12px;
  line-height: 1.6;
}

/* Page content boxes */
.page-banner {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.page-banner h1 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 6px;
}
.page-banner p { color: #999; }
.breadcrumb { font-size: 12px; color: #666; margin-bottom: 8px; }
.breadcrumb a { color: #888; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.product {
  background: #1a1a1a;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
}
.product-img {
  background: #222;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 13px;
  font-weight: 600;
}
.product-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product .price { font-size: 16px; font-weight: 700; color: #e63939; margin-bottom: 6px; }
.product h3 { font-size: 13px; margin-bottom: 6px; }
.product h3 a { color: #eee; }
.product h3 a:hover { color: #e63939; }
.product .desc { font-size: 12px; color: #888; margin-bottom: 8px; flex: 1; }
.product .stock { font-size: 11px; color: #4caf50; margin-bottom: 8px; }
.btn {
  display: inline-block;
  background: #c41e1e;
  color: #fff !important;
  padding: 7px 14px;
  font-size: 12px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
}
.btn:hover { background: #e63939; }

.info-box {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 16px 20px;
  margin: 16px 0;
  color: #bbb;
  font-size: 13px;
}
.info-box h3 { color: #fff; margin-bottom: 8px; font-size: 14px; }
.info-box p { margin-bottom: 8px; }

.product-row {
  display: flex;
  gap: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  margin-bottom: 12px;
}
.product-row .product-img {
  width: 150px;
  min-height: 110px;
  flex-shrink: 0;
}
.product-row .product-img img {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
  display: block;
}
.product-row .product-body video {
  display: block;
  width: min(100%, 420px);
  max-height: 260px;
  margin: 10px 0;
}
.product-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.product-media-list img,
.product-media-list video {
  width: min(100%, 180px);
  height: 110px;
  object-fit: cover;
  background: #000;
}
.product-row .product-body { padding: 14px; }
.product-row h3 a { color: #fff; text-decoration: none; }
.product-row h3 a:hover { color: #e63939; }
.product-detail-link { align-self: flex-start; margin-top: auto; text-decoration: none; }
.product-detail { margin: 16px 0 24px; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: 28px; }
.product-detail-cover { display: block; width: 100%; max-height: 560px; object-fit: contain; background: #111; }
.product-detail-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.product-detail-gallery img, .product-detail-gallery video { width: min(100%, 160px); height: 110px; object-fit: cover; background: #111; }
.product-detail-content h1 { margin-bottom: 8px; }
.product-detail-meta { color: #bbb; font-weight: 700; }
.product-detail-description { white-space: pre-line; line-height: 1.7; }
.product-variant-label { display: grid; gap: 8px; margin: 18px 0; font-weight: 700; }
.product-variant-select { width: 100%; max-width: 360px; padding: 12px; color: #eee; background: #111; border: 1px solid #555; }
.product-detail-error { color: #ffb3b3; }

.cart-count {
  display: inline-flex;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  margin-left: 3px;
  align-items: center;
  justify-content: center;
  background: #c41e1e;
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.cart-panel {
  margin: 26px 0;
  padding: 18px;
  background: #1a1a1a;
  border: 1px solid #383838;
}
.cart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.cart-heading h2 { margin: 0 0 5px; color: #fff; font-size: 20px; }
.cart-heading p,
.cart-empty { margin: 0; color: #999; font-size: 13px; }
.cart-empty { padding: 16px 0 4px; }
.cart-items { list-style: none; padding: 0; margin: 14px 0 0; }
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #333;
}
.cart-item-details { display: grid; gap: 4px; }
.cart-item-details strong { color: #eee; font-size: 14px; }
.cart-item-price { color: #999; font-size: 12px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-quantity-button,
.cart-remove,
.cart-clear {
  color: #eee;
  border: 1px solid #494949;
  border-radius: 3px;
  background: #242424;
  cursor: pointer;
}
.cart-quantity-button { width: 30px; height: 30px; font-size: 18px; line-height: 1; }
.cart-quantity-button:disabled { opacity: .45; cursor: not-allowed; }
.cart-quantity { min-width: 20px; color: #fff; text-align: center; }
.cart-remove,
.cart-clear { padding: 7px 10px; font-size: 12px; }
.cart-remove:hover,
.cart-clear:hover,
.cart-quantity-button:hover:not(:disabled) { border-color: #c41e1e; }
.cart-live-status { color: #ccc; font-size: 12px; margin: 10px 0 0; }

/* Contact form */
.contact-form {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 20px;
  max-width: 440px;
}
.contact-form label {
  display: block;
  color: #ccc;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  margin-bottom: 12px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 2px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid #c41e1e;
  border-color: #c41e1e;
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid #222;
  color: #777;
  padding: 28px 0 20px;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.footer-block h4 {
  color: #ccc;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.footer-block ul { list-style: none; }
.footer-block li { margin-bottom: 5px; }
.footer-block a { color: #777; }
.footer-block a:hover { color: #fff; }


/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid #333;
  background: #111;
  aspect-ratio: 3/2;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.gallery-grid a:hover img {
  transform: scale(1.04);
}
.gallery-title {
  background: #2a2a2a;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0;
  border: 1px solid #333;
  border-bottom: none;
}
.section-box {
  background: #1a1a1a;
  border: 1px solid #333;
  margin-bottom: 18px;
  overflow: hidden;
}
.section-box .gallery-grid {
  margin: 10px;
}
.inline-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  border: 1px solid #333;
  margin-bottom: 14px;
}

/* ========== RESPONSIVE / MOBILE ========== */
@media (max-width: 900px) {
  .columns {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    order: 2;
  }
  .center-col {
    order: 1;
    width: 100%;
  }
  .cms-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 10px;
  }

  /* Top bar */
  .topbar {
    font-size: 10px;
    padding: 8px 0;
  }
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .topbar a {
    margin-left: 0;
    margin-right: 12px;
    display: inline-block;
    padding: 4px 0;
  }

  /* Header */
  .header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .logo-link {
    display: flex;
    justify-content: center;
    padding: 10px;
  }
  .logo-link img {
    height: 40px;
    width: auto;
  }
  .header-right {
    justify-content: center;
    gap: 8px;
    padding: 10px;
  }
  .search-form {
    width: 100%;
    order: 3;
    flex-basis: 100%;
  }
  .search-input {
    width: 100%;
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
  }
  .search-btn {
    padding: 10px 14px;
  }
  .cart-icon {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Main */
  .main-wrap {
    padding: 12px 0 40px;
  }

  /* Slider */
  .slide img {
    max-height: 220px;
    object-fit: cover;
  }
  .slide-caption {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 10px 12px;
  }
  .slide-caption h2 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .slide-caption p {
    font-size: 12px;
  }
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  /* Categories - easier to tap */
  .cat-list > li > a {
    padding: 14px 16px;
    font-size: 13px;
  }
  .cat-list ul a {
    padding: 12px 16px 12px 22px;
    font-size: 13px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .section-box .gallery-grid {
    margin: 8px;
  }

  /* Products */
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-row {
    flex-direction: column;
  }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-row .product-img {
    width: 100%;
    min-height: 140px;
    height: 160px;
  }
  .product-body {
    padding: 14px;
  }
  .product .price {
    font-size: 18px;
  }
  .btn {
    width: 100%;
    box-sizing: border-box;
  }

  /* Page banner */
  .page-banner {
    padding: 14px;
  }
  .page-banner h1 {
    font-size: 18px;
  }

  /* Forms */
  .contact-form {
    max-width: none !important;
    width: 100%;
    padding: 16px;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 16px;
  }
  .contact-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  /* Contact page grid */
  .center-col > div[style*="grid"] {
    display: block !important;
  }
  .center-col > div[style*="grid"] > * {
    margin-bottom: 16px;
  }

  /* CMS */
  .cms-row {
    gap: 16px;
    margin-top: 16px;
  }
  .cms-item {
    gap: 12px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .site-footer {
    padding: 24px 0 30px;
  }

  .inline-photo {
    max-height: 200px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .slide-caption h2 {
    font-size: 14px;
  }
  .header-links a {
    font-size: 10px;
  }
}

/* Touch: slightly larger hit areas on coarse pointers */
@media (pointer: coarse) {
  .cat-list > li > a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .slider-dot {
    width: 14px;
    height: 14px;
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Main nav */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
.main-nav a {
  color: #ccc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  padding: 6px 0;
}
.main-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.full-width {
  width: 100%;
  max-width: 100%;
}

/* Intro */
.intro-block {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 24px 20px;
  margin-bottom: 18px;
}
.intro-block h1 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}
.intro-block .lead {
  color: #ddd;
  font-size: 15px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.intro-block p {
  color: #999;
  margin-bottom: 8px;
}

.subdomain-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.sub-card {
  display: block;
  background: #111;
  border: 1px solid #444;
  padding: 18px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s;
}
.sub-card:hover {
  border-color: #c41e1e;
}
.sub-card h3 {
  color: #e63939;
  font-size: 16px;
  margin-bottom: 6px;
}
.sub-card p {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 8px;
}
.sub-url {
  font-size: 11px;
  color: #666;
  font-family: monospace;
}

/* Project teasers */
.project-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 12px;
}
.project-card {
  display: block;
  background: #111;
  border: 1px solid #333;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
}
.project-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.project-card-body {
  padding: 12px;
}
.project-card-body h3 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}
.project-card-body p {
  color: #888;
  font-size: 12px;
}
.project-card:hover {
  border-color: #c41e1e;
}
.more-link {
  padding: 0 12px 14px;
  text-align: right;
}
.more-link a {
  font-weight: 600;
  font-size: 13px;
}

/* Project detail pages */
.project-detail {
  background: #1a1a1a;
  border: 1px solid #333;
  margin-bottom: 20px;
  overflow: hidden;
}
.project-hero {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.project-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.project-gallery video {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #000;
}
.project-text {
  padding: 18px 20px;
}
.project-text h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 4px;
}
.project-meta {
  color: #e63939;
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 600;
}
.project-text p {
  color: #bbb;
  margin-bottom: 10px;
  line-height: 1.55;
}

.project-suggestions {
  margin: 0 0 20px;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
}
.project-suggestions h2 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}
.suggestion-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.suggestion-card {
  flex: 0 0 180px;
  overflow: hidden;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  scroll-snap-align: start;
  text-decoration: none;
}
.suggestion-card img {
  display: block;
  width: 100%;
  height: 105px;
  object-fit: cover;
}
.suggestion-card span {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
}
.suggestion-card:hover {
  border-color: #c41e1e;
  color: #fff;
  text-decoration: none;
}
.project-detail[hidden],
.suggestion-card[hidden] {
  display: none;
}

/* Cards row for ydelser */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.cards-row .card {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 18px;
}
.cards-row .card h3 {
  color: #e63939;
  font-size: 15px;
  margin-bottom: 8px;
}
.cards-row .card p {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .subdomain-cards {
    grid-template-columns: 1fr;
  }
  .main-nav {
    width: 100%;
    justify-content: center;
    order: 2;
  }
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-gallery img {
    height: 150px;
  }
  .project-hero {
    max-height: 220px;
  }
  .intro-block h1 {
    font-size: 20px;
  }
}

.shop-heading {
  color: #fff;
  font-size: 18px;
  margin: 28px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c41e1e;
}
.shop-intro {
  color: #999;
  font-size: 13px;
  margin-bottom: 14px;
  max-width: 40rem;
}
.product-list-shop {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  cursor: default;
}
.lightbox-inner img,
.lightbox-inner video {
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #333;
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
.lightbox-close:hover { color: #e63939; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(196,30,30,0.85);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 2px;
}
.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: #e63939; }
.lightbox-caption {
  color: #ccc;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
}
.project-gallery img,
.project-gallery video,
.gallery-grid img {
  cursor: zoom-in;
}
.cms-load-warning {
  background: #211818;
  border: 1px solid #704040;
  color: #e4baba;
  padding: 10px 12px;
  font-size: 12px;
  margin: 12px 0;
}
@media (max-width: 700px) {
  .cart-item { align-items: flex-start; flex-direction: column; }
  .cart-item-controls { width: 100%; }
  .cart-remove { margin-left: auto; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: 8px; right: 8px; background: rgba(0,0,0,0.6); }
}
