/* configurator.css - Prime Sash Windows
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  --primary-color: #0A1628;
  --secondary-color: #9E9E90;
  --text-color: #181818;
  --light-gray: #F3F0EA;
  --border-color: #ddd;
  --success-color: #0A1628;
  --white: #fff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: all 0.3s;
}

/* ============================================================
   2. RESET
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   3. BASE
   ============================================================ */
body {
  font-family: 'Jost', sans-serif;
  background-color: var(--white);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Jost', sans-serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */
.d-none  { display: none !important; }
.d-block { display: block !important; }
.d-flex  { display: flex !important; }
.d-grid  { display: grid !important; }

.m-0  { margin: 0 !important; }
.m-5  { margin: 5px !important; }
.m-10 { margin: 10px !important; }
.m-15 { margin: 15px !important; }
.m-20 { margin: 20px !important; }

.mt-5  { margin-top: 5px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }

.mb-5  { margin-bottom: 5px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }

.p-0  { padding: 0 !important; }
.p-5  { padding: 5px !important; }
.p-10 { padding: 10px !important; }
.p-15 { padding: 15px !important; }
.p-20 { padding: 20px !important; }

.text-center { text-align: center !important; }
.text-left   { text-align: left !important; }
.text-right  { text-align: right !important; }

.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

.radius    { border-radius: var(--radius) !important; }
.radius-lg { border-radius: var(--radius-lg) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.transition { transition: var(--transition) !important; }

/* ============================================================
   5. LAYOUT - HEADER / NAV
   ============================================================ */
.header {
  display: none !important;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ============================================================
   6. CONFIGURATOR GRID
   ============================================================ */
.configurator-grid {
  display: grid !important;
  grid-template-columns: 240px 380px 1fr 300px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sidebar options preview spec"
    "infobox options preview spec";
  gap: 0;
  height: 100%;
  margin-top: 0;
  border-top: 2px solid var(--secondary-color);
  border-radius: 0;
  overflow: hidden;
}

.cat-btn.next-step {
  border-left-color: var(--secondary-color) !important;
  color: rgba(255,255,255,.95) !important;
  animation: pulse-next 1.2s ease-in-out infinite;
}

@keyframes pulse-next {
  0%   { background: rgba(255,255,255,.05); border-left-color: rgba(158,158,144,.3) !important; }
  50%  { background: rgba(158,158,144,.2); border-left-color: var(--secondary-color) !important; box-shadow: inset 3px 0 8px rgba(158,158,144,.3); }
  100% { background: rgba(255,255,255,.05); border-left-color: rgba(158,158,144,.3) !important; }
}

/* ============================================================
   7. SIDEBAR
   ============================================================ */
.config-sidebar {
  grid-area: sidebar;
  background: var(--primary-color);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 0 16px;
  margin-bottom: 12px;
}

.cat-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  color: rgba(255,255,255,.5);
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
}

.cat-btn:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.8);
}

.cat-btn.active {
  background: rgba(255,255,255,.08);
  border-left-color: var(--secondary-color);
  color: rgba(255,255,255,.95);
}

.cat-hint {
  display: block;
  font-size: 0.6rem;
  color: rgba(255,255,255,.25);
  margin-top: 2px;
}

.cat-btn.active .cat-hint {
  color: rgba(255,255,255,.4);
}

.sidebar-price {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-price-label {
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.sidebar-price-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255,255,255,.95);
  margin-top: 4px;
}

.sidebar-price-note {
  font-size: 0.6rem;
  color: rgba(255,255,255,.25);
  margin-top: 2px;
}

.sidebar-reset {
  padding: 0 16px 16px;
}

.btn-reset-window {
  display: block;
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  background: var(--primary-color);
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(158,158,144,.2);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-align: center;
}

.btn-reset-window:hover {
  border-color: rgba(158,158,144,.5);
  color: rgba(255,255,255,.8);
  background: #0e1e35;
}

.btn-reset-window::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%, #707068 15%, #B8B8AE 40%,
    #D4D4C8 50%, #B8B8AE 60%, #707068 85%, transparent 100%);
}

.btn-reset-window::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%, #707068 15%, #B8B8AE 40%,
    #D4D4C8 50%, #B8B8AE 60%, #707068 85%, transparent 100%);
}

/* ============================================================
   8. PREVIEW (center top)
   ============================================================ */
.configurator-preview {
  grid-area: preview;
  grid-row: 1 / -1;
  flex: none !important;
  position: relative !important;
  background: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 20px;
  min-height: 400px;
}

/* VIEW TOGGLE */
.view-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: rgba(10,22,40,.06);
  border-radius: 20px;
  padding: 3px;
}

/* ── OPENING INDICATORS (overlay on 3D) ── */
.opening-indicator {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}
.opening-indicator.arrow {
  color: #2ecc71;
}
.opening-indicator.cross {
  color: #e74c3c;
}

.view-btn {
  padding: 6px 18px;
  border: none;
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary-color);
  cursor: pointer;
  border-radius: 18px;
  transition: all 0.3s;
}

.view-btn.active {
  background: var(--primary-color);
  color: rgba(255,255,255,.9);
}

/* WINDOW VISUALIZATION */
.svg-window-visualization {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  width: auto;
}

.svg-window-visualization .view {
  width: 280px;
  text-align: center;
}

.svg-window-visualization .view h3 {
  grid-area: infobox;
}

.window-container {
  width: 280px;
  height: 420px;
  margin: 0 auto;
  border: 2px solid var(--secondary-color) !important;
  box-shadow: none !important;
  border-radius: 4px;
  background: var(--white);
}

.window-container img.base {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.window-container canvas,
.window-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ============================================================
   9. CONTEXT INFO PANEL (infobox)
   ============================================================ */
.config-info-panel {
  grid-area: infobox;
  background: var(--light-gray);
  padding: 0;
  overflow-y: auto;
}

/* Hide original measurement-info (mirrored to info-panel) */
#measurement-info {
  display: none !important;
}

.info-panel-content {
  padding: 14px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
}

.info-panel-content:empty {
  padding: 0;
}

.info-panel-content .info-title {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.info-panel-content .info-highlight {
  color: var(--primary-color);
  font-weight: 500;
}

.info-panel-content .info-note {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  margin-top: 6px;
}

.info-panel-content .info-warning {
  font-size: 0.75rem;
  color: #cc3300;
  font-style: italic;
  margin-top: 6px;
}

.info-panel-content .info-red {
  color: #cc3300;
}

/* ============================================================
   10. PRICE SUMMARY (hidden - shown in sidebar)
   ============================================================ */
.price-summary {
  display: none !important;
}

/* ============================================================
   11. OPTIONS (center bottom, 3-column grid)
   ============================================================ */
.configurator-options {
  grid-area: options;
  grid-row: 1 / -1;
  flex: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 20px 16px !important;
  border-right: 1px solid rgba(10,22,40,0.1) !important;
  background: var(--light-gray);
  overflow-y: auto;
  display: block !important;
  color: #1a1a1a;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,22,40,0.3) transparent;
}
.configurator-options::-webkit-scrollbar { width: 8px; }
.configurator-options::-webkit-scrollbar-track { background: transparent; }
.configurator-options::-webkit-scrollbar-thumb { background: rgba(10,22,40,0.25); border-radius: 4px; }
.configurator-options::-webkit-scrollbar-thumb:hover { background: rgba(10,22,40,0.4); }

select::-webkit-scrollbar { width: 8px; }
select::-webkit-scrollbar-thumb { background: rgba(10,22,40,0.3); border-radius: 4px; }

.configurator-options .config-section {
  display: block;
}

.configurator-options h3 {
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(10,22,40,0.5) !important;
  margin-bottom: 12px !important;
  margin-top: 20px !important;
}

.configurator-options h3:first-child {
  margin-top: 0 !important;
}

/* DIM ROW - width/height side by side */
.dim-row {
  display: flex;
  gap: 10px;
}

.dim-row .input-group {
  flex: 1;
  min-width: 0;
}

.configurator-options .radio-group {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
}

/* ============================================================
   12. CONFIG SECTIONS (compact)
   ============================================================ */
/* ── SHIMMER SEPARATOR ── */
@keyframes shimmer-line {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.config-section {
  margin-bottom: 0 !important;
  padding: 14px 14px 18px !important;
  border-left: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-bottom: none !important;
  position: relative;
}

.config-section::after {
  content: '';
  display: block;
  margin: 18px auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%, rgba(10,22,40,0.06) 10%, rgba(10,22,40,0.18) 30%,
    rgba(10,22,40,0.28) 50%,
    rgba(10,22,40,0.18) 70%, rgba(10,22,40,0.06) 90%, transparent 100%),
    linear-gradient(105deg,
    transparent 0%, rgba(158,158,144,0.0) 20%, rgba(158,158,144,0.35) 45%,
    rgba(212,212,200,0.5) 50%, rgba(158,158,144,0.35) 55%, rgba(158,158,144,0.0) 80%, transparent 100%);
  background-size: 100% 1px, 200% 1px;
  animation: shimmer-line 5s linear infinite;
}

.config-section:hover {
  box-shadow: none !important;
}

.config-section h3 {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color) !important;
  border-bottom: none !important;
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
  font-weight: 400;
}

/* ============================================================
   13. SPECIFICATION (right panel)
   ============================================================ */
.window-specification {
  grid-area: spec;
  flex: none !important;
  position: relative !important;
  top: auto !important;
  border: none !important;
  border-left: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  padding: 20px !important;
  box-shadow: none !important;
  margin: 0 !important;
  background: var(--white);
  overflow-y: auto;
}

.window-specification h2 {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding-bottom: 10px !important;
}

.spec-section h4 {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.75rem !important;
  color: var(--primary-color) !important;
  font-weight: 500;
}

.spec-item {
  font-size: 0.8rem !important;
}

.spec-item.actual-size {
  background: var(--light-gray);
  padding: 8px;
  border-radius: 4px;
  margin-top: 5px;
  border-left: 3px solid var(--secondary-color);
}

.spec-item.spec-detail {
  font-size: 0.7rem !important;
  padding: 2px 0 2px 12px;
  color: #555;
  border-left: 2px solid var(--secondary-color);
  margin-left: 4px;
}

/* ============================================================
   14. FORM ELEMENTS
   ============================================================ */
.input-group {
  margin-bottom: 8px !important;
}

.input-group label {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: var(--text-color) !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.5px;
}

.input-group input[type="number"],
.input-group select,
.dimension-select {
  padding: 8px 10px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.8rem !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
  background: var(--white) !important;
}

.input-group input:focus,
.input-group select:focus,
.dimension-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px rgba(10,22,40,.08) !important;
}

/* CHECKBOX */
.input-group input[type="checkbox"] {
  width: 40px !important;
  height: 20px !important;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
  vertical-align: middle;
}

.input-group input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.input-group input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondary-color);
  font-size: 12px;
  font-weight: bold;
}

/* RADIO */
.radio-group {
  display: flex;
  gap: 6px;
  margin-bottom: 11px;
}

.radio-option {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-label {
  display: block;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: 'Jost', sans-serif !important;
  font-size: 0.78rem !important;
  color: var(--text-color) !important;
  -webkit-text-fill-color: var(--text-color);
}

.radio-option input:checked + .radio-label {
  background-color: var(--primary-color);
  color: var(--secondary-color) !important;
  border: 1px solid rgba(158,158,144,.3);
  -webkit-text-fill-color: var(--secondary-color);
}

/* Dual colour section - greyed until selected */
.colour-greyed {
  opacity: 0.35;
  transition: opacity 0.3s;
}

/* Radio w col2 zawsze klikalny */
.colour-greyed .radio-option {
  pointer-events: all;
  opacity: 1;
}

/* Kolory i reszta zablokowane */
.colour-greyed #dual-color-selector {
  pointer-events: none;
}

/* ============================================================
   15. COLOR OPTIONS
   ============================================================ */

/* Dual color - 2 columns side by side */
#dual-color-selector .dual-color-columns {
  display: flex;
  gap: 16px;
}

#dual-color-selector .dual-color-columns .dual-color-section {
  flex: 1;
  min-width: 0;
}

#dual-color-selector .dual-color-columns .dual-color-section > label {
  display: block;
  font-size: 0.65rem !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.color-option-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.color-option {
  width: 36px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 2px solid transparent;
  position: relative;
}

.color-option:hover {
  transform: scale(1.12);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.color-option.selected {
  border: 2px solid var(--secondary-color);
  transform: scale(1.12);
  box-shadow: 0 0 0 1px var(--white), 0 0 0 3px var(--secondary-color);
}

.color-name {
  font-size: 0.6rem;
  text-align: center;
  color: var(--text-color);
  line-height: 1.1;
}

/* ── COLOR DROPDOWNS (RAL / F&B) ── */
.color-dropdown-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.color-dropdown-row select {
  flex: 1;
  padding: 6px 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
}
.color-dropdown-row select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(10,22,40,.08);
}
.ral-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.ral-input-row input {
  flex: 1;
  padding: 5px 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 3px;
}
.ral-input-row button {
  padding: 5px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  background: var(--primary-color);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(158,158,144,.3);
  border-radius: 3px;
  cursor: pointer;
}
.ral-input-row .ral-error {
  color: #c0392b;
  font-size: 0.65rem;
}

/* ============================================================
   16. BUTTONS
   ============================================================ */

/* Base button - Prime Sash shimmer style */
.btn,
.btn-apply,
.btn-secondary {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.4em !important;
  text-transform: uppercase !important;
  padding: 0.9rem 2.4rem !important;
  background: var(--primary-color) !important;
  border: 1px solid rgba(158,158,144,.3) !important;
  border-radius: 0 !important;
  color: rgba(255,255,255,.7) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s !important;
  box-shadow: none !important;
  transform: none !important;
  width: 100%;
  text-align: center;
  display: block;
}

.btn:hover,
.btn-apply:hover,
.btn-secondary:hover {
  border-color: rgba(158,158,144,.6) !important;
  color: rgba(255,255,255,.9) !important;
  background: #0e1e35 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Silver shimmer line top */
.btn::before,
.btn-apply::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%, #707068 15%, #B8B8AE 40%,
    #D4D4C8 50%, #B8B8AE 60%, #707068 85%, transparent 100%);
}

/* Silver shimmer line bottom */
.btn::after,
.btn-apply::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%, #707068 15%, #B8B8AE 40%,
    #D4D4C8 50%, #B8B8AE 60%, #707068 85%, transparent 100%);
}

/* States */
.btn-apply.applied {
  border-color: rgba(158,158,144,.6) !important;
  color: rgba(255,255,255,.9) !important;
}

.btn-apply.btn-locked {
  background: rgba(158,158,144,.1) !important;
  color: rgba(255,255,255,.3) !important;
  border-color: rgba(158,158,144,.1) !important;
  cursor: not-allowed !important;
}

.btn-apply.btn-locked:hover {
  background: rgba(158,158,144,.1) !important;
  transform: none !important;
}

.btn-apply.btn-locked::after {
  content: ' 🔒';
}

@keyframes pulse-success {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Ironmongery Gallery Button */
.btn-ironmongery-gallery {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 1px solid #dc3545 !important;
  padding: 10px 15px;
  font-size: 0.9rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ironmongery-gallery:hover {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

/* PAS24 Info Button */
.btn-pas24-info {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 1px solid #dc3545 !important;
  padding: 8px 15px;
  font-size: 0.85rem;
  margin-top: 10px;
}

.btn-pas24-info:hover {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

/* ============================================================
   17. GEORGIAN BARS
   ============================================================ */

/* Bars inline row: Upper | Lower | Checkbox */
.bars-inline-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: nowrap;
}

.bars-inline-row .bars-group {
  flex: 1;
  margin-bottom: 0 !important;
}

.bars-inline-row .bars-group h4 {
  font-size: 0.65rem !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 4px;
  font-weight: 400;
}

.bars-inline-row .input-group.same-pattern {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0 !important;
  padding-bottom: 2px;
}

.bars-inline-row .input-group.same-pattern label {
  font-size: 0.6rem !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary-color) !important;
  text-align: center;
  margin-bottom: 4px !important;
  white-space: nowrap;
}

.bars-inline-row .input-group.same-pattern input[type="checkbox"] {
  margin: 0 !important;
}
.bars-group {
  margin-bottom: 20px;
}

.bars-group h4 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.custom-bars-container {
  margin-top: 15px;
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

/* ── Custom bars (new UI) ── */
.btn-custom-bar {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  background: var(--primary-color);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(158,158,144,.3);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-custom-bar:hover {
  color: rgba(255,255,255,.9);
  border-color: rgba(158,158,144,.6);
}
.btn-custom-bar:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.custom-bar-row {
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(10,22,40,0.08);
}
.custom-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: var(--text-color);
}
.btn-remove-bar {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
}
.btn-remove-bar:hover {
  color: #c00;
}
.custom-bar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-bar-controls input[type="range"] {
  flex: 1;
  height: 4px;
  accent-color: var(--primary-color);
}
.custom-bar-controls input[type="number"] {
  width: 60px;
  padding: 4px 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  text-align: center;
}
.custom-bar-controls span {
  font-size: 0.75rem;
  color: #888;
}

.bar-pattern-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.pattern-btn {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: var(--light-gray);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.pattern-btn:hover {
  background-color: #eee;
  transform: translateY(-2px);
}

.pattern-btn.selected {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}

.bars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: crosshair;
}

/* ============================================================
   18. CUSTOM DROPDOWN
   ============================================================ */
.custom-dropdown {
  position: relative;
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
}

.dropdown-selected {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s;
}

.dropdown-selected:hover {
  background-color: var(--light-gray);
}

.dropdown-selected img,
.dropdown-option img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 4px;
  background-color: var(--white);
}

.dropdown-selected::after {
  content: '▼';
  color: var(--primary-color);
  font-size: 0.8rem;
  margin-left: auto;
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 100;
  grid-area: infobox;
  max-height: 300px;
  overflow-y: auto;
}

.custom-dropdown.open .dropdown-options {
  display: block;
}

.custom-dropdown.open .dropdown-selected::after {
  content: '▲';
}

.dropdown-option {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s;
  border-bottom: 1px solid #eee;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background-color: var(--light-gray);
}

.dropdown-option.selected {
  background-color: rgba(10,22,40,0.1);
}

/* ============================================================
   19. MODALS
   ============================================================ */
.modal {
  display: none;
  grid-area: infobox;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--primary-color);
}

.modal-close {
  color: #555;
  float: right;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin: 0;
  position: absolute;
  right: 20px;
  top: 15px;
  transition: all 0.3s;
}

.modal-close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* ============================================================
   20. MISC COMPONENTS
   ============================================================ */

/* Window Item */
.window-item {
  margin-bottom: 20px;
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: var(--radius);
  position: relative;
}

.window-price {
  font-weight: bold;
  color: var(--primary-color);
}

.btn-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e74c3c;
  color: var(--white);
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

/* Warning */
.warning-box,
.warning-message {
  color: #cc3300;
  padding: 10px;
  margin-top: 10px;
  background-color: var(--light-gray);
  border-radius: var(--radius);
}

/* Dimension input */
.dimension-input-wrapper {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
}

.dimension-select {
  flex: 1;
  max-height: 50px;
}

.dimension-input-wrapper.custom-mode .dimension-select {
  flex: 0 0 120px;
}

/* Opening indicators */
.opening-indicators {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.opening-indicator {
  position: absolute;
  font-size: 40px;
  font-weight: bold;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.opening-indicator.arrow {
  color: #485d54;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.opening-indicator.cross {
  color: #e4707c;
  opacity: 0.5;
  font-size: 35px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Frosted overlay */
.frosted-overlay {
  position: absolute;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.frosted-overlay.active {
  opacity: 1;
}

.frosted-overlay.realistic {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(240,240,240,0.4) 100%
  );
  backdrop-filter: blur(10px) saturate(0.8);
  -webkit-backdrop-filter: blur(10px) saturate(0.8);
}

/* Measurement info box */
.measurement-info-box {
  background: var(--light-gray);
  border: 2px solid var(--secondary-color);
  border-radius: 6px;
  padding: 8px 12px !important;
  margin: 10px 0;
  animation: slideDown 0.3s ease;
  font-size: 0.78rem !important;
}

.measurement-info-box strong {
  color: #84837C;
  font-size: 0.9rem;
}

.measurement-info-box p {
  margin: 3px 0;
  color: #84837C;
}

.info-note {
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 6px !important;
}

.measurement-link {
  display: inline-block;
  margin-top: 6px;
  color: #0056b3;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}

.measurement-link:hover {
  text-decoration: underline;
}

.info-message {
  margin-top: 15px;
  padding: 15px;
  background: var(--light-gray);
  border: 1px solid var(--secondary-color);
  border-radius: var(--radius);
  color: #84837C;
}

.info-message strong {
  display: block;
  margin-bottom: 5px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ============================================================
   21. IRONMONGERY SECTION (in configurator)
   ============================================================ */
.ironmongery-section {
  margin-top: 20px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
}

.ironmongery-section h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.furniture-finish-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
}

.ironmongery-products {
  margin-top: 20px;
}

.ironmongery-category {
  margin-bottom: 15px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.category-header:hover {
  background: #f8f9fa;
  border-color: var(--secondary-color);
}

.category-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.category-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.category-toggle.open {
  transform: rotate(180deg);
}

.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.category-content.open {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.category-inner {
  padding: 20px;
}

.auto-quantity-info {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-left: 3px solid var(--secondary-color);
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition);
}

.product-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.product-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.product-item.pas24-only {
  border: 2px solid #28a745;
  background: #f8fff9;
}

.product-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 20px;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  margin-right: 20px;
}

.product-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.product-name .recommended-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 500;
}

.product-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.product-price .vat-price {
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-input {
  width: 60px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-align: center;
  font-size: 1rem;
}

.quantity-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.btn-add-product {
  padding: 10px 20px;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-add-product:hover {
  background: #071020;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-add-product:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   22. IRONMONGERY GALLERY OVERLAY
   ============================================================ */
.ironmongery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,22,40,0.6);
  z-index: 10000;
  display: none;
  overflow-y: auto;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.ironmongery-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ironmongery-gallery {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.gallery-header h2 {
  color: #333;
  font-size: 2rem;
  margin: 0;
}

.gallery-close {
  background: none;
  border: none;
  color: #333;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.gallery-close:hover {
  background: rgba(0,0,0,0.1);
  transform: rotate(90deg);
}

.type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.type-btn {
  padding: 12px 30px;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.type-btn:hover {
  background: rgba(10,22,40,0.1);
}

.type-btn.active {
  background: var(--primary-color);
  color: white;
}

.pas24-info-box {
  background: var(--light-gray);
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
}

.pas24-info-box p {
  margin: 0;
  color: #84837C;
  font-size: 0.95rem;
}

.gallery-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: white;
  color: #666;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #f9f9f9;
  border-bottom-color: var(--secondary-color);
}

.filter-btn.active {
  background: #f9f9f9;
  border-bottom-color: var(--secondary-color);
  color: var(--primary-color);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-tab {
  padding: 12px 24px;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-tab:hover {
  background: rgba(10,22,40,0.1);
}

.category-tab.active {
  background: var(--primary-color);
  color: white;
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

.category-products-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.category-products-column h4 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.category-products-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.product-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
  background: #fafafa;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.product-card.selected {
  border-color: var(--secondary-color);
  background: var(--light-gray);
}

.product-card.selected::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: var(--secondary-color);
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.product-card-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #f5f5f5;
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

.product-card-image:hover {
  opacity: 0.85;
}

.product-card-name {
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}

.product-card-price {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.product-card-description {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.3;
  grid-area: infobox;
}

/* Image zoom modal */
.image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 30000;
  grid-area: infobox;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.image-zoom-modal.active {
  display: flex;
}

.image-zoom-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

/* Ironmongery Product Zoom Modal — Full Screen */
.ironmongery-zoom-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 50000;
  display: flex; align-items: center; justify-content: center;
}
.izm-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 22, 40, 0.92);
}
.izm-container {
  position: relative; z-index: 1;
  background: #fff;
  width: 92vw; max-width: 1000px;
  max-height: 90vh;
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: izmFadeIn 0.25s ease-out;
}
@keyframes izmFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.izm-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none;
  font-size: 36px; color: #888; cursor: pointer;
  z-index: 2; line-height: 1; transition: color 0.2s;
}
.izm-close:hover { color: #333; }
.izm-body {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.izm-image-wrap {
  background: #f5f5f0;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.izm-image-wrap img {
  max-width: 100%; max-height: 60vh;
  object-fit: contain; border-radius: 6px;
}
.izm-details {
  padding: 40px 35px;
  display: flex; flex-direction: column; justify-content: center;
}
.izm-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem; font-weight: 500;
  color: #0A1628; margin: 0 0 10px 0;
}
.izm-color {
  font-size: 0.85rem; color: #888;
  text-transform: capitalize; margin: 0 0 16px 0;
  letter-spacing: 0.04em;
}
.izm-desc {
  font-size: 0.95rem; line-height: 1.7;
  color: #555; margin: 0 0 24px 0;
}
.izm-price {
  display: flex; flex-direction: column; gap: 4px;
}
.izm-price-net {
  font-size: 1.4rem; font-weight: 500; color: #0A1628;
}
.izm-price-net small {
  font-size: 0.7rem; font-weight: 300; color: #888;
}
.izm-price-vat {
  font-size: 0.85rem; color: #888;
}

@media (max-width: 700px) {
  .izm-body { grid-template-columns: 1fr; }
  .izm-image-wrap { padding: 20px; }
  .izm-details { padding: 20px 25px 30px; }
  .izm-title { font-size: 1.4rem; }
}

/* Gallery footer */
.gallery-footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 20px;
  border-top: 2px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.selection-total {
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
}

.selection-total span {
  color: var(--primary-color);
  margin-left: 10px;
}

.btn-confirm-selection {
  padding: 15px 40px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-confirm-selection:hover {
  background: #071020;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10,22,40,0.4);
}

.btn-confirm-selection:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.selection-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-clear-selection {
  padding: 15px 40px;
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-selection:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220,53,69,0.4);
}

/* ============================================================
   23. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .configurator-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "preview"
      "sidebar"
      "infobox"
      "options"
      "spec" !important;
  }

  .config-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 4px;
  }

  .sidebar-label { display: none; }

  .cat-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 0.7rem;
  }

  .cat-btn.active {
    border-left: none;
    border-bottom-color: var(--secondary-color);
  }

  .cat-hint { display: none; }

  .sidebar-price {
    margin-top: 0;
    margin-left: auto;
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
  }

  .sidebar-price-label,
  .sidebar-price-note { display: none; }

  .sidebar-price-value { font-size: 1.1rem; }

  .configurator-preview { min-height: 300px; }

  .window-specification {
    border-left: none !important;
    border-top: 2px solid var(--secondary-color) !important;
  }

  .configurator-options {
    max-height: none;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .product-item {
    flex-direction: column;
    text-align: center;
  }

  .product-image {
    margin: 0 0 15px 0;
  }

  .product-info {
    margin: 0 0 15px 0;
  }

  .product-actions {
    width: 100%;
    justify-content: center;
  }

  .gallery-header h2 { font-size: 1.5rem; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .gallery-footer {
    flex-direction: column;
    gap: 15px;
  }

  .selection-total { font-size: 1.2rem; }

  .btn-confirm-selection { width: 100%; }

  .bar-pattern-buttons { justify-content: center; }
}

@media (max-width: 680px) {
  .window-container {
    width: 200px;
    height: 300px;
  }

  .svg-window-visualization .view {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .dropdown-option img,
  .dropdown-selected img {
    width: 30px;
    height: 30px;
  }
}