.aprons-page-shell .intec-template-page-wrapper {
    max-width: 1200px;
}

.aprons-page {
    position: relative;
    width: 100%;
    transition: opacity 0.2s ease;
}

.aprons-page.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.aprons-empty {
    padding: 40px 0;
    font-size: 18px;
}

/* =========================================================
   Hero
========================================================= */

.aprons-hero {
    margin-bottom: 20px;
}

.aprons-hero-picture-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2800 / 610;
    min-height: 220px;
    background: #f5f5f5;
    overflow: hidden;
}

.aprons-hero-link {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.aprons-hero-link:hover,
.aprons-hero-link:focus {
    color: inherit;
    text-decoration: none;
}

.aprons-hero-link::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s ease;
    pointer-events: none;
}

.aprons-hero-link::after {
    content: "Перейти в карточку товара";
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;

    padding: 9px 12px;
    border-radius: 6px;

    background: rgba(0, 0, 0, 0.74);
    color: #fff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .aprons-hero-link:hover::before {
        background: rgba(0, 0, 0, 0.04);
    }
}

.aprons-hero-link:focus-visible::before {
    background: rgba(0, 0, 0, 0.04);
}

.aprons-hero-link:hover::after,
.aprons-hero-link:focus::after {
    opacity: 1;
    transform: translateY(0);
}

.aprons-hero-link[aria-disabled="true"] {
    cursor: default;
}

.aprons-hero-link[aria-disabled="true"]::after {
    display: none;
}

.aprons-hero-link:focus-visible {
    outline: 2px solid #e3000f;
    outline-offset: -2px;
}

.aprons-hero-picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* transition: opacity .2s ease; */
}

.aprons-hero-picture.is-loading {
    opacity: 0.55;
}

.aprons-hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 42px;
    height: 58px;
    border: 0;
    background: rgba(255, 255, 255, 0.60);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%);
    cursor: pointer;
    color: #444;
    font-size: 34px;
    line-height: 1;
    border-radius: 5px;
}

.aprons-hero-arrow-left {
    left: 0;
}

.aprons-hero-arrow-right {
    right: 0;
}

.aprons-hero-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding-top: 18px;
}

.aprons-hero-title {
    display: -webkit-box;

    height: 52px;
    min-height: 52px;
    max-height: 52px;

    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    color: #1d2a35;
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
}

.aprons-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.aprons-hero-price {
    min-height: 32px;
    white-space: nowrap;
    font-size: 24px;
    font-weight: 800;
}

.aprons-hero-purchase {
    flex: 0 0 160px;
    width: 160px;
}

.aprons-hero-purchase .catalog-section-item-purchase-buttons {
    min-width: 160px;
}

/* =========================================================
   Tabs / pseudo categories
========================================================= */

.aprons-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.aprons-tab {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    padding: 10px 16px;
    cursor: pointer;
    color: inherit;
    font-size: 15px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.aprons-tab:hover,
.aprons-tab.is-active {
    border-color: #d90000;
    color: #d90000;
    text-decoration: none;
}

.aprons-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #777;
    font-size: 12px;
}

/* =========================================================
   Product grid and cards
========================================================= */

.aprons-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.aprons-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    min-height: 360px;
    padding: 14px;

    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.aprons-card:hover {
    transform: translateY(-4px);
    border-color: #d90000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.aprons-card.is-active {
    transform: translateY(-2px);
    border-color: #e3000f;
    box-shadow: 0 8px 22px rgba(227, 0, 15, 0.16);
}

.aprons-card-badge,
.aprons-card-category,
.aprons-card-tag {
    align-self: flex-start;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 5px 10px;

    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #f8f9fa;
    color: #6c757d;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aprons-card-select {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.aprons-card-image-wrap,
.aprons-card-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    margin-bottom: 18px;
    background: #f7f7f7;
    overflow: hidden;
}

.aprons-card-image-wrap img,
.aprons-card-picture img,
img.aprons-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.aprons-card-body,
.aprons-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.aprons-card-name,
.aprons-card-title {
    display: -webkit-box;
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    margin: 0 0 14px 0;

    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    text-decoration: none;

    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.aprons-card-name:hover,
.aprons-card-title:hover {
    color: #e3000f;
}

.aprons-card-price {
    display: block;
    min-height: 28px;
    margin-top: auto;
    margin-bottom: 14px;

    color: #111;
    font-size: 22px;
    font-weight: 800;
    line-height: 28px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aprons-card-buy,
.aprons-card-purchase {
    width: 100%;
    margin-top: 0;
}

.aprons-card-buy .catalog-section-item-purchase-buttons,
.aprons-card-purchase .catalog-section-item-purchase-buttons {
    width: 100%;
}

/* =========================================================
   Basket buttons
========================================================= */

.aprons-page .catalog-section-item-purchase-buttons {
    display: block;
    width: 100%;
}

.aprons-page .catalog-section-item-purchase-buttons[data-offer="false"] {
    display: block;
}

.aprons-page .catalog-section-item-purchase-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 16px;

    border: 0;
    border-radius: 6px;
    box-sizing: border-box;

    background: #e3000f;
    color: #fff !important;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;

    overflow: hidden;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.aprons-page .catalog-section-item-purchase-button:hover {
    background: #b3000b;
    color: #fff !important;
}

.aprons-page .catalog-section-item-purchase-button,
.aprons-page .catalog-section-item-purchase-button:link,
.aprons-page .catalog-section-item-purchase-button:visited,
.aprons-page .catalog-section-item-purchase-button:hover,
.aprons-page .catalog-section-item-purchase-button:active,
.aprons-page .catalog-section-item-purchase-button .intec-ui-part-content {
    color: #fff !important;
}

.aprons-page .catalog-section-item-purchase-button .intec-ui-part-content,
.aprons-page .catalog-section-item-purchase-button span:not(.intec-ui-part-effect):not(.intec-ui-part-effect-wrapper) {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aprons-page .catalog-section-item-purchase-button-add {
    display: flex;
}

.aprons-page .catalog-section-item-purchase-button-add[data-basket-state="added"] {
    display: none;
}

.aprons-page .catalog-section-item-purchase-button-added {
    display: none;
}

.aprons-page .catalog-section-item-purchase-button-added[data-basket-state="added"] {
    display: flex;
}

.aprons-page .catalog-section-item-purchase-button .intec-ui-part-effect {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: block;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.aprons-page .catalog-section-item-purchase-button .intec-ui-part-effect-wrapper {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.aprons-page .catalog-section-item-purchase-button .intec-ui-part-effect i {
    pointer-events: none;
}

/* =========================================================
   Pagination
========================================================= */

.aprons-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.aprons-pagination-link,
.aprons-pagination-arrow,
.aprons-pagination-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
}

.aprons-pagination-link,
.aprons-pagination-arrow {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.aprons-pagination-link:hover,
.aprons-pagination-arrow:hover,
.aprons-pagination-link.is-active {
    border-color: #d90000;
    background: #d90000;
    color: #fff;
    text-decoration: none;
}

.aprons-pagination-gap {
    color: #777;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1024px) {
    .aprons-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .aprons-hero-picture-wrap {
        min-height: 160px;
    }

    .aprons-hero-info {
        grid-template-columns: 1fr;
    }

    .aprons-hero-actions {
        justify-content: space-between;
    }

    .aprons-hero-purchase {
        flex: 0 0 160px;
        width: 160px;
    }

    .aprons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .aprons-card {
        min-height: 330px;
    }

    .aprons-card-image-wrap,
    .aprons-card-picture {
        height: 110px;
    }

    .aprons-card-name,
    .aprons-card-title {
        height: 54px;
        min-height: 54px;
        max-height: 54px;
        font-size: 13px;
        line-height: 18px;
    }

    .aprons-card-price {
        min-height: 24px;
        font-size: 18px;
        line-height: 24px;
    }

    .aprons-page .catalog-section-item-purchase-button {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .aprons-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .aprons-hero-purchase {
        flex: 0 0 auto;
        width: 100%;
    }

    .aprons-hero-purchase .catalog-section-item-purchase-buttons {
        min-width: 0;
    }

    .aprons-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Fix: вертикальное центрирование текста "В корзину"
========================================================= */

.aprons-page .catalog-section-item-purchase-button .intec-ui-part-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100%;
    height: 100%;

    padding: 0 !important;
    margin: 0 !important;

    line-height: 1 !important;
    text-align: center;

    position: relative;
    top: auto !important;
    transform: none !important;
}

.aprons-card-buy .catalog-section-item-purchase-button .intec-ui-part-content,
.aprons-card-purchase .catalog-section-item-purchase-button .intec-ui-part-content {
    height: 42px;
}

.aprons-hero-purchase .catalog-section-item-purchase-button .intec-ui-part-content {
    height: 44px;
}

@media all and (max-width: 768px) {
    .aprons-hero-title {
        height: 48px;
        min-height: 48px;
        max-height: 48px;

        font-size: 19px;
        line-height: 24px;
    }
}
/* =========================================================
   Hero swipe / drag and mobile navigation
========================================================= */

.aprons-hero-picture-wrap {
    touch-action: pan-y;
}

.aprons-hero-link,
.aprons-hero-picture {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.aprons-page.is-hero-dragging .aprons-hero-link {
    cursor: grabbing;
}

.aprons-page.is-hero-dragging .aprons-hero-link::before,
.aprons-page.is-hero-dragging .aprons-hero-link::after {
    opacity: 0;
}

@media (max-width: 768px) {
    .aprons-hero-picture-wrap {
        overflow: visible;
        margin-bottom: 46px;
    }

    .aprons-hero-link {
        overflow: hidden;
    }

    .aprons-hero-link::after {
        display: none;
    }

    .aprons-hero-arrow {
        top: auto;
        bottom: -40px;
        transform: none;

        width: calc(50% - 5px);
        height: 34px;

        border: 1px solid #e6e6e6;
        border-radius: 6px;
        background: #fff;
        box-shadow: none;

        color: #333;
        font-size: 24px;
        line-height: 1;
    }

    .aprons-hero-arrow-left {
        left: 0;
    }

    .aprons-hero-arrow-right {
        right: 0;
    }
}
