/* ─── V2 SUMMARY ─────────────────────────────────────────────── */
.v2-summary {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 56px 32px;
}
.v2-summary-inner {
  background: var(--offwhite);
  border: 1px solid var(--sand-mid);
  padding: 24px 28px;
}
.v2-summary-divider {
  border-top: 1px solid var(--sand-mid);
  margin: 12px 0;
}
.v2-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-ui);
  font-size: var(--fs-body-sm);
  color: var(--dark);
  padding: 4px 0;
}
.v2-summary-row .lbl { color: var(--gray); }
.v2-summary-row .val { font-weight: 600; white-space: nowrap; }
.v2-red { color: var(--red); }
.v2-summary-row--product { font-weight: 500; }
.v2-summary-row--product .lbl { color: var(--dark); }
.v2-summary-row--option { padding-left: 16px; font-size: var(--fs-small); }
.v2-summary-row--option .val { font-weight: 400; }
.v2-summary-row--total { font-weight: 700; }
.v2-summary-row--total .val { font-size: 1.05em; }
.v2-summary-row--tva { font-size: var(--fs-small); }
.v2-summary-row--grand { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 700; padding: 6px 0 2px; }
.v2-summary-row--grand .val { color: var(--red); }
.v2-summary-row--ron { font-size: var(--fs-small); }
.v2-summary-row--ron .val { font-weight: 500; }
@media (max-width: 600px) {
  .v2-summary { padding: 16px; }
  .v2-summary-inner { padding: 18px 16px; }
}

/* ─── V2 MODEL SELECTION ─────────────────────────────────────── */
.model-card { position: relative; transition: box-shadow 0.2s; }
.model-card.is-selected {
  box-shadow: 0 0 0 3px var(--red);
  background: var(--cream);
}

/* Clickable areas for model selection */
.v2-clickable-select {
  cursor: pointer;
}
.v2-clickable-photo {
  position: relative;
}
.v2-clickable-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.15s;
}
.v2-clickable-photo:hover::after {
  background: rgba(0,0,0,0.04);
}

/* Select badge on photo */
.v2-select-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--sand-mid);
  color: var(--gray);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.15s;
  pointer-events: none;
}
.model-card.is-selected .v2-select-badge {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.v2-clickable-photo:hover .v2-select-badge {
  border-color: var(--red);
  color: var(--red);
}
.model-card.is-selected .v2-clickable-photo:hover .v2-select-badge {
  color: #fff;
}

/* ─── V2 DIMENSIONS ROW ─────────────────────────────────────── */
.v2-dims-row {
  padding: 24px 56px;
  background: var(--offwhite);
  border-bottom: 1px solid var(--sand-mid);
}
.v2-dims-row .dim-tag {
  background: #fff;
  border: 2px solid var(--sand-mid);
  padding: 12px 22px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  letter-spacing: 0.05em;
}
.v2-dims-row .dim-tag strong {
  font-size: 1.1em;
  color: var(--red);
}
@media (max-width: 600px) {
  .v2-dims-row { padding: 16px 20px; }
}

/* ─── V2 CONFIG CARDS (radio card chooser) ──────────────────── */
.v2-config-chooser {
  padding: 24px 56px;
  background: var(--sand);
}
.v2-config-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.v2-config-card {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid var(--sand-mid);
  cursor: pointer;
  transition: all 0.15s;
}
@media (hover: hover) {
  .v2-config-card:hover {
    border-color: var(--red);
  }
}
.v2-config-card.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
  background: var(--offwhite);
}
.v2-config-card input[type="radio"] { display: none; }
.v2-config-card { -webkit-tap-highlight-color: transparent; }
.v2-config-card-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--sand-mid);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.15s;
}
.v2-config-card-radio::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform 0.15s;
}
.v2-config-card.is-active .v2-config-card-radio {
  border-color: var(--red);
}
.v2-config-card.is-active .v2-config-card-radio::after {
  transform: scale(1);
}
@media (hover: hover) {
  .v2-config-card:hover .v2-config-card-radio {
    border-color: var(--red);
  }
}
/* Remove focus outline on hidden radio */
.v2-config-card input[type="radio"]:focus {
  outline: none;
}
.v2-config-card input[type="radio"]:focus + .v2-config-card-radio {
  border-color: var(--sand-mid);
}
.v2-config-card-body { flex: 1; }
.v2-config-card-title {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.v2-config-card-dims {
  font-family: var(--font-ui);
  font-size: var(--fs-body-sm);
  color: var(--gray);
  margin-bottom: 4px;
}
.v2-config-card-transport {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--gray-light);
}
@media (max-width: 600px) {
  .v2-config-chooser { padding: 16px 20px; }
  .v2-config-cards { flex-direction: column; }
}

/* ─── V2 MODEL CARD header above image ───────────────────────── */
.v2-offer .model-card {
  margin-top: 16px;
}
.v2-offer .group-header + .model-card {
  margin-top: 0;
}
.v2-card-header {
  background: var(--sand);
  padding: 14px 56px;
  border-top: 2px solid var(--sand-mid);
}
.v2-card-header .model-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.v2-card-header .model-meta {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--gray);
  margin: 2px 0 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.v2-card-header .model-badge {
  margin-left: 8px;
}
.v2-offer .model-card.is-selected .v2-card-header {
  background: var(--cream);
  border-top-color: var(--red);
}
@media (max-width: 600px) {
  .v2-card-header { padding: 12px 20px; }
  .v2-offer .accordion-trigger { padding-left: 20px; padding-right: 20px; }
}

/* ─── V2 MODEL GROUP header + tag ────────────────────────────── */
.v2-offer .group-tag {
  white-space: normal;
  flex-shrink: 1;
}
.v2-offer .model-group {
  margin-top: 24px;
}
.v2-offer .model-group .group-header {
  margin-bottom: 0;
  border-top: 2px solid var(--sand-mid);
}

/* ─── V2 CTA spacing ─────────────────────────────────────────── */
.v2-offer .cta-desc { margin-bottom: 12px; }
.v2-offer .cta-cost { margin-bottom: 8px; }

/* ─── V2 PRODUCT SECTION ────────────────────────────────────── */
.v2-product-section {
  margin-bottom: 8px;
}
.v2-product-header {
  background: #6B5D4F;
  padding: 24px 56px;
  margin-top: 40px;
}
.v2-product-section:first-child .v2-product-header {
  margin-top: 0;
}
.v2-product-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .v2-product-header { padding: 18px 20px; }
}

/* ─── V2 FLOATING BAR ────────────────────────────────────────── */
.v2-floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(62, 22, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  border-top: 1px solid var(--sand-mid);
}
.v2-floating-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px 4px;
}
.v2-floating-inner {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-ui);
}
.v2-floating-label {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.v2-floating-price {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: #fff;
}
.v2-floating-ron {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.5);
}
.v2-floating-products {
  text-align: center;
  padding: 2px 24px 10px;
  font-family: var(--font-ui);
  font-size: var(--fs-body-sm);
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  line-height: 1.5;
}
.v2-floating-btn {
  background: var(--red);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.v2-floating-btn:hover { background: var(--red-dark); }

/* Floating bar change animation */
@keyframes v2-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes v2-bar-flash {
  0% { background-color: rgba(62, 22, 22, 0.88); }
  20% { background-color: rgba(168, 40, 42, 0.85); }
  100% { background-color: rgba(62, 22, 22, 0.88); }
}
.v2-floating-price.is-changing {
  animation: v2-pulse 0.5s ease;
}
.v2-floating-bar.is-changing {
  animation: v2-bar-flash 1s ease;
}
@keyframes v2-product-highlight {
  0% { color: #fff; font-weight: 700; font-size: 1.15em; }
  30% { color: #fff; font-weight: 700; font-size: 1.15em; }
  100% { color: rgba(255,255,255,0.75); font-weight: 500; font-size: 1em; }
}
.v2-floating-product-line {
  display: block;
}
.v2-floating-product-line.is-changing {
  animation: v2-product-highlight 1s ease;
}

/* Account for floating bar height */
body.v2-offer { padding-bottom: 110px; }

@media (max-width: 600px) {
  .v2-floating-main { padding: 8px 16px 2px; gap: 8px; }
  .v2-floating-inner { gap: 6px; }
  .v2-floating-products { padding: 1px 16px 6px; font-size: 12px; }
  body.v2-offer { padding-bottom: 105px; }
}

/* ─── V2 Incompatible option hint ────────────────────────────── */
.v2-opt-unavailable {
  opacity: 0.45;
  font-style: italic;
}
