[data-home-products] {
    --home-product-columns: 1;
    --home-product-gaps: 0px;
    /* Reserve the existing card image ratio and space for its title and actions. */
    --home-product-height: calc((min(100vw - 40px, 1360px) - var(--home-product-gaps)) / var(--home-product-columns) * 1.304 + 280px);
}
[data-home-products], [data-home-products] .appear-animate {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}
[data-home-products] .swiper-wrapper { min-height: var(--home-product-height, 600px); }
.home-products-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--home-product-height, 600px);
    color: #777;
    background: transparent;
    border-radius: 4px;
}
/* Card-shaped placeholders share the slider's breakpoints and reserved height. */
.home-products-skeletons {
    display: grid;
    grid-template-columns: repeat(var(--home-product-columns), minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    min-height: var(--home-product-height, 600px);
}
.home-product-skeleton { display: none; flex-direction: column; min-width: 0; }
.home-product-skeleton:first-child { display: flex; }
.home-product-skeleton__surface {
    border-radius: 4px;
    background: linear-gradient(105deg, #edf0f2 15%, #fafbfc 40%, #e0e4e7 65%, #edf0f2 85%);
    background-size: 250% 100%;
    animation: home-products-shimmer 1.8s ease-in-out infinite;
}
.home-product-skeleton__image { width: 100%; aspect-ratio: 1 / 1.304; flex-shrink: 0; }
.home-product-skeleton__stock { width: 65%; height: 12px; margin-top: 20px; }
.home-product-skeleton__title { width: 94%; height: 15px; margin-top: 14px; }
.home-product-skeleton__title--short { width: 72%; margin-top: 8px; }
.home-product-skeleton__price { width: 45%; height: 22px; margin-top: auto; }
.home-product-skeleton__button { width: 100%; height: 38px; margin-top: 16px; }
.home-product-skeleton__link { width: 55%; height: 14px; margin: 20px auto 16px; }
@keyframes home-products-shimmer {
    from { background-position: 150% 0; }
    to { background-position: -150% 0; }
}
@media (min-width: 400px) {
    .home-product-skeleton:nth-child(-n+2) { display: flex; }
}
@media (min-width: 576px) {
    .home-product-skeleton:nth-child(-n+3) { display: flex; }
}
@media (min-width: 768px) {
    .home-product-skeleton:nth-child(-n+4) { display: flex; }
}
@media (min-width: 992px) {
    .home-product-skeleton:nth-child(-n+5) { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
    .home-product-skeleton__surface { animation: none; }
}
.home-products-feedback { padding: 16px 0; }
.home-products-feedback[hidden] { display: none; }
.home-products-feedback > * { margin: 0 16px 10px 0; }
[data-home-products]:not([data-home-products-state="loaded"]) .categoryes__swiper-navigation,
[data-home-products][data-home-products-count="0"] .categoryes__swiper-navigation { visibility: hidden; }
@media (min-width: 400px) {
    [data-home-products] { --home-product-columns: 2; --home-product-gaps: 20px; }
}
@media (min-width: 576px) {
    [data-home-products] { --home-product-columns: 3; --home-product-gaps: 40px; }
}
@media (min-width: 768px) {
    [data-home-products] { --home-product-columns: 4; --home-product-gaps: 60px; }
}
@media (min-width: 992px) {
    [data-home-products] { --home-product-columns: 5; --home-product-gaps: 80px; }
    [data-home-products] .categoryes__swiper-navigation { margin-right: 70px; }
}
@media (max-width: 575px) {
    [data-home-products] .right-nav__swiper {
        padding-right: 94px;
        font-size: 20px;
        line-height: 1.35;
        min-height: 38px;
    }
}
