.promotions {
    padding-bottom: 80px;
}

.promotions__title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 34px 0 32px;
    color: #273142;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
}

.promotions__title img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

/* ONGLERIE (TABS) ET FILTRES  */
.promotions-tabs {
    margin-top: 0;
    border-bottom: 1px solid #dedfe3;
    background-color: #f6f6f8;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.promotions-tabs__link {
    position: relative;
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    padding: 0;
    color: #273142;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    text-decoration: none;
}

.promotions-tabs__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: transparent;
}

.promotions-tabs__link--active::after {
    background-color: #2ca483;
}

.promotions-filter {
    padding-top: 26px;
}

.promotions-filter__title {
    margin: 0;
    color: #3f4858;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.promotions-filter__divider,
.promotions-filter__bottom-divider {
    height: 1px;
    margin: 24px 0;
    background-color: #d5d8dd;
}

.promotions-filter__bottom-divider {
    margin: 24px 0 0;
}

.promotions-filter__links {
    columns: 4;
    column-gap: 70px;
}

.promotions-filter__link {
    display: block;
    break-inside: avoid;
    margin-bottom: 14px;
    color: #3f4858;
    font-size: 15px;
    line-height: 1.28;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0;
    cursor: pointer;
    transition: color .2s ease;
}

.promotions-filter__link:hover,
.promotions-filter__link--active {
    color: #2ca483;
}

/* WRAPPER */
.promotions-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: flex-start;
    margin-top: 28px;
}

.promotions__listing {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

#promo-products-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.3s ease;
}

/* FORM */
.promotions__form {
    position: sticky;
    top: 170px;
    align-self: flex-start;
    min-width: 0;
}

.promotions-lead {
    padding: 32px 24px;
    border-radius: 18px;
    background-color: #f5f6f8;
    color: #273142;
}

.promotions-lead__title {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.18;
    font-weight: 700;
}

.promotions-lead__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.45;
}

.promotions-lead__field {
    position: relative;
    margin-bottom: 16px;
}

.promotions-lead__input {
    width: 100%;
    min-height: 60px;
    padding: 16px 62px 16px 22px;
    border: 0;
    border-radius: 10px;
    background-color: #fff;
    color: #273142;
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
}

.promotions-lead__input::placeholder {
    color: #aeb5bf;
}

.promotions-lead__submit {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #2ca483;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s ease;
}

.promotions-lead__submit:hover {
    background-color: #013543;
}

.promotions-lead__submit svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.promotions-lead__checkbox {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 12px;
    color: #273142;
    font-size: 13px;
    line-height: 1.12;
    cursor: pointer;
}

.promotions-lead__checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.promotions-lead__checkbox span:first-of-type {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid #cfd5dc;
    background-color: transparent;
}

.promotions-lead__checkbox span:first-of-type::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 4px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transform: rotate(45deg);
}

.promotions-lead__checkbox input:checked + span:first-of-type {
    border-color: #2ca483;
    background-color: #2ca483;
}

.promotions-lead__checkbox input:checked + span:first-of-type::after {
    opacity: 1;
}

.promotions-lead__checkbox a {
    color: #2ca483;
    text-decoration: none;
}


@media screen and (max-width: 1200px) {
    .promotions-filter__links {
        column-gap: 44px;
    }
}

@media screen and (max-width: 992px) {
    .promotions__title {
        font-size: 36px;
    }
    .promotions-filter__links {
        columns: 3;
    }
    .promotions-wrapper {
        grid-template-columns: 1fr;
    }
    .promotions__form {
        position: static;
    }
    .promotions-lead {
        width: 100%;
        padding: 28px 24px;
    }
    .promotions-lead__title {
        font-size: 24px;
    }
}

@media screen and (max-width: 767px) {
    .promotions {
        padding-bottom: 56px;
    }
    .promotions__title {
        gap: 12px;
        margin: 24px 0 26px;
        font-size: 30px;
    }
    .promotions__title img {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
    .promotions-filter {
        padding-top: 24px;
    }
    .promotions-filter__title {
        font-size: 16px;
    }
    .promotions-filter__links {
        columns: 1;
    }
}

@media screen and (max-width: 480px) {
    .promotions__title {
        font-size: 28px;
    }
    .promotions__listing {
        gap: 12px;
    }
    .promotions-lead {
        padding: 28px 24px;
        border-radius: 18px;
    }
    .promotions-lead__title {
        font-size: 26px;
    }
}



/* CARD PROD */
.promotions-product__info,
.promotions-product__hint {
    position: relative;
}

.promotions-product__info::before,
.promotions-product__info::after,
.promotions-product__hint::before,
.promotions-product__hint::after {
    position: absolute;
    left: 50%;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.promotions-product__info::before,
.promotions-product__hint::before {
    content: attr(aria-label);
    bottom: calc(100% + 10px);
    width: max-content;
    padding: 10px;
    border-radius: 10px;
    background-color: #273142;
    color: #fff;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.promotions-product__info::after,
.promotions-product__hint::after {
    content: "";
    bottom: calc(100% + 4px);
    border: 6px solid transparent;
    border-top-color: #273142;
}

.promotions-product__info:hover::before,
.promotions-product__info:hover::after,
.promotions-product__hint:hover::before,
.promotions-product__hint:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.promotions-product {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 22px 20px;
    overflow: visible;
    border-radius: 24px;
    background-color: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.16);
    color: #013543;
}

.promotions-product__media {
    position: relative;
    width: 40px;
    height: 40px;
}

.promotions-product__image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.promotions-product__info {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #7d838e;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.promotions-product__content {
    min-width: 0;
}

.promotions-product__title {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}

.promotions-product__title a {
    color: #273142;
    text-decoration: none;
    transition: color 0.2s;
}

.promotions-product__title a:hover {
    color: #2ca483;
}

.promotions-product__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 18px 42px;
}

.promotions-product__spec-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.promotions-product__spec {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    font-size: 12px;
    line-height: 1.2;
}

.promotions-product__spec span {
    color: #b5b5b5;
    font-weight: 700;
    text-transform: uppercase;
}

.promotions-product__spec b {
    min-width: 0;
    color: #013543;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    word-break: break-word;
}

.promotions-product__spec:nth-child(n+5) {
    display: none;
}

.promotions-product.is-expanded .promotions-product__spec:nth-child(n+5) {
    display: grid;
}

.promotions-product__more {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin-top: 8px;
    color: #b5b5b5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
}

.promotions-product__specs.has-extra-specs .promotions-product__more {
    display: inline-flex;
}

.promotions-product.is-expanded .promotions-product__more {
    display: none;
}

.promotions-product__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    padding-top: 2px;
}

.promotions-product__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 118px;
}

.promotions-product__price > span {
    color: #b5b5b5;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
}

.promotions-product__price-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.promotions-product__price-value-wrapper b {
    color: #273142;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.promotions-product__hint {
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d7dce1;
    border-radius: 50%;
    background-color: transparent;
    color: #7d838e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.promotions-product__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.promotions-product__buy,
.promotions-product__cart {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #2ca483;
    border-radius: 22px;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.promotions-product__buy {
    background-color: #2ca483;
    color: #fff;
}

.promotions-product__buy:hover {
    border-color: #013543;
    background-color: #013543;
}

.promotions-product__buy-short {
    display: none;
}

.promotions-product__cart {
    border-color: #e4e7ea;
    background-color: #fff;
    color: #013543;
}

.promotions-product__cart:hover {
    border-color: #2ca483;
    color: #2ca483;
}

.promotions-product__cart.is-in-cart {
    background-color: #f5f6f8;
    border-color: #f5f6f8;
    color: #2ca483;
}

.promotions-pagination__more {
    grid-column: 1/-1;
    width: 100%;
    min-height: 38px;
    border: 0;
    background-color: #fafafa;
    color: #2ca483;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease
}

.promotions-pagination__more:hover {
    background-color: #f1f4f6
}

@media screen and (max-width: 767px) {
    .promotions-pagination__more {
        min-height: 28px;
        font-size: 13px
    }
}



@media screen and (max-width: 1300px) {
    .promotions-product {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 20px 16px;
    }
    .promotions-product__title {
        font-size: 14px;
    }
    .promotions-product__specs {
        grid-template-columns: minmax(0, 1fr);
    }
    .promotions-product__side {
        flex-direction: column;
        align-items: flex-end;
        align-self: start;
        gap: 48px;
    }
    .promotions-product__buy-full {
        display: none;
    }
    .promotions-product__buy-short {
        display: inline;
    }
}

@media screen and (max-width: 480px) {
    .promotions-product {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 18px 14px;
        border-radius: 18px;
    }
    .promotions-product__media,
    .promotions-product__image {
        width: 36px;
        height: 36px;
    }
    .promotions-product__content {
        display: contents;
    }
    .promotions-product__title {
        margin-bottom: 0;
        font-size: 15px;
    }
    .promotions-product__specs {
        grid-column: 1/-1;
        grid-template-columns: 1fr;
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid #e4e7ea;
    }
    .promotions-product.is-expanded .promotions-product__spec:nth-child(n+5) {
        display: flex;
    }
    .promotions-product__side {
        grid-column: 1/-1;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding-top: 10px;
    }
    .promotions-product__price {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #e4e7ea;
        padding-top: 15px;
    }
    .promotions-product__actions {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    .promotions-product__buy,
    .promotions-product__cart {
        flex: 1;
    }
}





/* SPINNER AJAX PROMOTIONS */
#promo-products-container {
    position: relative;
    min-height: 200px;
}

#promo-products-container.is-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 10;
    border-radius: 24px;
}

#promo-products-container.is-loading::after {
    content: "";
    position: absolute;
    top: 60px;
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    border: 4px solid #f1f4f6;
    border-top: 4px solid #2ca483;
    border-radius: 50%;
    animation: ajax-spin 1s linear infinite;
    z-index: 11;
}

@keyframes ajax-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}