/* ==========================================================================
   vip_catalog.css — Styles du module VIP Catalog
   Compatible avec les thèmes PS9 (variables CSS custom properties bienvenues)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Bloc VIP générique
   -------------------------------------------------------------------------- */
.vip-catalog-block {
    margin: 0.75rem 0;
    font-family: inherit;
}

/* --------------------------------------------------------------------------
   Badge VIP
   -------------------------------------------------------------------------- */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #b8860b 100%);
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25em 0.75em;
    border-radius: 3px;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 4px rgba(184, 134, 11, 0.35);
}

.vip-badge__icon {
    font-size: 0.85em;
}

/* --------------------------------------------------------------------------
   Ligne quantité
   -------------------------------------------------------------------------- */
.vip-qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.vip-qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.vip-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.vip-qty-btn {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 36px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
    color: #333;
}

.vip-qty-btn:hover {
    background: #e8e8e8;
}

.vip-qty-input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.vip-qty-input::-webkit-outer-spin-button,
.vip-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* --------------------------------------------------------------------------
   Bouton Ajouter au panier VIP
   -------------------------------------------------------------------------- */
.vip-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 1.4em;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
    width: 100%;
    justify-content: center;
    position: relative;
}

.vip-add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.vip-add-to-cart-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.vip-add-to-cart-btn.vip-btn--success {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

/* --------------------------------------------------------------------------
   Feedback / messages
   -------------------------------------------------------------------------- */
.vip-feedback {
    font-size: 0.82rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
    padding: 0 0.25rem;
}

.vip-feedback--success {
    color: #155724;
}

.vip-feedback--error {
    color: #721c24;
}

/* --------------------------------------------------------------------------
   Prix masqué (non-VIP)
   -------------------------------------------------------------------------- */
.vip-price-hidden {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.75em;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #6c757d;
}

.vip-price-hidden__icon {
    font-size: 1em;
    flex-shrink: 0;
}

.vip-price-hidden__link {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0056b3;
    text-decoration: underline;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Produit non disponible (non-VIP)
   -------------------------------------------------------------------------- */
.vip-unavailable {
    color: #888;
    font-style: italic;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
    .vip-qty-row {
        flex-wrap: wrap;
    }
}
