
/* =========================================================
   rodamientos-husillo.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;
}


/* =========================================================
   CATEGORY NAVIGATION
   12 categories in one horizontal row
   Images with category names underneath
   ========================================================= */

.plc-category-nav {
  margin: 10px auto 18px;
}

.plc-category-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 0 8px;
}

.plc-category-link {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 3px 2px;
  background: transparent;
  border: none;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.plc-category-link img {
  display: block;
  width: 100%;
  max-width: 66px;
  height: 66px;
  object-fit: contain;
  margin: 0 auto 5px;
  transition: transform 0.2s ease;
}

.plc-category-link span {
  display: block;
  width: 100%;
  color: #35424a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.plc-category-link:hover img,
.plc-category-link:focus img {
  transform: translateY(-3px);
}

.plc-category-link:hover span,
.plc-category-link:focus span {
  color: #e8491d;
}


/* =========================================================
   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;
}

#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;
}


/* =========================================================
   PRODUCT PRICE
   ========================================================= */

#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;
}

/* Option 2: no published price */
.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;
}


/* =========================================================
   PRODUCT DOCUMENTATION
   Five 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;
}


/* =========================================================
   REQUEST A QUOTE BUTTON
   ========================================================= */

.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;
}


/* =========================================================
   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;
}


/* =========================================================
   NEWSLETTER SPACING
   Prevents the button touching the section above
   ========================================================= */

#newsletter {
  margin-top: 20px;
}


/* =========================================================
   TABLET
   Two product columns
   ========================================================= */

@media screen and (max-width: 1100px) {

  #plc-products .plc-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}


/* =========================================================
   MOBILE
   One product column
   Category navigation scrolls horizontally
   ========================================================= */

@media screen and (max-width: 700px) {

  .plc-category-grid {
    justify-content: flex-start;
    gap: 10px;
  }

  .plc-category-link {
    flex: 0 0 72px;
  }

  .plc-category-link img {
    width: 60px;
    height: 60px;
  }

  .plc-category-link span {
    font-size: 10px;
  }

}

@media screen and (max-width: 600px) {

  #plc-products .plc-product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
#plc-products .plc-product-card {
    padding: 15px;
  }

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

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

}
