/* ============================================
   PORTO FINO SHOP HOURS - FRONTEND STYLES
   Mooie popup wanneer shop gesloten is
============================================ */

/* Shop gesloten overlay */
#pfsh-closed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

#pfsh-closed-overlay.is-visible {
    display: flex;
}

/* Popup container */
.pfsh-popup {
    background: #fff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: pfshSlideIn 0.4s ease-out;
}

@keyframes pfshSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icon */
.pfsh-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

/* Titel */
.pfsh-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 0 0 15px;
    line-height: 1.3;
}

/* Bericht */
.pfsh-popup-message {
    font-size: 16px;
    color: #555;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 30px;
}

.pfsh-popup-message strong {
    color: #27ae60;
    font-weight: 600;
}

/* Close button */
.pfsh-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f3f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #868e96;
}

.pfsh-popup-close:hover {
    background: #e9ecef;
    transform: scale(1.1);
    color: #495057;
}

/* Openingstijden tabel */
.pfsh-hours-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.pfsh-hours-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

.pfsh-hours-table td:first-child {
    font-weight: 600;
    color: #495057;
}

.pfsh-hours-table td:last-child {
    text-align: right;
    color: #27ae60;
}

/* Browse button */
.pfsh-browse-btn {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid #e9ecef;
}

.pfsh-browse-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    #pfsh-closed-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .pfsh-popup {
        padding: 24px 20px 30px 20px;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        animation: pfshSlideUp 0.35s ease-out;
    }

    @keyframes pfshSlideUp {
        from {
            opacity: 0;
            transform: translateY(60px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .pfsh-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .pfsh-popup-title {
        font-size: 22px;
    }
    
    .pfsh-popup-message {
        font-size: 15px;
    }

    .pfsh-browse-btn {
        display: block;
        text-align: center;
    }
}

/* Hide add to cart buttons wanneer gesloten */
body.pfsh-shop-closed .single_add_to_cart_button,
body.pfsh-shop-closed .add_to_cart_button,
body.pfsh-shop-closed .pta-add-btn {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

body.pfsh-shop-closed .single_add_to_cart_button::after {
    content: "Shop gesloten" !important;
}
