/* =====================================================
   Princess Membership Badge & Styles
   ===================================================== */

/* Membership Badge - Floating in header */
.princess-membership-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: badgeSlideIn 0.3s ease-out;
}

@keyframes badgeSlideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.badge-icon {
    font-size: 14px;
}

.badge-text {
    line-height: 1;
}

/* =====================================================
   My Account - Membership Section
   ===================================================== */

.membership-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.membership-card.membership-bronce {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.membership-card.membership-plata {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
}

.membership-card.membership-oro {
    border-color: #c9a227;
    background: linear-gradient(135deg, #fffdf5 0%, #fff 100%);
}

.membership-header {
    margin-bottom: 20px;
}

.membership-header .membership-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.membership-header h3 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.membership-benefits {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.membership-benefits h4 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.membership-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.membership-benefits ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.membership-benefits ul li:last-child {
    border-bottom: none;
}

.membership-benefits ul li strong {
    color: #c9a227;
}

/* Cart discount display */
.woocommerce-cart-form .cart-discount {
    color: #28a745;
    font-weight: 600;
}

/* =====================================================
   Global Account Button Bar
   ===================================================== */

.princess-global-account-bar {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.princess-account-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 16px 28px !important;
    background: linear-gradient(135deg, #c9a227 0%, #b8941f 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4) !important;
    transition: all 0.3s ease;
    border: 3px solid #c9a227 !important;
    animation: btnPulse 2s infinite;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes btnPulse {
    0% { box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(201, 162, 39, 0.7); }
    100% { box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4); }
}

.princess-account-btn:hover {
    background: #ffffff !important;
    color: #c9a227 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.5) !important;
    animation: none;
}

.princess-account-btn .btn-icon {
    font-size: 18px;
}

.princess-account-btn .btn-badge {
    background-color: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 4px;
    font-weight: 700;
}

.princess-account-btn.secondary {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%) !important;
    border-color: #1a1a1a !important;
    color: #ffffff !important;
    animation: none;
}

.princess-account-btn.secondary:hover {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

.princess-account-btn.has-membership {
    border-width: 3px !important;
    animation: none;
}

.princess-account-btn.membership-bronce {
    border-color: #cd7f32 !important;
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%) !important;
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.4) !important;
}

.princess-account-btn.membership-plata {
    border-color: #a0a0a0 !important;
    background: linear-gradient(135deg, #a0a0a0 0%, #888888 100%) !important;
    box-shadow: 0 6px 20px rgba(160, 160, 160, 0.4) !important;
}

.princess-account-btn.membership-oro {
    border-color: #c9a227 !important;
    background: linear-gradient(135deg, #c9a227 0%, #b8941f 100%) !important;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 768px) {
    .princess-membership-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .princess-global-account-bar {
        bottom: 10px;
        right: 10px;
        left: 10px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .princess-account-btn {
        padding: 10px 18px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
    }
}
