/* ---------- CONTENEUR FIXE (centrage robuste) ---------- */
.st-sticky-bouton-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: auto;
    text-decoration: none !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- BLOC INTERNE ---------- */
.st-amazon-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: auto;
    min-width: 260px;
    background: rgb(255 255 255 / 95%);
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease-in-out;
}

.st-amazon-row:hover {
    background-color: #9ed6e0;
}

/* ---------- NOUVEAU : Empilement Prix ---------- */
.st-price-wrapper {
    display: flex;
    flex-direction: column; /* Empile verticalement */
    justify-content: center;
    line-height: 1;
}

.st-price-label {
    font-size: 10px;
    color: #555;
    margin-bottom: 2px;
    white-space: nowrap;
    font-family: sans-serif;
}

/* ---------- Textes existants ---------- */
.st-btn-nom {
    color: #000000;
    font-family: monospace;
    font-size: 16px;
    white-space: nowrap;
}

.st-btn-prix {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
    line-height: 1; /* Important pour coller au label */
}

.st-btn-amazon {
    position: relative;
    background-color: #ffdcc8;
    border: 2px solid #e35200;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    z-index: 0;
}
.st-btn-amazon span { 
    position: relative; 
    z-index: 1; 
    color: #e35200;
}

.st-btn-amazon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.3) 40%,
        rgba(255,255,255,0.4) 60%,
        transparent 100%
    );
    transform: rotate(-45deg);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Hover ---------- */
.st-sticky-bouton-container:hover .st-btn-amazon {
    background-color: #000;
    color: #ff9900;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,153,0,0.5);
    cursor: pointer;
}
.st-sticky-bouton-container:hover .st-btn-amazon::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(120%);
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .st-sticky-bouton-container { bottom: 10px; }

    .st-amazon-row {
        gap: 12px;
        padding: 8px 12px;
        border-radius: 12px;
        min-width: 220px;
    }
    .st-btn-nom { font-size: 13px; }
    
    /* Ajustement Mobile Prix */
    .st-btn-prix { font-size: 18px; }
    .st-price-label { font-size: 9px; }
    
    .st-btn-amazon { padding: 6px 10px; font-size: 12px; border-radius: 10px; }
}
@media (max-width: 480px) {
    .st-btn-prix { font-size: 14px; }
}

/* --- Bloc info --- */
.st-btn-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* --- Rating --- */
.st-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-top: 3px;
    font-size: 14px;
}
.st-rating .material-symbols-rounded {
    font-size: 18px;
    line-height: 1;
}
.st-rating .filled, .st-rating .half { color: #db5300; }
.st-rating .empty { color: #000000; opacity: 0.5; }

@media (max-width: 768px) {
  .st-rating .material-symbols-rounded { font-size: 16px; }
}