:root{--bg:#f6f7f9;--surface:#fff;--surface-soft:#f0f3f6;--text:#1f2933;--muted:#687382;--border:#dde3ea;--primary:#2563eb;--primary-dark:#1d4ed8;--primary-soft:#eaf1ff;--danger:#dc2626;--danger-soft:#fff1f2;--shadow:0 18px 45px #1f293314;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{border:0}#root{min-height:100vh}.page-shell{width:min(1120px,100% - 32px);margin:0 auto;padding:24px 0 56px}.navbar{border:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffe6;border-radius:8px;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;padding:14px 18px;display:flex;box-shadow:0 10px 30px #1f29330f}.nav-left h1{color:var(--text);margin:0;font-size:26px;line-height:1}.nav-right{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.nav-link,.h-text{color:inherit;text-decoration:none}.nav-link{min-height:40px;color:var(--muted);border-radius:8px;align-items:center;padding:8px 12px;font-size:15px;font-weight:600;transition:background-color .16s,color .16s;display:inline-flex}.nav-link p{margin:0}.nav-link:hover{color:var(--primary);background:var(--primary-soft)}.hero-section{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:8px;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);align-items:center;gap:32px;margin-bottom:28px;padding:40px;display:grid}.hero-section h1{max-width:640px;color:var(--text);letter-spacing:0;margin:8px 0 12px;font-size:clamp(34px,6vw,58px);line-height:1.02}.hero-copy{max-width:540px;color:var(--muted);margin:0;font-size:18px;line-height:1.6}.hero-section img{object-fit:cover;background:var(--surface-soft);border-radius:8px;width:100%;min-height:260px;max-height:360px}.eyebrow{color:var(--primary);letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:13px;font-weight:800}.products-section{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:8px;padding:28px}.section-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px;display:flex}.section-heading h2,.cart-header h2{color:var(--text);margin:6px 0 0;font-size:28px;line-height:1.2}.search-box{width:min(360px,100%);min-height:46px;color:var(--text);background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;outline:none;padding:0 14px;transition:border-color .16s,box-shadow .16s,background-color .16s}.catalog-controls{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.filter-select{min-height:46px;color:var(--text);background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;outline:none;padding:0 14px}.category-tabs{flex-wrap:wrap;gap:10px;margin-bottom:22px;display:flex}.category-tab{min-height:38px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border);cursor:pointer;border-radius:999px;padding:0 14px;font-weight:800}.category-tab.active,.category-tab:hover{color:#fff;background:var(--primary);border-color:var(--primary)}.search-box:focus{background:var(--surface);border-color:var(--primary);box-shadow:0 0 0 4px #2563eb1f}.products-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;flex-direction:column;min-height:100%;transition:transform .16s,box-shadow .16s,border-color .16s;display:flex;overflow:hidden}.product-card:hover{border-color:#c8d4e3;transform:translateY(-3px);box-shadow:0 14px 34px #1f29331a}.product-image-wrap{position:relative}.product-badge{z-index:1;color:#fff;background:#1f2933db;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;position:absolute;top:12px;left:12px}.product-card img{aspect-ratio:4/3;object-fit:cover;background:var(--surface-soft);width:100%}.product-content{flex-direction:column;flex:1;gap:10px;padding:16px;display:flex}.product-name{color:var(--text);margin:0;font-size:18px;font-weight:800}.product-meta-row,.price-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.product-meta-row{color:var(--muted);font-size:13px;font-weight:800}.price-row strong{color:var(--text);font-size:20px}.price-row span,.details-price span{color:var(--muted);font-weight:700;text-decoration:line-through}.stock-text{color:#15803d;margin:0;font-size:13px;font-weight:800}.low-stock{color:#b45309}.product-description{color:var(--muted);flex:1;margin:0;font-size:14px;line-height:1.55}.button,.secondary-button,.quantity-button,.remove-button{cursor:pointer;border-radius:8px;min-height:42px;font-weight:700;transition:background-color .16s,color .16s,transform .16s,box-shadow .16s}.button{color:#fff;background:var(--primary);width:100%;padding:0 16px;box-shadow:0 10px 20px #2563eb2e}.button:hover{background:var(--primary-dark);transform:translateY(-1px)}.secondary-button{width:100%;color:var(--primary);background:var(--primary-soft);border:1px solid #c7d7fe;justify-content:center;align-items:center;padding:0 16px;text-decoration:none;display:inline-flex}.secondary-button:hover{color:#fff;background:var(--primary)}.empty-state{color:var(--muted);text-align:center;background:var(--surface-soft);border:1px dashed #cbd5e1;border-radius:8px;grid-column:1/-1;margin:0;padding:34px}.cart-page{place-items:start center;display:grid}.cart-panel{background:var(--surface);border:1px solid var(--border);width:min(760px,100%);box-shadow:var(--shadow);border-radius:8px;padding:28px}.cart-header{margin-bottom:22px}.cart-list{gap:12px;display:grid}.cart-item{background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:18px;padding:14px;display:flex}.cart-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.cart-item-price{color:var(--muted);margin:6px 0 0;font-size:14px;font-weight:600}.cart-helper,.cart-item-category{color:var(--muted);margin:6px 0 0;font-size:14px}.checkout-card,.success-card{border:1px solid var(--border);background:#fff;border-radius:8px;gap:12px;margin-top:16px;padding:16px;display:grid}.checkout-card label{color:var(--text);font-weight:800}.promo-row,.checkout-actions{align-items:center;gap:10px;display:flex}.promo-row .search-box{width:100%}.promo-row .secondary-button,.checkout-actions .remove-button{white-space:nowrap;width:auto}.summary-row{color:var(--muted);justify-content:space-between;gap:16px;font-weight:700;display:flex}.summary-row strong{color:var(--text)}.success-card h3{color:#15803d;margin:0;font-size:24px}.success-card p{color:var(--muted);margin:0;line-height:1.6}.quantity-button{width:42px;color:var(--primary);background:#fff;border:1px solid #cbd5e1}.quantity-button:hover{color:#fff;background:var(--primary)}.quantity-value{min-width:36px;min-height:42px;color:var(--text);place-items:center;font-weight:800;display:inline-grid}.remove-button{color:var(--danger);background:var(--danger-soft);border:1px solid #fecdd3;padding:0 14px}.remove-button:hover{color:#fff;background:var(--danger)}.cart-total{color:var(--text);border:1px solid var(--border);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:16px;padding:16px 14px;font-size:20px;font-weight:800;display:flex}.cart-total strong{color:var(--primary)}.btn-decor{color:#fff;background:var(--primary);cursor:pointer;border-radius:8px;min-width:42px;min-height:40px;margin:5px}.counter-text{color:var(--text);font-weight:700}.details-panel{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:8px;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);align-items:center;gap:30px;padding:32px;display:grid}.details-image-wrap{background:var(--surface-soft);border:1px solid var(--border);border-radius:8px;overflow:hidden}.details-image-wrap img{aspect-ratio:4/3;object-fit:cover;width:100%;display:block}.details-content h2{color:var(--text);margin:8px 0 12px;font-size:clamp(30px,5vw,48px);line-height:1.08}.details-description{color:var(--muted);margin:0;font-size:17px;line-height:1.7}.details-meta,.details-price,.feature-list{flex-wrap:wrap;gap:10px;margin:14px 0;display:flex}.details-meta span,.feature-list span{color:var(--text);background:var(--surface-soft);border:1px solid var(--border);border-radius:999px;padding:8px 10px;font-size:13px;font-weight:800}.details-price{align-items:baseline}.details-price strong{color:var(--primary);font-size:30px}.details-actions{gap:12px;margin-top:24px;display:flex}.details-actions .button,.details-actions .secondary-button{width:auto}.text-link{color:var(--primary);margin-top:18px;font-weight:700;text-decoration:none;display:inline-flex}.text-link:hover{text-decoration:underline}.auth-page{place-items:start center;display:grid}.auth-card{background:var(--surface);border:1px solid var(--border);width:min(520px,100%);box-shadow:var(--shadow);border-radius:8px;padding:30px}.auth-card h2{color:var(--text);margin:8px 0 10px;font-size:clamp(32px,5vw,46px);line-height:1.08}.auth-copy{color:var(--muted);margin:0 0 22px;line-height:1.6}.auth-form{gap:12px;display:grid}.auth-form label{color:var(--text);font-weight:800}.auth-form .search-box{width:100%}.auth-error{color:var(--danger);background:var(--danger-soft);border:1px solid #fecdd3;border-radius:8px;margin:0;padding:10px 12px;font-size:14px;font-weight:700}.profile-page{place-items:start center;display:grid}.profile-card{background:var(--surface);border:1px solid var(--border);width:min(620px,100%);box-shadow:var(--shadow);border-radius:8px;padding:30px}.profile-card h2{color:var(--text);margin:8px 0 18px;font-size:clamp(32px,5vw,46px);line-height:1.08}.profile-avatar{color:#fff;background:var(--primary);border-radius:50%;place-items:center;width:74px;height:74px;margin-bottom:18px;font-size:30px;font-weight:900;display:grid}.profile-info{border-top:1px solid var(--border);gap:4px;padding:14px 0;display:grid}.profile-info span{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:13px;font-weight:800}.profile-info strong{color:var(--text);overflow-wrap:anywhere}.profile-actions{gap:12px;margin-top:18px;display:flex}.profile-actions .secondary-button,.profile-actions .remove-button{width:auto}.scroll-top-button{z-index:20;color:#fff;background:var(--primary);cursor:pointer;border-radius:8px;place-items:center;width:46px;height:46px;font-size:24px;font-weight:900;line-height:1;transition:background-color .16s,transform .16s;display:inline-grid;position:fixed;bottom:24px;right:24px;box-shadow:0 14px 34px #1f293333}.scroll-top-button:hover{background:var(--primary-dark);transform:translateY(-2px)}@media (width<=820px){.page-shell{width:min(100% - 20px,1120px);padding-top:10px}.navbar,.section-heading,.cart-item{flex-direction:column;align-items:stretch}.nav-right{justify-content:flex-start}.hero-section{grid-template-columns:1fr;padding:24px}.hero-section img{min-height:210px}.products-section,.cart-panel{padding:18px}.products-grid{grid-template-columns:1fr}.search-box{width:100%}.catalog-controls,.promo-row,.checkout-actions,.profile-actions{flex-direction:column;align-items:stretch}.filter-select,.promo-row .secondary-button,.checkout-actions .remove-button,.profile-actions .secondary-button,.profile-actions .remove-button{width:100%}.cart-actions{justify-content:flex-start}.details-panel{grid-template-columns:1fr;padding:18px}.details-actions{flex-direction:column}.scroll-top-button{bottom:14px;right:14px}}@media (width>=821px) and (width<=1040px){.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
