/* CMS theme roles keep the exact original palette as fallbacks.
   Status/validation colors, RAL samples, photographs and optical masks are independent. */
/* ==========================================================================
   POTOLKI.ELIPS.by — Interactive Components & Specific Module Styles
   Calculator, Color/Texture Visualizer, Project Details, Reviews & Lightbox
   ========================================================================== */

/* ==========================================================================
   1. Interactive Calculator Styles (photo_6 & photo_11)
   ========================================================================== */

.calc-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}

.calc-card {
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.calc-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
  margin-bottom: 6px;
}

.calc-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.calc-field-group {
  margin-bottom: 28px;
}

.calc-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calc-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-text, var(--color-primary));
}

.calc-val-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.calc-range-wrap {
  position: relative;
  width: 100%;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--theme-border, #e2e8f0);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--theme-surface, #ffffff);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--color-gold-hover);
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* Ceiling Surface Radio Cards */
.surface-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.surface-option {
  position: relative;
  cursor: pointer;
}

.surface-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.surface-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  background: var(--theme-surface, #ffffff);
  height: 100%;
}

.surface-card img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.surface-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
  margin-bottom: 2px;
}

.surface-card-desc {
  font-size: 0.725rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.surface-option input:checked + .surface-card {
  border-color: var(--color-gold);
  background: var(--theme-accent-tint, #fffdfa);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 20%, transparent);
}

.surface-check-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--theme-button-fill, var(--color-gold));
  color: var(--theme-on-button, var(--theme-on-accent, #ffffff));
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.surface-option input:checked ~ .surface-check-icon {
  display: flex;
}

/* Switch Toggle (Backlight) */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--theme-border, #cbd5e1);
  transition: 0.3s;
  border-radius: 34px;
}

.slider-round::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--theme-surface, white);
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider-round {
  background-color: var(--color-gold);
}

.switch input:checked + .slider-round::before {
  transform: translateX(22px);
}

/* Counter [-] 1 [+] */
.counter-box {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--theme-surface, #ffffff);
}

.counter-btn {
  background: var(--theme-surface-alt, #f1f5f9);
  border: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--theme-text, var(--color-primary));
  transition: background 0.2s;
}

.counter-btn:hover {
  background: var(--theme-border, #e2e8f0);
}

.counter-val {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--theme-text, var(--color-primary));
}

/* Quick Texture Selection Chips */
.calc-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.calc-chip {
  background: var(--theme-surface-alt, #f8fafc);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--theme-text, var(--color-primary));
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.calc-chip:hover {
  border-color: var(--color-gold);
  background: var(--theme-surface, #ffffff);
  color: var(--theme-accent-strong, #a87938);
}

.calc-chip.active {
  background: color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 12%, transparent);
  border-color: var(--color-gold);
  color: var(--theme-text, var(--color-primary));
  font-weight: 600;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 15%, transparent);
}

/* Texture Dropdown Select */
.calc-type-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--theme-surface, #ffffff);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--theme-text, var(--color-primary));
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-type-select:focus {
  border-color: var(--color-gold);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 15%, transparent);
}

.calc-type-select optgroup {
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
  background: var(--theme-surface-alt, #f8fafc);
  padding: 6px 0;
}

.calc-type-select option {
  font-weight: normal;
  color: var(--theme-text, #1e293b);
  background: var(--theme-surface, #ffffff);
  padding: 6px 10px;
}

/* Texture Badge */
.calc-type-badge {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 30%, transparent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--theme-text, var(--color-primary));
}

.calc-type-badge strong {
  color: var(--theme-accent-strong, #a87938);
  font-size: 0.95rem;
}

.calc-type-badge.calc-type-badge-empty {
  background: var(--theme-surface-alt, #f1f5f9);
  border-color: var(--theme-border, #cbd5e1);
  color: var(--color-text-muted);
}

/* Universal Stepper Input */
.calc-input-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--theme-surface, #ffffff);
  overflow: hidden;
  transition: border-color 0.2s;
}

.calc-input-stepper:focus-within {
  border-color: var(--color-gold);
}

.calc-stepper-btn {
  background: var(--theme-surface-alt, #f8fafc);
  border: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--theme-text, var(--color-primary));
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.calc-stepper-btn:hover {
  background: var(--theme-border, #e2e8f0);
  color: var(--theme-accent-strong, #a87938);
}

.calc-stepper-input {
  width: 60px;
  border: none;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
  padding: 6px 4px;
  outline: none;
  -moz-appearance: textfield;
}

.calc-stepper-input::-webkit-outer-spin-button,
.calc-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-stepper-unit {
  padding-right: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  user-select: none;
}

/* Helper Action Button (Auto Perimeter) */
.calc-helper-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--theme-surface-alt, #f1f5f9);
  border: 1px dashed var(--theme-border, #cbd5e1);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-text, var(--color-primary));
  cursor: pointer;
  transition: all 0.2s;
}

.calc-helper-btn:hover {
  border-color: var(--color-gold);
  background: var(--theme-surface, #ffffff);
  color: var(--theme-accent-strong, #a87938);
}

/* Counters Grid (Corners, Spotlights, Chandeliers, Pipes) */
.calc-counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.calc-counter-card {
  background: var(--theme-surface-alt, #f8fafc);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.calc-counter-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-counter-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-text, var(--color-primary));
}

.calc-counter-hint {
  font-size: 0.775rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.badge-free-quota {
  display: inline-block;
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.725rem;
  margin-top: 2px;
}

/* Additional Options Accordion */
.calc-accordion-box {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--theme-surface, #ffffff);
}

.calc-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--theme-surface-alt, #f8fafc);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
  text-align: left;
  transition: background 0.2s;
}

.calc-accordion-toggle:hover {
  background: var(--theme-surface-alt, #f1f5f9);
}

.accordion-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.calc-accordion-content {
  display: none;
  padding: 24px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--theme-surface, #ffffff);
}

.calc-accordion-content.open {
  display: block;
}

.calc-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.calc-extra-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-extra-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-text, var(--color-primary));
}

.calc-extra-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.calc-checkbox-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

.calc-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.calc-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-gold);
  margin-top: 2px;
  cursor: pointer;
}

.calc-check-text {
  font-size: 0.875rem;
  color: var(--theme-text, var(--color-primary));
  line-height: 1.4;
}

.calc-check-text strong {
  color: var(--theme-accent-strong, #a87938);
}

/* Actions Row & Reset */
.calc-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.calc-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.calc-reset-btn:hover {
  color: var(--theme-text, var(--color-primary));
  background: var(--theme-surface-alt, #f1f5f9);
}

/* Right Sticky Summary Card */
.calc-summary-card {
  position: sticky;
  top: 104px;
  background: var(--color-primary-card);
  color: var(--theme-on-primary, #ffffff);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-dark);
}

.calc-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-dark);
}

.calc-summary-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.calc-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 16%, transparent);
  color: var(--theme-accent-on-primary, var(--color-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-price-wrap {
  margin-bottom: 20px;
}

.calc-price-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 60%, transparent);
  margin-bottom: 4px;
}

.calc-price-amount {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--theme-accent-on-primary, var(--color-gold-light));
  line-height: 1.1;
}

.calc-old-price {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 60%, transparent);
  margin-top: 6px;
}

/* Minimum Order Alert */
.calc-min-order-alert {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.825rem;
  color: #fef08a;
  line-height: 1.4;
  margin-bottom: 20px;
}

.calc-min-order-alert svg {
  flex-shrink: 0;
  color: #facc15;
}

.calc-min-order-alert strong {
  color: #ffffff;
}

/* Dynamic Breakdown List */
.calc-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

.calc-breakdown-list::-webkit-scrollbar {
  width: 4px;
}

.calc-breakdown-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 20%, transparent);
  border-radius: 4px;
}

.calc-breakdown-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 8%, transparent);
  font-size: 0.85rem;
}

.calc-breakdown-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-breakdown-label {
  font-weight: 600;
  color: var(--theme-on-primary, #ffffff);
}

.calc-breakdown-detail {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 60%, transparent);
}

.calc-breakdown-value {
  font-weight: 700;
  color: var(--color-gold-light);
  white-space: nowrap;
}

.calc-breakdown-empty {
  text-align: center;
  padding: 20px 10px;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 50%, transparent);
}

.text-success {
  color: #4ade80 !important;
}

.calc-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-dark);
}

.calc-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.calc-summary-param {
  color: color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 65%, transparent);
}

.calc-summary-value {
  font-weight: 600;
  color: var(--theme-on-primary, #ffffff);
}

.calc-summary-note {
  font-size: 0.775rem;
  color: color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 55%, transparent);
  line-height: 1.45;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
}

.calc-badge-free {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--theme-surface, rgb(255 255 255)) 6%, transparent);
  border: 1px dashed color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 40%, transparent);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--color-gold-light);
  font-weight: 600;
}

/* Modal Lead Summary Box */
.calc-modal-summary-box {
  background: var(--theme-surface-alt, #f8fafc);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.calc-modal-summary-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--theme-text, var(--color-primary));
}

.calc-modal-summary-price strong {
  color: var(--theme-accent-strong, #a87938);
  font-size: 1.25rem;
}

.calc-modal-summary-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.825rem;
  color: var(--theme-text, var(--color-primary));
}

/* ==========================================================================
   2. Interactive Color & Texture Picker / Visualizer (photo_5)
   ========================================================================== */

.picker-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: start;
}

.picker-controls {
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.picker-step {
  margin-bottom: 28px;
}

.picker-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
  margin-bottom: 14px;
}

.picker-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--theme-on-accent, #1a1608);
  font-size: 0.775rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Room Pill Buttons */
.room-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.room-pill {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--theme-surface, #ffffff);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.room-pill:hover {
  border-color: var(--color-gold);
}

.room-pill.active {
  border-color: var(--color-gold);
  background: var(--color-gold-badge);
  color: var(--theme-text, var(--color-primary));
}

.room-pill-icon {
  font-size: 1.25rem;
}

/* Color Categories Tabs */
.color-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.color-tab-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.color-tab-btn:hover {
  color: var(--theme-text, var(--color-primary));
}

.color-tab-btn.active {
  background: var(--color-primary);
  color: var(--theme-on-primary, #ffffff);
}

/* Color Swatches Grid */
.swatches-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
}

.swatch-color {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
  position: relative;
}

.swatch-item:hover .swatch-color {
  transform: translateY(-2px);
}

.swatch-item.active .swatch-color {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 35%, transparent);
}

.swatch-name {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.swatch-item.active .swatch-name {
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
}

/* Visualizer Display Box (Right) */
.visualizer-display {
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 104px;
}

.visualizer-canvas-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: var(--theme-primary, #0f1d2e);
  overflow: hidden;
}

.visualizer-room-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* Ceiling tint overlay simulation */
.visualizer-ceiling-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  mix-blend-mode: color;
  opacity: 0.45;
  pointer-events: none;
  transition: background-color 0.4s ease, opacity 0.4s ease;
}

.visualizer-gloss-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%, rgba(255, 255, 255, 0.15) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.visualizer-gloss-shine.active {
  opacity: 1;
}

.visualizer-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: color-mix(in srgb, var(--theme-primary, rgb(15 29 46)) 85%, transparent);
  backdrop-filter: blur(8px);
  color: var(--theme-on-primary, #ffffff);
  border: 1px solid color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 40%, transparent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  line-height: 1.4;
  z-index: 5;
}

.visualizer-badge-surface {
  font-weight: 700;
  color: var(--theme-accent-on-primary, var(--color-gold-light));
}

.visualizer-badge-color {
  color: color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 85%, transparent);
}

.visualizer-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-surface, rgb(255 255 255)) 85%, transparent);
  border: none;
  color: var(--theme-text, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 5;
}

.visualizer-nav-btn:hover {
  background: var(--theme-surface, #ffffff);
  color: var(--color-gold);
}

.visualizer-nav-prev {
  left: 14px;
}

.visualizer-nav-next {
  right: 14px;
}

/* Room Thumbnails strip below visualizer */
.visualizer-thumbs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--theme-surface-alt, #f8fafc);
  border-top: 1px solid var(--color-border);
}

.viz-thumb-btn {
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.viz-thumb-btn img {
  width: 100%;
  height: 60px;
  object-fit: cover;
}

.viz-thumb-btn.active {
  border-color: var(--color-gold);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-accent, rgb(200 154 88)) 30%, transparent);
}

.viz-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--theme-primary, rgb(15 29 46)) 75%, transparent);
  color: var(--theme-on-primary, #ffffff);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 4px;
  text-align: center;
}

/* Inspiring Interiors Grid (photo 5 bottom) */
.inspire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.inspire-card {
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.inspire-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-gold);
}

.inspire-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 25%;
}

.inspire-body {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspire-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
}

.inspire-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   3. Project Detail Page (photo_13)
   ========================================================================== */

.project-viewer {
  background: var(--theme-surface, #ffffff);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.project-main-slide {
  position: relative;
  width: 100%;
  height: 480px;
  background: var(--color-primary);
  overflow: hidden;
}

.project-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: opacity 0.3s ease;
}

.project-counter-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: color-mix(in srgb, var(--theme-primary, rgb(15 29 46)) 85%, transparent);
  backdrop-filter: blur(8px);
  color: var(--theme-on-primary, #ffffff);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--theme-on-primary, rgb(255 255 255)) 20%, transparent);
}

.project-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--theme-surface-alt, #f8fafc);
  border-top: 1px solid var(--color-border);
}

.project-thumb-btn {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  background: var(--theme-surface, #ffffff);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.project-thumb-btn img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: center 25%;
}

.project-thumb-btn.active {
  border-color: var(--color-gold);
}

.project-thumb-caption {
  padding: 6px 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  display: block;
}

/* Project Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.spec-card {
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.spec-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold-badge);
  color: var(--color-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
  line-height: 1.4;
}

/* Similar Projects Row */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   4. Reviews Page (photo_10)
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-gold);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid var(--color-border);
}

.review-meta {
  display: flex;
  flex-direction: column;
}

.review-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
}

.review-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.review-tag {
  display: inline-block;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-main);
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

/* ==========================================================================
   5. Contacts Page (photo_12)
   ========================================================================== */

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-channels-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold-badge);
  color: var(--color-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-text, var(--color-primary));
}

.contact-channel-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.contacts-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.map-wrapper {
  background: var(--theme-surface, #ffffff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}

.map-cover-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Responsive Adaptations for Components
   ========================================================================== */

@media (max-width: 1080px) {
  .calc-layout,
  .picker-layout,
  .contacts-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px;
  }
  
  .calc-summary-card,
  .visualizer-display {
    position: static;
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .inspire-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .surface-selector-grid {
    grid-template-columns: 1fr;
  }
  
  .room-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .swatches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .project-thumbs-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reviews-grid,
  .similar-grid,
  .inspire-grid {
    grid-template-columns: 1fr;
  }
  
  .contacts-btn-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .calc-layout,
  .picker-layout,
  .contacts-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .calc-card,
  .calc-summary-card,
  .picker-card,
  .picker-controls,
  .visualizer-display,
  .contacts-card,
  .review-card {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 14px;
  }

  .calc-title {
    font-size: 1.35rem;
  }

  .calc-price-amount {
    font-size: 2rem;
  }

  .summary-price-amount {
    font-size: 2rem;
  }

  .calc-counters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .calc-extra-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .calc-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-quick-chips {
    gap: 6px;
  }

  .calc-chip {
    padding: 6px 10px;
    font-size: 0.775rem;
  }

  .counter-box {
    gap: 12px;
  }

  .counter-btn {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .visualizer-screen {
    height: 250px;
  }

  .visualizer-canvas-wrap {
    height: 250px;
  }

  .visualizer-thumbs-strip {
    padding: 10px 8px;
    gap: 6px;
  }

  .project-main-slide {
    height: 250px;
  }

  .project-thumb-btn img {
    height: 60px;
  }

  .swatches-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .swatch-btn {
    width: 36px;
    height: 36px;
  }

  .room-pills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .room-pill {
    padding: 10px 6px;
  }
}

@media (max-width: 360px) {
  .calc-card,
  .calc-summary-card,
  .picker-card,
  .picker-controls,
  .visualizer-display,
  .contacts-card,
  .review-card {
    padding: 16px 10px;
  }

  .swatches-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .room-pills-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .room-pill {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .visualizer-thumbs-strip {
    padding: 8px 4px;
    gap: 4px;
  }
}
