/* Media Mir Flowers Catalog — публичные стили. Все селекторы изолированы префиксом mm-flowers-. */
.mm-flowers-categories-section {
    width: 100%;
    margin: 0 0 32px;
}

.mm-flowers-categories-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
}

.mm-flowers-categories-section__title {
    margin: 0;
    color: #111;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mm-flowers-categories-section__all {
    color: #111;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #536637;
    padding-bottom: 4px;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}

.mm-flowers-categories-section__all:hover {
    color: #536637;
    border-bottom-color: #536637;
}

.mm-flowers-categories {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.mm-flowers-categories__track {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mm-flowers-categories__track::-webkit-scrollbar {
    display: none;
}

.mm-flowers-category {
    position: relative;
    flex: 1 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 160px;
    padding: 26px 18px 22px;
    color: #3d4144;
    text-decoration: none !important;
    background: #fff;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.mm-flowers-category:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 0;
    bottom: 24px;
    width: 1px;
    background: rgba(0, 0, 0, 0.10);
}

.mm-flowers-category:hover {
    color: #536637;
    background: rgba(83, 102, 55, 0.035);
    transform: translateY(-1px);
}

.mm-flowers-category__image {
    width: 86px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-flowers-category__image img {
    width: 86px;
    height: 76px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.mm-flowers-category__title {
    max-width: 130px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 15px;
    line-height: 1.18;
    font-weight: 700;
    text-align: center;
}

.mm-flowers-product-grid {
    --mm-flowers-columns: 4;
    display: grid;
    grid-template-columns: repeat(var(--mm-flowers-columns), minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.mm-flowers-product-grid--columns-1 { --mm-flowers-columns: 1; }
.mm-flowers-product-grid--columns-2 { --mm-flowers-columns: 2; }
.mm-flowers-product-grid--columns-3 { --mm-flowers-columns: 3; }
.mm-flowers-product-grid--columns-4 { --mm-flowers-columns: 4; }
.mm-flowers-product-grid--columns-5 { --mm-flowers-columns: 5; }
.mm-flowers-product-grid--columns-6 { --mm-flowers-columns: 6; }

.mm-flowers-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.mm-flowers-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}

.mm-flowers-product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f7f7f4;
    overflow: hidden;
    text-decoration: none;
}

.mm-flowers-product-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.mm-flowers-product-card:hover .mm-flowers-product-card__image img {
    transform: scale(1.035);
}

.mm-flowers-product-card__placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
}

.mm-flowers-product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.mm-flowers-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #536637;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

.mm-flowers-badge--new {
    background: #111;
}

.mm-flowers-badge--sale {
    background: #8c3d2b;
}

.mm-flowers-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.mm-flowers-product-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.mm-flowers-product-card__title a {
    color: #111;
    text-decoration: none;
}

.mm-flowers-product-card__title a:hover {
    color: #536637;
}

.mm-flowers-product-card__excerpt {
    margin-bottom: 12px;
    color: rgba(0, 0, 0, 0.62);
    font-size: 14px;
    line-height: 1.45;
}

.mm-flowers-product-card__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.mm-flowers-product-card__price {
    color: #111;
    font-size: 19px;
    line-height: 1;
    font-weight: 700;
}

.mm-flowers-product-card__old-price {
    color: rgba(0, 0, 0, 0.42);
    font-size: 14px;
    text-decoration: line-through;
}

.mm-flowers-product-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mm-flowers-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #536637;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.mm-flowers-button:hover {
    background: #43522d;
    transform: translateY(-1px);
}

.mm-flowers-product-card__more {
    color: #536637;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(83, 102, 55, .35);
}

.mm-flowers-product-card__more:hover {
    border-bottom-color: #536637;
}

@media (max-width: 1024px) {
    .mm-flowers-product-grid {
        --mm-flowers-columns: 3;
    }
}

@media (max-width: 768px) {
    .mm-flowers-product-grid {
        --mm-flowers-columns: 2;
        gap: 16px;
    }

    .mm-flowers-category {
        flex-basis: 130px;
        min-height: 135px;
        padding: 14px 12px;
    }
}

@media (max-width: 520px) {
    .mm-flowers-product-grid {
        --mm-flowers-columns: 1;
    }

    .mm-flowers-product-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
