/* AW Related Products v1.0.2 — card appearance, retained from production child stylesheet. */
.aw-related-heading {
    margin: 0 0 14px !important;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.04em;
}
.aw-related-list { display: grid; gap: 18px; }
.aw-related-card { display: block; color: inherit; text-decoration: none; }
.aw-related-card:hover { color: inherit; opacity: 0.82; }
.aw-related-card-image { display: block; width: 100%; background-color: var(--main-bg-color, var(--bs-light)); }
.aw-related-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.aw-related-card-body { display: block; padding: 7px 0 0; }
.aw-related-card-title { display: block; font-size: 13px; line-height: 1.6; }
.aw-related-card-price { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; }
.aw-related-tax { margin-left: 3px; font-size: 11px; font-weight: 400; }
.aw-related-card-rating {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.3em;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.aw-related-card-rating .awpr-title-stars { font-size: 1.08em; line-height: 1; }
.aw-related-card-rating-count { opacity: 0.72; }
@media screen and (max-width: 1023px) {
    .aw-related-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; align-items: center; }
    .aw-related-card-body { padding: 0; min-width: 0; }
}
@media screen and (min-width: 1024px) {
  .aw-product-detail-related .aw-related-card-image {
    width: 75% !important;
    max-width: 75% !important;
    margin-left: 0;
    margin-right: auto;
  }
}
@media screen and (max-width: 767px) {
  .aw-product-detail-related .aw-related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .aw-product-detail-related .aw-related-card {
    display: block;
    grid-template-columns: none;
    min-width: 0;
  }
  .aw-product-detail-related .aw-related-card-image {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .aw-product-detail-related .aw-related-card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
  .aw-product-detail-related .aw-related-card-body {
    display: block;
    min-width: 0;
    padding: 6px 0 0;
  }
  .aw-product-detail-related .aw-related-card-title {
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .aw-product-detail-related .aw-related-card-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    font-size: 11px;
    white-space: normal;
  }
  .aw-product-detail-related .aw-related-card-rating .awpr-title-stars {
    display: block;
    flex: 0 0 100%;
    white-space: nowrap;
  }
  .aw-product-detail-related .aw-related-card-price {
    font-size: 12px;
    line-height: 1.5;
  }
  .aw-product-detail-related .aw-related-tax {
    margin-left: 2px;
    font-size: 10px;
  }
}


/* AW Related Products 1.1.1 — desktop image-overlay cards, matching the product listing style.
 * Keep this under desktop media query: tablet and mobile layouts remain unchanged.
 */
@media screen and (min-width: 1024px) {
  .aw-product-detail-related .aw-related-list {
    gap: 12px;
  }
  .aw-product-detail-related .aw-related-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--main-bg-color, #f3f1ee);
  }
  .aw-product-detail-related .aw-related-card-image {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .aw-product-detail-related .aw-related-card-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
  }
  .aw-product-detail-related .aw-related-card-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 38px 12px 10px;
    color: #fff;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.22) 30%, rgba(0, 0, 0, 0.78) 100%);
    pointer-events: none;
  }
  .aw-product-detail-related .aw-related-card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    color: #fff;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .aw-product-detail-related .aw-related-card-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }
  .aw-product-detail-related .aw-related-card-rating .awpr-title-stars {
    font-size: 1.08em;
  }
  .aw-product-detail-related .aw-related-card-price {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }
  .aw-product-detail-related .aw-related-tax {
    color: #fff;
  }
}
/* END AW Related Products 1.1.1 desktop image-overlay cards */
