/*
 * Product Item Component
 * Mobile-first, reusable component for product cards
 */

 .item-product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 28.625rem; /* 458px from Figma */
  overflow: hidden;
}

/* Background */
.item-product__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 0.0625rem solid #f6f8fb;
  border-radius: 0.5rem; /* 8px */
  z-index: 1;
}

/* Product Image Link */
.item-product__image-link {
  display: block;
  position: relative;
  z-index: 2;
}

/* Product Image */
.item-product__image {
  position: relative;
  width: 100%;
  height: 12.5rem; /* 200px from Figma */
  margin: 0 0 1rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.item-product__image-link:hover .item-product__image {
  opacity: 0.85;
}

.item-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #e4e2da;
}
.item-product__image img.item-product__placeholder-logo {
  width: 100%;
  background-color: transparent;
}

/* Content Area */
.item-product__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.625rem 1rem; /* 10px sides, 16px bottom */
  z-index: 2;
  flex: 1;
}

/* Part Number Code */
.item-product__code {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.2;
  color: #737b7d;
  letter-spacing: -0.0088rem; /* -0.14px */
  margin: 0;
}

/* Product Title */
.item-product__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  line-height: 1.2;
  color: #0c0c0c;
  letter-spacing: -0.0422rem; /* -0.675px */
  margin: 0.5rem 0;
}

.item-product__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.item-product__title a:hover {
  color: #24516d;
}

/* Stock Availability Badge */
.item-product__stock {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem; /* 6px */
  max-width: fit-content;
  margin-bottom: 0.5rem;
}

.item-product__stock-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 0.0625rem solid #f6f8fb;
  border-radius: 0.25rem; /* 4px */
  z-index: -1;
}

.item-product__stock-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.2;
  color: #00893a;
  letter-spacing: -0.0088rem; /* -0.14px */
  padding: 0.375rem 0.625rem;
}

.item-product__stock-icon {
  width: 1rem; /* 16px */
  height: 1rem;
  flex-shrink: 0;
  margin-right: 0.375rem;
}

/* Product Condition */
.item-product__condition {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.2;
  color: #0c0c0c;
  letter-spacing: -0.0088rem; /* -0.14px */
  margin: 0;
}

/* System Information */
.item-product__system {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.2;
  color: #0c0c0c;
  letter-spacing: -0.0088rem; /* -0.14px */
  margin: 0;
}

/* Secondary Code */
.item-product__secondary {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.2;
  color: #0c0c0c;
  letter-spacing: -0.0088rem; /* -0.14px */
  margin: 0;
}

/* Hover State */
.item-product:hover .item-product__bg {
  /* border-color: #24516d; */
}

.item-product:hover .item-product__image img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

/* Responsive Tablet */
@media (min-width: 768px) {
  .item-product {
    min-height: 30rem; /* Slightly larger on tablet */
  }
  
  .item-product__image {
    height: 13.75rem; /* 220px */
  }
  
  .item-product__title {
    font-size: 1.375rem; /* 22px */
    min-height: 3.4rem;
  }
}

/* Responsive Desktop */
@media (min-width: 992px) {
  .item-product {
    min-height: 28.625rem; /* 458px exact from Figma */
  }
  
  .item-product__image {
    height: 12.5rem; /* 200px exact from Figma */
  }
  
  .item-product__content {
    padding: 0 0.625rem 1.25rem;
  }
}



