/* ============================================================
   Product Detail  –  CalmDog design systém
   ============================================================ */

/* ── Obal stránky ── */
.pd-page {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem);
  background: #f5f5f0;
  min-height: 60vh;
}

/* ── Breadcrumb ── */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.82rem;
  color: rgba(47, 62, 58, 0.55);
}

.pd-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

.pd-breadcrumb a:hover {
  color: #5f766b;
}

/* ── Hlavní grid ── */
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ── Fotka ── */
.pd-media {
  position: sticky;
  top: 2rem;
}

.pd-image {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 2rem;
  display: block;
  background: #f5f5f0;
}

.pd-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #edf3ef, #dfe7e1);
  color: #6f8780;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ── Panel ── */
.pd-panel {
  background: #fff;
  border-radius: 2rem;
  padding: 2.25rem 2.5rem 2.75rem;
  box-shadow: 0 4px 32px rgba(47, 62, 58, 0.08);
  border: 1px solid rgba(95, 118, 107, 0.07);
}

/* ── Kicker ── */
.pd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #5f766b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.pd-kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Nadpis ── */
.pd-title {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1e2825;
}

/* ── Popis ── */
.pd-lead {
  margin: 0 0 1.25rem;
  color: rgba(47, 62, 58, 0.65);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 520px;
}

/* ── Highlights ── */
.pd-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(95, 118, 107, 0.1);
}

.pd-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(47, 62, 58, 0.72);
  font-size: 0.93rem;
  font-weight: 400;
}

.pd-chip::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(95, 118, 107, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='%235f766b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 6 5 9 10 3'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Cena ── */
.pd-price-block {
  padding: 1.25rem 0 1.4rem;
  border-bottom: 1px solid rgba(95, 118, 107, 0.1);
  margin-bottom: 1.75rem;
}

.pd-price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(47, 62, 58, 0.4);
  margin-bottom: 0.35rem;
}

.pd-price {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #2d2d2d;
  line-height: 1;
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.pd-variant-summary {
  margin: 0;
  color: rgba(47, 62, 58, 0.48);
  font-size: 0.88rem;
}

/* ── Formulář ── */
.pd-form {
  display: grid;
  gap: 2rem;
}

.pd-field {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.pd-field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(47, 62, 58, 0.38);
  margin-bottom: 0.6rem;
}

.pd-field-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(95, 118, 107, 0.12);
}

.pd-select {
  width: 100%;
  padding: 0.6rem 1.75rem 0.6rem 0;
  border: none;
  border-bottom: 1.5px solid rgba(95, 118, 107, 0.22);
  border-radius: 0;
  background-color: transparent;
  font-size: 1.02rem;
  color: #2d2d2d;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f766b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 0.95rem;
  transition: border-color 0.18s;
  cursor: pointer;
}

.pd-select:focus {
  outline: none;
  border-bottom-color: #5f766b;
}

.pd-select:focus-visible {
  outline: 2px solid #5f766b;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Barva */
.pd-color-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  border-bottom: 1.5px solid rgba(95, 118, 107, 0.22);
  padding-bottom: 0;
}

.pd-color-row .pd-select {
  flex: 1;
  border-bottom: none;
  padding-bottom: 0.6rem;
}

.pd-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(95, 118, 107, 0.2);
  flex-shrink: 0;
  margin-bottom: 0.55rem;
  transition: background-color 0.25s;
  background: #e8ece9;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
}

/* Sklad */
.pd-stock-row {
  padding: 0.25rem 0;
  display: grid;
  gap: 0.2rem;
}

.pd-stock-status {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.pd-stock-ok  { color: #3e7b63; }
.pd-stock-out { color: #a74d4d; }

.pd-stock-note {
  margin: 0;
  color: rgba(47, 62, 58, 0.5);
  font-size: 0.86rem;
}

/* Bundle karta */
.pd-bundle-card {
  padding: 1.2rem 1.3rem;
  border-radius: 1.1rem;
  background: #fffaf4;
  border: 1px solid rgba(239, 157, 88, 0.22);
}

.pd-bundle-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: #c47b2e;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-bundle-eyebrow::before {
  content: "";
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.pd-bundle-title {
  margin: 0 0 0.4rem;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d2d2d;
}

.pd-bundle-copy,
.pd-bundle-summary {
  margin: 0;
  color: rgba(47, 62, 58, 0.68);
  font-size: 0.94rem;
  line-height: 1.65;
}

.pd-bundle-summary {
  margin-top: 0.6rem;
  font-weight: 600;
  color: #2d2d2d;
}

/* Akce */
.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.pd-submit {
  min-width: 200px;
  padding: 0.95rem 1.75rem;
}

.pd-submit-alt {
  min-width: 220px;
}

.pd-submit:disabled,
.pd-submit-alt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Zamčený prodej – místo „Přidat do košíku" se zobrazí zámeček. */
.pd-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.pd-lock-icon {
  flex-shrink: 0;
}

/* ── Info karty (dolní grid) ── */
.pd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  border-top: 1px solid rgba(95, 118, 107, 0.14);
  padding-top: 3rem;
  margin-top: 1rem;
}

.pd-info-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 2rem 2.25rem 2.5rem;
  border: 1px solid rgba(95, 118, 107, 0.1);
  box-shadow: 0 2px 16px rgba(47, 62, 58, 0.05);
  position: relative;
  overflow: hidden;
}

.pd-info-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #5f766b;
}

.pd-info-card h2 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d2d2d;
  line-height: 1.2;
}

.pd-info-card p {
  margin: 0;
  color: rgba(47, 62, 58, 0.72);
  font-size: 0.95rem;
  line-height: 1.75;
}

.pd-info-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pd-info-bullets li {
  padding-left: 1.1rem;
  position: relative;
  color: rgba(47, 62, 58, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pd-info-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5f766b;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .pd-grid {
    grid-template-columns: 1fr;
  }

  .pd-media {
    position: static;
    max-width: 560px;
  }

  .pd-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .pd-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pd-actions {
    flex-direction: column;
  }

  .pd-submit,
  .pd-submit-alt {
    width: 100%;
    min-width: 0;
  }

  .pd-color-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-color-swatch {
    display: none;
  }
}
