/* Página de produto (/produtos/<slug>, gerada de hosting/_templates/product.html) */

/* ===== PRODUCT DETAIL PAGE - MODEL A (Classic E-commerce) ===== */
.pdp-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Breadcrumb */
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 20px;
  font-family: var(--font-family--body);
  font-size: 14px;
}
.pdp-breadcrumb-link {
  color: var(--color--primary-1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.pdp-breadcrumb-link:hover {
  color: var(--color--gray-1);
}
.pdp-breadcrumb-sep {
  width: 14px;
  height: 14px;
  opacity: 0.4;
}
.pdp-breadcrumb-current {
  color: var(--color--gray-1);
  font-weight: 500;
}

/* Main layout: 2 columns */
.pdp-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin-bottom: 80px;
}

/* Gallery */
.pdp-gallery-main {
  aspect-ratio: 4 / 3;
  background-color: var(--color--gray-2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8ecf3;
  cursor: zoom-in;
}
.pdp-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: opacity 0.3s ease;
}
.pdp-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.pdp-thumb {
  width: calc(50% - 6px);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  background-color: var(--color--gray-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  padding: 0;
}
.pdp-thumb:hover {
  border-color: #c8d6e3;
}
.pdp-thumb.active {
  border-color: var(--color--primary-1);
  box-shadow: 0 0 0 1px var(--color--primary-1);
}
.pdp-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* ===== Image Modal ===== */
.pdp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
  padding: 30px;
}
.pdp-modal-overlay.open {
  display: flex;
}
.pdp-modal {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  width: 1020px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pdp-modal-fadein 0.2s ease;
  position: relative;
}
@keyframes pdp-modal-fadein {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.pdp-modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
}
.pdp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.pdp-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Info column */
.pdp-info {
  display: flex;
  flex-direction: column;
}
.pdp-category {
  font-family: var(--font-family--heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color--primary-1);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.pdp-title {
  font-family: var(--font-family--heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--color--black);
  line-height: 1.2;
  margin: 0 0 18px;
}
.pdp-description {
  font-family: var(--font-family--body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color--gray-1);
  margin: 0 0 18px;
}
.pdp-divider {
  height: 1px;
  background-color: #eef1f6;
  margin-bottom: 16px;
}

/* Specs */
.pdp-spec {
  margin-bottom: 14px;
}
.pdp-spec-label {
  font-family: var(--font-family--heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color--gray-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.pdp-spec-value {
  font-family: var(--font-family--body);
  font-size: 15px;
  color: var(--color--black);
  font-weight: 500;
  line-height: 1.5;
}

/* Tags */
.pdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}
.pdp-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color--gray-1);
  background-color: var(--color--gray-2);
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-family--body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid #dde3ed;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pdp-tag:hover {
  background-color: var(--color--primary-1);
  color: #fff;
  border-color: var(--color--primary-1);
}

/* CTA area */
.pdp-cta-area {
  padding-top: 4px;
}
.pdp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color--primary-1);
  color: #fff;
  padding: 14px 36px;
  font-family: var(--font-family--heading);
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  border: none;
  cursor: pointer;
}
.pdp-cta-btn:hover {
  background-color: var(--color--gray-1);
  color: #fff;
  transform: translateY(-1px);
}
.pdp-cta-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  transition: transform 0.2s ease;
}
.pdp-cta-btn:hover svg {
  transform: translateX(3px);
}
.pdp-ref {
  display: block;
  font-size: 12px;
  color: #a0a9b8;
  font-family: var(--font-family--body);
  margin-top: 14px;
  font-weight: 500;
}

/* Related products */
.pdp-related {
  margin-bottom: 40px;
}
.pdp-related-header {
  text-align: center;
  margin-bottom: 36px;
}
.pdp-related-title {
  font-family: var(--font-family--heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--color--black);
}
.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Related product card */
.pdp-rcard {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8ecf3;
}
.pdp-rcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(29, 38, 53, 0.1);
}
.pdp-rcard-image-wrap {
  position: relative;
  background-color: var(--color--gray-2);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pdp-rcard-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}
.pdp-rcard:hover .pdp-rcard-image {
  transform: scale(1.05);
}
.pdp-rcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color--primary-1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-family--body);
}
.pdp-rcard-detail-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #fff;
  color: var(--color--primary-1);
  padding: 9px 20px;
  font-family: var(--font-family--heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  z-index: 2;
}
.pdp-rcard:hover .pdp-rcard-detail-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pdp-rcard-detail-btn:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  color: var(--color--primary-1);
}
.pdp-rcard-detail-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--color--primary-1);
}
.pdp-rcard-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pdp-rcard-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--color--primary-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-family: var(--font-family--body);
}
.pdp-rcard-title {
  font-family: var(--font-family--heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color--black);
  line-height: 1.3;
  margin-bottom: 0;
}

/* CTA Card (reused from catalog) */
.pdp-cta-card {
  margin-top: 24px;
  margin-bottom: 60px;
  border-radius: 10px;
  background-color: var(--color--primary-1);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.pdp-cta-card-text {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.pdp-cta-card-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-cta-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}
.pdp-cta-card-title {
  font-family: var(--font-family--heading);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.pdp-cta-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}
.pdp-cta-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  color: var(--color--primary-1);
  padding: 12px 26px;
  font-family: var(--font-family--heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pdp-cta-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: var(--color--primary-1);
}
.pdp-cta-card-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--color--primary-1);
  transition: transform 0.2s;
}
.pdp-cta-card-btn:hover svg {
  transform: translateX(3px);
}
.pdp-cta-card-decoration {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 200px;
  opacity: 0.07;
  pointer-events: none;
}

/* ===== Responsive ===== */
@media screen and (max-width: 991px) {
  .pdp-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pdp-title {
    font-size: 28px;
  }
  .pdp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdp-cta-card {
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .pdp-cta-card-text {
    flex-direction: column;
  }
  .pdp-cta-card-btn {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 767px) {
  .pdp-wrapper {
    padding: 0 20px;
  }
  .pdp-title {
    font-size: 26px;
  }
  .pdp-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .pdp-related-title {
    font-size: 26px;
  }
}

@media screen and (max-width: 600px) {
  .pdp-related-grid {
    grid-template-columns: 1fr;
  }
  .pdp-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .pdp-rcard-title {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .pdp-wrapper {
    padding: 0 15px;
  }
  .pdp-title {
    font-size: 22px;
  }
  .pdp-gallery-thumbs {
    gap: 8px;
  }
  .pdp-thumb {
    border-radius: 6px;
  }
  .pdp-gallery-main {
    border-radius: 8px;
  }
  .pdp-breadcrumb {
    font-size: 13px;
    padding: 16px 0 14px;
  }
  .pdp-cta-card {
    padding: 20px 16px;
    border-radius: 8px;
  }
}

