/**
 * Products — shared styles for listing + single product pages
 */

/* ---- Breadcrumb ---- */
.prod-breadcrumb {
  padding: 16px 0;
  margin-top: 124px;
}

.prod-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.prod-breadcrumb a {
  color: var(--bs-primary, #ffaa17);
  text-decoration: none;
}

.prod-breadcrumb a:hover {
  text-decoration: underline;
}

.prod-breadcrumb .sep {
  color: #aaa;
}

.prod-breadcrumb .current {
  color: #6c757d;
}

/* ---- Page Hero ---- */
.prod-hero {
  background: linear-gradient(135deg, #f8fafb 0%, #eef2f5 100%);
  padding: 3.5rem 0;
  text-align: center;
}

.prod-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bs-secondary, #214462);
  margin: 0 0 0.5rem;
}

.prod-hero p {
  font-size: 1.1rem;
  color: #5a6a7a;
  margin: 0;
}

/* ---- Filter Bar ---- */
.prod-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prod-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 2px solid #eef1f4;
  background: transparent;
  color: #5a6a7a;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.prod-filter-btn:hover {
  border-color: var(--bs-primary, #ffaa17);
  color: var(--bs-primary, #ffaa17);
}

.prod-filter-btn.active {
  background: var(--bs-secondary, #214462);
  border-color: var(--bs-secondary, #214462);
  color: #fff;
}

.prod-search {
  margin-left: auto;
  position: relative;
}

.prod-search input {
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 2px solid #eef1f4;
  border-radius: 50px;
  font-size: 0.9rem;
  width: 240px;
  transition: border-color 0.25s ease;
  outline: none;
}

.prod-search input:focus {
  border-color: var(--bs-primary, #ffaa17);
}

.prod-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.85rem;
}

/* ---- Product Grid (listing) ---- */
.prod-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ---- Product Card (shared listing card) ---- */
.pcard {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eef1f4;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcard:hover {
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.pcard-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 2;
}

.pcard-badge--centrala {
  background: var(--bs-secondary, #214462);
}

.pcard-badge--boiler {
  background: var(--bs-primary, #ffaa17);
}

.pcard-img {
  position: relative;
  aspect-ratio: 4/3;
  background: #f8f9fa;
  overflow: hidden;
}

.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  background: #fff;
  transition: transform 0.4s ease;
}

.pcard:hover .pcard-img img {
  transform: scale(1.04);
}

.pcard-body {
  padding: 1.5rem 1.5rem 0.75rem;
  flex: 1;
}

.pcard-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bs-secondary, #214462);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.pcard-code {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-primary, #ffaa17);
  background: rgba(255, 170, 23, 0.08);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.pcard-type {
  font-size: 0.85rem;
  color: #5a6a7a;
  margin-bottom: 0.75rem;
}

.pcard-specs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pcard-specs li {
  font-size: 0.85rem;
  color: #5a6a7a;
  padding: 3px 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.pcard-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bs-primary, #ffaa17);
}

.pcard-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid #eef1f4;
  margin-top: auto;
}

.pcard-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pcard-btn--details {
  background: var(--bs-secondary, #214462);
  color: #fff;
}

.pcard-btn--details:hover {
  background: #1a3750;
  color: #fff;
  text-decoration: none;
}

.pcard-btn--wa {
  background: #25d366;
  color: #fff;
}

.pcard-btn--wa:hover {
  background: #1fb855;
  color: #fff;
  text-decoration: none;
}

.prod-no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: #6c757d;
}

.prod-no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.4;
}

/* ---- Single Product Page ---- */
.sp-hero {
  background: #f8fafb;
  padding: 3rem 0;
}

.sp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sp-gallery {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #eef1f4;
}

.sp-main-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8f9fa;
}

.sp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.sp-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #eef1f4;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
  padding: 4px;
}

.sp-thumb:hover,
.sp-thumb.active {
  border-color: var(--bs-primary, #ffaa17);
}

.sp-info {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid #eef1f4;
}

.sp-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bs-secondary, #214462);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.sp-code {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--bs-secondary, #214462);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.sp-type {
  font-size: 1rem;
  color: #5a6a7a;
  margin-bottom: 1.5rem;
}

.sp-desc {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.sp-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sp-btn--phone {
  background: var(--bs-primary, #ffaa17);
  color: #fff;
}

.sp-btn--phone:hover {
  background: #e89a0e;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 170, 23, 0.3);
}

.sp-btn--wa {
  background: #25d366;
  color: #fff;
}

.sp-btn--wa:hover {
  background: #1fb855;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Details sections */
.sp-details {
  padding: 4rem 0;
}

.sp-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sp-panel {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #eef1f4;
}

.sp-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-secondary, #214462);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bs-primary, #ffaa17);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-panel-title i {
  color: var(--bs-primary, #ffaa17);
}

.sp-chars {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-chars li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f4f5f7;
  font-size: 0.9rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-chars li:last-child {
  border-bottom: none;
}

.sp-chars li i {
  color: var(--bs-primary, #ffaa17);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sp-specs {
  width: 100%;
  border-collapse: collapse;
}

.sp-specs th,
.sp-specs td {
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  text-align: left;
  border-bottom: 1px solid #f4f5f7;
}

.sp-specs th {
  font-weight: 600;
  color: var(--bs-secondary, #214462);
  width: 40%;
  background: #fafbfc;
}

.sp-specs tr:last-child th,
.sp-specs tr:last-child td {
  border-bottom: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .prod-listing-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .sp-layout {
    grid-template-columns: 1fr;
  }

  .sp-details-grid {
    grid-template-columns: 1fr;
  }

  .prod-search input {
    width: 180px;
  }
}

@media (max-width: 576px) {
  .prod-hero {
    padding: 2.5rem 0;
  }

  .prod-hero h1 {
    font-size: 1.75rem;
  }

  .prod-listing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .prod-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .prod-search {
    margin-left: 0;
  }

  .prod-search input {
    width: 100%;
  }

  .pcard-actions {
    flex-direction: column;
  }

  .sp-title {
    font-size: 1.5rem;
  }

  .sp-btns {
    flex-direction: column;
  }

  .sp-btn {
    justify-content: center;
  }

  .sp-main-img {
    height: 280px;
  }
}
