/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Flashsale Popup */
.flashsale-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.flashsale-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.flashsale-popup {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.flashsale-popup-overlay.active .flashsale-popup {
    transform: translateY(0);
}

.flashsale-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.flashsale-popup-close:hover {
    opacity: 1;
}

.flashsale-popup-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.flashsale-popup-content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.flashsale-popup-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.flashsale-popup-end-date {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.flashsale-popup-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    border: none;
}

/* Masked price for upcoming flashsales */
.flashsale-masked-price {
    position: relative;
    display: inline-block;
    font-weight: bold;
}

.flashsale-masked-price::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f44336;
}