/* =========================================================
   PLC_Motion_HMI.html
   Styles used only by the PLC-Motion-HMI page.
   This file is separate from style3.css so other pages
   remain unchanged.
   ========================================================= */

/* Category introduction */
.plc-intro {
  margin: 30px auto;
  color: #35424a;
}

.plc-intro h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.plc-intro p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Product grid: 3 columns on desktop */
#plc-products {
  margin-top: 30px;
  margin-bottom: 50px;
}

#plc-products .plc-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

#plc-products .plc-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  text-align: center;
}

/* Centre product 4 in the second row */
#plc-products .plc-product-card:nth-child(4) {
  grid-column: 2;
}

#plc-products .plc-product-image {
  width: 200px;
  height: 200px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 15px;
}

#plc-products .plc-product-info {
  text-align: left;
  flex: 1;
}

#plc-products .plc-product-info h3 {
  color: #35424a;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 12px;
  min-height: 25px;
}

#plc-products .plc-product-info p {
  color: #555555;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 15px;
  min-height: 84px;
}

#plc-products .plc-product-price {
  color: #35424a;
  font-size: 17px;
  font-weight: bold;
  margin: 15px 0;
  min-height: 50px;
}

#plc-products .plc-product-price span {
  display: block;
  font-size: 13px;
  font-weight: normal;
  color: #6c757d;
}

/* Five documentation positions: 3 on first row, 2 on second */
#plc-products .plc-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 36px 36px;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 18px;
  padding-top: 15px;
  border-top: 1px solid #eeeeee;
}

#plc-products .resource-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
  padding: 5px 3px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  color: #6c757d;
  background: #f8f8f8;
  font-size: 12px;
  text-align: center;
}

/* Second documentation row */
#plc-products .resource-slot:nth-child(4) {
  grid-column: 1;
}

#plc-products .resource-slot:nth-child(5) {
  grid-column: 2;
}

/* Use this styling when a documentation item becomes a real link */
#plc-products a.resource-slot {
  color: #35424a;
  text-decoration: none;
  border-color: #e8491d;
  background: #ffffff;
  font-weight: bold;
  transition: background 0.2s ease, color 0.2s ease;
}

#plc-products a.resource-slot:hover {
  background: #e8491d;
  color: #ffffff;
}

/* Add to basket button */
#plc-products .plc-cart-button {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 11px 10px;
  border: none;
  border-radius: 4px;
  background: #e8491d;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
}

#plc-products .plc-cart-button:hover {
  background: #35424a;
}

/* Tablet: two columns */
@media screen and (max-width: 1100px) {
  #plc-products .plc-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  #plc-products .plc-product-card:nth-child(4) {
    grid-column: auto;
  }
}

/* Mobile: one column */
@media screen and (max-width: 600px) {
  #plc-products .plc-product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #plc-products .plc-product-card:nth-child(4) {
    grid-column: auto;
  }

  #plc-products .plc-product-card {
    padding: 15px;
  }

  #plc-products .plc-product-info p {
    min-height: 0;
  }

  .plc-intro h2 {
    font-size: 22px;
  }
}


/* OPCIÓN 2: botón para solicitar presupuesto */
.plc-price-quote {
  color: #35424a;
  font-weight: 700;
}

.plc-price-quote span {
  display: block;
  margin-top: 7px;
  color: #6c757d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.plc-quote-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 3px;
  background: #e8491d;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.plc-quote-button:hover,
.plc-quote-button:focus {
  background: #c93c18;
  color: #ffffff;
  text-decoration: none;
}
