:root{--primary: #2563eb;--primary-dark: #1d4ed8;--primary-tint: #eff6ff;--background: #ffffff;--surface: #ffffff;--text: #111827;--text-secondary: #6b7280;--text-muted: #9ca3af;--border: #e5e7eb;--border-soft: #eef0f3;--success: #16a34a;--error: #ef4444}*{box-sizing:border-box}body{margin:0;font-family:Manrope,-apple-system,BlinkMacSystemFont,sans-serif;background:var(--background);color:var(--text)}a{color:var(--primary)}.app-header{background:var(--surface);border-bottom:1px solid var(--border-soft);padding:1rem 1.5rem}.app-header-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.app-header h1{margin:0;display:flex;align-items:center;gap:.6rem;font-size:1.15rem;font-weight:800;letter-spacing:-.02em;color:var(--text)}.logo-mark{width:34px;height:34px;border-radius:11px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.app-nav{display:flex;align-items:center;gap:.4rem}.nav-link{font-family:inherit;font-size:.85rem;font-weight:600;color:var(--text-secondary);background:none;border:none;padding:.55rem .9rem;border-radius:20px;cursor:pointer}.nav-link:hover,.nav-link.active{color:var(--text);background:#f3f4f6}.cart-button{position:relative;width:40px;height:40px;font-family:inherit;color:var(--text-secondary);background:#fff;border:1px solid var(--border-soft);border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center}.cart-button:hover{border-color:var(--border);color:var(--text)}.cart-badge{position:absolute;top:-6px;right:-6px;background:var(--primary);color:#fff;font-size:.65rem;font-weight:700;min-width:17px;height:17px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid #fff}.app-main{max-width:1200px;margin:0 auto;padding:2rem 1.5rem}.filters{display:flex;gap:.75rem;margin-bottom:1.5rem;flex-wrap:wrap}.search-input-wrap{position:relative;flex:1;min-width:220px;display:flex;align-items:center}.search-input-icon{position:absolute;left:16px;color:var(--text-muted);pointer-events:none;display:flex}.search-input,.category-select{font-family:inherit;font-size:.9rem;font-weight:500;padding:.7rem 1.1rem;border:1px solid var(--border);border-radius:23px;background:var(--surface);color:var(--text)}.search-input{width:100%;padding-left:2.6rem}.category-select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-right:2.2rem;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}.search-input:focus,.category-select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.results-count{color:var(--text-muted);font-size:.8rem;font-weight:600;margin:0 0 1.25rem}.status-text{color:var(--text-secondary);padding:2rem 0;text-align:center}.status-text.error{color:var(--error)}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem}.card{background:var(--surface);border:1px solid var(--border-soft);border-radius:20px;overflow:hidden;transition:box-shadow .2s ease,border-color .2s ease;display:flex;flex-direction:column}.card:hover{box-shadow:0 12px 24px #1118270f;border-color:var(--border)}.card-image{width:100%;height:170px;object-fit:cover;display:block;background:#f7f9fc}.card-body{padding:1.1rem 1.1rem 1.2rem;display:flex;flex-direction:column;flex:1}.chip{align-self:flex-start;color:var(--text-muted);font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.card-title{font-size:.95rem;font-weight:700;margin:0 0 .35rem;line-height:1.35;color:var(--text)}.card-description{font-size:.8rem;color:var(--text-secondary);margin:0 0 1rem;flex:1;line-height:1.5}.card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;margin-bottom:.9rem}.card-price{font-size:1.05rem;font-weight:800;color:var(--text)}.stock{font-size:.72rem;font-weight:600;color:var(--text-secondary);display:flex;align-items:center;gap:.4rem}.stock:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--success)}.stock.out-of-stock:before{background:var(--error)}.stock.out-of-stock{color:var(--error)}.pagination{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:3rem 0 1rem}.pagination button{font-family:inherit;font-size:.8rem;font-weight:700;padding:.55rem 1.2rem;border:1px solid var(--border-soft);border-radius:21px;background:#fff;color:var(--text-secondary);cursor:pointer;transition:border-color .15s ease,color .15s ease}.pagination button:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.pagination button:disabled{color:var(--text-muted);cursor:default}.pagination-page{width:38px;height:38px;padding:0;border-radius:12px;display:flex;align-items:center;justify-content:center}.pagination-page.active{background:#111827;border-color:#111827;color:#fff}.pagination-page.active:hover{border-color:#111827;color:#fff}.pagination-arrow{width:38px;height:38px;padding:0;border-radius:12px;display:flex;align-items:center;justify-content:center}.add-to-cart-button{margin-top:0;width:100%;font-family:inherit;font-size:.8rem;font-weight:700;padding:.65rem;border:1.5px solid var(--primary);border-radius:21px;background:#fff;color:var(--primary);cursor:pointer;transition:background .15s ease,color .15s ease}.add-to-cart-button:hover:not(:disabled){background:var(--primary);color:#fff}.add-to-cart-button:disabled{border-color:var(--border);color:var(--text-muted);cursor:default}.page-title{font-size:1.3rem;font-weight:800;letter-spacing:-.01em;margin:0 0 1.5rem}.drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182766;display:flex;justify-content:flex-end;z-index:100}.drawer{width:100%;max-width:420px;height:100%;background:var(--surface);box-shadow:-8px 0 30px #1118271f;display:flex;flex-direction:column;padding:1.5rem;overflow-y:auto}.drawer-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.drawer-header h2{margin:0;font-size:1.1rem;font-weight:800}.drawer-close{width:32px;height:32px;font-size:1.3rem;line-height:1;background:#f3f4f6;border:none;border-radius:10px;color:var(--text-secondary);cursor:pointer}.cart-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.1rem}.cart-item{display:flex;gap:.85rem;align-items:flex-start}.cart-item-image{width:56px;height:56px;object-fit:cover;border-radius:12px;background:var(--border-soft);flex-shrink:0}.cart-item-body{flex:1;min-width:0}.cart-item-name{font-size:.88rem;font-weight:700}.cart-item-price{font-size:.78rem;color:var(--text-secondary);margin-bottom:.5rem}.cart-item-controls{display:flex;align-items:center;gap:.5rem}.cart-item-controls button{width:24px;height:24px;border:1px solid var(--border-soft);background:var(--surface);border-radius:8px;cursor:pointer;font-size:.9rem;line-height:1;color:var(--text)}.cart-item-controls button:disabled{color:var(--text-muted);cursor:default}.cart-item-remove{width:auto!important;border:none!important;color:var(--error);font-size:.72rem!important;font-weight:600;margin-left:.5rem;padding:0 .25rem}.cart-item-line-total{font-size:.88rem;font-weight:700;white-space:nowrap}.cart-total{display:flex;justify-content:space-between;font-size:1.05rem;font-weight:800;margin:1.5rem 0;padding-top:1.1rem;border-top:1px solid var(--border-soft)}.checkout-form{display:flex;flex-direction:column;gap:.75rem}.checkout-form input{font-family:inherit;font-size:.9rem;padding:.7rem 1rem;border:1px solid var(--border);border-radius:14px}.checkout-form input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.primary-button{font-family:inherit;font-size:.85rem;font-weight:700;padding:.75rem;border:none;border-radius:22px;background:var(--primary);color:#fff;cursor:pointer;transition:background .15s ease}.primary-button:hover:not(:disabled){background:var(--primary-dark)}.primary-button:disabled{background:var(--border);color:var(--text-muted);cursor:default}.cart-success{text-align:center;padding:2rem 0}.cart-success-id{font-family:monospace;font-size:.8rem;background:#f9fafb;padding:.6rem;border-radius:10px;margin:.5rem 0 1.5rem;word-break:break-all}.orders-list{display:flex;flex-direction:column;gap:1rem}.order-card{background:var(--surface);border:1px solid var(--border-soft);border-radius:18px;padding:1.1rem 1.35rem}.order-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.85rem;padding-bottom:.85rem;border-bottom:1px solid var(--border-soft)}.order-id{font-weight:700;font-family:monospace;font-size:.88rem}.order-meta{font-size:.78rem;color:var(--text-secondary);margin-top:.25rem}.order-total{font-weight:800}.order-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem;font-size:.85rem}.order-items li{display:flex;justify-content:space-between;color:var(--text-secondary)}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#fafbfc}.login-form{background:var(--surface);border:1px solid var(--border-soft);border-radius:24px;box-shadow:0 20px 40px #1118270f;padding:2.25rem;width:100%;max-width:340px;display:flex;flex-direction:column;gap:1rem}.login-form h1{margin:0;text-align:center;font-weight:800;letter-spacing:-.01em;color:var(--text)}.login-subtitle{margin:0 0 .5rem;text-align:center;color:var(--text-secondary);font-size:.9rem}.login-form input{font-family:inherit;font-size:.9rem;padding:.7rem 1rem;border:1px solid var(--border);border-radius:14px}.login-form input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.card-clickable{cursor:pointer}.back-link{font-family:inherit;font-size:.85rem;font-weight:600;color:var(--primary);background:none;border:none;cursor:pointer;padding:0;margin-bottom:1.5rem}.back-link:hover{text-decoration:underline}.detail{display:grid;grid-template-columns:1fr;gap:1.5rem;background:var(--surface);border:1px solid var(--border-soft);border-radius:24px;overflow:hidden}@media (min-width: 700px){.detail{grid-template-columns:1fr 1fr}}.detail-image{width:100%;height:100%;min-height:260px;object-fit:cover;background:#f7f9fc}.detail-body{padding:1.75rem 1.75rem 2.25rem;display:flex;flex-direction:column}.detail-title{font-size:1.5rem;font-weight:800;letter-spacing:-.01em;margin:.4rem 0 .85rem}.detail-price-row{display:flex;align-items:center;gap:1rem;margin-bottom:1.1rem}.detail-price{font-size:1.6rem;font-weight:800}.detail-description{color:var(--text-secondary);line-height:1.6;margin:0 0 1.4rem}.detail-add-button{width:auto;align-self:flex-start;padding:.7rem 1.75rem;margin:0 0 1.9rem}.detail-specs-title{font-size:.95rem;font-weight:800;margin:0 0 .85rem}.specs-table{border-collapse:collapse;width:100%}.specs-table tr{border-bottom:1px solid var(--border-soft)}.specs-table tr:last-child{border-bottom:none}.specs-table th,.specs-table td{text-align:left;padding:.6rem 0;font-size:.88rem;font-weight:400}.specs-table th{color:var(--text-secondary);width:45%}.specs-table td{color:var(--text)}.launcher{position:fixed;left:24px;bottom:24px;width:56px;height:56px;border-radius:50%;background:var(--primary);color:#fff;border:none;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px #2563eb59;cursor:pointer;z-index:70;transition:transform .2s ease,background .2s ease}.launcher:hover{transform:scale(1.05)}.launcher .icon-chat,.launcher .icon-close{position:absolute;transition:opacity .15s ease,transform .15s ease;display:flex}.launcher .icon-close{opacity:0;transform:rotate(-45deg)}.launcher.open .icon-chat{opacity:0;transform:rotate(45deg)}.launcher.open .icon-close{opacity:1;transform:rotate(0)}.launcher.open{background:#111827}.chat-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182773;z-index:60;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .18s ease}.chat-overlay.open{opacity:1;pointer-events:auto}.chat-panel{width:480px;max-width:calc(100vw - 48px);height:620px;max-height:calc(100vh - 80px);background:#ffffff29;backdrop-filter:blur(12px) saturate(180%);-webkit-backdrop-filter:blur(12px) saturate(180%);border:1px solid rgba(255,255,255,.5);border-radius:28px;box-shadow:0 32px 80px #1118274d;display:flex;flex-direction:column;overflow:hidden;transform:scale(.96) translateY(10px);opacity:0;transition:transform .2s ease,opacity .2s ease}.chat-overlay.open .chat-panel{transform:scale(1) translateY(0);opacity:1}.chat-header{display:flex;align-items:center;justify-content:center;padding:1.4rem 1.25rem 1.1rem;position:relative}.chat-header-left{display:flex;align-items:center;gap:.7rem}.chat-avatar{width:34px;height:34px;border-radius:11px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center}.chat-title{font-size:1rem;font-weight:800}.chat-messages{flex:1;overflow-y:auto;padding:.5rem 1.5rem 1.5rem;display:flex;flex-direction:column;gap:.9rem}.msg{max-width:78%;padding:.7rem 1rem;border-radius:16px;font-size:.88rem;line-height:1.55;white-space:pre-wrap}.msg.assistant{align-self:flex-start;background:#f3f4f6;color:var(--text);border-bottom-left-radius:4px}.msg.user{align-self:flex-end;background:var(--primary);color:#fff;border-bottom-right-radius:4px}.msg.pending{color:var(--text-muted);font-style:italic}.chat-input-row{padding:1rem 1.4rem 1.4rem;display:flex;align-items:center;gap:.6rem}.chat-textarea{flex:1;resize:none;font-family:inherit;font-size:.9rem;padding:.75rem 1.2rem;border:1px solid var(--border);border-radius:22px;height:46px}.chat-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.chat-send{width:46px;height:46px;flex-shrink:0;border-radius:50%;border:none;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.chat-send:hover:not(:disabled){background:var(--primary-dark)}.chat-send:disabled{background:var(--border);cursor:default}
