.promotion-card-one-item {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 4;
    background-color: #9e9e9e;
    border-radius: 8px;
    padding: 8px 12px;
    margin-right: 28px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.promotion-card-one-item.mini-one {
    min-width: 240px;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 2 / 3.5;
    margin-right: 0%;
}

.promotion-card-one-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.promotion-content-column {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

/* 1) Eviter le depassement calcule largeur+padding */
.promotion-card-one-item,
.promotion-content-column {
    box-sizing: border-box;
}

.promotion-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 100%;
    background: #f44336;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: auto;
    box-shadow: 0 6px 14px rgba(244, 67, 54, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promotion-discount-badge::before {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 0;
    height: 0;
    border-left: 12px solid #FFC107;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    transform: rotate(45deg);
}

.promotion-discount-inner {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    border: 2px dashed #FFC107;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #FFC107;
    font-weight: 700;
    text-align: center;
    background: rgba(244, 67, 54, 0.6);
}

.promotion-discount-value {
    font-size: 0.7rem;
    line-height: 1;
}

.promotion-discount-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.promotion-discount-badge:hover,
.promotion-discount-badge:active {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.45);
}

.promotion-top-content,
.promotion-center-content,
.promotion-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: auto;
}

.promotion-top-content {
    flex-shrink: 0;
}

.promotion-center-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-bottom-content {
    flex-shrink: 0;
}

.top-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    background-color: rgba(244, 67, 54, 0.4);
    border-radius: 8px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.title-text {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.description-text {
    color: #afafaf;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.description-text.mini-one {
    -webkit-line-clamp: 2;
}

.badges-row-promotion {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.badge-nouveautes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: #FFC107;
    color: #f44336;
    padding: 2px 4px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-rating-promotion {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: rgba(255, 193, 7, 0.5);
    color: #FFC107;
    border: 1px solid #FFC107;
    padding: 2px 4px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.text-count-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.slogan-text-promo {
    color: #FFC107;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.countdown-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: white;
    border-radius: 12px;
    padding: 2px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.countdown-timer {
    font-family: monospace;
    color: #f44336;
}

/* Center content container */
.center-content-container {
    width: 100%;
    padding: 8px;
}

/* Grid pour les produits - 3 colonnes */
.products-grid-promotion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

/* Evite les depassements de boites */
.promotion-card-one-item,
.promotion-content-column,
.center-content-container,
.products-grid-promotion {
  box-sizing: border-box;
  min-width: 0;
}

/* Quand la promo est mini-one, la grille interne doit etre plus compacte */
.products-grid-promotion.mini-one {
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* au lieu de 3 */
  gap: 6px;
}

/* Neutralise le min-width:100px des mini-two dans ce contexte */
.products-grid-promotion.mini-one .product-card-three-item.mini-two {
  min-width: 0;
  width: 100%;
}

/* Style pour les items produits dans la promotion */
.product-item-promo {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.2s ease;
}

.product-item-promo:hover {
    transform: scale(1.05);
}

/* Bottom content container */
.bottom-content-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* Bouton CTA promotion */
.promotion-cta-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: #f44336;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.promotion-cta-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.promotion-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}