.catalog-complements {
    container-type: inline-size;
    box-sizing: border-box;
    clear: both;
    width: 100%;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #eadde4;
    border-radius: 18px;
    background: linear-gradient(115deg, #fff5f8 0%, #fff 65%);
    color: #151b29;
}
.catalog-complements .catalog-complements__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.catalog-complements .catalog-complements__eyebrow {
    margin: 0 0 4px;
    color: #d70b57;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.catalog-complements .catalog-complements__heading h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.2; }
.catalog-complements .catalog-complements__heading p:last-child { margin: 0; color: #626b79; font-size: 14px; line-height: 1.4; }
.catalog-complements .catalog-complements__stock { flex-shrink: 0; padding: 5px 9px; border-radius: 20px; background: #e8f8ef; color: #187848; font-size: 12px; font-weight: 600; }
.catalog-complements .catalog-complements__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.catalog-complements .complement-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e8e9ef; border-radius: 12px; background: #fff; }
.catalog-complements .complement-card__image { display: flex; align-items: center; justify-content: center; height: 125px; padding: 12px; background: #fff; }
.catalog-complements .complement-card__image img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.catalog-complements .complement-card__body { display: flex; flex: 1; flex-direction: column; padding: 12px; gap: 7px; min-width: 0; }
.catalog-complements .complement-card__purpose { margin: 0; font-size: 12px; line-height: 1.4; color: #9e2450; }
.catalog-complements .complement-card__title { color: #151b29; font-size: 14px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.catalog-complements .complement-card__title:hover { color: #d70b57; }
.catalog-complements .complement-card__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.catalog-complements .complement-card__price { white-space: nowrap; font-size: 18px; line-height: 1.3; color: #e80b60; }
.catalog-complements .complement-card__add { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 13px; border-radius: 8px; background: #ec1261; color: #fff; font-size: 14px; line-height: 1.2; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.catalog-complements .complement-card__add:hover { background: #c70c4f; color: #fff; }
.catalog-complements a:focus-visible { outline: 2px solid #152d64; outline-offset: 3px; }
@container (max-width: 700px) {
    .catalog-complements .catalog-complements__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 400px) {
    .catalog-complements .catalog-complements__heading { flex-direction: column; }
    .catalog-complements .catalog-complements__grid { grid-template-columns: minmax(0, 1fr); }
    .catalog-complements .complement-card { flex-direction: row; }
    .catalog-complements .complement-card__image { width: 86px; flex: 0 0 86px; height: 100px; padding: 8px; }
    .catalog-complements .complement-card__bottom { align-items: flex-start; }
}
@media (max-width: 480px) {
    .catalog-complements { padding: 12px; border-radius: 12px; }
}
.catalog-complements--cart .catalog-complements__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-complements--cart .complement-card { flex-direction: row; }
.catalog-complements--cart .complement-card__image { flex: 0 0 70px; width: 70px; height: 90px; padding: 8px; }
.catalog-complements--cart .catalog-complements__heading h2 { font-size: 20px; }
@container (max-width: 500px) {
    .catalog-complements--cart .catalog-complements__grid { grid-template-columns: minmax(0, 1fr); }
}

.catalog-complements .catalog-complements__grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-complements--cart .catalog-complements__grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (max-width: 1000px) {
    .catalog-complements .catalog-complements__grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 500px) {
    .catalog-complements--cart .catalog-complements__grid--four { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 400px) {
    .catalog-complements .catalog-complements__grid--four { grid-template-columns: minmax(0, 1fr); }
}

/* Compact, swipeable recommendations in the cart and its popup. */
.catalog-complements--cart {
    margin: 16px 0;
    padding: 12px;
}
.catalog-complements--cart .catalog-complements__heading {
    align-items: center;
    flex-direction: row;
    margin-bottom: 10px;
}
.catalog-complements--cart .catalog-complements__eyebrow { display: none; }
.catalog-complements--cart .catalog-complements__heading h2 { margin: 0; font-size: 18px; }
.catalog-complements--cart .catalog-complements__heading p:last-child,
.catalog-complements--cart .catalog-complements__stock { display: none; }
.catalog-complements--cart .catalog-complements__grid {
    position: relative;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(290px, 88%);
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 6px;
}
.catalog-complements--cart .complement-card {
    flex-direction: row;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}
.catalog-complements--cart .complement-card__image {
    flex: 0 0 64px;
    width: 64px;
    height: 96px;
    padding: 6px;
}
.catalog-complements--cart .complement-card__body { padding: 9px; gap: 5px; }
.catalog-complements--cart .complement-card__purpose,
.catalog-complements--cart .complement-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
}
.catalog-complements--cart .complement-card__purpose { font-size: 11px; }
.catalog-complements--cart .complement-card__title { font-size: 13px; }
.catalog-complements--cart .complement-card__bottom { padding-top: 3px; gap: 6px; }
.catalog-complements--cart .complement-card__price { font-size: 16px; }
.catalog-complements--cart .complement-card__add { min-height: 34px; padding: 0 9px; font-size: 12px; }
.catalog-complements--cart .complement-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.catalog-complements--cart .complement-controls[hidden],
.catalog-complements--cart .complement-controls button[hidden] { display: none; }
.catalog-complements--cart .complement-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5dbe1;
    border-radius: 8px;
    background: #fff;
    color: #a52255;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.catalog-complements--cart .complement-controls button:hover { background: #ffeaf2; }
.catalog-complements--cart .complement-controls button:focus-visible { outline: 2px solid #213e78; outline-offset: 2px; }
.catalog-complements--cart .complement-controls svg { width: 15px; height: 15px; }
.catalog-complements--cart .complement-controls__counter { min-width: 30px; text-align: center; color: #6b5760; font-size: 11px; white-space: nowrap; }
@container (max-width: 400px) {
    .catalog-complements--cart .catalog-complements__heading h2 { font-size: 16px; }
    .catalog-complements--cart .complement-controls { gap: 2px; }
    .catalog-complements--cart .complement-controls button { width: 28px; height: 32px; }
    .catalog-complements--cart .complement-controls__counter { display: none; }
}

/* Compact, swipeable recommendations in the cart and its popup. */
.catalog-complements--product {
    margin: 16px 0;
    padding: 12px;
}
.catalog-complements--product .catalog-complements__heading {
    align-items: center;
    flex-direction: row;
    margin-bottom: 10px;
}
.catalog-complements--product .catalog-complements__eyebrow { display: none; }
.catalog-complements--product .catalog-complements__heading h2 { margin: 0; font-size: 18px; }
.catalog-complements--product .catalog-complements__heading p:last-child,
.catalog-complements--product .catalog-complements__stock { display: none; }
.catalog-complements--product .catalog-complements__grid {
    position: relative;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(290px, 88%);
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 6px;
}
.catalog-complements--product .complement-card {
    flex-direction: row;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}
.catalog-complements--product .complement-card__image {
    flex: 0 0 64px;
    width: 64px;
    height: 96px;
    padding: 6px;
}
.catalog-complements--product .complement-card__body { padding: 9px; gap: 5px; }
.catalog-complements--product .complement-card__purpose,
.catalog-complements--product .complement-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
}
.catalog-complements--product .complement-card__purpose { font-size: 11px; }
.catalog-complements--product .complement-card__title { font-size: 13px; }
.catalog-complements--product .complement-card__bottom { padding-top: 3px; gap: 6px; }
.catalog-complements--product .complement-card__price { font-size: 16px; }
.catalog-complements--product .complement-card__add { min-height: 34px; padding: 0 9px; font-size: 12px; }
.catalog-complements--product .complement-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.catalog-complements--product .complement-controls[hidden],
.catalog-complements--product .complement-controls button[hidden] { display: none; }
.catalog-complements--product .complement-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #e5dbe1;
    border-radius: 8px;
    background: #fff;
    color: #a52255;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.catalog-complements--product .complement-controls button:hover { background: #ffeaf2; }
.catalog-complements--product .complement-controls button:focus-visible { outline: 2px solid #213e78; outline-offset: 2px; }
.catalog-complements--product .complement-controls svg { width: 15px; height: 15px; }
.catalog-complements--product .complement-controls__counter { min-width: 30px; text-align: center; color: #6b5760; font-size: 11px; white-space: nowrap; }
@container (max-width: 400px) {
    .catalog-complements--product .catalog-complements__heading h2 { font-size: 16px; }
    .catalog-complements--product .complement-controls { gap: 2px; }
    .catalog-complements--product .complement-controls button { width: 28px; height: 32px; }
    .catalog-complements--product .complement-controls__counter { display: none; }
}

.catalog-complements--product .catalog-complements__grid { grid-auto-columns: clamp(260px, calc((100% - 30px) / 4), 330px); }
@container (max-width: 600px) { .catalog-complements--product .catalog-complements__grid { grid-auto-columns: min(290px, 88%); } }
