/* P0 mobile product card fix.
   Loaded last to keep product cards readable on narrow screens. */

@media (max-width: 767px) {
  .pc {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .pc-bar {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 6px !important;
    min-height: 6px !important;
    align-self: auto !important;
  }

  .pc-img,
  .pc-body,
  .pc-specs,
  .pc-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .pc-img {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    min-height: 160px !important;
    padding: 18px !important;
    text-align: center !important;
  }

  .pc-img img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 155px !important;
  }

  .pc-body {
    padding: 20px 16px 18px !important;
  }

  .pc-badge,
  .pc-tag,
  .pc-name,
  .pc-desc,
  .pc-spv,
  .pc-spk {
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .pc-name {
    font-size: 1.42rem !important;
    line-height: 1.12 !important;
  }

  .pc-desc {
    font-size: .92rem !important;
    line-height: 1.58 !important;
  }

  .pc-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .pc-actions .btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .pc-specs {
    grid-template-columns: 1fr !important;
  }

  .product-showcase-card,
  .product-card-media,
  .product-card-body,
  .product-card-copy,
  .product-card-tech,
  .product-actions,
  .product-hero,
  .product-hero > *,
  .product-detail-hero,
  .product-detail-hero > *,
  .product-tech-layout,
  .product-tech-main,
  .product-sync-source,
  .tool-shortcuts {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .product-showcase-card,
  .product-hero,
  .product-detail-hero,
  .product-tech-layout,
  .product-tech-main,
  .product-sync-source,
  .tool-shortcuts {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .product-card-copy,
  .product-card p,
  .product-card-body p,
  .product-detail-copy,
  .product-tech-main strong,
  .product-tech-main p,
  .page-card-text {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .product-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  .pc-name {
    font-size: 1.34rem !important;
  }

  .pc-img {
    min-height: 145px !important;
    padding: 16px !important;
  }

  .pc-img img {
    max-height: 138px !important;
  }
}
