/**
 * Bol.com Product Display Styling with Bootstrap
 * 
 * This CSS builds on top of Bootstrap to style the Bol.com product displays.
 * It assumes Bootstrap is already included in your page.
 * Enhanced with logo positioning and improved responsive behavior.
 */

/* Product row container */
.bol-products-row {
  margin: 20px 0;
}

/* Individual product card */
.bol-product {
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #fff;
  position: relative;
}

.bol-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Product link styling */
.bol-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.bol-product-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Product image container */
.bol-product-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.bol-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.bol-product:hover .bol-product-image img {
  transform: scale(1.05);
}

/* Product title */
.bol-product-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #0071b3;
  min-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Product brand */
.bol-product-brand {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

/* Product price */
.bol-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #d6004e;
  margin-bottom: 15px;
}

/* Bol.com logo */
.bol-logo {
  position: absolute;
  bottom: 8px;
  right: 10px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.bol-logo img {
  max-width: 60px;
  height: auto;
}

.bol-product:hover .bol-logo {
  opacity: 1;
}

/* Error message styling */
.bol-error {
  padding: 15px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
  text-align: center;
  border-radius: 0.25rem;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  /* Hide the second and third products in each row */
  .bol-products-row .col-md-4:not(:first-child) {
    display: none;
  }

  /* Make the first product take full width */
  .bol-products-row .col-md-4:first-child {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Larger product image on mobile */
  .bol-product-image {
    height: 200px;
  }

  /* Allow title to expand more on mobile */
  .bol-product-title {
    height: auto;
    max-height: 63px;
  }

  /* Adjust logo size on mobile */
  .bol-logo img {
    max-width: 50px;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .bol-product-image {
    height: 120px;
  }

  .bol-product-title {
    font-size: 13px;
    min-height: 34px;
  }
}
