/* Current catalogue refinements; mobile FAQ layout remains unchanged. */
.oc-footer-phones{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px 24px;margin:16px 0;}
.oc-footer-phones a{display:inline-block;white-space:nowrap;font-weight:700;padding:6px 0;}
body.ms-theme-ecofood .product-thumb a,
body.ms-theme-ecofood .product-thumb .name a {color:#154f26!important;}
body.ms-theme-ecofood .product-thumb a:not(.btn):hover,
body.ms-theme-ecofood .product-thumb a:not(.btn):focus-visible {color:#154f26!important;background-color:transparent!important;}
body.ms-theme-ecofood .product-thumb .image a:hover,
body.ms-theme-ecofood .product-thumb .oc-product-image-link:hover {background-color:transparent;}
body.ms-theme-ecofood .product-thumb .restored-details:hover,
body.ms-theme-ecofood .product-thumb .restored-details:focus-visible{background:transparent!important;border-color:#154f26!important;color:#154f26!important;}
body.ms-theme-ecofood .product-thumb .name a:hover,
body.ms-theme-ecofood .product-thumb .name a:focus-visible {border-radius:6px;box-decoration-break:clone;-webkit-box-decoration-break:clone;}
@media(min-width:992px){body.ms-theme-bylba #seven>.container>.row>.col-md-6{flex:0 0 50%;max-width:50%;width:50%;}}

/* Keep the rotating photo clickable and pause it for inspection. */
.ms-theme-fermer .gallery-thumbnails .main-image .slick-current a {pointer-events:auto;display:block;cursor:zoom-in;}
.ms-theme-fermer .gallery-thumbnails .main-image a:hover img,
.ms-theme-fermer .gallery-thumbnails .main-image a:focus img {animation-play-state:paused;}
@media (prefers-reduced-motion:reduce) {
 .ms-theme-fermer .gallery-thumbnails .main-image img {animation:none!important;}
}

/* September 28: product recommendations and everyday recipes. */
body.ms-theme-dostavka .oc-everyday-recipes{padding:clamp(36px,5vw,72px) 0;clear:both;}
body.ms-theme-dostavka .oc-everyday-recipes>h2{margin:0 0 28px;}
body.ms-theme-dostavka .oc-everyday-recipes>.text-center{margin-top:28px;}
body.ms-theme-dostavka .oc-everyday-recipes a.rating_btn{display:inline-flex;align-items:center;justify-content:center;background:#00a821!important;border:2px solid #00a821!important;color:#fff!important;border-radius:30px;padding:16px 30px;line-height:1.4;text-decoration:none;}
body.ms-theme-dostavka .oc-everyday-recipes a.rating_btn:hover,body.ms-theme-dostavka .oc-everyday-recipes a.rating_btn:focus-visible{background:#087921!important;border-color:#087921!important;color:#fff!important;}
body.ms-theme-dostavka .oc-related-title{font-size:clamp(26px,3vw,40px);line-height:1.2;margin:40px 0 28px;}
body.ms-theme-dostavka .oc-related-cards{align-items:stretch;row-gap:24px;margin-bottom:40px;}
body.ms-theme-dostavka .oc-related-cards>.product-layout{display:flex;}
body.ms-theme-dostavka .oc-related-cards .product-related{display:flex;flex-direction:column;align-items:stretch;width:100%;height:100%;padding:24px;border:1px solid #dce3d6;border-radius:24px;}
body.ms-theme-dostavka .oc-related-cards .related-image{display:block;float:none;width:100%;max-width:none;margin:0 0 20px;flex:none;}
body.ms-theme-dostavka .oc-related-cards .related-image img{display:block;width:100%;height:clamp(190px,19vw,300px);max-width:100%;object-fit:contain;}
body.ms-theme-dostavka .oc-related-cards .related-content{display:flex;flex-direction:column;align-items:center;flex:1;width:100%;margin:0;padding:0;text-align:center;}
body.ms-theme-dostavka .oc-related-cards .related-name{font-size:20px;line-height:1.4;margin-bottom:20px;}
body.ms-theme-dostavka .oc-related-cards .related-buttons{margin-top:auto;width:100%;}
body.ms-theme-fermer.common-home #frequent-questions.oc-text-section,body.ms-theme-fermer.common-home #frequent-questions{background:transparent!important;background-image:none!important;padding:70px 30px!important;margin-top:30px;margin-bottom:40px;}
body.ms-theme-fermer #frequent-questions>h2{color:#fff!important;}
@media(max-width:575px){body.ms-theme-fermer.common-home #frequent-questions.oc-text-section,body.ms-theme-fermer.common-home #frequent-questions{padding:44px 18px!important;margin-top:16px;margin-bottom:24px;}body.ms-theme-dostavka .oc-related-cards .product-related{padding:20px;}}

/* Delivery FAQ: keep the page background and give the section room. */
body.ms-theme-dostavka.common-home #frequent-questions{background:transparent!important;background-image:none!important;box-shadow:none!important;padding:72px 30px!important;margin:24px auto 40px;}
body.ms-theme-dostavka.common-home #frequent-questions>h2{margin:0 0 32px;line-height:1.25;}
@media(max-width:575px){body.ms-theme-dostavka.common-home #frequent-questions{padding:44px 18px!important;margin-top:16px;margin-bottom:24px;}}

/* Shared brand accents and consistent product-card corners. */
body[class*="ms-theme-"] .product-thumb,body[class*="ms-theme-"] .product-related{border-radius:20px!important;}
body[class*="ms-theme-"] .more-link,body[class*="ms-theme-"] #content .more-link{color:var(--brand-primary)!important;border-color:var(--brand-primary)!important;}
body[class*="ms-theme-"] a.oc-recipes-button,body[class*="ms-theme-"] #content a.oc-recipes-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:14px 28px!important;margin:24px 0;line-height:1.4;font-weight:700;text-decoration:none!important;background:var(--brand-primary)!important;border:2px solid var(--brand-primary)!important;border-radius:28px!important;color:#fff!important;transition:filter .2s ease;}
body[class*="ms-theme-"] #content a.oc-recipes-button:hover,body[class*="ms-theme-"] a.oc-recipes-button:hover,body[class*="ms-theme-"] a.oc-recipes-button:focus-visible{color:#fff!important;filter:brightness(.88);}
body.ms-theme-bylba a.oc-recipes-button,body.ms-theme-bylba #content a.oc-recipes-button{color:#273727!important;}
body[class*="ms-theme-"] .more-link a,body[class*="ms-theme-"] #content .more-link a{color:var(--brand-primary)!important;}

/* Catalogue cards: breathing room without comparison or wish-list controls. */
body[class*="ms-theme-"] .product-thumb,body[class*="ms-theme-"] .product-related{padding-top:28px!important;padding-bottom:28px!important;box-sizing:border-box;}
@media(max-width:575px){body[class*="ms-theme-"] .product-thumb,body[class*="ms-theme-"] .product-related{padding-top:22px!important;padding-bottom:22px!important;}}

/* Recipe heading clearance, catalogue gutters and branded pagination. */
body.ms-theme-ecofood.newsblog-category{margin-top:0!important;}
body[class*="ms-theme-"] .product-thumb.transition{padding-left:15px!important;padding-right:15px!important;}
body[class*="ms-theme-"] .pagination>li>a,body[class*="ms-theme-"] .pagination>li>span{background:var(--brand-primary)!important;border-color:var(--brand-primary)!important;color:#fff!important;border-radius:20px!important;min-width:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;margin:3px;}
body[class*="ms-theme-"] .pagination>li.active>span,body[class*="ms-theme-"] .pagination>li.active>a{box-shadow:inset 0 0 0 2px #fff;outline:2px solid var(--brand-primary);font-weight:800;}
body[class*="ms-theme-"] .pagination>li>a:hover,body[class*="ms-theme-"] .pagination>li>a:focus-visible{filter:brightness(.82);color:#fff!important;}
body[class*="ms-theme-"] #content .pagination.pagination>li>a,body[class*="ms-theme-"] #content .pagination.pagination>li>span{color:#fff!important;}
/* Fermer: transparent button decoration and stable gallery slide dimensions. */
body.ms-theme-fermer .btn__bg{background:transparent!important;background-image:none!important;}
body.ms-theme-fermer .btn__bg .btn__background-icon{display:none!important;}
body.ms-theme-fermer .product__submit{background:transparent!important;background-image:none!important;}
body.ms-theme-fermer .gallery-thumbnails .slider-for .thumbnail{display:block;width:100%;max-width:450px;aspect-ratio:1 / 1;margin:0 auto!important;padding:0;box-sizing:border-box;}
body.ms-theme-fermer .gallery-thumbnails .slider-for .thumbnail img{display:block;width:100%!important;height:100%!important;max-width:100%;aspect-ratio:1 / 1;object-fit:contain;transition:none!important;}

/* Space between recipe cards and category description. */
body.ms-theme-fermer.newsblog-category .fermer-recipes-description { padding-top: 50px; }

/* Delivery store: keep the cart number white, including nested AJAX markup. */
body.ms-theme-dostavka .cart .userblock-count,
body.ms-theme-dostavka .cart .userblock-count *,
body.ms-theme-dostavka .basket-mobile__circle .userblock-count,
body.ms-theme-dostavka .basket-mobile__circle .userblock-count * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Farmer store: white cart number in initial and refreshed markup. */
body.ms-theme-fermer .cart-count,
body.ms-theme-fermer .cart-count * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Position the outer badge too: AJAX can replace its nested .count with text. */
body.ms-theme-fermer #cart > button .cart-count {
 display:block;position:absolute;top:17px;right:3px;min-width:15px;height:15px;
 font-size:10px!important;font-weight:700;line-height:15px!important;text-align:center;
 background:transparent!important;border:0!important;z-index:1;
}
body.ms-theme-fermer #cart > button .cart-count .count {
 display:inline;position:static;top:auto;right:auto;min-width:0;height:auto;
 font-size:inherit;line-height:inherit;background:transparent!important;
}
body.ms-theme-fermer .mobile-user_cart #cart > button .cart-count {top:-5px;right:-10px;}

/* Also cover the legacy AJAX counter inserted directly beside the SVG. */
body.ms-theme-fermer #cart > button .count,
body.ms-theme-fermer #cart > button .cart-count,
body.ms-theme-fermer #cart > button .cart-count * {
 color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
}
/* September 29: centered module quantities and Ovoschi365 accents. */
body:is(.ms-theme-fermer,.ms-theme-kartoplya) .options-category[id^="featured"]{display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%;margin:0 auto!important;float:none!important}
body:is(.ms-theme-fermer,.ms-theme-kartoplya) .options-category[id^="featured"] :is(.row,.form-group){width:100%;margin-left:auto!important;margin-right:auto!important;text-align:center}
body:is(.ms-theme-fermer,.ms-theme-kartoplya) .options-category[id^="featured"] .select-quantity{margin-left:auto!important;margin-right:auto!important;float:none!important}
body.ms-theme-ovoschi365 :is(.product-thumb .rating,.nav-tabs-menu>li>a>svg){color:#346d63}
body.ms-theme-ovoschi365 .nav-tabs-menu>li.active>a:after{background:#346d63}
body.ms-theme-ovoschi365 .review-write-icon{background-color:#346d63}
body.ms-theme-ovoschi365 .oc-footer-phones{justify-content:flex-start!important;text-align:left!important}
