/* ========================================
   Smets Popup — Stylesheet
   ======================================== */

.smets-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.smets-popup-overlay.is-visible {
    display: flex;
    animation: smetsOverlayIn 0.3s ease forwards;
}

.smets-popup-overlay.is-closing {
    display: flex;
    animation: smetsOverlayOut 0.4s ease forwards;
}

@keyframes smetsOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes smetsOverlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.smets-popup-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: smetsBoxIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes smetsBoxIn {
    from { transform: scale(0.92) translateY(12px); opacity: 0; }
    to   { transform: scale(1) translateY(0);       opacity: 1; }
}

/* Timer bar bovenaan */
.smets-popup-timer {
    height: 4px;
    background: #e8e8e8;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.smets-popup-timer-bar {
    height: 100%;
    width: 100%;
    background: #d32f2f; /* rood = urgentie */
    transition: none;
}

/* Sluitknop */
.smets-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s;
    z-index: 2;
    padding: 0;
}

.smets-popup-close:hover {
    color: #111;
}

/* Inhoud */
.smets-popup-content {
    padding: 32px 32px 24px;
}

.smets-popup-content p:last-child {
    margin-bottom: 0;
}

/* WooCommerce producten */
.smets-popup-products {
    padding: 0 24px 28px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.smets-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.smets-product-card {
    display: block;
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fafafa;
}

.smets-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.smets-product-card.on-sale {
    border-color: #d32f2f;
}

.smets-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 1;
}

.smets-product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.smets-product-info {
    padding: 10px 10px 12px;
}

.smets-product-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
}

.smets-product-price {
    display: block;
    font-size: 13px;
    color: #d32f2f;
}

.smets-product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 4px;
}

.smets-no-promo {
    color: #888;
    font-style: italic;
    font-size: 14px;
    padding: 8px 0;
}

/* Responsive */
@media (max-width: 480px) {
    .smets-popup-box {
        border-radius: 8px;
    }

    .smets-popup-content {
        padding: 24px 20px 16px;
    }

    .smets-popup-products {
        padding: 16px 16px 20px;
    }

    .smets-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
