/**
 * Maquette Char Promo - Premium Member Pricing Styles
 * Version: 1.0.0
 */

/* ============================================
   PRODUCT PAGE PRICING
   ============================================ */

.maquette-premium-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    font-size: 1em;
}

/* Original price (struck through) */
.maquette-premium-pricing .maquette-price-original {
    font-size: 1em;
    color: #999;
}

.maquette-premium-pricing .maquette-price-original del {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Sale price (if applicable) */
.maquette-premium-pricing .maquette-price-sale {
    font-size: 1.1em;
    color: #e63946;
    font-weight: 600;
}

/* Premium member badge */
.maquette-premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Premium member price (final price) */
.maquette-premium-price {
    font-size: 1.5em;
    color: #2c7a3c;
    font-weight: 700;
}

.maquette-premium-price .woocommerce-Price-amount {
    color: #2c7a3c;
}

/* ============================================
   PRODUCT LOOP (ARCHIVES, SHOP)
   ============================================ */

.woocommerce ul.products li.product .maquette-premium-pricing {
    font-size: 0.9em;
}

.woocommerce ul.products li.product .maquette-premium-badge {
    font-size: 0.65em;
    padding: 3px 8px;
}

.woocommerce ul.products li.product .maquette-premium-price {
    font-size: 1.2em;
}

/* ============================================
   CART & CHECKOUT
   ============================================ */

.maquette-cart-premium-badge {
    display: inline-block;
    font-size: 0.85em;
    color: #2c7a3c;
    font-weight: bold;
    margin-bottom: 5px;
}

.maquette-premium-info th,
.maquette-premium-info td {
    color: #2c7a3c !important;
    font-weight: 600;
}

.maquette-premium-info th::before {
    content: "✓ ";
    font-weight: bold;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .maquette-premium-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .maquette-premium-badge {
        font-size: 0.7em;
        padding: 3px 10px;
    }

    .maquette-premium-price {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .maquette-premium-pricing {
        font-size: 0.9em;
    }

    .maquette-premium-price {
        font-size: 1.2em;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

.maquette-premium-badge {
    animation: maquette-pulse-subtle 2s ease-in-out infinite;
}

@keyframes maquette-pulse-subtle {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.5);
    }
}

/* ============================================
   THEME COMPATIBILITY
   ============================================ */

/* Storefront theme */
.storefront .maquette-premium-pricing {
    margin-bottom: 15px;
}

/* Astra theme */
.ast-woocommerce-container .maquette-premium-pricing {
    margin: 12px 0;
}

/* Divi theme */
.et_pb_wc_price .maquette-premium-pricing {
    display: flex !important;
}

/* Flatsome theme */
.product-price .maquette-premium-pricing {
    margin-top: 8px;
}

/* ============================================
   ADMIN PROFILE (USER EDIT)
   ============================================ */

.maquette-premium-status-active {
    color: #2c7a3c;
    font-weight: bold;
}

.maquette-premium-status-inactive {
    color: #999;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.maquette-premium-badge:focus,
.maquette-premium-price:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Screen reader text */
.maquette-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .maquette-premium-badge {
        background: #667eea;
        box-shadow: none;
        animation: none;
    }
}
