/* Keep the hero stable while Slick and its dependencies start. */
.hero-slider-1 .single-hero-slider {
    position: relative;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 1920 / 650;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #fff;
}
.hero-slide-link { position:absolute; inset:0; z-index:1; display:block; }
.hero-slide-link:focus-visible { outline:3px solid #f58200; outline-offset:-4px; }
.hero-slider-1 .slider-content { position:relative; z-index:2; pointer-events:none; }
.hero-slider-1 .slider-content a { pointer-events:auto; }
.hero-slider-1 .slick-dots, .hero-slider-1 .slider-btn { z-index:3; }
.hero-slider-1 video { width:100%; height:100%; object-fit:contain; }
.mega-cat-image img, .urun-category-image img { object-fit:contain; background:#fff; }
.mega-cat-image .lazy-container, .urun-category-image .lazy-container { width:100%; height:100%; }
img[data-image-fallback] { object-fit:contain !important; background:#f7fafc; }
.banners .banner-img img { width:100%; height:auto; aspect-ratio:19 / 10; object-fit:contain; }
.product-grid-4 .product-img img { width:100%; aspect-ratio:1; object-fit:contain; }

/* Catalog categories: unobscured photography with a separate information area. */
.catalog-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin:0; }
.catalog-category-cell { min-width:0; }
.catalog-category-card { height:100%; margin:0!important; border:1px solid #e5edf3; border-radius:16px; box-shadow:0 4px 16px rgba(27,56,78,.04); transition:transform .2s,border-color .2s,box-shadow .2s; }
.catalog-category-card:hover { transform:translateY(-4px); border-color:#97c4df; box-shadow:0 12px 28px rgba(27,56,78,.09); }
.catalog-category-card .category-link:focus-visible { outline:3px solid #f58200; outline-offset:-4px; border-radius:16px; }
.catalog-category-card .urun-category-image { height:100%; overflow:hidden; display:flex; flex-direction:column; background:#fff; }
.catalog-category-card .urun-category-image>img,
.catalog-category-card .urun-category-image>.lazy-container { width:100%; height:auto!important; aspect-ratio:4/3; flex:none; }
.catalog-category-card .urun-category-image img { display:block; width:100%; height:100%!important; aspect-ratio:4/3; object-fit:contain; transform:none!important; }
.catalog-category-card .urun-category-image>img { height:auto!important; }
.catalog-category-card .urun-category-overlay { position:static; inset:auto; width:100%; height:auto; flex:1; padding:20px; background:#fff; border-top:1px solid #eef3f6; }
.catalog-category-card .urun-category-name { color:#203d51; font-size:18px; line-height:1.35; font-weight:700; margin:0 0 8px; min-height:49px; }
.catalog-category-card .urun-category-count { color:#6a7d8b; font-size:13px; line-height:1.5; }
.catalog-category-card .explore-btn { display:inline-flex; align-items:center; gap:10px; margin:14px 0 0; padding:0; opacity:1; transform:none; background:none; color:#006eaa; border-radius:0; font-size:13px; font-weight:700; }
.catalog-category-card .explore-btn::after { content:'\2192'; color:#f58200; font-size:20px; line-height:1; }
.lazy-media-fill { width:100%; height:100%; display:flex; align-items:center; justify-content:center; min-height:0!important; }

/* Stable product tiles, including category pages and related products. */
.product-list-page .product-grid { align-items:stretch; }
.product-list-page .product-grid>[class*='col-'] { display:flex; }
.product-list-page .product-cart-wrap { width:100%; display:flex; flex-direction:column; border:1px solid #e5edf3; border-radius:14px; overflow:hidden; background:#fff; }
.product-list-page .product-cart-wrap .product-img-action-wrap { padding:12px; }
.product-list-page .product-cart-wrap .product-img,
.product-detail-page .product-cart-wrap .product-img { width:100%; aspect-ratio:1; min-height:0; overflow:hidden; }
.product-list-page .product-cart-wrap .product-img>a,
.product-detail-page .product-cart-wrap .product-img>a { display:flex; align-items:center; justify-content:center; width:100%; height:100%; padding:8px; }
.product-list-page .product-cart-wrap .product-img a img,
.product-detail-page .product-cart-wrap .product-img a img { width:100%!important; height:100%!important; max-height:100%; aspect-ratio:auto; object-fit:contain!important; transform:none!important; }
.product-list-page .product-cart-wrap .product-content-wrap { padding:8px 18px 18px; flex:1; }
.product-list-page .product-cart-wrap .product-content-wrap h2 { font-size:15px; line-height:1.5; min-height:45px; }
.product-list-page .shop-product-fillter { gap:16px; flex-wrap:wrap; }

/* Main gallery and thumbnail sizing must not depend on the photo proportions. */
.product-detail-page .detail-gallery { min-width:0; }
.product-detail-page .product-image-slider:not(.slick-initialized)>figure:not(:first-child) { display:none; }
.product-detail-page .detail-gallery .product-image-slider figure { margin:0; width:100%; aspect-ratio:1; }
.product-detail-page .detail-gallery .product-image-slider figure>a { display:flex; align-items:center; justify-content:center; width:100%; height:100%; padding:24px; }
.product-detail-page .detail-gallery .product-image-slider figure img { width:100%!important; height:100%!important; object-fit:contain!important; border-radius:0; }
.product-detail-page .slider-nav-thumbnails .slick-slide { padding:6px; border:1px solid #e5edf3; border-radius:10px; margin:0 5px; background:#fff; cursor:pointer; }
.product-detail-page .slider-nav-thumbnails .slick-slide img { width:100%; height:72px; object-fit:contain; border-radius:0; }
.product-detail-page .slider-nav-thumbnails .slick-current { border-color:#006eaa; }
.product-detail-page .detail-info { padding:0 20px!important; }
.product-detail-page .title-detail { font-size:clamp(23px,2.4vw,32px); line-height:1.3; overflow-wrap:anywhere; }
@media(max-width:1199px) { .catalog-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:767px) {
 .catalog-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
 .catalog-category-card .urun-category-overlay { padding:14px; }
 .catalog-category-card .urun-category-name { font-size:15px; min-height:41px; }
 .product-list-page .product-cart-wrap .product-img-action-wrap { padding:6px; }
 .product-list-page .product-cart-wrap .product-content-wrap { padding:6px 12px 14px; }
 .product-detail-page .detail-info { padding:24px 0 0!important; }
 .product-detail-page .detail-gallery .product-image-slider figure>a { padding:18px; }
}
@media(max-width:359px) { .catalog-category-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .catalog-category-card { transition:none; } .catalog-category-card:hover { transform:none; } }

/* Home showcase: reserve the whole media box before lazy images arrive. */
.home-featured-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px; }
.home-featured-cell { min-width:0; display:flex; }
.home-featured .product-cart-wrap { width:100%; height:100%; margin:0!important; display:flex; flex-direction:column; overflow:hidden; border:1px solid #e5edf3; border-radius:14px; background:#fff; }
.home-featured .product-cart-wrap .product-img-action-wrap { padding:12px; }
.home-featured .product-cart-wrap .product-img { width:100%; aspect-ratio:1; min-height:0!important; overflow:hidden; }
.home-featured .product-cart-wrap .product-img>a { width:100%; height:100%; display:flex; align-items:center; justify-content:center; padding:8px; }
.home-featured .product-img .lazy-container { width:100%; height:100%; min-height:0!important; display:flex; align-items:center; justify-content:center; }
.home-featured .product-cart-wrap .product-img img { width:100%!important; height:100%!important; max-height:100%; aspect-ratio:auto!important; object-fit:contain!important; transform:none!important; }
.home-featured .product-content-wrap { flex:1; padding:8px 16px 18px!important; }
.home-featured .product-content-wrap h2 { font-size:14px; line-height:1.5; margin:0; min-height:42px; }
.home-featured .product-content-wrap h2 a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
@media(max-width:1199px) { .home-featured-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:991px) { .home-featured-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:575px) {
 .home-featured-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .home-featured .product-cart-wrap .product-img-action-wrap { padding:6px; }
 .home-featured .product-content-wrap { padding:6px 12px 14px!important; }
 .home-featured .product-content-wrap h2 { font-size:13px; min-height:39px; }
}
