/* ═══════════════════════════════════════
   Lead Flow — Product Size Picker Popup
   ═══════════════════════════════════════ */

/* ── Popup Overlay ── */
.lf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    backdrop-filter: blur(3px);
}
.lf-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Size Picker Popup ── */
.lf-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -44%) scale(.94);
    z-index: 9001;
    background: #1e2028;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    max-width: 440px;
    width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.lf-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.lf-popup::-webkit-scrollbar { width: 4px; }
.lf-popup::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* ── Popup Header ── */
.lf-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.lf-popup-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    color: #fff;
    text-transform: uppercase;
}
.lf-popup-close {
    width: 30px; height: 30px;
    border: none;
    background: rgba(255,255,255,.08);
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.lf-popup-close:hover { background: rgba(255,255,255,.16); color: #fff; transform: rotate(90deg); }

/* ── Popup Body ── */
.lf-popup-body { padding: 20px; }

/* ── Product Info Row ── */
.lf-product-row {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    background: rgba(0,0,0,.2);
    padding: 12px;
    border-radius: 12px;
}
.lf-product-img {
    width: 76px; height: 96px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}
.lf-product-info { flex: 1; min-width: 0; }
.lf-product-name {
    color: #f0f0f0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 6px;
}
.lf-product-sku {
    color: #888;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    background: rgba(255,255,255,.05);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.lf-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.lf-price-sale { color: #be1e2d; font-weight: 700; font-size: 15px; }
.lf-price-orig { color: #666; font-size: 12px; text-decoration: line-through; }
.lf-price-badge {
    background: rgba(190,30,45,.15);
    color: #ff6b6b;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ── Sections ── */
.lf-section { margin-bottom: 18px; }
.lf-section-label {
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

/* ── Color Swatches ── */
.lf-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-color-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,.4);
    transition: all .2s;
}
.lf-color-dot.active { border-color: #be1e2d; transform: scale(1.12); }

/* ── Size Buttons ── */
.lf-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-size-btn {
    background: #2a2c35;
    border: 1px solid #383a45;
    border-radius: 10px;
    padding: 9px 14px;
    color: #ddd;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    transition: all .2s;
    font-family: inherit;
}
.lf-size-btn:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: #555; }
.lf-size-btn.selected { background: rgba(190,30,45,.15); border-color: #be1e2d; color: #ff7675; }
.lf-size-btn:disabled { opacity: .38; cursor: not-allowed; }
.lf-size-label { font-size: 13px; }
.lf-size-qty { font-size: 10px; font-weight: 500; }
.lf-size-qty.in-stock { color: #00d26a; }
.lf-size-qty.no-stock { color: #ff4757; }
.lf-size-stock-loading { color: #666; font-size: 12px; padding: 8px 0; }

/* ── Add to Cart Button ── */
.lf-add-btn {
    width: 100%;
    padding: 15px;
    background: #444;
    color: #888;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .5px;
    cursor: pointer;
    margin-top: 8px;
    transition: all .2s;
    font-family: inherit;
}
.lf-add-btn.ready {
    background: linear-gradient(135deg, #be1e2d, #f03e3e);
    color: #fff;
    box-shadow: 0 6px 20px rgba(190,30,45,.35);
    cursor: pointer;
}
.lf-add-btn.ready:hover { background: linear-gradient(135deg, #d32f2f, #fc5c65); transform: translateY(-1px); }

/* ── Detail link ── */
.lf-detail-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #5b9cf6;
    text-decoration: none;
    margin-top: 12px;
    transition: color .2s;
}
.lf-detail-link:hover { color: #93c5fd; text-decoration: underline; }

/* ── Loading spinner ── */
.lf-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.15);
    border-top-color: #be1e2d;
    border-radius: 50%;
    animation: lf-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes lf-spin { to { transform: rotate(360deg); } }

/* ── Product card clickable ── */
.product-card.clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.product-card.clickable:hover {
    border-color: #be1e2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
