/* Custom Styles for E-Commerce Platform */

/* Customer Dashboard Styles */
.customer-dashboard-widgets {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.rewards-widget h3 {
    color: #333;
    margin-bottom: 15px;
    font-family: 'Kaushan Script', cursive;
}

.reward-points, .current-tier, .current-discount, .visit-count {
    margin: 10px 0;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Consultation Popup Styles */
.consultation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.consultation-popup-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Referral Program Styles */
.referral-program {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.referral-code, .referral-link {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.code {
    font-family: monospace;
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 0 10px;
}

.referral-url {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

/* Product Popup Styles */
.product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-popup-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.popup-product-details {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.popup-product-image {
    flex: 0 0 200px;
}

.popup-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.popup-product-info {
    flex: 1;
}

.popup-product-title {
    color: #333;
    margin-bottom: 10px;
}

.popup-product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-product-details {
        flex-direction: column;
    }
    
    .consultation-popup-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Kaushan Script Font Application */
.site-title,
.consultation-popup-content h3,
.referral-program h3,
.rewards-widget h3 {
    font-family: 'Kaushan Script', cursive;
}