@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;900&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg-dark: #f8fafc; --surface-dark: #ffffff; --surface-dark-lighter: #f1f5f9; --surface-button: #e2e8f0; --border-color: #cbd5e1; --text-primary: #0f172a; --text-light: #0f172a; --text-muted: #64748b; --accent-yellow: #FFC300; --accent-orange: #FF9900; --accent-rgb: 255, 195, 0; --red-tag: #ff4757; --accent-blue-hover: #3b82f6; --accent-green-active: #10b981; --accent-green-shadow: rgba(16, 185, 129, 0.4); }
body, .builder-container, .filter-btn, .product-name, .summary-title, .total-price { font-family: 'Heebo', sans-serif; }
.builder-container { width: 95%; max-width: 1600px; margin: 0 auto; padding: 20px; }
.page-header { text-align: center; margin-bottom: 40px; position: relative; padding: 30px 0; }
.page-header::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 150px; background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0) 70%); z-index: -1; pointer-events: none; }
.pro-badge { display: inline-block; font-size: 2.2rem; font-weight: 900; color: #0f172a; background: #ffffff; border: none; padding: 15px 50px; border-radius: 100px; margin: 0; box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06), 0 5px 15px rgba(15, 23, 42, 0.02); letter-spacing: -0.5px; }

/* --- בועית טיפ חכמה (עם הנפשות כניסה ויציאה) --- */
@keyframes bubbleEntrance { 0% { opacity: 0; transform: translateY(30px) scale(0.8); } 70% { opacity: 1; transform: translateY(-5px) scale(1.05); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bubbleExit { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-20px) scale(0.9); } }
.guide-tooltip { position: relative; margin: 0 auto 20px auto; z-index: 10; width: 100%; max-width: 420px; animation: bubbleEntrance 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, floatBubble 4s ease-in-out 0.8s infinite; }
.guide-tooltip.closing { animation: bubbleExit 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards !important; pointer-events: none; }
.guide-content { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border: 1px solid rgba(6, 182, 212, 0.2); border-radius: 16px; padding: 18px 25px; box-shadow: 0 15px 35px rgba(6, 182, 212, 0.1); display: flex; align-items: flex-start; gap: 15px; position: relative; }
.guide-icon { flex-shrink: 0; width: 32px; height: 32px; background: rgba(6, 182, 212, 0.1); color: #06b6d4; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.guide-text { font-size: 0.95rem; color: #334155; line-height: 1.5; text-align: right; flex: 1; }
.guide-text strong { color: #0f172a; font-size: 1.05rem; display: block; margin-bottom: 5px; }
.highlight-text { color: #06b6d4; font-weight: 800; padding: 0 4px; }
.guide-close { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.03); border: none; color: #94a3b8; font-size: 1.2rem; cursor: pointer; transition: 0.2s; line-height: 1; padding: 4px; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; z-index: 1000; }
.guide-close:hover { color: #ef4444; background: rgba(239,68,68,0.1); transform: rotate(90deg); }
.guide-arrow { position: absolute; bottom: -8px; right: 50%; transform: translateX(50%) rotate(45deg); width: 16px; height: 16px; background: #f8fafc; border-bottom: 1px solid rgba(6, 182, 212, 0.2); border-right: 1px solid rgba(6, 182, 212, 0.2); }
@keyframes floatBubble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* --- CPU Warning Bubble Styles (Fixed Top-Right) --- */
.cpu-warning-overlay { position: fixed; top: 130px; right: 20px; z-index: 9990; display: flex; align-items: flex-start; justify-content: flex-end; pointer-events: none; }
.cpu-warning-box { pointer-events: auto; width: 340px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); text-align: right; position: relative; overflow: hidden; display: flex; flex-direction: column; animation: bubbleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards; }
.cpu-warning-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #f59e0b; }
.warning-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.warning-icon { width: 28px; height: 28px; color: #f59e0b; margin: 0; background: none; display: flex; align-items: center; justify-content: center; }
.cpu-warning-box h3 { font-size: 1.05rem; color: #0f172a; margin: 0; font-weight: 800; }
.cpu-warning-box p { font-size: 0.9rem; color: #475569; margin-bottom: 0; line-height: 1.5; }
.warning-highlight { background: transparent; border: none; padding: 0; color: #f59e0b !important; font-weight: 800; font-size: 0.9rem; margin-top: 5px; display: inline-block;}
.cpu-warning-box button { background: #f1f5f9; color: #334155; border: none; padding: 6px 16px; font-size: 0.85rem; font-weight: 700; border-radius: 6px; cursor: pointer; margin-top: 15px; width: fit-content; align-self: flex-end; transition: all 0.2s ease; box-shadow: none; }
.cpu-warning-box button:hover { background: #e2e8f0; color: #0f172a; }
@keyframes bubbleIn { 0% { transform: translateX(50px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }

/* --- RR UNIQUE CYBER LOADER --- */
.products-list-placeholder.loader { display: flex; justify-content: center; align-items: center; min-height: 300px; background: rgba(255, 255, 255, 0.8); border-radius: 12px; position: relative; overflow: hidden; }
.rr-loader { position: relative; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.rr-loader::before { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent-yellow); border-right-color: rgba(255, 195, 0, 0.2); border-bottom-color: var(--accent-yellow); border-left-color: rgba(255, 195, 0, 0.2); animation: rr-spin-right 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; box-shadow: 0 0 20px rgba(255, 195, 0, 0.1); }
.rr-loader::after { content: ''; position: absolute; width: 70%; height: 70%; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--text-light); border-left-color: var(--text-light); animation: rr-spin-left 1.2s linear infinite; opacity: 0.8; }
.rr-text { font-family: 'Heebo', sans-serif; font-weight: 900; font-size: 1.8rem; color: var(--accent-yellow); font-style: italic; letter-spacing: -3px; padding-right: 4px; z-index: 10;  animation: rr-pulse 2s ease-in-out infinite; position: relative; }
.rr-text::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 0%; height: 2px; background: var(--text-light); animation: rr-width 2s ease-in-out infinite; }
@keyframes rr-spin-right { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rr-spin-left { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes rr-pulse { 0%, 100% { transform: scale(1); opacity: 1; filter: brightness(1); } 50% { transform: scale(0.95); opacity: 0.8; filter: brightness(1.2); } }
@keyframes rr-width { 0%, 100% { width: 0%; opacity: 0; } 50% { width: 80%; opacity: 1; } }

/* --- שאר העיצוב --- */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px) } to { opacity: 1; transform: translateX(0) } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px) } to { opacity: 1; transform: translateX(0) } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes productSlideIn { from { opacity: 0; transform: translateY(15px) } to { opacity: 1; transform: translateY(0) } }
@keyframes priceUpdate { 0% { transform: scale(1) } 50% { transform: scale(1.2); color: var(--accent-green-active) } }

.builder-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr) 400px; gap: 30px; align-items: start; }
.categories-panel { display: flex; flex-direction: column; gap: 12px; animation: slideInLeft 0.6s ease-out; position: relative; }
.category-card { position: relative; display: grid; grid-template-columns: 80px 1fr 30px; gap: 15px; padding: 15px; background: var(--surface-dark); border: 1px solid var(--border-color); border-radius: 12px; cursor: pointer; min-height: 110px; align-items: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.category-card:hover:not(.active-category):not(.has-error) { border-color: var(--accent-blue-hover); background: var(--surface-dark-lighter); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.category-card.active-category { background: rgba(6, 182, 212, 0.1); border-color: var(--border-color); box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1); }
.category-card.has-error { border-color: var(--border-color) !important; }
.error-badge { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-tag); color: white; display: none; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; z-index: 10; }
.has-error .error-badge { display: flex !important; }
.category-arrow { width: 28px; height: 28px; border: 1px solid #cbd5e1; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s ease; justify-self: end; }
.category-card.active-category .category-arrow { background: var(--accent-blue-hover); color: white; border-color: transparent; transform: rotate(180deg); }
.category-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.2); border-radius: 8px; padding: 5px; overflow: hidden; }
.category-icon img { width: 100%; height: 100%; object-fit: contain; }
.category-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.category-title { display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--text-light); margin-bottom: 8px; padding: 3px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.05); width: fit-content; }
.category-subtitle { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.category-subtitle.subtitle-selected { font-size: 0.95rem; color: var(--text-light); font-weight: 700; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-price { font-size: 0.9rem; color: var(--accent-yellow); font-weight: 500; margin-top: 4px; direction: ltr; text-align: right; }
.products-panel { min-width: 0; }
.products-panel-header { font-size: 1.4rem; color: var(--text-light); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); font-weight: 700; text-align: right; }
.product-filters { background: var(--surface-dark-lighter); border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border-color); }
.filter-group { margin-bottom: 15px; display: flex; flex-direction: column; gap: 8px; }
.filter-group-label { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
/* --- NEW PROFESSIONAL FILTER BUTTONS (SINGLE LINE FORMAT) --- */
.filter-btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.filter-btn { padding: 8px 18px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; background: #ffffff; border: 1px solid #cbd5e1; color: #475569; border-radius: 8px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; backdrop-filter: blur(5px); }
.filter-btn:hover:not(.active) { background: #f8fafc; border-color: #94a3b8; color: #0f172a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.filter-btn.active { background: rgba(255, 195, 0, 0.15); border: 1px solid var(--accent-yellow); color: var(--accent-yellow); font-weight: 700; box-shadow: 0 0 20px rgba(255, 195, 0, 0.3), inset 0 0 10px rgba(255, 195, 0, 0.1);  }
.filter-btn.active::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.filter-btn.active:hover::before { opacity: 1; }
.filter-group-search { margin-bottom: 15px; }
.product-search-bar { width: 100%; padding: 10px 15px; font-size: 0.95rem; background: var(--bg-dark); border: 1px solid var(--border-color); color: var(--text-light); border-radius: 8px; transition: all 0.3s ease; outline: none; }
.product-search-bar:focus { border-color: var(--accent-blue-hover); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.product-item { position: relative; display: flex; align-items: center; gap: 15px; padding: 12px 15px; background: var(--surface-dark); border: 1px solid var(--border-color); border-radius: 10px; cursor: pointer; margin-bottom: 10px; opacity: 0; animation: productSlideIn 0.6s ease-out forwards; transition: all 0.2s ease; }
.product-item:hover { background: var(--surface-dark-lighter); border-color: var(--text-muted); transform: translateY(-2px); }
.product-item.selected { background: rgba(16, 185, 129, 0.08); border-color: var(--accent-green-active); box-shadow: 0 0 10px var(--accent-green-shadow); }
.product-item.out-of-stock { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.8); }
.product-image { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; background: transparent !important; padding: 2px; flex-shrink: 0; box-shadow: none !important; }
.product-details { flex: 1; min-width: 0; }
.product-name { font-size: 0.9rem; font-weight: 500; color: var(--text-light); line-height: 1.3; }
.product-price { font-size: 0.95rem; font-weight: 700; color: var(--accent-yellow); }
.product-price.out-of-stock-label { color: var(--red-tag); }
.qty-mini-ctrl { display: flex; align-items: center; background-color: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; height: 32px; margin-right: auto; overflow: hidden; }
.qty-mini-btn { width: 32px; height: 100%; background: transparent; border: none; color: #475569; font-size: 18px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qty-mini-btn:hover { background-color: #e2e8f0; color: #0f172a; }
.qty-mini-btn:active { background-color: #FFC300; color: #000; }
.qty-mini-val { font-size: 14px; font-weight: 600; color: var(--text-light); min-width: 24px; text-align: center; user-select: none; }
.tag-badge-mini { font-size: 10px; border: 1px solid #34d399; color: #34d399; background: rgba(52, 211, 153, 0.1); padding: 1px 6px; border-radius: 4px; font-weight: 800; letter-spacing: 0.5px; display: inline-block; line-height: 1; margin-bottom: 3px; }
.qty-stack { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; margin-left: 10px; }

/* --- Pagination Styling --- */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 20px 0; margin-top: auto; width: 100%; direction: ltr; }
.pagination-btn { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--border-color); background-color: var(--surface-button); color: var(--text-muted); border-radius: 8px; cursor: pointer; transition: all 0.2s ease; font-size: 14px; font-family: inherit; padding: 0 10px; }
.pagination-btn:hover:not(:disabled):not(.active) { border-color: var(--accent-yellow); color: var(--accent-yellow); background: rgba(255, 195, 0, 0.1); }
.pagination-btn.active { background-color: var(--accent-yellow); color: #000; border-color: var(--accent-yellow); font-weight: bold; }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination-dots { color: var(--text-muted); font-weight: bold; letter-spacing: 2px; padding: 0 5px; }

.summary-sidebar { position: sticky; top: 20px; animation: slideInRight 0.6s ease-out; }
.summary-card { background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 20px; padding: 25px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), inset 0 2px 10px rgba(255, 255, 255, 0.5); position: relative; overflow: hidden; }
.summary-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.summary-hero-image { width: 100%; height: 220px; background: rgba(0, 0, 0, 0.02); border-radius: 12px; margin-bottom: 20px; border: 1px solid rgba(0, 0, 0, 0.05); padding: 15px; display: none; align-items: center; justify-content: space-between; gap: 15px; }
.hero-case-container { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-case-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1)); transition: transform 0.3s ease; }
.hero-case-img:hover { transform: scale(1.05); }
.hero-components-grid { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; max-height: 100%; overflow-y: auto; overflow-x: hidden; width: 130px; flex-shrink: 0; padding: 5px; scrollbar-width: none; }
.hero-components-grid::-webkit-scrollbar { display: none; }
.hero-mini-icon { width: 32px; height: 32px; object-fit: contain; background: transparent; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); transition: transform 0.2s, filter 0.2s; cursor: pointer; }
.hero-mini-icon:hover { transform: scale(1.2); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); z-index: 10; position: relative; }
.summary-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px dashed rgba(0, 0, 0, 0.06); letter-spacing: -0.5px; }

/* --- עיצוב מעודכן: שם מוצר מלא (ללא חיתוך) --- */
.summary-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 25px; min-height: 100px; max-height: 600px; overflow-y: auto; overflow-x: hidden; padding-left: 5px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.summary-items::-webkit-scrollbar { width: 4px; }
.summary-items::-webkit-scrollbar-track { background: transparent; }
.summary-items::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.summary-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(0, 0, 0, 0.015); border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.03); transition: all 0.2s; position: relative; }
.summary-item:hover { background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.06); transform: translateX(-1px); }
.summary-mini-img { width: 32px; height: 32px; object-fit: contain; background: transparent !important; border-radius: 4px; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05)); }
.summary-details { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.summary-name { font-size: 0.8rem; font-weight: 600; color: #1e293b; white-space: normal; line-height: 1.2; }
.summary-actions { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.summary-qty { font-size: 0.75rem; color: #64748b; font-weight: 500; }
.summary-price { font-size: 0.85rem; font-weight: 800; color: #0f172a; white-space: nowrap; margin-right: 5px; flex-shrink: 0; }

/* עיצוב מחודש לאזור הסיכום והכפתורים */
.summary-total { margin-top: 25px; padding-top: 20px; border-top: 2px dashed rgba(0, 0, 0, 0.06); display: flex; flex-direction: column; gap: 15px; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); padding: 18px 22px; border-radius: 14px; border: 1px solid #cbd5e1; box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 4px 10px rgba(0,0,0,0.02); }
.total-row strong { font-size: 1.15rem; color: #334155; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.total-price { font-size: 2.5rem; font-weight: 900; color: #0f172a; font-family: 'Heebo', sans-serif; letter-spacing: -1px; text-shadow: 2px 2px 4px rgba(0,0,0,0.05); }

#quoteCustomerName { width: 100%; background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; color: #475569; outline: none; transition: all 0.3s ease; text-align: right; direction: rtl; font-family: 'Heebo', sans-serif; font-weight: 500; }
#quoteCustomerName:focus { background: #ffffff; border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15); color: #0f172a; }
#quoteCustomerName::placeholder { color: #94a3b8; font-size: 0.85rem; }

/* --- WhatsApp Floating Button (Left Bottom) --- */
.whatsapp-sticky { position: fixed; bottom: 30px; left: 30px; z-index: 9999; background: #25d366; color: var(--text-light); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); text-decoration: none; animation: waPulse 2s infinite; border: 2px solid rgba(255,255,255,0.1); }
.whatsapp-sticky:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6); color: var(--text-light); background: #1ebd59; }
.wa-text-bubble { position: absolute; left: 75px; background: #ffffff; color: var(--text-light); padding: 8px 15px; border-radius: 8px; font-size: 0.9rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s ease; border: 1px solid #25d366; font-weight: 600; box-shadow: 0 5px 15px rgba(0,0,0,0.5); transform: translateX(-10px); }
.wa-text-bubble::before { content: ''; position: absolute; left: -6px; top: 50%; transform: translateY(-50%); border-width: 6px 6px 6px 0; border-style: solid; border-color: transparent #25d366 transparent transparent; }
.whatsapp-sticky:hover .wa-text-bubble { opacity: 1; visibility: visible; transform: translateX(0);cursor: pointer; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* כפתור הוספה לעגלה - גדול ובולט */
.btn-add-cart { width: 100%; padding: 16px; background: var(--accent-yellow); color: #000; font-size: 1.1rem; font-weight: 800; border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 15px rgba(255, 195, 0, 0.2); }
.btn-add-cart:hover:not(:disabled) { background-color: #ffdb4d; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 195, 0, 0.4); }
.btn-add-cart:disabled { background-color: var(--surface-button); color: var(--text-muted); cursor: not-allowed; box-shadow: none; opacity: 0.6; }

/* סידור כפתורים משניים בשורה אחת */
.actions-row { display: flex; gap: 10px; width: 100%; }

/* כפתור שמירה למנהל */
.btn-save-build { width: 100%; padding: 8px; margin-top: 10px; background: rgba(59, 130, 246, 0.1); border: 1px solid var(--accent-blue-hover); color: var(--accent-blue-hover); border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-save-build:hover:not(:disabled) { background: var(--accent-blue-hover); color: var(--text-light); }
.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-trigger { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; font-size: 0.9rem; font-weight: 500; background: var(--surface-button); color: var(--text-light); border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.custom-options { position: absolute; top: calc(100% + 5px); left: 0; width: 100%; background: var(--surface-dark-lighter); border: 1px solid var(--border-color); border-radius: 6px; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); max-height: 200px; overflow-y: auto; }
.custom-select-wrapper.open .custom-options { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-option { padding: 8px 12px; font-size: 0.9rem; color: var(--text-light); cursor: pointer; }
.custom-option:hover { background: var(--accent-blue-hover); }
.custom-option.selected { background: var(--accent-yellow); color: #000; font-weight: 700; }
.btn-add-to-cart-new .added-icon, .btn-add-to-cart-new .added-text { display: none; }
.btn-add-to-cart-new.is-added { background: #10b981; color: #121823; pointer-events: none; }
.btn-add-to-cart-new.is-added .add-icon, .btn-add-to-cart-new.is-added .add-text { display: none; }
.btn-add-to-cart-new.is-added .added-icon, .btn-add-to-cart-new.is-added .added-text { display: inline-block; }
@media (max-width: 1200px) { .builder-layout { grid-template-columns: 320px 1fr 300px; gap: 20px; } }
@media (max-width: 992px) { .builder-layout { grid-template-columns: 1fr; } .summary-sidebar, .categories-panel, .products-panel { grid-column: 1 / -1; min-width: 100%; } .summary-sidebar { position: relative; top: 0; order: -1; margin-bottom: 20px; } .category-card { min-height: 90px; grid-template-columns: 60px 1fr 24px; gap: 10px; padding: 12px; } .category-icon { width: 60px; height: 60px; } }

@keyframes shareSuccess { 0% { transform: scale(1); } 50% { transform: scale(1.05); background: var(--accent-green-active); border-color: var(--accent-green-active); } 100% { transform: scale(1); } }
.btn-share-spec.copied { animation: shareSuccess 0.5s ease; }
@media print { body * { visibility: hidden; } .print-content, .print-content * { visibility: visible; } .print-content { position: absolute; left: 0; top: 0; width: 100%; padding: 20px; } }
/* --- Brand Buttons (Intel/AMD) --- */
.brand-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #ffffff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 15px 10px; cursor: pointer; transition: all 0.2s ease; height: 100%; width: 100%; min-height: 90px; }
.brand-btn:hover, .brand-btn.active-brand { background: #ffffff; border-color: #06b6d4; box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15); transform: translateY(-3px); }
.brand-img { height: 45px; width: 120px; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.brand-img.brand-gigabyte { transform: scale(2.2); }
.brand-btn:hover .brand-img, .brand-btn.active-brand .brand-img { filter: grayscale(0%); opacity: 1; transform: scale(1.15); }
.brand-btn:hover .brand-img.brand-gigabyte, .brand-btn.active-brand .brand-img.brand-gigabyte { transform: scale(2.35); }
.brand-name-text { font-size: 0.95rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s; line-height: 1; margin-top: 4px; }
.brand-btn:hover .brand-name-text, .brand-btn.active-brand .brand-name-text { color: #0f172a; }

/* --- Quantity Control (Plus/Minus) --- */
.qty-control-wrapper { display: flex; align-items: center; justify-content: space-between; background: #f1f5f9; border-radius: 8px; padding: 4px 8px; width: 100px; }
.qty-btn { width: 24px; height: 24px; border: none; background: rgba(255,255,255,0.1); color: var(--text-light); cursor: pointer; font-weight: bold; border-radius: 4px; transition: 0.2s; display:flex; align-items:center; justify-content:center; }
.qty-btn:hover { background: #00f3ff; color: #000; }
.qty-display { font-weight: 700; color: var(--text-light); font-size: 1rem; text-align: center; width: 30px; }

/* --- Product Row Layout Update --- */
.product-item { display: grid; grid-template-columns: 40px 60px 1fr auto minmax(90px, max-content); gap: 15px; align-items: center; padding: 15px; border: 1px solid #e2e8f0; background: #ffffff; margin-bottom: 10px; border-radius: 10px; transition: all 0.2s; }
.price-action { text-align: left; }
.out-of-stock-label { color: #ff4757; font-size: 0.9rem; font-weight: bold; background: rgba(239, 68, 68, 0.1); padding: 4px 8px; border-radius: 4px; }

/* --- Responsive Fix --- */
@media (max-width: 768px) { .product-item { grid-template-columns: 40px 60px 1fr; grid-template-rows: auto auto; row-gap: 12px; } .qty-control-wrapper { grid-column: 1 / 3; grid-row: 2; margin-top: 5px; } .price-action { grid-column: 3 / -1; grid-row: 2; text-align: right; } }
/* --- Clean Transparent Checkbox --- */
.custom-checkbox { display: flex; align-items: center; justify-content: center; width: 40px; height: 100%; }
.check-circle { width: 18px; height: 18px; border: 2px solid #475569; border-radius: 4px; background: transparent; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.product-item:hover .check-circle { border-color: #94a3b8; }
.product-item.selected .check-circle { border-color: #FFC300; background: #FFC300; }
.check-icon-svg { width: 12px; height: 12px; fill: #000; transform: scale(0); transition: 0.2s; }
.product-item.selected .check-icon-svg { transform: scale(1); }
/* === עיצוב דרופ-דאון סינון יצרנים === */
.filter-wrapper { display: none; padding: 0 25px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 15px; animation: fadeInDown 0.4s ease forwards; }
.filter-container { display: flex; align-items: center; gap: 15px; background: #ffffff; padding: 12px 20px; border-radius: 14px; border: 1px solid rgba(255, 195, 0, 0.2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 195, 0, 0.05); }
.filter-label { color: #9ca3af; font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cyber-select { flex: 1; background: #ffffff; color: var(--text-light); border: 1px solid #cbd5e1; padding: 12px 20px; border-radius: 10px; font-family: inherit; font-weight: 800; font-size: 1rem; outline: none; cursor: pointer; transition: all 0.3s ease; appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFC300%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: left 15px top 50%; background-size: 14px auto; padding-left: 45px; }
.cyber-select:hover, .cyber-select:focus { border-color: #FFC300; box-shadow: 0 0 20px rgba(255, 195, 0, 0.15); background-color: #f8fafc; }
.cyber-select option { background: #ffffff; color: var(--text-light); font-weight: 700; padding: 15px; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* עיצוב כפתורים חדש - מחיקה, הדפסה, שיתוף, הוספה לעגלה */
.action-buttons-wrapper { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.main-actions { display: flex; gap: 12px; }
.btn-add-cart-pro { flex: 1; background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); color: #ffffff; border: none; padding: 16px; border-radius: 14px; font-weight: 900; font-size: 1.15rem; letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3), inset 0 -2px 5px rgba(0,0,0,0.1); text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.btn-add-cart-pro:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4), inset 0 -2px 5px rgba(0,0,0,0.1); filter: brightness(1.05); }
.btn-add-cart-pro:disabled { background: #e2e8f0; color: #94a3b8; border: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); cursor: not-allowed; text-shadow: none; }
.btn-clear-build { background: #ffffff; color: #ef4444; border: 2px solid #fee2e2; padding: 14px; border-radius: 14px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.btn-clear-build:hover { background: #fef2f2; border-color: #ef4444; box-shadow: 0 6px 15px rgba(239, 68, 68, 0.15); transform: translateY(-3px); }
.secondary-actions { display: flex; gap: 12px; }
.btn-secondary-pro { flex: 1; background: #ffffff; color: #475569; border: 1px solid #cbd5e1; font-weight: 800; padding: 14px; border-radius: 12px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.95rem; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.btn-secondary-pro:hover:not(:disabled) { background: #f8fafc; color: #0f172a; border-color: #94a3b8; box-shadow: 0 6px 15px rgba(0,0,0,0.06); transform: translateY(-2px); }
.btn-secondary-pro:disabled { opacity: 0.6; cursor: not-allowed; background: #f8fafc; border-color: #e2e8f0; box-shadow: none; }

/* --- Professional Toast Notification (Fixed Floating Above Product) --- */
.rr-toast-inline { position: fixed; transform: translateX(-50%) translateY(15px); z-index: 999999; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); color: #fff; padding: 12px 20px; border-radius: 10px; font-family: 'Heebo', sans-serif; font-size: 0.9rem; font-weight: 500; box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; opacity: 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-bottom: 3px solid #10b981; direction: rtl; pointer-events: none; white-space: nowrap; }
.rr-toast-inline::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); border-width: 8px 8px 0; border-style: solid; border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent; }
.rr-toast-inline.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.rr-toast-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: rgba(16, 185, 129, 0.2); color: #10b981; border-radius: 50%; flex-shrink: 0; }
.rr-toast-content { display: flex; flex-direction: column; }
.rr-toast-title { font-weight: 800; font-size: 0.8rem; color: #cbd5e1; margin-bottom: 2px; }
.rr-toast-msg { color: #ffffff; font-weight: 600; line-height: 1.2; }

/* --- Product Link Badge --- */
.prod-link-badge { display: flex; align-items: center; justify-content: center; background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-radius: 4px; padding: 1px 6px; font-size: 0.65rem; font-weight: 700; text-decoration: none; transition: all 0.2s ease; border: 1px solid rgba(59, 130, 246, 0.2); }
.prod-link-badge:hover { background: #3b82f6; color: #fff; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); transform: translateY(-1px); }
.product-meta { display: flex; justify-content: flex-start; align-items: center; margin-top: 4px; }