/* public/css/product-show.css
 * Matches: resources/views/product-show.blade.php
 */

.product-detail-card { border-radius: 14px; }
.product-card { border-radius: 14px; }

.product-image-wrap {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.product-card-img-lg{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.product-card:hover .product-card-img-lg{
  transform: scale(1.04);
}

#mainProductImage{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
  background: #fff;
}

.brand-mini-logo{
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: inline-block;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  padding: 2px;
}

.brand-lg-logo{
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  padding: 6px;
}

.thumb-img{
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: block;
}

.thumb-img.is-active{
  border-color: rgba(13,110,253,.45);
}

.cart-inline-msg{
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
}

.cart-inline-msg.is-error{ color: #b02a37; }
.cart-inline-msg.is-success{ color: #146c43; }
.assembly-section {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fbff;
    padding: 1rem;
}

.assembly-component-card {
    overflow: hidden;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.assembly-component-card:hover,
.assembly-component-card.is-highlighted {
    border-color: #0d6efd;
    box-shadow: 0 12px 30px rgba(13, 110, 253, .15);
    transform: translateY(-2px);
}

.assembly-component-image-link {
    position: relative;
    display: block;
    height: 180px;
    padding: 12px;
    background: #f5f7fa;
}

.assembly-component-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.assembly-role-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, .92);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.assembly-component-body { padding: 1rem; }

.assembly-component-title {
    display: -webkit-box;
    overflow: hidden;
    color: #172033;
    font-weight: 700;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.assembly-component-title:hover { color: #0d6efd; }

@media (max-width: 575.98px) {
    .assembly-section { padding: .75rem; }
    .assembly-component-image-link { height: 150px; }
    .assembly-purchase-form .d-flex { flex-wrap: wrap; }
    .assembly-purchase-form .add-to-cart-btn { min-width: 150px; }
}
