/* Kolstrup Tuning – match old dark PrestaShop theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  display: flex;
  flex-direction: column;
  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.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* 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 { width: 100%; 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;
  text-decoration: none;
  color: inherit;
}
.cms-left .cms-item:hover h3,
.cms-left .cms-item:focus-visible h3 {
  color: #e63939;
}
.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: 100%;
  min-height: 110px;
  flex-shrink: 0;
  overflow: hidden;
}
.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-image-viewer { width: 100%; overflow: hidden; }
.product-detail-enlarge { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: zoom-in; }
.product-detail-enlarge:focus-visible, .product-detail-thumbnail:focus-visible { outline: 3px solid #e63939; outline-offset: -3px; }
.product-detail-cover { display: block; width: 100%; height: clamp(210px, 72vw, 420px); object-fit: contain; background: #111; }
.product-detail-thumbnails { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.product-detail-thumbnail { flex: 0 0 72px; height: 60px; padding: 2px; background: #222; border: 2px solid #555; cursor: pointer; }
.product-detail-thumbnail[aria-current="true"] { border-color: #e63939; }
.product-detail-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-detail-image-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.product-detail-image-controls button { padding: 8px 12px; color: #eee; background: #222; border: 1px solid #555; cursor: pointer; }
.product-detail-image-controls button:hover { background: #333; }
.product-detail-image-controls span { color: #bbb; }
.product-lightbox { width: min(1200px, 96vw); max-width: 96vw; max-height: 94vh; max-height: 94dvh; box-sizing: border-box; margin: auto; padding: 16px; color: #eee; background: #111; border: 1px solid #555; }
.product-lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.product-lightbox-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.product-lightbox-image { display: block; width: 100%; height: 70vh; height: 70dvh; object-fit: contain; cursor: zoom-out; }
.product-lightbox-caption { margin: 12px 0; overflow-wrap: anywhere; }
.product-lightbox .product-detail-image-controls[hidden] { display: none; }
.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-detail-information { margin-top: 28px; padding-top: 20px; border-top: 1px solid #444; overflow-wrap: anywhere; }
.product-detail-information .product-detail-description { max-width: 85ch; }
.product-models { display: grid; gap: 10px; margin: 18px 0; padding: 14px; border: 1px solid #555; }
.product-models legend { padding: 0 6px; font-weight: 700; }
.product-models label { display: flex; align-items: center; gap: 8px; }
.product-model-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.product-model-back, .product-model-next { padding: 8px 10px; color: #eee; background: #222; border: 1px solid #555; cursor: pointer; text-align: left; }
.product-model-next { width: 100%; }
.product-model-back[aria-current="location"] { color: #fff; font-weight: 700; }
.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, .cart-item-reference { 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 select,
.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 select:focus,
.contact-form textarea:focus {
  outline: 1px solid #c41e1e;
  border-color: #c41e1e;
}

/* Footer */
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  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 select,
  .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;
  }
}

.chip-panel {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.chip-contact-panel .contact-form {
  max-width: 520px;
  padding: 0;
  background: transparent;
  border: 0;
}
.chip-panel h2,
.vehicle-summary h3,
.tuning-results h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}
.chip-plate-form label,
.tuning-selectors label {
  display: block;
  color: #eee;
  font-weight: 700;
}
.chip-plate-controls {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-top: 6px;
}
.chip-plate-controls input,
.tuning-selectors select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  color: #eee;
  background: #111;
  border: 1px solid #555;
  border-radius: 2px;
}
.chip-plate-controls input {
  max-width: 220px;
  text-transform: uppercase;
}
.chip-plate-controls .btn {
  flex-shrink: 0;
  cursor: pointer;
}
.chip-help {
  color: #999;
  font-size: 12px;
  margin-top: 8px;
}
.chip-advisory {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid #d09a42;
  background: #211d16;
  color: #e6c98e;
  font-size: 13px;
}
.chip-add-to-cart {
  margin-top: 12px;
}
.chip-add-to-cart .btn { cursor: pointer; }
.chip-status {
  min-height: 20px;
  margin-top: 12px;
  color: #bbb;
}
.chip-status:empty { display: none; }
.chip-status.error { color: #ff7777; }
.chip-status.success { color: #79c879; }
.vehicle-summary {
  margin-top: 16px;
  padding: 14px;
  background: #111;
  border: 1px solid #333;
}
.vehicle-summary-list,
.tuning-data {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr;
  gap: 7px 14px;
}
.vehicle-summary-list dt,
.tuning-data dt { color: #999; }
.vehicle-summary-list dd,
.tuning-data dd {
  color: #eee;
  margin: 0;
  overflow-wrap: anywhere;
}
.vehicle-summary > .btn { margin-top: 14px; cursor: pointer; }
.chip-cart-item { align-items: flex-start; }
.chip-cart-details {
  margin: 4px 0 0;
  color: #aaa;
  font: inherit;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chip-cart-item .cart-remove { flex-shrink: 0; }
.tuning-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tuning-selectors select {
  display: block;
  margin-top: 6px;
}
.tuning-selectors select:disabled {
  color: #777;
  cursor: not-allowed;
}
.tuning-results {
  margin-top: 18px;
}
.tuning-results:empty { display: none; }
.tuning-data {
  padding: 14px;
  background: #111;
  border: 1px solid #333;
}
.chip-comparison {
  width: 100%;
  border-collapse: collapse;
  background: #111;
  border: 1px solid #333;
}
.chip-comparison th,
.chip-comparison td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #333;
}
.chip-comparison th {
  color: #fff;
  background: #222;
}
.chip-comparison td { color: #ccc; }
.chip-comparison td:last-child {
  color: #79c879;
  font-weight: 700;
}
@media (max-width: 700px) {
  .chip-panel { padding: 16px 14px; }
  .chip-plate-controls { flex-direction: column; }
  .chip-plate-controls input { max-width: none; }
  .tuning-selectors { grid-template-columns: 1fr; }
  .vehicle-summary-list,
  .tuning-data { grid-template-columns: minmax(100px, 1fr) 1.5fr; }
  .chip-comparison th,
  .chip-comparison td { padding: 8px 6px; font-size: 11px; }
}

/* 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;
}
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  color: #fff;
}
.header-cart:hover { color: #ff5555; }
.header-cart-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.header-cart .cart-count {
  min-width: 20px;
  height: 20px;
  margin-left: 0;
}
.topbar-language {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  white-space: nowrap;
}
.topbar-language-label {
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.topbar-language-button,
.topbar-language-auto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 25px;
  padding: 3px 5px;
  color: #bbb;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  cursor: pointer;
}
.topbar-language-button svg {
  display: block;
  width: 22px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 1px #000;
}
.topbar-language-button span {
  font-size: 9px;
  font-weight: 700;
}
.topbar-language-button:hover,
.topbar-language-auto:hover,
.topbar-language-button[aria-current="true"],
.topbar-language-auto[aria-current="true"] {
  color: #fff;
  border-color: #555;
  background: #222;
}
.topbar-language-button:focus-visible,
.topbar-language-auto:focus-visible {
  outline: 2px solid #e63939;
  outline-offset: 2px;
}

.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: repeat(3, 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;
}
.product-placeholder {
  position: relative;
}
.placeholder-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 7px;
  border: 1px solid #704040;
  border-radius: 3px;
  color: #e8aaaa;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.product-placeholder h3 {
  color: #fff;
  font-size: 16px;
}

@media (max-width: 700px) {
  .topbar-language {
    gap: 3px;
    align-self: flex-end;
  }
  .topbar-language-label {
    display: none;
  }
  .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;
}
.catalog-category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.catalog-category-nav a { display: inline-block; padding: 8px 14px; color: #eee; background: #1a1a1a; border: 1px solid #383838; border-radius: 3px; }
.catalog-category-nav a:hover { border-color: #c41e1e; text-decoration: none; }
.catalog-root-category { margin: 0 0 30px; scroll-margin-top: 20px; }
.catalog-root-image, .catalog-detail-category-image { display: block; width: 100%; max-height: 220px; margin: 14px 0; object-fit: cover; border-radius: 4px; }
.catalog-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; color: #999; }
.catalog-breadcrumbs button { padding: 0; color: #ddd; background: transparent; border: 0; cursor: pointer; }
.catalog-breadcrumbs button[aria-current="page"] { color: #fff; font-weight: 700; }
.catalog-current-heading { margin: 16px 0; color: #fff; }
.catalog-category-grid, .catalog-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0 20px; }
.catalog-category-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 118px; padding: 18px; overflow: hidden; color: #eee; background: #1a1a1a; border: 1px solid #383838; border-radius: 3px; text-align: left; cursor: pointer; }
.catalog-category-card:hover { border-color: #c41e1e; }
.catalog-category-image { display: block; width: calc(100% + 36px); margin: -18px -18px 14px; background: #101010; }
.catalog-category-image img { display: block; width: 100%; height: 150px; object-fit: cover; }
.catalog-category-name { margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.catalog-category-action { margin-top: auto; color: #ccc; font-size: 13px; }
.catalog-gallery .product-row { flex-direction: column; margin: 0; }
.catalog-gallery .product-img { display: flex; align-items: center; justify-content: center; height: 150px; width: 100%; overflow: hidden; }
.catalog-gallery .product-img img { width: 100%; height: 190px; object-fit: cover; }
.catalog-gallery .product-body { flex: 1; }

/* 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); }
}

/* Phone layout: compact navigation, readable cards and comfortable controls. */
@media (max-width: 700px) {
  body { font-size: 14px; line-height: 1.65; background-attachment: scroll; }
  .topbar { padding: 4px 0; }
  .topbar-inner { flex-direction: row; justify-content: flex-end; }
  .topbar-language { margin-left: auto; gap: 4px; }
  .topbar-language-button, .topbar-language-auto { min-width: 44px; min-height: 36px; }
  .header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 0;
  }
  .header-right { display: contents; }
  .logo-link {
    grid-column: 1; grid-row: 1;
    min-width: 0; padding: 0; background: transparent; justify-content: flex-start;
  }
  .logo-link img { max-width: 100%; height: 36px; object-fit: contain; }
  .logo-fallback { padding: 4px 0; font-size: 13px; letter-spacing: 0; background: transparent; }
  .header-row > .header-right > .cart-icon {
    grid-column: 2; grid-row: 1;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px 12px; border-radius: 6px; font-size: 11px;
  }
  .header-cart {
    grid-column: 3; grid-row: 1; position: relative;
    justify-content: center; width: 44px; min-height: 44px; padding: 8px;
    border: 1px solid #3a3a3a; border-radius: 6px; background: #242424;
  }
  .header-cart .cart-count {
    position: absolute; top: 1px; right: 1px;
    min-width: 17px; height: 17px; padding: 0 3px; font-size: 10px;
  }
  .main-nav {
    grid-column: 1 / -1; grid-row: 2;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px; width: 100%; padding: 10px 0 12px; margin-top: 4px;
    border-top: 1px solid #303030;
  }
  .main-nav a {
    display: flex; align-items: center; justify-content: center;
    min-width: 0; min-height: 44px; padding: 8px 4px;
    border: 1px solid #353535; border-radius: 6px;
    background: #202020; font-size: 11px; letter-spacing: 0; text-align: center;
  }
  .main-nav a:hover { background: #2b2b2b; border-color: #c41e1e; }
  .main-wrap { padding: 20px 16px 36px; }
  .page-banner, .intro-block, .info-box, .chip-panel, .cart-panel, .contact-form {
    padding: 18px; border-radius: 10px; margin-bottom: 20px;
  }
  .page-banner h1, .intro-block h1 { font-size: 25px; line-height: 1.2; margin-bottom: 10px; }
  .page-banner p, .intro-block .lead, .info-box p, .shop-intro { font-size: 14px; line-height: 1.7; }
  .subdomain-cards, .cards-row, .project-teasers { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sub-card, .cards-row .card, .project-card, .project-detail, .section-box { border-radius: 10px; }
  .sub-card { padding: 16px; }
  .sub-card h3, .cards-row .card h2 { line-height: 1.35; }
  .cards-row .card p, .project-card-body p, .project-text p, .cms-right p { font-size: 14px; }
  .slider { border-radius: 10px; }
  .slide img { height: 210px; max-height: none; object-fit: cover; }
  .slide-caption { position: static; max-width: none; padding: 16px; background: #171717; }
  .slide-caption h2 { font-size: 19px; line-height: 1.3; }
  .slide-caption p { font-size: 13px; margin-top: 6px; }
  .slider-arrow { top: 105px; width: 44px; height: 44px; }
  .slider-nav { top: 174px; bottom: auto; gap: 0; }
  .slider-dot { display: grid; place-items: center; width: 30px; height: 30px; background: transparent; }
  .slider-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #bbb; }
  .slider-dot.active { background: transparent; }
  .slider-dot.active::after { background: #e63939; }
  .catalog-category-nav { gap: 8px; }
  .catalog-category-nav a, [data-catalog-back], .catalog-breadcrumbs button { min-height: 44px; padding: 10px 12px; }
  [data-catalog-back] { display: inline-flex; align-items: center; padding-left: 0; }
  .catalog-breadcrumbs { gap: 2px; align-items: center; }
  .catalog-breadcrumbs button { padding: 8px; font-size: 13px; }
  .catalog-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-category-card { min-width: 0; padding: 14px; border-radius: 8px; }
  .catalog-category-image { width: calc(100% + 28px); margin: -14px -14px 12px; }
  .catalog-category-image img { height: 110px; object-fit: contain; }
  .catalog-category-name { font-size: 14px; overflow-wrap: anywhere; }
  .catalog-category-action { font-size: 12px; }
  .catalog-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog-gallery .product-row { border-radius: 10px; overflow: hidden; }
  .catalog-gallery .product-img, .catalog-gallery .product-img img { height: 210px; }
  .catalog-gallery .product-img img { object-fit: contain; }
  .catalog-gallery .product-body { padding: 18px; }
  .catalog-gallery h3 { font-size: 17px; line-height: 1.4; }
  .catalog-gallery .desc { font-size: 14px; line-height: 1.65; }
  .catalog-gallery .price { margin: 12px 0; font-size: 17px; font-weight: 700; color: #fff; }
  .product-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product-detail-layout > div { min-width: 0; }
  .product-detail-content h1 { font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
  .product-detail-description { font-size: 14px; }
  .product-detail-cover { height: 280px; }
  .btn { min-height: 48px; border-radius: 6px; font-size: 14px; }
  .contact-form label { font-size: 13px; margin-bottom: 6px; }
  .contact-form input, .contact-form select, .contact-form textarea,
  .chip-plate-controls input, .tuning-selectors select, .product-variant-select {
    min-width: 0; min-height: 48px; border-radius: 6px; font-size: 16px;
  }
  .contact-form textarea { min-height: 120px; }
  .cart-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cart-heading h1 { font-size: 24px; }
  .cart-item { gap: 12px; padding: 16px 0; }
  .cart-item-details { min-width: 0; overflow-wrap: anywhere; }
  .cart-quantity-button { width: 44px; height: 44px; }
  .cart-remove, .cart-clear { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .chip-plate-controls { max-width: none; }
  .chip-comparison { table-layout: fixed; overflow-wrap: anywhere; }
  .project-text { padding: 18px 16px; }
  .cms-item { min-width: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 0 16px; }
  .footer-block:last-child { grid-column: 1 / -1; }
  .footer-block { min-width: 0; overflow-wrap: anywhere; }
  .footer-block a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; }
  .site-footer { padding: 28px 0; }
}

a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid #e63939; outline-offset: 3px;
}
