/* Stroyka — project glue only. Template styles live untouched in style.css. */
.site-header__logo img, .mobile-header__logo img { display: block; }
.stroyka-whatsapp { position: fixed; bottom: 22px; z-index: 1030; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.stroyka-whatsapp--right { right: 22px; } .stroyka-whatsapp--left { left: 22px; }
.stroyka-whatsapp:hover { color: #fff; }
/* Rich text coming from the CMS (pages, blog posts, product descriptions). */
.cms-content img { max-width: 100%; height: auto; }
.cms-content table { width: 100%; }
/* Cart page busy state used by /js/cart.js. */
.cart-page-area.is-busy { opacity: .6; pointer-events: none; }

/* Home slideshow, edge to edge (Stroyka "full" layout without the container).
   The image covers the full browser width; on tablet/desktop the text lines up with the page container. */
.stroyka-slideshow--edge { margin-top: 0; }
/* Run straight into the grey Popular Categories band when it follows (no white strip in between). */
.stroyka-slideshow--edge:has(+ .block--highlighted) { margin-bottom: 0; }
.stroyka-slideshow--edge .block-slideshow__slide-image { background-size: cover; background-position: center; }
/* Align the slide text with the page container (Bootstrap content width per breakpoint). */
@media (min-width: 768px) { .stroyka-slideshow--edge .block-slideshow__slide-content { left: calc((100% - 690px) / 2); } }
@media (min-width: 992px) { .stroyka-slideshow--edge .block-slideshow__slide-content { left: calc((100% - 930px) / 2); } }
@media (min-width: 1200px) { .stroyka-slideshow--edge .block-slideshow__slide-content { left: calc((100% - 1110px) / 2); } }
@media (min-width: 1400px) {
    .stroyka-slideshow--edge .block-slideshow__body,
    .stroyka-slideshow--edge .block-slideshow__slide { height: 480px; }
}

/* Popular Categories (Stroyka compact cards) on phones: two cards per row (the template uses one column
   below 768px). Each card stacks the image above the name and product count so it fits half the width. */
@media (max-width: 767px) {
    .block-categories--layout--compact .block-categories__item { width: calc(50% - 12px); }
    .block-categories--layout--compact .category-card__body { flex-direction: column; align-items: center; text-align: center; padding: 16px 12px; }
    .block-categories--layout--compact .category-card__image { width: 64px; margin: 0 0 10px; }
    .block-categories--layout--compact .category-card__name { font-size: 15px; line-height: 18px; }
    .block-categories--layout--compact .category-card__products { font-size: 13px; margin-top: 4px; }
}

/* Home "Our Team" (Stroyka teammates carousel used outside the About page): centred cards and a
   capped square photo so the full-width container doesn't blow the avatars up. */
.block-teammates .teammate { text-align: center; }
.block-teammates .teammate__avatar { max-width: 240px; margin: 0 auto; }
.block-teammates .teammate__avatar img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.teammate__initials { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; border-radius: 2px; background: #f0f0f0; color: #999; font-size: 48px; font-weight: 500; }

/* Uploaded home banner: full container width, natural height (the template's 170px strip cropped it). */
.stroyka-banner-image { display: block; }
.stroyka-banner-image img { display: block; width: 100%; height: auto; }

/* Uploaded home slides: height follows the image (the 440/480px slideshow height cropped them). The
   template fallback slides (no uploads) keep the fixed-height background style above. */
.stroyka-slideshow--natural .block-slideshow__body,
.stroyka-slideshow--natural .block-slideshow__slide { height: auto; }
.stroyka-slide-picture,
.stroyka-slide-picture img { display: block; width: 100%; height: auto; }

/* Mobile/tablet header (< 992px): white bar so the uploaded logo stays visible (the coloured bar hid a red
   logo). Icons and text in the theme's dark text colour, green (--stroyka-secondary) for hover/press and
   the cart count. The desktop nav bar keeps the admin primary colour. */
.mobile-header__panel { background: #fff; color: #3d464d; box-shadow: 0 1px rgba(0, 0, 0, .04), inset 0 -1px #ebebeb; }
.mobile-header__menu-button { fill: #3d464d; }
.mobile-header__menu-button:hover,
.mobile-header__menu-button:focus { background: rgba(0, 0, 0, .05); fill: var(--stroyka-secondary); }
.mobile-header__panel .indicator__button:hover,
.mobile-header__panel .indicator--open .indicator__button { color: var(--stroyka-secondary); }
.mobile-header__panel .indicator--hover .indicator__area,
.mobile-header__panel .indicator--open .indicator__area { background: rgba(0, 0, 0, .05); }
.mobile-header__panel .indicator__value,
.mobile-header__panel .indicator--hover .indicator__value,
.mobile-header__panel .indicator--open .indicator__value { background: var(--stroyka-secondary); color: #fff; }
/* Tablet (768–991px): the search box sits inline in the bar and was styled translucent white. */
@media (min-width: 768px) and (max-width: 991px) {
    .mobile-header__panel .search--location--mobile-header .search__border { background: #f2f2f2; }
    .mobile-header__panel .search--location--mobile-header .search__input:hover ~ .search__border { background: #ebebeb; }
    .mobile-header__panel .search--location--mobile-header .search__button { fill: #999; }
    .mobile-header__panel .search--location--mobile-header .search__input { color: #3d464d; }
}

/* Footer logo heading the first footer column (in place of the visible "Contact Us" title). */
.stroyka-footer-logo { display: inline-block; margin-bottom: 18px; color: #3d464d; fill: currentColor; }
.stroyka-footer-logo img { display: block; width: auto; height: auto; object-fit: contain; }

/* Settings → Announcements marquee on the home page. After the banner it sits flush under the slideshow
   (and flush on the grey categories band); elsewhere it keeps the theme's 50px block rhythm. */
.stroyka-slideshow--edge:has(+ .stroyka-marquee-slot--after-hero) { margin-bottom: 0; }
.stroyka-marquee-slot--after-hero,
.stroyka-marquee-slot--mid { margin-bottom: 50px; }
.stroyka-marquee-slot--after-hero:has(+ .block--highlighted) { margin-bottom: 0; }
@media (max-width: 767px) {
    .stroyka-marquee-slot--after-hero,
    .stroyka-marquee-slot--mid { margin-bottom: 30px; }
}
