/* Katalog sayfasındaki son responsive katman. */
html, body { max-width: 100%; overflow-x: clip; }
.container, .products-page, .products-main, .catalog-hero, .catalog-category-strip { min-width: 0; max-width: 100%; }
.catalog-hero__panel { min-height: 360px; overflow: hidden; }
.catalog-hero__slides { position: relative; min-height: 292px; }
.catalog-hero__product-stage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .24s ease,transform .24s ease,visibility .24s; }
.catalog-hero__product-stage.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.catalog-hero__product { min-width: 0; min-height: 0; overflow: hidden; }
.catalog-hero__product img { display: block; width: 100%; height: 138px; object-fit: contain; aspect-ratio: 1/1; }

@media (max-width: 767px) {
    .catalog-hero__panel { display: flex; min-height: 245px; margin-top: 2px; padding: 12px; }
    .catalog-hero__slides { min-height: 176px; }
    .catalog-hero__product-stage { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .catalog-hero__product-stage .catalog-hero__product:nth-child(n+3) { display: none; }
    .catalog-hero__product img { height: 168px; }
    .catalog-hero__controls { margin-top: 5px; }
    .catalog-category-strip { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
    .catalog-category-strip::-webkit-scrollbar { display: none; }
    .products-grid, .p-card { min-width: 0; }
    .p-card-title { overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
    .catalog-hero__panel { min-height: 218px; }
    .catalog-hero__slides { min-height: 150px; }
    .catalog-hero__product img { height: 142px; }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-hero__product-stage, .catalog-hero__product, .catalog-hero__dots button { transition: none !important; }
    .catalog-hero__product:hover { transform: none; }
}
