/* ============================================
   POPUP VENTA CRUZADA - REPTILUR
   ============================================ */

.rcx-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.rcx-overlay.rcx-visible {
    opacity: 1;
    pointer-events: auto;
}

.rcx-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}
.rcx-overlay.rcx-visible .rcx-popup {
    transform: translateY(0) scale(1);
}

.rcx-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    z-index: 10;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}
.rcx-close:hover {
    color: #fff;
}

.rcx-header {
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
    color: #fff;
    padding: 24px 28px 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}
.rcx-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.3;
}
.rcx-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    color: #fff !important;
}

.rcx-products {
    padding: 16px 20px;
}

.rcx-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rcx-product:last-child {
    margin-bottom: 0;
}
.rcx-product:hover {
    border-color: #c62828;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.1);
}

.rcx-product-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}
.rcx-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rcx-product-info {
    flex: 1;
    min-width: 0;
}
.rcx-product-name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.rcx-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #c62828;
}
.rcx-product-price del {
    color: #999;
    font-weight: 400;
}

.rcx-add-btn {
    flex-shrink: 0;
    background: #c62828;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.rcx-add-btn:hover {
    background: #b71c1c;
    transform: scale(1.02);
}
.rcx-add-btn:active {
    transform: scale(0.98);
}
.rcx-add-btn.rcx-added {
    background: #2e7d32;
    pointer-events: none;
}
.rcx-add-btn.rcx-loading {
    opacity: 0.7;
    pointer-events: none;
}

.rcx-footer {
    padding: 16px 20px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.rcx-skip {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.rcx-skip:hover {
    border-color: #999;
    color: #333;
}

.rcx-view-cart {
    display: inline-block;
    background: #c62828;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: 10px;
    transition: background 0.2s;
}
.rcx-view-cart:hover {
    background: #b71c1c;
}

/* Responsive */
@media (max-width: 480px) {
    .rcx-popup {
        width: 96%;
        border-radius: 12px;
    }
    .rcx-header {
        padding: 20px 16px 16px;
        border-radius: 12px 12px 0 0;
    }
    .rcx-title {
        font-size: 18px;
    }
    .rcx-products {
        padding: 12px;
    }
    .rcx-product {
        padding: 10px;
        gap: 10px;
    }
    .rcx-product-image {
        width: 55px;
        height: 55px;
    }
    .rcx-product-name {
        font-size: 13px;
    }
    .rcx-add-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}
