/* STORE_ENGINE_027C41_PRODUCT_IMAGE_AND_FILTER_POLISH */

/* Product cards: always a square visual area and always show the whole photo. */
.product-card img,
.catalog-card img,
[class*="product-card"] img,
[class*="catalog-card"] img,
.se027c6-card img,
.se027c-card img,
[data-product-card] img {
  width:100% !important;
  height:auto !important;
  aspect-ratio:1 / 1 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#fff;
}

/* Product page/gallery: same rule for the principal product image. */
.product-gallery img,
.product-media img,
.product-image img,
[class*="product-gallery"] img,
[class*="product-media"] img,
[class*="product-image"] img,
[data-product-gallery] img,
[data-product-image] img {
  max-width:100% !important;
  aspect-ratio:1 / 1 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#fff;
}

/* Square known media wrappers so portrait/landscape photos cannot distort cards. */
.product-card [class*="media"],
.product-card [class*="image"],
.catalog-card [class*="media"],
.catalog-card [class*="image"],
.se027c6-card [class*="media"],
.se027c6-card [class*="image"],
[data-product-card] [class*="media"],
[data-product-card] [class*="image"] {
  aspect-ratio:1 / 1 !important;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.product-card [class*="media"] img,
.product-card [class*="image"] img,
.catalog-card [class*="media"] img,
.catalog-card [class*="image"] img,
.se027c6-card [class*="media"] img,
.se027c6-card [class*="image"] img,
[data-product-card] [class*="media"] img,
[data-product-card] [class*="image"] img {
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

.se027c41-filters{
  box-sizing:border-box;
  margin:0 0 18px;
  padding:14px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
  color:#0f172a;
}
.se027c41-filters-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.se027c41-filters-title b{font-size:16px}
.se027c41-filters-title button{border:0;background:transparent;color:#64748b;text-decoration:underline;cursor:pointer}
.se027c41-filter-group{border-top:1px solid #eef2f7;padding:10px 0 4px}
.se027c41-filter-group summary{font-weight:700;cursor:pointer;margin-bottom:6px}
.se027c41-filter-value{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:8px;padding:5px 0;cursor:pointer}
.se027c41-filter-value small{color:#94a3b8}
.se027c41-product-characteristics{margin-top:24px;padding:20px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}
.se027c41-product-characteristics h2{margin:0 0 14px}
.se027c41-spec-list{display:grid;gap:0}
.se027c41-spec-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,1.5fr);gap:20px;padding:10px 0;border-bottom:1px solid #eef2f7}
.se027c41-spec-row:last-child{border-bottom:0}
.se027c41-spec-row span{color:#64748b}
.se027c41-spec-row b{font-weight:600;color:#0f172a}
@media(max-width:640px){
  .se027c41-spec-row{grid-template-columns:1fr;gap:3px}
}
