/* Stav Core — CSS for quote modal, filters, floating buttons */

/* ============ QUOTE BUTTON ============ */
.stav-quote-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#d40000;color:#fff;border:0;border-radius:10px;padding:10px 18px;font-weight:700;font-size:14px;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);text-decoration:none!important;box-shadow:0 2px 6px rgba(212,0,0,.25);font-family:inherit;width:auto}
.stav-quote-btn:hover{background:#a30000;transform:translateY(-2px);box-shadow:0 8px 18px rgba(212,0,0,.35);color:#fff}
.stav-quote-loop{width:100%;margin-top:10px;padding:12px;font-size:13px}
.stav-quote-single{font-size:17px;padding:14px 28px;margin:18px 0 8px}
.stav-quote-wrap{margin:14px 0}
.stav-sku{display:block;color:#94a3b8;font-size:13px;margin-top:6px}
.stav-quote-note{color:#475569;font-size:14px;margin-top:10px;padding:10px 14px;background:#fef2f2;border-inline-start:3px solid #d40000;border-radius:6px;line-height:1.4}

/* ============ QUOTE MODAL ============ */
.stav-quote-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:20px;opacity:0;transition:opacity .25s}
.stav-quote-modal.is-open{display:flex;opacity:1}
.stav-quote-overlay{position:absolute;inset:0;background:rgba(15,23,42,.7);backdrop-filter:blur(4px);cursor:pointer}
.stav-quote-dialog{position:relative;background:#fff;border-radius:20px;padding:32px;max-width:520px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 30px 80px rgba(0,0,0,.3);transform:scale(.95);transition:transform .25s;direction:rtl;text-align:right}
.stav-quote-modal.is-open .stav-quote-dialog{transform:scale(1)}
.stav-quote-close{position:absolute;top:14px;left:14px;width:36px;height:36px;border-radius:50%;background:#f1f5f9;border:0;font-size:24px;line-height:1;cursor:pointer;color:#475569;display:flex;align-items:center;justify-content:center;transition:background .15s}
.stav-quote-close:hover{background:#fee2e2;color:#d40000}
#stav-quote-title{font-size:24px;font-weight:800;color:#0f172a;margin:0 0 8px;letter-spacing:-.01em}
.stav-quote-subtitle{color:#64748b;font-size:15px;margin:0 0 22px;line-height:1.5}

.stav-quote-form .stav-qf-row{margin-bottom:14px}
.stav-quote-form label{display:block;font-weight:600;font-size:14px;color:#334155;margin-bottom:6px}
.stav-quote-form input[type="text"],.stav-quote-form input[type="tel"],.stav-quote-form input[type="email"],.stav-quote-form input[type="date"],.stav-quote-form input[type="number"],.stav-quote-form textarea{width:100%;padding:11px 14px;border:1.5px solid #e2e8f0;border-radius:10px;font-size:15px;font-family:inherit;background:#fff;color:#0f172a;transition:border-color .15s,box-shadow .15s;box-sizing:border-box}
.stav-quote-form input:focus,.stav-quote-form textarea:focus{outline:none;border-color:#d40000;box-shadow:0 0 0 4px rgba(212,0,0,.15)}
.stav-qf-half{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stav-qf-product{padding:12px;background:#f8fafc;border-radius:10px;font-size:13px;color:#475569;margin-bottom:14px;display:none}
.stav-qf-product.has-product{display:block}
.stav-qf-submit{width:100%;padding:14px;background:#d40000;color:#fff;border:0;border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px rgba(212,0,0,.3)}
.stav-qf-submit:hover{background:#a30000;transform:translateY(-2px);box-shadow:0 10px 24px rgba(212,0,0,.4)}
.stav-qf-submit:disabled{opacity:.6;cursor:wait;transform:none}
.stav-qf-msg{margin-top:14px;padding:12px;border-radius:8px;font-size:14px;display:none}
.stav-qf-msg.is-success{display:block;background:#dcfce7;color:#15803d;border-inline-start:3px solid #16a34a}
.stav-qf-msg.is-error{display:block;background:#fee2e2;color:#b91c1c;border-inline-start:3px solid #dc2626}

/* ============ FILTERS SIDEBAR ============ */
.stav-filters{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px;position:sticky;top:90px;max-height:calc(100vh - 110px);overflow-y:auto}
.stav-filters-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}
.stav-filters-header h3{margin:0;font-size:17px;color:#0f172a;font-weight:700}
.stav-filters-clear{background:none;border:0;color:#d40000;font-size:13px;font-weight:600;cursor:pointer;padding:4px 8px;border-radius:6px;font-family:inherit}
.stav-filters-clear:hover{background:#fef2f2}
.stav-filter-group{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #f1f5f9}
.stav-filter-group:last-child{border-bottom:0}
.stav-filter-group h4{margin:0 0 10px;font-size:14px;color:#0f172a;font-weight:700}
.stav-filter-list{list-style:none;padding:0;margin:0;max-height:240px;overflow-y:auto}
.stav-filter-list li{margin:0;padding:0}
.stav-filter-list label{display:flex;align-items:center;gap:8px;padding:6px 4px;cursor:pointer;font-size:14px;color:#475569;border-radius:6px;transition:background .12s}
.stav-filter-list label:hover{background:#f8fafc;color:#d40000}
.stav-filter-list input[type="checkbox"]{margin:0;cursor:pointer;accent-color:#d40000}
.stav-filter-list span{flex:1}
.stav-filter-count{color:#94a3b8;font-size:12px}

.stav-products-grid{opacity:1;transition:opacity .2s}
.stav-products-grid.is-loading{opacity:.3;pointer-events:none}
.stav-no-products{text-align:center;padding:40px;color:#64748b;background:#f8fafc;border-radius:12px}
.stav-pagination{display:flex;gap:6px;justify-content:center;margin:30px 0}
.stav-pagination a,.stav-pagination span{padding:8px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#475569;text-decoration:none}
.stav-pagination a:hover,.stav-pagination .current{background:#d40000;color:#fff;border-color:#d40000}

/* ============ FLOATING CTA ============ */
.stav-floating-cta{position:fixed;bottom:20px;left:20px;z-index:9990;display:flex;flex-direction:column;gap:10px}
.stav-fc{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;color:#fff!important;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.2);transition:all .25s cubic-bezier(.4,0,.2,1)}
.stav-fc:hover{transform:scale(1.1);box-shadow:0 10px 28px rgba(0,0,0,.3)}
.stav-fc-wa{background:#25d366}
.stav-fc-tel{background:#d40000}
.stav-fc svg{display:block}

/* ============ HEADER SEARCH FORM (shim) ============ */
.stav-header-search-form{display:flex;align-items:center;background:#f1f5f9;border-radius:99px;padding:4px;max-width:480px;width:100%}
.stav-header-search-form input{flex:1;background:transparent;border:0;padding:10px 16px;font-size:15px;color:#0f172a;outline:none}
.stav-header-search-form button{background:#d40000;color:#fff;border:0;width:38px;height:38px;border-radius:50%;cursor:pointer}

/* ============ MOBILE ============ */
@media(max-width:768px){
.stav-quote-dialog{padding:24px;border-radius:14px}
.stav-qf-half{grid-template-columns:1fr;gap:0}
.stav-filters{position:relative;top:0;max-height:none}
.stav-floating-cta{bottom:14px;left:14px}
.stav-fc{width:48px;height:48px}
}
