:root{--bg:#f5f7ff;--panel:#fff;--text:#111827;--muted:#6b7280;--primary:#4f46e5;--primary-dark:#3730a3;--accent:#f97316;--green:#16a34a;--border:#11182714;--shadow:0 20px 40px #4f46e51f}*{box-sizing:border-box}html{scroll-behavior:smooth}body{color:var(--text);background:linear-gradient(#f8faff 0%,#eef3ff 100%);margin:0;font-family:Inter,sans-serif}a{text-decoration:none}button{font:inherit;cursor:pointer;border:none}.container{width:min(1180px,100% - 32px);margin:0 auto}.topbar{z-index:20;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid var(--border);background:#ffffffc7;position:sticky;top:0}.nav{justify-content:space-between;align-items:center;gap:22px;min-height:84px;display:flex}.brand{align-items:center;gap:12px;font-size:1.2rem;font-weight:800;display:flex}.brand-mark{color:#fff;width:38px;height:38px;box-shadow:var(--shadow);background:linear-gradient(135deg,#4f46e5,#8b5cf6);border-radius:12px;place-items:center;display:grid}.menu{align-items:center;gap:28px;display:flex}.menu a{color:var(--muted);font-weight:500}.nav-actions{align-items:center;gap:12px;display:flex}.ghost-btn,.secondary-btn,.primary-btn,.cart-btn,.filter{border-radius:12px;transition:all .2s}.ghost-btn{color:var(--text);background:#eef2ff;padding:12px 18px}.cart-btn{background:var(--text);color:#fff;align-items:center;gap:8px;padding:12px 18px;font-weight:600;display:inline-flex}.cart-count{color:var(--text);background:#fff;border-radius:999px;place-items:center;min-width:24px;height:24px;font-size:.8rem;font-weight:700;display:inline-grid}.hero{grid-template-columns:1.1fr .9fr;align-items:center;gap:34px;padding:60px 0 40px;display:grid}.tag,.eyebrow{color:var(--primary);letter-spacing:.05em;text-transform:uppercase;background:#4f46e514;border-radius:999px;padding:8px 14px;font-size:.78rem;font-weight:700;display:inline-block}.hero-text h1{letter-spacing:-.06em;margin:18px 0 16px;font-size:clamp(2.6rem,4vw,4.5rem);line-height:1.02}.hero-text p{max-width:560px;color:var(--muted);margin:0;font-size:1.05rem;line-height:1.75}.hero-actions{gap:16px;margin-top:26px;display:flex}.primary-btn,.secondary-btn{border-radius:14px;justify-content:center;align-items:center;min-height:52px;padding:0 24px;font-weight:700;display:inline-flex}.primary-btn{background:linear-gradient(135deg, var(--primary), var(--primary-dark));color:#fff;box-shadow:var(--shadow)}.secondary-btn{color:var(--text);background:#eef2ff}.hero-stats{flex-wrap:wrap;gap:34px;margin:28px 0 0;padding:0;list-style:none;display:flex}.hero-stats li{flex-direction:column;gap:4px;display:flex}.hero-stats strong{font-size:1.4rem}.hero-stats span{color:var(--muted);font-size:.9rem}.hero-showcase{justify-content:center;align-items:center;min-height:420px;display:flex;position:relative}.showcase-card{box-shadow:var(--shadow);background:#ffffffdb;border:1px solid #fffc;border-radius:28px}.showcase-card.main{width:min(420px,100%);padding:24px;position:relative;overflow:hidden}.showcase-card.main:before{content:"";background:#4f46e514;border-radius:50%;width:220px;height:220px;position:absolute;inset:-30% auto auto -15%}.showcase-badge{color:#dc2626;background:#feebeb;border-radius:999px;padding:8px 12px;font-weight:700;position:absolute;top:20px;right:20px}.device-icon{background:linear-gradient(135deg,#eef2ff,#f5f3ff);border-radius:24px;place-items:center;width:150px;height:150px;margin:60px auto 20px;font-size:5rem;display:grid;position:relative}.mini-label{color:var(--muted);margin:0;font-size:.84rem}.showcase-card h3{margin:8px 0 18px;font-size:clamp(1.6rem,2vw,2.3rem)}.price-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.showcase-buy{width:100%;margin-top:22px}.old-price{color:var(--muted);font-size:.92rem;text-decoration:line-through}.showcase-card.floating{color:#fff;background:linear-gradient(135deg,#111827,#1f2937);flex-direction:column;gap:8px;padding:18px 20px;display:flex;position:absolute;bottom:28px;right:0}.showcase-card.floating p{color:#ffffffb3;margin:0;font-size:.8rem}.showcase-card.floating strong{font-size:1.5rem}.promo-strip{color:#fff;background:#111827;padding:20px 0}.promo-items{text-align:center;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;font-weight:600;display:grid}.catalog{padding:54px 0 90px}.section-header{justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;display:flex}.section-header h2{letter-spacing:-.05em;margin:10px 0 0;font-size:clamp(2rem,3vw,2.8rem)}.filter-group{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.filter-field{color:var(--muted);flex-direction:column;gap:7px;font-size:.76rem;font-weight:700;display:flex}.filter-field span{justify-content:space-between;gap:10px;display:flex}.filter-field strong{color:var(--text)}.filter-field input,.filter-field select{border:1px solid var(--border);min-width:150px;min-height:42px;color:var(--text);font:inherit;background:#fff;border-radius:10px;padding:0 11px}.filter-field input[type=range]{min-width:170px;accent-color:var(--primary);padding:0}.filter-field.search-field input{min-width:190px}.results-count{color:var(--muted);margin:0 0 16px;font-size:.9rem}.empty-results{border:1px dashed var(--border);color:var(--muted);text-align:center;border-radius:18px;grid-column:1/-1;margin:20px 0;padding:42px 20px}.filter{color:var(--muted);border:1px solid var(--border);background:#fff;padding:10px 16px}.filter.active{color:var(--primary);background:#eef2ff}.products-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;display:grid}.product-card{background:#ffffffeb;border:1px solid #1118270d;border-radius:24px;padding:18px;box-shadow:0 12px 28px #1118270a}.product-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.product-badge{color:var(--primary);background:#4f46e514;border-radius:999px;align-items:center;padding:7px 10px;font-size:.72rem;font-weight:700;display:inline-flex}.favorite-btn{background:#1118270a;border:none;border-radius:50%;width:34px;height:34px;font-size:1.2rem}.favorite-btn.active{color:#ef4444;background:#ef44441f}.product-visual{border-radius:18px;place-items:center;width:100%;height:190px;margin-top:18px;font-size:5rem;display:grid}.product-body{margin-top:18px}.category{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:0 0 8px;font-size:.76rem}.product-body h3{margin:0 0 14px;font-size:1.3rem}.rating-box{color:#f59e0b;align-items:center;gap:8px;margin-bottom:18px;font-weight:700;display:flex}.rating-box small{color:var(--muted);font-weight:600}.price-box{justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;display:flex}.new-price{color:var(--text);font-size:1.6rem;font-weight:800}.product-actions{gap:10px;display:flex}.add-cart,.buy-now{flex:1}.checkout-panel{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-left:1px solid var(--border);z-index:50;background:#fffffffa;flex-direction:column;width:min(860px,100%);height:100vh;max-height:100vh;transition:transform .25s;display:flex;position:fixed;top:0;right:0;overflow:hidden;transform:translate(100%);box-shadow:-18px 0 38px #0f172a14}.checkout-panel.open{transform:translate(0)}.checkout-layout{grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid}.checkout-payment,.checkout-cart-column{flex-direction:column;min-width:0;display:flex}.checkout-payment{border-right:1px solid var(--border)}.checkout-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:22px 22px 12px;display:flex}.checkout-header h3{margin:0;font-size:1.5rem}.checkout-header button{background:#f3f4f6;border-radius:50%;width:36px;height:36px;font-size:1.6rem}.checkout-summary{background:#fff;flex:1;padding:20px 22px 28px}.cart-items{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;flex:auto;min-height:0;padding:18px 22px;overflow:hidden auto}.cart-items::-webkit-scrollbar{width:8px}.cart-items::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.empty-cart{color:var(--muted);margin:0}.cart-item{border-bottom:1px solid var(--border);grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:14px 0;display:grid}.cart-item-info{gap:4px;display:grid}.cart-item strong{margin-bottom:4px;display:block}.cart-item small{color:var(--muted)}.cart-item-controls{background:#f3f4f6;border-radius:999px;align-items:center;gap:8px;padding:6px 8px;display:inline-flex}.qty-btn{width:22px;height:22px;color:var(--text);background:#fff;border-radius:50%;font-weight:700}.qty-value{text-align:center;min-width:18px;font-weight:700}.cart-item-total{font-weight:700}.checkout-summary{border-top:1px solid var(--border);background:#fff;padding:20px 22px 28px}.checkout-summary>div:first-child{justify-content:space-between;align-items:center;margin-bottom:18px;font-size:1.1rem;display:flex}.checkout-summary strong{font-size:1.8rem}.payment-methods{gap:10px;margin-bottom:18px;display:grid}.payment-methods label{color:var(--text);background:#f9fafb;border-radius:12px;align-items:center;gap:8px;padding:12px 14px;display:flex}.full{width:100%}.toast{color:#fff;opacity:0;pointer-events:none;z-index:99;background:#111827f0;border-radius:999px;padding:12px 18px;font-size:.9rem;transition:all .25s;position:fixed;bottom:30px;left:50%;transform:translate(-50%)translateY(20px)}.toast.visible{opacity:1;transform:translate(-50%)translateY(0)}.success-modal{text-align:center;max-width:340px}.success-icon{color:#fff;background:linear-gradient(135deg,#22c55e,#16a34a);border-radius:50%;place-items:center;width:72px;height:72px;margin:0 auto 18px;font-size:2rem;font-weight:800;display:grid}.success-modal h3{margin:0 0 10px;font-size:1.8rem}.success-modal p{color:var(--muted);margin:0 0 20px;line-height:1.6}.hidden{display:none!important}.profile-btn,.logout-btn{font-weight:600}.modal-overlay{opacity:0;visibility:hidden;z-index:100;background:#11182770;place-items:center;transition:all .2s;display:grid;position:fixed;inset:0}.modal-overlay.open{opacity:1;visibility:visible}.modal{background:#fff;border-radius:24px;width:min(420px,100% - 24px);padding:24px;box-shadow:0 20px 50px #11182733}.modal-header{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.modal-header h3{margin:0;font-size:1.6rem}.modal-header button{background:#f3f4f6;border-radius:50%;width:36px;height:36px;font-size:1.5rem}.login-form{gap:16px;display:grid}.login-form label{color:var(--text);gap:8px;font-weight:600;display:grid}.login-form input{border:1px solid var(--border);width:100%;min-height:48px;font:inherit;background:#f9fafb;border-radius:12px;padding:0 14px}.login-form input:focus{border-color:#4f46e566;outline:2px solid #4f46e526}.login-message{min-height:20px;margin:0;font-size:.9rem;font-weight:600}.payment-form{gap:12px;margin:18px 0;display:grid}.payment-form input{border:1px solid var(--border);width:100%;min-height:44px;font:inherit;background:#f9fafb;border-radius:12px;padding:0 12px}.form-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}@media (width<=980px){.hero{grid-template-columns:1fr}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.menu{display:none}.promo-items,.products-grid{grid-template-columns:1fr}.section-header{flex-direction:column;align-items:flex-start}.filter-group{align-items:stretch;width:100%}.filter-field,.filter-field input,.filter-field select,.filter-field.search-field input{width:100%}.hero-actions,.product-actions{flex-direction:column}.topbar{position:static}}
