/* =============================================
   PRODUCT DETAIL PANEL
   ============================================= */

/* Overlay */
.pd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pd-overlay--visible {
  display: block;
  opacity: 1;
}

/* Slide-in panel */
.pd-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(860px, 100%);
  background: #f5f5f5;
  z-index: 101;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}
.pd-panel--open {
  transform: translateX(0);
}

/* Close button */
.pd-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.pd-close:hover {
  color: #333;
}

/* Inner content */
.pd-inner {
  padding: 28px 36px 48px;
  clear: both;
}

/* Breadcrumb */
.pd-breadcrumb {
  font-size: 13px;
  color: #777;
  margin: 0 0 24px;
}

/* Two-column layout */
.pd-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

/* LEFT */
.pd-image-wrap {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}
.pd-downloads-label {
  font-size: 13px;
  color: #666;
  margin: 14px 0 8px;
  text-align: center;
}
.pd-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pd-dl-btn {
  padding: 5px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  color: #444;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pd-dl-btn:hover {
  border-color: #888;
  background: #f0f0f0;
}

/* RIGHT */
.pd-title {
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}
.pd-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
}

/* Sections */
.pd-section {
  margin-bottom: 22px;
}
.pd-section__heading {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}
.pd-section__text {
  font-size: 14px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}

/* Lists */
.pd-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.pd-list li {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}
.pd-list__muted {
  color: #aaa !important;
}

/* "Leer mas" link */
.pd-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3aaa5c;
  text-decoration: none;
}
.pd-link:hover {
  text-decoration: underline;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 640px) {
  .pd-inner {
    padding: 20px 18px 40px;
  }
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pd-image-wrap {
    max-width: 220px;
  }
}