/* ============================= */
/* REPASOVANÁ ZAŘÍZENÍ           */
/* ============================= */

.repasy-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.repasy-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.repasy-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.12);
  color: #059669;
  font-size: .82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.dark .repasy-label {
  background: rgba(16,185,129,.2);
  color: #34d399;
}

.repasy-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}

.repasy-hero h1 span {
  color: var(--blue);
}

.repasy-hero p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* FILTRY */
.repasy-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.rep-filter {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: .2s;
  font-family: inherit;
}

.rep-filter:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.rep-filter.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* GRID */
.repasy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* KARTA */
.rep-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}

.rep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  border-color: var(--blue);
}

.rep-card-sold {
  opacity: .55;
}

.rep-card-sold:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

/* OBRÁZEK / PLACEHOLDER */
.rep-img {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.rep-icon {
  font-size: 3rem;
}

/* Pokud máš skutečné foto, přidej:
.rep-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
*/

/* BADGES */
.rep-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-new  { background: #d1fae5; color: #065f46; }
.badge-hot  { background: #fef3c7; color: #92400e; }
.badge-sale { background: #fee2e2; color: #991b1b; }
.badge-sold { background: var(--border); color: var(--muted); }

.dark .badge-new  { background: rgba(16,185,129,.25); color: #6ee7b7; }
.dark .badge-hot  { background: rgba(245,158,11,.25); color: #fcd34d; }
.dark .badge-sale { background: rgba(239,68,68,.25);  color: #fca5a5; }

/* TĚLO KARTY */
.rep-body {
  padding: 1.2rem 1.3rem;
}

.rep-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .4rem;
  margin-top: 0;
}

.rep-specs {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.rep-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}

.rep-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rep-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
}

.rep-price-sold {
  color: var(--muted);
  text-decoration: line-through;
}

.rep-price-old {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: line-through;
}

.rep-btn {
  padding: .5rem 1.1rem !important;
  font-size: .82rem !important;
  border-radius: 999px !important;
  white-space: nowrap;
  text-decoration: none;
}

.rep-warranty {
  font-size: .75rem;
  color: var(--muted);
  margin: 0;
}

/* PRÁZDNÝ STAV */
.rep-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

/* PRODANÁ SEKCE */
.repasy-sold-section {
  margin-top: 3rem;
}

.repasy-sold-section h2 {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.repasy-grid-sold {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* CTA BANNER */
.repasy-cta {
  margin-top: 2.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.repasy-cta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .3rem;
}

.repasy-cta p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 600px) {
  .repasy-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================= */
/* MODAL – detail zařízení       */
/* ============================= */
.rep-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rep-modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.rep-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.rep-modal-img {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.rep-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rep-modal-body {
  padding: 1.5rem;
}

.rep-modal-body h2 {
  font-size: 1.3rem;
  margin-bottom: .6rem;
}

.rep-modal-specs {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.rep-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rep-img-click {
  cursor: pointer;
  transition: opacity .2s;
}

.rep-img-click:hover {
  opacity: .85;
}

/* ============================= */
/* OBJEDNAT – stránka objednávky */
/* ============================= */

.objednat-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.objednat-device {
  display: flex;
  gap: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.objednat-img {
  width: 180px;
  height: 120px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  overflow: hidden;
}

.objednat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.objednat-info h1 {
  font-size: 1.3rem;
  margin-bottom: .4rem;
}

.objednat-specs {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .8rem;
}

.objednat-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: .5rem;
}

.objednat-choice h2,
.objednat-form-wrap h2 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.choice-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  cursor: pointer;
  transition: .25s var(--ease);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  position: relative;
}

.choice-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.15);
}

.choice-icon {
  font-size: 1.8rem;
  margin-bottom: .3rem;
}

.choice-card strong {
  font-size: 1.1rem;
}

.choice-card p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.choice-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  margin-top: .3rem;
  width: fit-content;
}

.dark .choice-badge {
  background: rgba(16,185,129,.2);
  color: #34d399;
}

.choice-badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.choice-vinted {
  border-color: rgba(9,182,109,.3);
}

.objednat-step {
  margin-bottom: 2rem;
}

.objednat-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
}

.objednat-summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1rem;
}

.objednat-summary h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span {
  color: var(--muted);
}

@media (max-width: 600px) {
  .objednat-device {
    flex-direction: column;
  }
  .objednat-img {
    width: 100%;
    height: 160px;
  }
}

/* ============================= */
/* KONFIGURÁTOR PC               */
/* ============================= */

.konfig-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.konfig-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.konfig-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}

.konfig-hero h1 span { color: var(--blue); }

.konfig-hero p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.konfig-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

/* PROGRESS */
.konfig-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.konfig-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: .2s;
}

.konfig-dot.active {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.konfig-dot.done {
  background: rgba(16,185,129,.15);
  border-color: #10b981;
  color: #10b981;
}

.konfig-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* SCREENS */
.konfig-screen { display: none; }
.konfig-screen.active { display: block; }

.konfig-screen h2 {
  font-size: 1.3rem;
  margin-bottom: .4rem;
}

.konfig-sub {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* CARDS */
.konfig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}

.konfig-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  cursor: pointer;
  transition: .2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.konfig-card:hover {
  border-color: var(--blue);
}

.konfig-card.sel {
  border: 2px solid var(--blue);
  background: var(--blue-soft);
}

.konfig-ico {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.konfig-card strong {
  font-size: .9rem;
  color: var(--text);
}

.konfig-card small {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}

.konfig-card:hover strong {
  color: var(--text);
}

.konfig-card.sel small {
  color: var(--blue);
}

/* SELECT */
.konfig-select {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
}

/* NAV */
.konfig-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

/* SUMMARY */
.konfig-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.konfig-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.konfig-summary-row:last-child { border: none; }
.konfig-summary-row span { color: var(--muted); }

/* SUCCESS */
.konfig-success {
  text-align: center;
  padding: 2rem 1rem;
}

.konfig-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16,185,129,.15);
  color: #10b981;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.konfig-success h2 { margin-bottom: .5rem; }
.konfig-success p { color: var(--muted); font-size: .95rem; line-height: 1.6; }



/* ============================= */
/* HEADER – telefon              */
/* ============================= */

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: transparent !important;
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
  margin-left: .5rem;
}

.header-phone::after { display: none !important; }

.header-phone:hover {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  .header-phone { display: none; }
}

/* ============================= */
/* KONFIG KARTA – text barvy     */
/* ============================= */

.konfig-card strong { color: var(--text); }
.konfig-card:hover strong { color: var(--text); }

/* ============================= */
/* HOME – Stavba PC karta        */
/* ============================= */

.card-stavba {
  border: 2px solid var(--blue) !important;
  background: linear-gradient(135deg, var(--blue-soft), transparent 60%) !important;
  position: relative;
}

.card-stavba-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .6rem;
}
/* ============================= */
/* OPRAVA – klikatelnost tlačítek v kartách */
/* ============================= */

.card .btn {
  position: relative;
  z-index: 2;
}

.card::before {
  pointer-events: none;
}