/* === HIDE NATIVE === */
button:has(span):has(svg[viewBox]),
.reservio-button-container,
[class*="reservio"],
[data-url*="reservio"] { display: none !important; }
#product-detail-form > div.p-variants-block { display: none !important; }
table.detail-parameters { display: none !important; }
/* nativní Shoptet přepínač "BARVA NÁŠLAPU" (provázání produktů) — nahrazuje ho návrhář */
.c-product-interconnection-detail-params,
.p-interconnection,
[class*="product-interconnection"] { display: none !important; }

/* === INTRO === */
/* === DYNAMIC TOP STRIPE === */
.ds-stripe { height: 6px; display: flex; border-radius: 14px 14px 0 0; overflow: hidden; }
.ds-stripe-brand { width: 56px; background: #ed1c24; flex: 0 0 auto; }
.ds-stripe-dyn { flex: 1; background: #ed1c24; transition: background 0.35s ease; }
/* === UNIFIED SECTION TITLES === */
.ds-sectitle { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; }
.ds-sectitle::before { content: ''; width: 5px; height: 19px; border-radius: 3px; flex: 0 0 auto; background: #cfcfcf; }
.ds-sectitle.accent::before { background: #ed1c24; }
.ds-intro { background: #fafafa; border: 1px solid #ececec; border-bottom: none; border-top: none; border-radius: 0; padding: 20px 24px 8px; margin-bottom: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.ds-intro-text { font-size: 14px; line-height: 1.7; color: #444; text-align: justify; margin-bottom: 20px; }
.ds-intro-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ds-intro-header svg { width: 22px; height: 22px; color: #ed1c24; }
.ds-intro-title { font-size: 18px; font-weight: 700; color: #ed1c24; }
.ds-intro-subtitle { font-size: 13px; color: #555; }

/* === NÁVRHÁŘ CONTAINER === */
.ds-navrhar { background: #fafafa; border: 1px solid #ececec; border-top: none; border-radius: 0 0 14px 14px; padding: 8px 24px 26px; margin-top: -1px; margin-bottom: 20px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.ds-navrhar-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.ds-navrhar-title svg { width: 24px; height: 24px; color: #0066cc; }

/* === COLOR SWITCHER BAND === */
.ds-color-head { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.ds-color-head::before { content: ''; width: 5px; height: 20px; background: #ed1c24; border-radius: 3px; flex: 0 0 auto; }
.ds-color-sub { font-size: 13px; color: #666; margin: 0 0 14px 14px; }
.ds-color-switch { display: flex; gap: 10px; margin-bottom: 26px; }
.ds-color-item { flex: 1; border: 2px solid #e0e0e0; border-radius: 12px; padding: 10px 8px; text-align: center; text-decoration: none; color: #444; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all 0.2s ease; background: #fff; }
.ds-color-item:hover { border-color: #0066cc; background: #f7fbff; }
.ds-color-item.active { border-color: #ed1c24; box-shadow: 0 0 0 3px rgba(237,28,36,0.12); cursor: default; }
.ds-color-item.active:hover { background: #fff; }
.ds-color-chip { width: 100%; height: 46px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.12); background-size: cover; background-position: center; }
.ds-color-name { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.2; }
.ds-color-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: #aaa; }
.ds-color-item.active .ds-color-tag { color: #ed1c24; font-weight: 700; }

/* === PROVEDENÍ SWITCHER === */
.ds-prov-head { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; }
.ds-prov-head::before { content: ''; width: 5px; height: 19px; border-radius: 3px; flex: 0 0 auto; background: #ed1c24; }
.ds-prov-head::before { content: ''; width: 5px; height: 20px; background: #ed1c24; border-radius: 3px; flex: 0 0 auto; }
.ds-prov { margin-bottom: 28px; }
.ds-prov-row { margin-bottom: 20px; }
.ds-prov-row.hidden { display: none; }
.ds-prov-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #3a3a3a; margin-bottom: 9px; }
/* === HIERARCHY === */
.ds-step-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #ed1c24; color: #fff; font-size: 11px; font-weight: 700; margin-right: 8px; vertical-align: middle; }
.ds-level-2 { margin-left: 22px; padding-left: 18px; border-left: 2px solid #ececec; position: relative; }
.ds-level-3 { margin-left: 44px; padding-left: 18px; border-left: 2px solid #ececec; position: relative; }
.ds-level-2::before, .ds-level-3::before { content: ''; position: absolute; left: 0; top: 16px; width: 14px; height: 2px; background: #ececec; }
@media (max-width: 600px) { .ds-level-2 { margin-left: 10px; padding-left: 12px; } .ds-level-3 { margin-left: 20px; padding-left: 12px; } .ds-step-num { width: 18px; height: 18px; font-size: 10px; } }
.ds-prov-note { display: none; margin-top: 10px; padding: 10px 12px; background: #fff5f5; border: 1px solid #f3d2d2; border-radius: 8px; font-size: 12.5px; line-height: 1.5; color: #5a5a5a; }
.ds-prov-note.visible { display: block; }
.ds-prov-opts { display: flex; gap: 12px; }
.ds-prov-card { flex: 1 1 0; min-width: 0; border: 1.5px solid #e2e2e2; border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; cursor: pointer; transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; display: flex; flex-direction: column; position: relative; }
.ds-prov-card:hover { border-color: #bdbdbd; }
.ds-prov-card.active { border-color: #ed1c24; cursor: default; transform: none; }
.ds-prov-card.disabled { opacity: 0.4; pointer-events: none; }
.ds-prov-cardimg { width: 100%; aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #f4f4f5; }
.ds-prov-cardlabel { padding: 10px 8px; font-size: 12px; font-weight: 600; color: #2a2a2a; text-align: center; line-height: 1.3; }
.ds-prov-card.active .ds-prov-cardlabel { color: #c8161d; }
.ds-prov-card.active::after { content: ''; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; background: #ed1c24; border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }
@media (max-width: 600px) { .ds-prov-cardlabel { font-size: 11px; padding: 9px 4px; } .ds-prov-opts { gap: 8px; } .ds-prov-cardimg { aspect-ratio: 4 / 3; } .ds-prov-card.active::after { width: 16px; height: 16px; background-size: 10px; top: 7px; right: 7px; } }

/* === PROGRESS === */
.ds-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 32px; padding: 0 20px; }
.ds-progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.ds-progress-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; transition: all 0.3s ease; position: relative; }
.ds-progress-step.pending .ds-progress-dot { background: #fff; border: 2px solid #d0d0d0; color: #999; }
.ds-progress-step.active .ds-progress-dot { background: #0066cc; border: 2px solid #0066cc; color: #fff; box-shadow: 0 0 0 4px rgba(0,102,204,0.15); }
.ds-progress-step.completed .ds-progress-dot { background: #28a745; border: 2px solid #28a745; color: #fff; }
.ds-progress-dot .checkmark { display: none; }
.ds-progress-step.completed .ds-progress-dot .checkmark { display: block; }
.ds-progress-step.completed .ds-progress-dot .step-number { display: none; }
.ds-progress-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #666; white-space: nowrap; transition: color 0.3s ease; }
.ds-progress-step.active .ds-progress-label { color: #0066cc; font-weight: 600; }
.ds-progress-step.completed .ds-progress-label { color: #28a745; }
.ds-progress-line { flex: 1; height: 3px; background: #e0e0e0; margin: 0 16px; margin-bottom: 28px; border-radius: 2px; position: relative; overflow: hidden; }
.ds-progress-line-fill { position: absolute; top: 0; left: 0; height: 100%; background: #28a745; border-radius: 2px; transition: width 0.4s ease; width: 0%; }
.ds-progress-line.completed .ds-progress-line-fill { width: 100%; }

/* === STEP PANELS === */
.ds-step-panel { display: none; animation: fadeIn 0.3s ease; }
.ds-step-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ds-step-header { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.ds-step-header::before { content: ''; width: 5px; height: 19px; background: #cfcfcf; border-radius: 3px; flex: 0 0 auto; }
.ds-step-subtitle { font-size: 14px; color: #555; margin: 0 0 20px 14px; }

/* === STEP 1: WIDTH === */
.ds-width-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ds-width-card { background: #fff; border: 2px solid #e6e6e6; border-radius: 12px; padding: 28px 20px; cursor: pointer; transition: all 0.2s ease; text-align: center; position: relative; }
.ds-width-card:hover { border-color: #0066cc; background: #f0f7ff; }
.ds-width-card.selected { border-color: #28a745; background: #f6fef9; }
.ds-width-card-icon { width: 48px; height: 48px; margin: 0 auto 12px; background: #e9ecef; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #666; }
.ds-width-card.selected .ds-width-card-icon { background: #d4edda; color: #28a745; }
.ds-width-card-value { font-size: 36px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.ds-width-card-unit { font-size: 14px; color: #666; font-weight: 500; }
.ds-width-card-desc { font-size: 12px; color: #888; margin-top: 8px; }
.ds-width-card.selected .ds-width-card-value { color: #28a745; }
.ds-width-card-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; background: #28a745; color:#fff; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size:14px; }
.ds-width-card.selected .ds-width-card-check { display: flex; }

/* === STEP 2: RAILING === */
.ds-railing-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ds-railing-card { background: #fff; border: 2px solid #e6e6e6; border-radius: 12px; padding: 12px 10px; cursor: pointer; transition: all 0.2s ease; text-align: center; position: relative; }
.ds-railing-card:hover { border-color: #0066cc; background: #f0f7ff; }
.ds-railing-card.selected { border-color: #28a745; background: #f6fef9; }
.ds-railing-image { width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: #fff; border-radius: 8px; border: 1px solid #eee; overflow: hidden; }
.ds-railing-image svg { width: 70px; height: 70px; color: #666; }
.ds-railing-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-railing-card.selected .ds-railing-image { border-color: #c8e6c9; background: #f8fff8; }
.ds-railing-card.selected .ds-railing-image svg { color: #28a745; }
.ds-railing-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ds-railing-card.selected .ds-railing-name { color: #28a745; }
.ds-railing-card-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; background: #28a745; color:#fff; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size:12px; }
.ds-railing-card.selected .ds-railing-card-check { display: flex; }

/* === STEP 3: HEIGHT === */
.ds-height-container { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 28px; }
.ds-height-display { text-align: center; margin-bottom: 28px; }
.ds-height-value { font-size: 56px; font-weight: 700; color: #1a1a1a; line-height: 1; }
.ds-height-unit { font-size: 20px; font-weight: 500; color: #666; margin-left: 4px; }
.ds-height-label { font-size: 13px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.ds-slider-container { margin-bottom: 24px; }
.ds-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; background: #e0e0e0; border-radius: 5px; outline: none; cursor: pointer; }
.ds-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; background: #0066cc; border-radius: 50%; cursor: grab; box-shadow: 0 2px 10px rgba(0,102,204,0.35); border: 3px solid #fff; }
.ds-slider::-moz-range-thumb { width: 32px; height: 32px; background: #0066cc; border: 3px solid #fff; border-radius: 50%; cursor: grab; box-shadow: 0 2px 10px rgba(0,102,204,0.35); }
.ds-slider-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #888; font-weight: 500; }
.ds-height-input-row { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 20px; border-top: 1px solid #e0e0e0; }
.ds-height-input-label { font-size: 14px; color: #555; }
.ds-height-input { width: 140px; padding: 12px 20px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 18px; font-weight: 600; color: #333; text-align: center; transition: all 0.2s ease; font-family: inherit; }
.ds-height-input:focus { outline: none; border-color: #0066cc; box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.ds-height-input.valid { border-color: #28a745; background: rgba(40,167,69,0.05); }
.ds-height-input.invalid { border-color: #dc3545; background: rgba(220,53,69,0.05); }
.ds-btn-apply { padding: 12px 20px; background: #0066cc; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: inherit; white-space: nowrap; }
.ds-btn-apply:hover { background: #0052a3; }
.ds-btn-apply.applied { background: #28a745; }
.ds-height-visual { display: flex; align-items: flex-end; justify-content: center; gap: 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e0e0e0; }
.ds-height-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.ds-height-bar { width: 10px; background: #e0e0e0; border-radius: 5px 5px 0 0; transition: all 0.3s ease; }
.ds-height-bar.active { background: #0066cc; }
.ds-height-info { font-size: 13px; color: #666; text-align: left; min-width: 100px; }
.ds-height-info strong { display: block; font-size: 18px; color: #1a1a1a; margin-bottom: 4px; }

/* === NAV BUTTONS === */
.ds-nav-buttons { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.ds-btn { padding: 14px 28px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: inherit; display: flex; align-items: center; gap: 8px; }
.ds-btn-back { background: #f0f0f0; color: #666; }
.ds-btn-back:hover { background: #e0e0e0; color: #333; }
.ds-btn-back:disabled { opacity: 0.4; cursor: not-allowed; }
.ds-btn-next { background: #0066cc; color: #fff; }
.ds-btn-next:hover { background: #0052a3; }
.ds-btn-next:disabled { background: #ccc; cursor: not-allowed; }
.ds-btn-complete { background: #27ae60; color: #fff; }
.ds-btn-complete:hover { background: #219a52; }
.ds-btn svg { width: 18px; height: 18px; }

/* === SUMMARY === */
.ds-summary { display: none; background: #f0fff4; border: 2px solid #28a745; border-radius: 12px; padding: 24px; margin-top: 20px; }
.ds-summary.visible { display: block; animation: fadeIn 0.4s ease; }
.ds-summary-title { font-size: 16px; font-weight: 700; color: #28a745; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.ds-summary-title svg { width: 24px; height: 24px; }
.ds-summary-items { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-summary-item { background: #fff; padding: 10px 16px; border-radius: 24px; font-size: 14px; color: #333; border: 1px solid #c8e6c9; display: flex; align-items: center; gap: 6px; }
.ds-summary-item strong { color: #28a745; font-weight: 600; }
.ds-summary-edit { margin-top: 16px; padding-top: 16px; border-top: 1px solid #c8e6c9; }
.ds-btn-edit { background: transparent; border: 1px solid #28a745; color: #28a745; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-family: inherit; }
.ds-btn-edit:hover { background: #28a745; color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .ds-intro { padding: 16px 14px 6px; border-radius: 12px 12px 0 0; margin-bottom: 0; }
  .ds-intro-text { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
}
@media (max-width: 600px) {
  .ds-navrhar { padding: 6px 14px 16px; border-radius: 0 0 12px 12px; }
  .ds-navrhar-title { font-size: 16px; margin-bottom: 14px; }
  .ds-color-switch { gap: 6px; margin-bottom: 18px; }
  .ds-color-item { padding: 8px 4px; }
  .ds-color-chip { height: 36px; }
  .ds-color-name { font-size: 11px; }
  .ds-color-tag { font-size: 9px; }
  .ds-progress { padding: 0; margin-bottom: 20px; }
  .ds-progress-label { font-size: 10px; }
  .ds-progress-dot { width: 28px; height: 28px; font-size: 12px; }
  .ds-progress-line { margin: 0 8px; margin-bottom: 20px; }
  .ds-step-header { font-size: 16px; }
  .ds-color-head { font-size: 15px; }
  .ds-step-subtitle { font-size: 12px; margin-bottom: 14px; }
  .ds-width-options { gap: 10px; }
  .ds-width-card { padding: 16px 12px; }
  .ds-width-card-value { font-size: 28px; }
  .ds-railing-options { gap: 8px; }
  .ds-railing-card { padding: 12px 8px; }
  .ds-railing-image { height: 70px; margin-bottom: 8px; }
  .ds-height-container { padding: 16px; }
  .ds-height-value { font-size: 36px; }
  .ds-height-input { width: 100px; padding: 10px 12px; font-size: 16px; }
  .ds-nav-buttons { gap: 10px; margin-top: 16px; padding-top: 14px; }
  .ds-btn { flex: 1; padding: 12px 16px; font-size: 14px; justify-content: center; }
}

/* === OBOUSTRANNÉ – dynamický štítek na fotce (místo vypékání do obrázků) === */
/* Stejný vzhled jako schválený vzor: bílý chip, červený proužek, Inter. */
#ds-oboustr-chip {
  position: absolute; top: 0; right: 0; left: auto; z-index: 6; display: none;
  align-items: stretch; gap: 0; max-width: 78%;
  background: whitesmoke;
  border: 1px solid #e2e2e2; border-top: none; border-right: none;
  border-radius: 0 0 0 26px;            /* jen levý dolní roh – výrazně zaoblený */
  box-shadow: -3px 3px 14px rgba(0,0,0,0.12); padding: 12px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  pointer-events: none;
}
#ds-oboustr-chip.visible { display: inline-flex; }
#ds-oboustr-chip .ds-ob-bar { width: 5px; border-radius: 3px; background: #ed1c24; margin-right: 12px; flex: 0 0 auto; }
#ds-oboustr-chip .ds-ob-eyebrow { display: block; font-size: 12px; font-weight: 600; color: #888; line-height: 1.25; letter-spacing: .2px; }
#ds-oboustr-chip .ds-ob-main { display: block; font-size: 19px; font-weight: 800; color: #1a1a1a; line-height: 1.25; }
#ds-oboustr-chip .ds-ob-main b { color: #ed1c24; font-weight: 800; }
@media (max-width: 600px) {
  #ds-oboustr-chip { top: 0; right: 0; left: auto; padding: 9px 12px; border-radius: 0 0 0 20px; }
  #ds-oboustr-chip .ds-ob-main { font-size: 15px; }
  #ds-oboustr-chip .ds-ob-eyebrow { font-size: 10.5px; }
  #ds-oboustr-chip .ds-ob-bar { margin-right: 9px; }
}
