/* Elementor Product Quick View Popup */

#epp-quick-view-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.epp-popup-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 860px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    z-index: 1;
    animation: epp-slide-up 0.25s ease;
}

@keyframes epp-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.epp-close {
    position: absolute;
    top: 1rem;
    left: 1rem; /* RTL */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.epp-close:hover { color: #000; }

.epp-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    direction: rtl;
}

@media (max-width: 600px) {
    .epp-popup-grid { grid-template-columns: 1fr; }
}

.epp-image-col img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.epp-content-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.epp-product-cats {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.epp-product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.epp-product-price {
    font-size: 1.3rem;
    color: #e74c3c;
    font-weight: 500;
}

.epp-product-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.epp-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.epp-add-to-cart.button {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.epp-add-to-cart.button:hover {
    background: #333;
}

.epp-view-product {
    display: block;
    text-align: center;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    padding: 0.5rem;
}

.epp-view-product:hover { color: #1a1a1a; }

/* מצב טעינה */
#epp-quick-view-popup.epp-loading .epp-popup-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.epp-popup-open {
    overflow: hidden;
}

/* כפתור Quick View על כרטיסי מוצר */
.epp-product-wrap {
    position: relative;
}

.epp-quick-view-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    white-space: nowrap;
    z-index: 10;
}

.epp-product-wrap:hover .epp-quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
