/* Reserve geometry before image decoding and gallery initialization. */
@media(min-width:1280px){
 .mledy-product-media .desktop_image .product_image_grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .mledy-product-media .desktop_image .product_image_grid .item{display:block;position:relative;width:100%;max-width:none;min-width:0;height:auto;aspect-ratio:2/3;overflow:hidden}
 .mledy-product-media .desktop_image .product_image_grid .item>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
}
.footer__top__left .d_logo>img{width:220px;height:36px;object-fit:contain}
.product_main__control a[id$="_dolyame"] .d_logo>img{width:73px;height:18px;object-fit:contain}

@media(max-width:767px){
 .page_navigation,.page_navigation>div{min-width:0;max-width:100%}
 .page_navigation .d_list{width:100%;max-width:100%;height:auto;flex-wrap:wrap;row-gap:8px}
}

/* The right column is parsed after the gallery. Reserve its final width now. */
@media(min-width:1280px){
 .product_main>.product_main__photo{flex:0 0 calc(100% - 344px);max-width:calc(100% - 344px)}
}
@media(min-width:1560px){
 .product_main>.product_main__photo{flex-basis:calc(100% - 500px);max-width:calc(100% - 500px)}
}

/* Keep the header layout independent of the logo's download/decode timing. */
.header__top .d_logo{width:136px;flex-shrink:0}
.header__top .d_logo>img{display:block;width:100%;height:auto;aspect-ratio:276/56}
@media(min-width:768px){.header__top .d_logo{width:216px}}
@media(min-width:1560px){.header__top .d_logo{width:276px}}

/* The existing initializer hides zero counts. Match that state before it runs. */
.filter_box_items__list .filter_item:not(.selected):not(:has(.filter_checked input:checked)) .filter_item__button .d_count{display:none}

/* Reserve the cookie action's column/row even while HTML is still arriving. */
.popup-polit__wrap{display:grid;grid-template-columns:minmax(0,1fr) 188px;column-gap:40px;width:100%;min-height:52px}
.popup-polit__wrap>p{margin-right:0}
@media(max-width:768px){
 .popup-polit__wrap{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(80px,auto) 44px;row-gap:10px;min-height:174px}
 .popup-polit__wrap>p{margin-bottom:0}
}

/* Stable control typography: third-party font imports cannot reflow these panels. */
.popup-polit,.filter_box_items__list{font-family:Arial,sans-serif}
