/* ─── DETAIL ROW ─── */
.detail-row > td {
  padding: 0 !important;
  background: #f0f4f8 !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}

.detail-content {
  padding: 24px 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.detail-block h4 {
  font-family: monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6c757d;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee2e6;
}

/* ─── SPEC TABULKA V DETAILE ─── */
.detail-block .spec-table {
  width: 100%;
  border: none;
}

.detail-block .spec-table td,
.detail-block .spec-table tr {
  padding: 5px 0 !important;
  font-size: 12px;
  border: none !important;
  background: none !important;
  color: #212529;
}

.detail-block .spec-table td:first-child {
  font-family: monospace;
  font-size: 11px;
  color: #6c757d;
  width: 50%;
}

.detail-block .spec-table td:last-child {
  font-weight: 500;
  color: #212529;
}

/* ─── POPIS A CENA ─── */
.detail-block p {
  font-size: 13px;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 6px;
}

.d-price {
  font-family: monospace;
  font-size: 20px !important;
  color: #0d6efd !important;
  font-weight: 600;
}

/* ─── PRODUCT ROW HOVER A OPEN ─── */
.product-row {
  transition: background 0.15s;
  cursor: pointer;
}

.product-row:hover td {
  background: #e8f0ff !important;
}

.product-row.row-open td {
  background: #ddeeff !important;
}

.product-row.row-open td:first-child {
  border-left: 3px solid #0d6efd !important;
}

/* ─── RESPONZIVITA ─── */
@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ─── CENA ─── */
.d-price {
  margin-bottom: 16px !important;
}

/* ─── TLACITKO ─── */
.detail-footer {
  margin-top: 16px;
}

.btn-detail {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: #0d6efd;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
  transition: background 0.15s;
}

.btn-detail:hover {
  background: #0a58ca;
  color: #fff !important;
}

/* ─── SKRY LINK STLPEC ─── */
.views-field-view-commerce-product {
  display: none;
}

/* ─── STICKY HEADER ─── */
.table-responsive {
  overflow: visible !important;
}

.views-view-table thead tr th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* ─── TABULKA BEZ ORAMOVANIE ─── */
.views-view-table {
  border: none !important;
}
.views-view-table td,
.views-view-table th {
  border-left: none !important;
  border-right: none !important;
}
.product-row {
  border-bottom: 1px solid #dee2e6 !important;
}
.detail-row td,
.detail-row tr {
  border: none !important;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {

  /* Skry nepodstatne stlpce */
  .views-field-field-parameters-in-brief,
  .views-field-field-short-description,
  .views-field-field-rated-power,
  .views-field-field-input-voltage,
  .views-field-field-product-image {
    display: none !important;
  }

  /* Zmensi font a padding buniek */
  .views-view-table td,
  .views-view-table th {
    font-size: 12px;
    padding: 8px 6px !important;
    white-space: normal;
    word-break: break-word;
  }

  /* Detail grid - jeden stlpec */
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Tlacitko na plnu sirku */
  .btn-detail {
    font-size: 12px;
  }
}