/* Size picker and add-to-cart on product tiles (pickinglist module) */
.pl-tile-buy { margin: 8px 0 6px; }
.pl-tile-buy .pl-tile-sizes { line-height: 1.9; }
.pl-tile-buy .pl-size { display: inline-block; min-width: 28px; margin: 0 2px 4px; padding: 1px 6px; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; color: #333; background: #fff; border: 1px solid #c9c9c9; border-radius: 3px; cursor: pointer; }
.pl-tile-buy .pl-size:hover { border-color: #333; }
.pl-tile-buy .pl-size.pl-selected { color: #fff; background: #222; border-color: #222; }
.pl-tile-buy.pl-need-size .pl-size { border-color: #d9363e; }
.pl-tile-buy .pl-tile-msg { display: none; margin: 2px 0 4px; font-size: 12px; font-weight: 600; color: #d9363e; }
.pl-tile-buy.pl-need-size .pl-tile-msg { display: block; }
.pl-tile-buy .pl-tile-colour { margin-bottom: 4px; font-size: 12px; color: #666; }
.pl-tile-buy .pl-tile-row { display: flex; gap: 6px; justify-content: center; align-items: stretch; margin-top: 4px; }
.pl-tile-buy .pl-tile-qty { width: 58px; height: 36px; padding: 0 4px; font-size: 14px; text-align: center; border: 1px solid #c9c9c9; border-radius: 3px; }
.pl-tile-buy .pl-tile-add { height: 36px; padding: 0 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pl-tile-buy .pl-tile-min { margin-top: 3px; font-size: 11px; color: #777; }
/* the theme's own tile button adds the default variant without asking for a size */
article.product-miniature:has(.pl-tile-buy) .button-container > form.add-to-cart-or-refresh { display: none; }

/* the small product lists in the side column have no room for the picker */
#left-column .pl-tile-buy, #right-column .pl-tile-buy { display: none; }

.pl-tile-buy .pl-tile-add-icon { font-size: 16px; vertical-align: -3px; }

/* ---------------------------------------------------------------------------
   Product tiles in grid view: photo in a rounded frame, then name, short text,
   price with a round cart button, colour dots and size chips. No tile frame.
   (List view keeps the theme's own layout.)
   --------------------------------------------------------------------------- */
#content-wrapper .products .product-miniature:not(.product_show_list *) {
  margin: 0 !important;
  padding: 0 !important;
  border: 15px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .thumbnail-container {
  padding: 0;
  border: 0;
  background: none;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-left { border: 0; padding: 0; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-thumbnail { display: block; width: 100%; height: 100%; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-thumbnail img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

/* everything under the photo is laid out as one wrapping row */
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 2px 0;
  text-align: left;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-description,
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-bottom,
#content-wrapper .products .product-miniature:not(.product_show_list *) .button-container,
#content-wrapper .products .product-miniature:not(.product_show_list *) form.pl-tile-buy,
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-row { display: contents; }

#content-wrapper .products .product-miniature:not(.product_show_list *) .pl_reference,
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl_manufacturer,
#content-wrapper .products .product-miniature:not(.product_show_list *) .availability,
#content-wrapper .products .product-miniature:not(.product_show_list *) .button-container a.lnk_view,
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-qty,
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-colour,
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-add-text,
#content-wrapper .products .product-miniature:not(.product_show_list *) .highlighted-informations.no-variants { display: none !important; }

#content-wrapper .products .product-miniature:not(.product_show_list *) .product-title {
  order: 1;
  width: 100%;
  /* always two lines tall, so prices line up across a row */
  height: 38px !important;
  min-height: 0;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-title a {
  font-size: 15px;
  font-weight: 800;
  line-height: 19px;
  text-transform: uppercase;
  color: #111;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-desc {
  order: 2;
  width: 100%;
  height: 18px !important;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 18px;
  color: #8b8b8b;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .comments_note { order: 2; width: 100%; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-price-and-shipping {
  order: 3;
  flex: 1 1 auto;
  margin: 0;
  text-align: left;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-price-and-shipping .price {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-add {
  order: 4;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 0;
  color: #1f1f1f;
  background: #f2f2f2;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-add:hover { background: #e3b81c; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-add-icon { font-size: 22px; vertical-align: middle; }

/* colour dots */
#content-wrapper .products .product-miniature:not(.product_show_list *) .highlighted-informations {
  order: 5;
  display: block !important;
  position: static;
  width: 100%;
  height: auto;
  margin: 8px 0 0;
  padding: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .variant-links { margin: 0; padding: 0; background: none; text-align: left; min-height: 0; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .variant-links .color {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin: 0 5px 0 0;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .variant-links .count { display: none; }

/* size chips */
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-sizes { order: 6; width: 100%; margin-top: 8px; line-height: 1.6; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-size {
  min-width: 26px;
  margin: 0 4px 4px 0;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  color: #333;
  border: 1.5px solid #6a6a6a;
  border-radius: 4px;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-size.pl-selected { color: #1f1f1f; background: #e3b81c; border-color: #c79d0c; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-msg { order: 7; width: 100%; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-min { order: 8; width: 100%; margin-top: 2px; }

/* under the name: the default category in grid tiles, the short description in list view */
.product-miniature .pl-tile-category { display: none; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-category { display: inline; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .pl-tile-short { display: none; }

/* Quick view: a round eye button in the corner of the photo (grid view), always visible */
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-image-container a.quick-view {
  display: flex !important;
  align-items: center;
  justify-content: center;
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  color: #1b1a1b;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
  z-index: 3;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-image-container a.quick-view i {
  display: block;
  margin: 0;
  font-size: 21px;
  line-height: 1;
  color: inherit;
}
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-image-container a.quick-view .pl-quick-label { display: none; }
#content-wrapper .products .product-miniature:not(.product_show_list *) .product-image-container a.quick-view:hover {
  background: #e3b81c;
  border-color: #e3b81c;
  transform: scale(1.08);
}
@media (max-width: 767px) {
  #content-wrapper .products .product-miniature:not(.product_show_list *) .product-image-container a.quick-view { top: 6px; right: 6px; width: 32px; height: 32px; }
  #content-wrapper .products .product-miniature:not(.product_show_list *) .product-image-container a.quick-view i { font-size: 18px; }
}
