/* Shop-Script components styled to match the Igraika Magnet storefront. */
#themeOverride .promo,
#themeOverride .homepage-categories,
#themeOverride .brands,
#themeOverride .homepage-text-outer,
#themeOverride .homepage-news-outer,
#themeOverride .homepage-reviews-outer { background: transparent; }

.main-content--home > *:first-child { padding-top: 22px; }
.igraika-hero { padding-top: 22px; }
.igraika-promo-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 18px;
    aspect-ratio: 3.15 / 1;
}
.igraika-promo-grid a { display: block; overflow: hidden; background: #fff; border-radius: 4px; }
.igraika-promo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.igraika-promo-grid__main { min-height: 0; }
.igraika-promo-grid__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
    min-height: 0;
}
.igraika-promo-grid__wide { grid-column: 1 / -1; }
.igraika-home-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 44px !important;
    border-bottom: 1px solid #e0e0e0;
}
.igraika-home-tabs a {
    position: relative;
    padding: 16px 20px 15px;
    color: #424242;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.igraika-home-tabs a.is-active { color: #0c55cc; }
.igraika-home-tabs a.is-active:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #0c55cc;
}
.cat-tile-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px !important;
}
.cat-tile-list .categories-tile { width: auto !important; margin: 0 !important; }
.cat-tile-list .categories-tile > a {
    display: flex;
    min-height: 108px;
    align-items: center;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
}
.cat-tile-list .categories-tile > a:hover { border-color: #d9e5f8; }
.cat-tile_image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 82px;
    min-height: 82px;
    padding: 0;
    box-sizing: border-box;
}
.cat-tile_image .js-cat-item-image {
    width: 100%;
    height: 82px;
    object-fit: contain;
}
.cat-tile_content { min-width: 0; padding-left: 18px; }
.cat-tile_name { color: #282828 !important; font-size: 16px; font-weight: 700; text-align: left; }
.cat-tile_meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; color: #828282; font-size: 13px; }
.igraika-all-categories { margin-left: 20px; color: #828282 !important; font-size: 13px; font-weight: 400; }
.homepage-categories .home-products_head { display: flex; align-items: baseline; }
.home-slider-photos_el,
.slider-promocards--box > *,
.promo-card,
.content-box,
.homepage-text,
.reviews__item,
.home-prev-news_item {
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
}
.home-slider-photos_el { min-height: 330px; }
.home-slider-photos_el-content { border-radius: 4px; }
.home-slider-photos__title { color: #282828; font-weight: 700; }
.owl-dots .owl-dot.active,
.owl-dots .owl-dot:hover { background: #0c55cc !important; }

.home-products_head-outer,
.home-new_head { margin-top: 32px; margin-bottom: 18px; }
.home-products__title,
.home-new__title,
.homepage-reviews_title { font-size: 26px; line-height: 1.2; }

.homepage-categories_list,
.home-categories,
.subcategories-list { gap: 12px; }
.homepage-categories_item,
.home-category,
.subcategories-list_item,
.sabcat__item {
    background: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
}
.homepage-categories_item:hover,
.home-category:hover,
.sabcat__item:hover { border-color: #0c55cc; }

.Product-grid {
    overflow: hidden;
    padding: 14px 14px 16px !important;
    background: #fff;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}
.Product-grid:hover { border-color: #d9e5f8 !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .07) !important; }
.Product-grid_img { background: #fff; }
.Product-grid_name a { color: #424242 !important; font-size: 15px; line-height: 1.35; }
.Product-grid_name a:hover { color: #0c55cc !important; }
.Product-grid_prices .price,
.Product-grid .price { color: #282828 !important; font-size: 22px !important; font-weight: 700; }
.Product-stock_item-high,
.stock-high { color: #39b54a !important; }
.Product-grid_cart .addtocart {
    min-height: 40px;
    padding: 9px 18px !important;
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    border-radius: 30px !important;
}
.Product-grid_action .product-action { color: #0c55cc; background: #f4f7fd !important; border-radius: 50%; }

body.ig-js-fallback .js-owl-carousel-product .owl-carousel,
body.ig-js-fallback .products-grid-outer .owl-carousel {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
}
body.ig-js-fallback .js-owl-carousel-product .owl-carousel > .Product-grid,
body.ig-js-fallback .products-grid-outer .owl-carousel > .Product-grid {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}
body.ig-js-fallback .js-owl-carousel-product .owl-carousel > .Product-grid:nth-child(n+9),
body.ig-js-fallback .products-grid-outer .owl-carousel > .Product-grid:nth-child(n+9) { display: none; }

.inner-wrap { padding-top: 24px; }
.breadcrumbs { color: #828282; font-size: 13px; }
.category-heder { margin-bottom: 18px; }
.category-name,
.product_name { color: #282828; font-weight: 700; }
.category { align-items: flex-start; }
.out_sidebars,
.sidebar { background: #fff; border-radius: 4px; }
.filter,
#filter-body { padding: 18px; }
.sorting,
.category-sorting,
.filters-bar { padding: 12px 16px; background: #fff; border-radius: 4px; }
.sabcat__item,
.subcat-menu__item { border-radius: 30px; }

.product_page > .content:first-child,
.product_page > .content:nth-of-type(2) {
    margin-bottom: 20px;
    padding: 22px;
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}
.product-page_main { gap: 32px; }
.product_gallery-images-main { background: #fff; border-radius: 4px; }
.product__price { color: #282828 !important; font-size: 30px !important; font-weight: 700; }
.product_add2cart .addtocart--large { min-width: 180px; padding: 12px 26px !important; }
.button-one-click,
.one-click-button { color: #0c55cc !important; background: #fff !important; border: 2px solid #0c55cc !important; }
.tabs { border-bottom: 1px solid #e7e7e7; }
.tabs_item { border-radius: 30px 30px 0 0; }
.tabs_item.active { color: #0c55cc; }

@media (min-width: 1025px) {
    .main-content--home .container { max-width: 1440px; }
    .Product-list.-four,
    .Product-list.-five,
    .products-list { gap: 12px; }
}

@media (max-width: 767px) {
    .main-content--home > *:first-child { padding-top: 12px; }
    .promo .container { width: calc(100% - 24px) !important; }
    .home-slider-photos_el { min-height: 190px; border-radius: 4px; }
    .home-products__title,
    .home-new__title,
    .homepage-reviews_title { font-size: 22px; }
    .igraika-hero { padding-top: 12px; }
    .igraika-promo-grid { display: block; aspect-ratio: auto; }
    .igraika-promo-grid__main { display: block; aspect-ratio: 4725 / 2658; }
    .igraika-promo-grid__side { display: none; }
    .igraika-home-tabs { margin-top: 18px !important; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .igraika-home-tabs::-webkit-scrollbar { display: none; }
    .igraika-home-tabs a { padding: 13px 15px 12px; font-size: 11px; }
    #themeOverride .cat-tile-list { grid-template-columns: 1fr !important; gap: 10px !important; }
    .cat-tile-list .categories-tile > a { min-height: 88px; padding: 10px 14px; }
    .cat-tile_image { flex-basis: 68px; min-height: 68px; padding: 0; }
    .cat-tile_image .js-cat-item-image { height: 68px; }
    .cat-tile_content { padding-left: 14px; }
    .cat-tile_name { font-size: 15px; }
    .Product-grid { padding: 9px 9px 12px !important; }
    .Product-grid_name a { font-size: 13px; }
    .Product-grid_prices .price,
    .Product-grid .price { font-size: 17px !important; }
    .Product-grid_bottom { display: block; }
    .Product-grid_cart .addtocart { width: 100%; min-height: 36px; padding: 7px 10px !important; font-size: 12px; }
    .Product-grid_action { top: 8px; right: 8px; }
    .inner-wrap { padding-top: 14px; }
    .product_page > .content:first-child,
    .product_page > .content:nth-of-type(2) { padding: 14px; }
    .product-page_main { gap: 14px; }
    .product__price { font-size: 24px !important; }
    body.ig-js-fallback .js-owl-carousel-product .owl-carousel,
    body.ig-js-fallback .products-grid-outer .owl-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.ig-js-fallback .js-owl-carousel-product .owl-carousel > .Product-grid:nth-child(n+5),
    body.ig-js-fallback .products-grid-outer .owl-carousel > .Product-grid:nth-child(n+5) { display: none; }
}
