/* Smart Popup Styles */
.smart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.smart-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.smart-popup {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.smart-popup-overlay.show .smart-popup {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #333;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.popup-content {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.popup-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.popup-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.popup-newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.popup-newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.popup-newsletter-form button {
    background: var(--primary, #31a334);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.popup-coupon {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-code {
    font-size: 20px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 2px;
    color: #333;
}

.popup-coupon button {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 480px) {
    .smart-popup {
        padding: 20px;
        width: 95%;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-newsletter-form {
        flex-direction: column;
    }
    
    .popup-coupon {
        flex-direction: column;
        text-align: center;
    }
    
    .coupon-code {
        font-size: 16px;
    }
}