/* De Betonboorder / Innova Monoblock Webshop – branding uit images/branding */
:root {
  /* Brandkleuren: limoen groen + donkergrijs (uit logo) */
  --color-accent: #9ac43a;
  --color-accent-hover: #b8e04a;
  --color-cta: #9ac43a;
  --color-bg: #1e272e;
  --color-surface: #2d3436;
  --color-surface-hover: #37474f;
  --color-border: #37474f;
  --color-text: #e8ecf0;
  --color-text-muted: #95a0ad;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --product-image-ratio: 4/3;
  /* Header – grijze balk */
  --header-bg: #e8eaed;
  --header-text: #2d3436;
  --header-text-muted: #5f6b76;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hide number input spinners (cart qty, etc.) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Header – wit vlak voor logo (images/branding) */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid #d1d5db;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--header-text);
}

.logo img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--header-text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-bg);
  font-weight: 600;
}

.cart-link:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
}

.cart-count {
  background: var(--color-bg);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count.empty {
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-bg);
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Hero / Banner */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  min-height: 280px;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-hover) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  padding: 3rem 2rem;
  max-width: 1060px;
  z-index: 1;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
}

.hero-box h1 {
  margin-top: 0;
}

.hero-box p {
  margin-bottom: 1.25rem;
}

.hero-callout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.hero-callout-text {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.9rem;
}

.hero-box-main .hero-actions {
  margin-top: auto;
}

.hero-box-callout {
  justify-content: center;
}

.hero-box-callout--align-bottom {
  justify-content: flex-start;
}

.hero-box-callout--align-bottom .hero-callout-actions {
  margin-top: auto;
}

.wizard-label-with-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wizard-label-with-info label {
  margin: 0;
}

.wizard-info-img {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  margin-top: 0.6rem;
  border: 1px solid var(--color-border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-cta);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
}

.btn-secondary {
  background: var(--color-surface-hover);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions .btn {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

/* Make "Hulp bij apparaatkeuze" more discoverable in hero */
.hero-wizard-btn.btn {
  /* Zorg dat deze knop dezelfde hoogte heeft als de installatieknop (basis .btn) */
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: 1.5px solid rgba(255, 107, 107, 0.95);
  border-color: rgba(255, 107, 107, 0.95);
  background: rgba(255, 107, 107, 0.28);
  color: var(--color-text);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.12), 0 12px 30px rgba(0, 0, 0, 0.24);
}

.hero-wizard-btn.btn:hover {
  background: rgba(255, 107, 107, 0.38);
  border-color: rgba(255, 107, 107, 1);
  color: var(--color-text);
}

.hero-wizard-btn.btn:focus-visible {
  outline: 2px solid rgba(255, 107, 107, 0.9);
  outline-offset: 2px;
}

/* Homepage banner */
.home-banner {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.home-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 196, 58, 0.65);
  background: rgba(154, 196, 58, 0.18);
  color: var(--color-text);
  box-shadow: 0 0 0 1px rgba(154, 196, 58, 0.10), 0 10px 26px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.home-banner-inner strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

/* Wizard (apparaatkeuze) */
.wizard {
  display: grid;
  gap: 1rem;
  color: var(--color-text) !important;
}

.wizard .form-group label {
  color: var(--color-text) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
}

.wizard-steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.wizard-step span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
}

.wizard-step.active {
  border-color: rgba(154, 196, 58, 0.45);
  color: var(--color-text);
}

.wizard-step.active span {
  background: rgba(154, 196, 58, 0.18);
  border-color: rgba(154, 196, 58, 0.65);
  color: var(--color-accent);
}

.wizard-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.wizard-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.wizard-row {
  grid-template-columns: 1fr 1fr;
}

.wizard-choice-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.5rem;
}

.wizard-choice-row--with-info {
  align-items: center;
  justify-content: flex-start;
}

.wizard-choice-row--with-info .wizard-info-icon {
  margin-left: 0; /* zet de i naast de radiokeuze (links) i.p.v. helemaal rechts */
}

.wizard-help {
  color: var(--color-text) !important;
  font-size: 1.03rem;
  margin-top: 0.35rem;
}

.wizard-panel {
  color: var(--color-text) !important;
  font-size: 1.02rem;
}

.wizard-disclaimer {
  color: var(--color-text) !important;
  font-size: 1rem;
}

.wizard-note {
  color: var(--color-text) !important;
  font-size: 1rem;
}

.wizard-result-meta,
.wizard-result.warning {
  color: var(--color-text);
}

.wizard-result-meta {
  font-size: 1rem;
  color: var(--color-text) !important;
}

/* Hide extra explanation boxes under fit-size questions (airco dimensions + margins) */
.wizard-panel[data-step="3"] #horizontal-fit-group .wizard-help,
.wizard-panel[data-step="3"] #mini-fit-group .wizard-help,
.wizard-panel[data-step="3"] #vertical-fit-group .wizard-help {
  display: none !important;
}

/* Ensure all wizard text remains readable (including nested info blocks) */
.wizard .install-info,
.wizard .install-note,
.wizard .wizard-result,
.wizard .wizard-result *:not(.btn) {
  color: var(--color-text) !important;
}

.wizard-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.wizard-actions-left,
.wizard-actions-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.wizard-actions-right {
  margin-left: auto;
}

.wizard-actions.wizard-actions--wrapped {
  justify-content: flex-start;
}

.wizard-actions.wizard-actions--wrapped .wizard-actions-right {
  margin-left: 0;
}

.wizard-actions .btn {
  min-width: 160px;
}

.wizard-result {
  display: grid;
  gap: 0.75rem;
}

.wizard-result.warning {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.wizard-result-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.wizard-result-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.wizard-result-meta {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.wizard-disclaimer {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  max-width: 360px;
}

.wizard-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.wizard-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .wizard-row {
    grid-template-columns: 1fr;
  }
  .wizard-actions-left,
  .wizard-actions-right {
    width: 100%;
  }

  /* Keep model actions full-width, but center nav buttons */
  .wizard-actions-left .btn {
    width: 100%;
  }

  .wizard-actions-right {
    justify-content: center;
  }

  .wizard-actions-right .btn {
    width: auto;
    min-width: 0;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 2.25rem 1.25rem;
  }

  .hero-box {
    padding: 1.1rem 1.1rem 1rem;
  }
}

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

/* Installatie configurator modal */
.install-modal.hidden {
  display: none;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.install-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.1rem;
  -ms-overflow-style: none; /* IE/Edge legacy */
  scrollbar-width: none; /* Firefox */
}

.install-modal-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.install-modal-panel::-webkit-scrollbar-thumb {
  background: transparent;
}

.install-modal-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.install-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-hover);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.install-modal-close:hover {
  background: var(--color-border);
}

.install-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.install-form select,
.install-form input[type="text"],
.install-form input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
}

.install-form select:focus,
.install-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}

.install-field {
  min-width: 0;
}

.install-accessories {
  display: grid;
  gap: 0.6rem;
  width: 100%;
}

.install-accessories > .install-check-with-info {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
}

.install-subfield {
  display: grid;
  gap: 0.35rem;
}

.install-grille-preview {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.install-grille-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.install-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.install-radio,
.install-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.2;
}

.install-radio input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.install-check.install-check-with-info {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}

.install-check-with-info .install-check-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.install-check-with-info .info-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(154, 196, 58, 0.65);
  background: rgba(154, 196, 58, 0.18);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: inherit;
}

.info-icon:hover {
  background: rgba(154, 196, 58, 0.28);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.info-icon:focus-visible {
  outline: 2px solid rgba(154, 196, 58, 0.85);
  outline-offset: 2px;
}

.wizard-info-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(154, 196, 58, 0.65);
  background: rgba(0, 0, 0, 0.18);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-info-icon:hover {
  background: rgba(154, 196, 58, 0.28);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.pay-methods {
  display: grid;
  gap: 0.6rem;
}

.pay-method-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.pay-method-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
}

.pay-method-main span {
  white-space: nowrap;
}

.pay-method-main input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--color-accent);
}

.pay-method-logo {
  height: 24px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
  margin: 0;
  align-self: center;
}

.weekday-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.weekday-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

.weekday-option input[type="checkbox"] {
  margin: 0;
  accent-color: var(--color-accent);
}

.business-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-text) !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

.business-toggle input[type="checkbox"] {
  margin: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--color-accent);
  flex: 0 0 auto;
}

#business-fields {
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem 0.1rem;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
}

.checkout-terms {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.terms-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text) !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

.terms-option input[type="checkbox"] {
  margin: 0.15rem 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--color-accent);
}

.terms-option a {
  color: var(--color-accent);
  text-decoration: underline;
}

.terms-warning {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(154, 196, 58, 0.45);
  border-radius: 12px;
  background: rgba(154, 196, 58, 0.1);
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.install-info {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.install-info--notice {
  margin-top: 0.65rem;
  border-color: rgba(154, 196, 58, 0.45);
  background: rgba(154, 196, 58, 0.1);
  color: var(--color-text);
  line-height: 1.45;
}

.install-inline-error {
  margin-top: 0.55rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.12);
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.install-device-subtotal {
  padding: 0.65rem 0;
  border-top: 1px dashed var(--color-border);
}

.install-device-subtotal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.install-device-subtotal-row span:last-child {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.install-radio input,
.install-check input {
  accent-color: var(--color-accent);
}

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

.install-summary {
  margin-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.install-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
}

.install-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.install-total-combined {
  border-top: 1px dashed var(--color-border);
  padding-top: 0.65rem;
}

.install-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.install-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.install-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.install-actions .btn {
  min-width: 160px;
}

.post-add-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.post-add-actions .btn {
  width: 100%;
}

@media (max-width: 780px) {
  .install-actions .btn {
    width: 100%;
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.product-card-link {
  color: inherit;
  display: block;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-link:hover {
  color: inherit;
}

.product-card-link .product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-image {
  aspect-ratio: var(--product-image-ratio);
  width: 100%;
  background: var(--color-bg);
  object-fit: contain;
  padding: 1rem;
}

.product-card-media {
  position: relative;
}

.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 380px) {
  .product-card-badge {
    width: 48px;
    height: 48px;
    font-size: 0.85rem;
    top: 0.6rem;
    left: 0.6rem;
  }
}

.product-card-body {
  padding: 1.25rem;
}

/* Zorg dat de knoppen onderaan uitlijnen, ook als teksten wrappen */
.product-card > .product-card-body:last-child {
  margin-top: auto;
  padding-top: 0.35rem;
}

.product-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.product-card-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.product-card-meta span.product-power {
  opacity: 0.9;
}

.product-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-accent);
  margin: 0 0 0.15rem;
  margin-top: auto;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card-actions .btn {
  flex: 1;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

/* Product detail page */
.product-detail {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }
}

.product-gallery {
  /* Niet sticky, gewoon meescrollen met de pagina */
}

.product-gallery-main {
  aspect-ratio: var(--product-image-ratio);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

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

.product-gallery-thumbs button {
  width: 64px;
  aspect-ratio: var(--product-image-ratio);
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.product-gallery-thumbs button:hover,
.product-gallery-thumbs button.active {
  border-color: var(--color-accent);
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 1.25rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.specs-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 40%;
}

.specs-table td {
  color: var(--color-text);
}

.product-features {
  color: var(--color-text-muted);
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}

.product-features li {
  margin-bottom: 0.25rem;
}

/* Tabs bij productdetail */
.product-tabs {
  margin-top: 1.5rem;
}

.product-tabs-nav {
  display: inline-flex;
  border-radius: 999px;
  background: var(--color-surface);
  padding: 0.15rem;
  margin-bottom: 1rem;
}

.product-tabs-nav button {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.product-tabs-nav button.active {
  background: var(--color-accent);
  color: var(--color-bg);
}

.product-tab-panel {
  display: none;
}

.product-tab-panel.active {
  display: block;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-actions .btn {
  padding: 0.875rem 1.5rem;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.quantity-selector button {
  width: 40px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.quantity-selector button:hover {
  background: var(--color-border);
}

.quantity-selector input {
  width: 48px;
  height: 44px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  text-align: center;
  font-family: inherit;
}

.quantity-selector input:focus {
  outline: none;
}

/* Cart page */
.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
  width: 100px;
  aspect-ratio: var(--product-image-ratio);
  object-fit: contain;
  background: var(--color-surface);
  border-radius: 8px;
  padding: 0.25rem;
}

.cart-item-name {
  font-weight: 600;
}

.cart-item-price {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.cart-item-subtotal-wrap {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.25rem;
}

.cart-item-subdiscount {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item-details {
  margin-top: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: grid;
  gap: 0.15rem;
}

.cart-item-quantity .quantity-selector {
  margin: 0;
}

.cart-item-subtotal {
  font-weight: 700;
  min-width: 5rem;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
}

.cart-item-remove:hover {
  color: #e63946;
}

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 360px;
  margin-left: auto;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cart-summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-accent);
}

.cart-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}

.cart-empty .btn {
  margin-top: 1rem;
}

/* Checkout */
.checkout-form {
  max-width: 560px;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkout-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  max-width: 360px;
}

.checkout-summary h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.checkout-summary .cart-item {
  grid-template-columns: 60px 1fr auto;
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.checkout-summary .cart-item-image {
  width: 60px;
  aspect-ratio: var(--product-image-ratio);
}

.checkout-summary .cart-summary-row.total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  font-size: 1.1rem;
}

.order-success {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.order-success h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--color-accent);
}

.order-success p {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 0.75rem 1.75rem;
  align-items: start;
  justify-content: center;
}

.footer-item {
  min-width: 0;
  text-align: center;
}

.footer-label {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.footer-value {
  color: var(--color-text-muted);
  word-break: break-word;
}

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

a.footer-value:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, max-content);
  }
}

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

/* Responsive */
@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
  }

  .cart-item-quantity {
    grid-column: 1 / -1;
  }

  .cart-item-subtotal {
    text-align: left;
  }

  .cart-item-remove {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
