/**
 * OVERZEAS PRODUCT CARD
 * Category/listing card styles extracted from product.tpl.
 * Loaded once from head.tpl to avoid repeating CSS for every product.
 * Keep selectors scoped under #products to protect other components.
 * Migrated: 2026-08-05
 */

#products .products.grid {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

#products .products.grid .product-miniature {
  display: flex !important;
  height: auto !important;
  padding: 0 10px 8px !important;
}

#products .products.grid .product-miniature .product-block {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 6px 0 4px !important;
  padding: 4px 8px !important;
  overflow: hidden !important;
  background: #f9f9f9 !important;
  border: 1px solid #d5d5d5 !important;
  border-top: 0 !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3) !important;
}

#products .products.grid .product-miniature .product-left-block {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  background: transparent !important;
}

#products .products.grid .product-miniature .thumbnail-container {
  width: calc(100% - 20px) !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  margin: 6px 10px 0 !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  background: #fff !important;
  border: 1px solid #d5d5d5 !important;
  box-sizing: border-box !important;
}

#products .products.grid .product-miniature .product-thumbnail {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: #fff !important;
  border: 0 !important;
}

#products .products.grid .product-miniature .product-thumbnail > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#products .products.grid .product-miniature .fmm_sticker_base_span img {
  width: 32px !important;
  max-width: 32px !important;
  height: auto !important;
}

#products .products.grid .product-miniature .ovz-card-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: calc(100% - 20px) !important;
  min-height: 25px !important;
  margin: 0 10px !important;
  padding: 5px 0 4px !important;
  gap: 8px !important;
  background: transparent !important;
  border-bottom: 1px solid #d5d5d5 !important;
  box-sizing: border-box !important;
}

#products .products.grid .product-miniature .ovz-card-brand,
#products .products.grid .product-miniature .ovz-card-reference {
  overflow: hidden !important;
  color: #666 !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 14px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#products .products.grid .product-miniature .ovz-card-brand {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-transform: none !important;
}

#products .products.grid .product-miniature .ovz-card-reference {
  flex: 0 0 auto !important;
  text-align: right !important;
}

#products .products.grid .product-miniature .product-title {
  display: block !important;
  width: 100% !important;
  height: 115px !important;
  min-height: 115px !important;
  max-height: 115px !important;
  flex: 0 0 115px !important;
  margin: 6px 0 8px !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  background: transparent !important;
  box-sizing: border-box !important;
  color: #444 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  text-align: left !important;
}

#products .products.grid .product-miniature .product-title > a {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  color: #444 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  text-align: left !important;
  white-space: normal !important;
}

#products .products.grid .product-miniature .product-description-short {
  display: none !important;
}

#products .products.grid .product-miniature .product-right-block {
  display: flex !important;
  min-height: 42px !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  padding: 0 10px !important;
  background: transparent !important;
}

#products .products.grid .product-miniature .reviews_list_stars {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-height: 20px !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  color: #777 !important;
  font-size: 12px !important;
  line-height: 14px !important;
  text-align: left !important;
  white-space: nowrap !important;
}

#products .products.grid .product-miniature .reviews_list_stars .star_content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 1px !important;
  height: 14px !important;
  line-height: 14px !important;
  white-space: nowrap !important;
}

#products .products.grid .product-miniature .reviews_list_stars .gsniprev-img-star-category {
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
}

#products .products.grid .product-miniature .product-price-and-shipping {
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  line-height: 22px !important;
  text-align: left !important;
}

#products .products.grid .product-miniature .product-price-and-shipping .price {
  color: #49a2ce !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  text-align: left !important;
}

#products .products.grid .product-miniature .product-list-actions {
  min-height: 48px !important;
  flex: 0 0 auto !important;
  margin: auto 0 0 !important;
  padding: 0 10px 5px !important;
  background: transparent !important;
}

#products .products.grid .product-miniature .product-list-actions form {
  margin: 0 !important;
}

#products .products.grid .product-miniature .product-list-actions .btn,
#products .products.grid .product-miniature .product-list-actions .add-to-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  height: 39px !important;
  min-height: 39px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

#products .products.grid .product-miniature .product-list-actions .icon-shopping-cart,
#products .products.grid .product-miniature .product-list-actions .icon-magnifier {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 43px !important;
  height: 39px !important;
  min-width: 43px !important;
  flex: 0 0 43px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #515151 !important;
  color: #fff !important;
  border-radius: 2px 0 0 2px !important;
  font-size: 26px !important;
  line-height: 1 !important;
}

#products .products.grid .product-miniature .product-list-actions .add-to-cart-label,
#products .products.grid .product-miniature .product-list-actions .product-action-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 39px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 4px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: normal !important;
}

@media (max-width: 991px) {
  #products .products.grid .product-miniature {
    height: auto !important;
  }

  #products .products.grid .product-miniature .product-block {
    height: auto !important;
    min-height: 0 !important;
  }

  #products .products.grid .product-miniature .product-title {
    height: 67px !important;
    min-height: 67px !important;
    max-height: 67px !important;
    flex-basis: 67px !important;
  }
}
