:root{color-scheme:dark;--bg: #0b0d10;--surface: #161a20;--surface-elevated: #1d232b;--text: #f4f7fb;--muted: #8b93a7;--accent: #2aabee;--accent-soft: rgba(42, 171, 238, .14);--border: #2a313c;--danger: #ff453a;--radius-lg: 20px;--radius-md: 14px;--safe-bottom: 88px;--shadow: 0 10px 30px rgba(0, 0, 0, .28);font-family:SF Pro Display,Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{-webkit-font-smoothing:antialiased}button,input,select{font:inherit}.app-shell{min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(1200px 500px at 50% -120px,rgba(42,171,238,.12),transparent 60%),var(--bg)}.auth-banner{margin:12px 16px 0;padding:10px 14px;border-radius:12px;background:var(--accent-soft);border:1px solid rgba(42,171,238,.35);color:var(--text);font-size:.85rem;line-height:1.35}.app-content{flex:1;padding:20px 16px var(--safe-bottom)}.page{display:flex;flex-direction:column;gap:16px;animation:fade-up .28s ease}.page-header h1,.page h1{margin:0;font-size:1.6rem;font-weight:700;letter-spacing:-.02em}.page p{margin:0;color:var(--muted)}.muted{color:var(--muted)}.back-link{width:fit-content;color:var(--accent);text-decoration:none;font-size:.95rem;font-weight:600}.search-bar{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--border)}.search-bar__icon{color:var(--muted);font-size:1.1rem}.search-bar__input{width:100%;border:0;outline:0;background:transparent;color:var(--text)}.category-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.category-chips::-webkit-scrollbar{display:none}.category-chip{flex:0 0 auto;border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:999px;padding:8px 14px;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease}.category-chip.is-active{background:var(--accent-soft);border-color:#2aabee80;color:var(--accent)}.toolbar{display:flex;justify-content:flex-end}.sort-select{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.9rem}.sort-select__control{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:12px;padding:8px 10px}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow);transition:transform .18s ease}.product-card:active{transform:scale(.98)}.product-card__media{display:block;aspect-ratio:1 / 1;background:var(--surface-elevated)}.product-card__image{width:100%;height:100%;object-fit:cover;display:block}.product-card__placeholder,.gallery__main,.gallery__thumb,.cart-item__media{background:linear-gradient(145deg,rgba(42,171,238,.18),transparent 55%),var(--surface-elevated)}.product-card__placeholder{width:100%;height:100%}.product-card__body{display:flex;flex-direction:column;gap:8px;padding:12px}.product-card__title{color:var(--text);text-decoration:none;font-size:.95rem;font-weight:600;line-height:1.3}.product-card__description{color:var(--muted);font-size:.8rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.2em}.product-card__footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px}.product-card__price{font-weight:700;font-size:.95rem}.btn{border:0;border-radius:14px;padding:14px 16px;font-weight:700;cursor:pointer;transition:transform .16s ease,opacity .16s ease}.btn:active{transform:scale(.98)}.btn--primary{background:var(--accent);color:#041018}.btn--compact{padding:8px 10px;border-radius:12px;font-size:.78rem;white-space:nowrap}.btn--block{width:100%}.empty-state{text-align:center;padding:28px 12px;border:1px dashed var(--border);border-radius:var(--radius-lg);background:#ffffff05}.empty-state__title{margin:0 0 8px;font-size:1.05rem}.empty-state__description{margin:0;color:var(--muted);font-size:.9rem}.gallery{display:flex;flex-direction:column;gap:10px}.gallery__main{width:100%;aspect-ratio:1 / 1;border-radius:var(--radius-lg);border:1px solid var(--border)}.gallery__thumbs{display:flex;gap:8px}.gallery__thumb{width:56px;height:56px;border-radius:12px;border:1px solid var(--border);opacity:.7}.gallery__thumb.is-active{opacity:1;border-color:var(--accent)}.product-detail{display:flex;flex-direction:column;gap:10px}.product-detail__category{color:var(--accent);font-size:.85rem;font-weight:600}.product-detail__price{color:var(--text)!important;font-size:1.4rem;font-weight:700}.product-detail__stock{font-size:.9rem}.product-detail__description{line-height:1.5}.product-detail__specs{margin-top:8px;padding:14px;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--border)}.product-detail__specs h2{margin:0 0 10px;font-size:1rem}.product-detail__specs ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.product-detail__specs li{display:flex;justify-content:space-between;gap:12px;color:var(--muted)}.product-detail__specs strong{color:var(--text);font-weight:600}.sticky-action{position:sticky;bottom:calc(var(--safe-bottom) - 12px);padding-top:8px}.cart-item{display:grid;grid-template-columns:88px 1fr;gap:12px;padding:12px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow)}.cart-item__media{width:88px;height:88px;border-radius:14px}.cart-item__body{display:flex;flex-direction:column;gap:8px}.cart-item__title{margin:0;font-size:1rem}.cart-item__price{color:var(--text)!important;font-weight:700}.cart-item__controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.qty-stepper{display:inline-flex;align-items:center;gap:8px;padding:4px;border-radius:12px;background:var(--surface-elevated);border:1px solid var(--border)}.qty-stepper__btn{width:32px;height:32px;border:0;border-radius:10px;background:var(--surface);color:var(--text);cursor:pointer}.qty-stepper__value{min-width:18px;text-align:center;font-weight:700}.text-button{border:0;background:transparent;color:var(--danger);cursor:pointer;font-size:.85rem;font-weight:600}.cart-summary{margin-top:8px;padding:16px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:14px}.cart-summary__row{display:flex;justify-content:space-between;align-items:center;font-size:1.05rem}.profile-hero{display:flex;align-items:center;gap:14px}.profile-hero__avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;border:2px solid rgba(42,171,238,.45)}.profile-hero__avatar--placeholder{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:1.5rem;font-weight:700}.profile-hero__name{margin:0 0 4px;font-size:1.25rem}.profile-card{padding:16px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:12px}.profile-card p{display:flex;flex-direction:column;gap:4px;color:var(--text)}.profile-card .muted{font-size:.8rem}.profile-section{display:flex;flex-direction:column;gap:8px}.profile-section h2{margin:0;font-size:1rem}.profile-section__box{padding:14px;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--border)}.bottom-nav{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#161a20f0;border-top:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.bottom-nav__link{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;color:var(--muted);text-decoration:none;font-size:.75rem;border-radius:12px;transition:background .16s ease,color .16s ease}.bottom-nav__link.active{color:var(--accent);background:var(--accent-soft)}@keyframes fade-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:640px){.app-content{width:min(480px,100%);margin:0 auto}.bottom-nav{left:50%;right:auto;width:min(480px,100%);transform:translate(-50%);border-radius:16px 16px 0 0}}
