.catalog-detail-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,1.3vw,18px); }
.catalog-detail-grid .catalog-product-card[hidden], [data-load-machine-products][hidden] { display: none; }
.catalog-detail-grid--machine .catalog-product-card .product-image-frame {
  aspect-ratio: 4 / 5;
  padding: clamp(9px, 1.15vw, 18px);
}
.catalog-detail-grid--machine .catalog-product-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.catalog-detail-grid--handmade .catalog-product-card .product-image-frame { aspect-ratio: 3 / 4; }
.catalog-detail-grid--handmade .catalog-product-card img { object-fit: contain; }
.catalog-more { margin: 16px 0 0; text-align: center; }
.catalog-request {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  margin-block: 22px 26px;
  padding: clamp(14px, 2vw, 21px);
  border: 1px solid #e3d7e9;
  border-radius: 12px;
  background: #f5edf7;
  color: #4b3458;
}
.catalog-request p { flex: 1 1 420px; margin: 0; font-size: .95rem; line-height: 1.55; }
.catalog-request .btn { margin: 0; }
html[dir="rtl"] body[data-language-on-page] .lang-dropdown { left: 0; right: auto; }
@media (min-width: 1150px) { .catalog-detail-grid--machine { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (min-width: 1600px) { .catalog-detail-grid--machine { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (min-width: 1450px) { .catalog-detail-grid--handmade { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 960px) { .catalog-detail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 620px) { .catalog-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Match the display surfaces while preserving each original product photograph. */
.catalog-detail-grid .catalog-product-card {
  background: #fff;
  border: 1px solid #e8e0ec;
  border-radius: 14px;
  overflow: hidden;
}
.catalog-detail-grid .catalog-product-card .product-image-frame {
  background: #f7f4f8;
  border-bottom: 1px solid #eee8f0;
}

.catalog-detail-grid--machine .catalog-product-card {
  background: #f8f5f8;
  border-color: #e4dbe7;
  box-shadow: 0 3px 12px #2f1a3408;
}
.catalog-detail-grid--machine .catalog-product-card .product-image-frame {
  background: radial-gradient(ellipse at 50% 30%, #f9f7f8, #f1edf2);
  border-bottom: 1px solid #e9e1eb;
}
.catalog-detail-grid--machine .catalog-product-card .product-label {
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  padding: 7px 8px;
  font-size: .78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
  color: #4c3b53;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .catalog-detail-grid--machine .catalog-product-card {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
  .catalog-detail-grid--machine .catalog-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px #2f1a3415;
  }
}
.catalog-detail-grid--handmade .catalog-product-card .product-image-frame { padding: clamp(3px, .5vw, 8px); }
.catalog-detail-grid .catalog-product-card .product-label { color: #483350; }
.catalog-detail-grid .catalog-product-card:focus-visible { outline: 2px solid #714682; outline-offset: 2px; }
.machine-series-entries .machine-entry, .handmade-category-grid .handmade-category-card {
  border-color: #e8e0ec;
}
.machine-series-entries .machine-entry img { background: #f7f4f8; padding: 4px; }
.handmade-category-grid .handmade-category-card img { background: #f7f4f8; object-fit: contain; }
