*{box-sizing:border-box}:root{--primary-color: #4a90e2;--primary-hover: #357abd;--primary-active: #2868a8;--danger-color: #e74c3c;--danger-hover: #c0392b;--success-color: #27ae60;--text-dark: #2c3e50;--text-light: #7f8c8d;--border-color: #dce1e6;--bg-light: #f8f9fa;--shadow: 0 2px 8px rgba(0, 0, 0, .1);--shadow-hover: 0 4px 12px rgba(0, 0, 0, .15)}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--text-dark);background-color:var(--bg-light);line-height:1.6}#app{min-height:100vh;display:flex;flex-direction:column}header{background:linear-gradient(135deg,var(--primary-color) 0%,var(--primary-hover) 100%);color:#fff;padding:1.5rem 2rem;box-shadow:var(--shadow)}header h1{margin:0;font-size:2rem;font-weight:600}.container{max-width:1400px;margin:0 auto;padding:2rem;display:grid;grid-template-columns:1fr 400px;gap:2rem;flex:1}h2{color:var(--text-dark);font-size:1.75rem;margin-top:0;margin-bottom:1.5rem;font-weight:600}.products-section{min-width:0}.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem}.loading,.error{grid-column:1 / -1;text-align:center;padding:3rem;color:var(--text-light);font-size:1.1rem}.error{color:var(--danger-color)}.product-card{background:#fff;border-radius:12px;padding:1.25rem;box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease;display:flex;flex-direction:column;height:100%}.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}.product-image{width:100%;height:200px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;background:#fff;border-radius:8px}.product-image img{max-width:100%;max-height:100%;object-fit:contain}.product-info{display:flex;flex-direction:column;flex:1}.product-title{font-size:1rem;margin:0 0 .75rem;color:var(--text-dark);font-weight:500;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}.product-price{font-size:1.5rem;font-weight:700;color:var(--primary-color);margin:0 0 1rem}.btn-add-to-cart{margin-top:auto;background:var(--primary-color);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s ease,transform .1s ease}.btn-add-to-cart:hover{background:var(--primary-hover)}.btn-add-to-cart:active{background:var(--primary-active);transform:scale(.98)}.btn-add-to-cart.btn-added{background:var(--success-color)}.cart-section{position:sticky;top:2rem;height:fit-content}.cart{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:var(--shadow);max-height:calc(100vh - 6rem);display:flex;flex-direction:column}.cart-empty{text-align:center;padding:3rem 1rem;color:var(--text-light)}.cart-empty p:first-child{font-size:1.2rem;margin:0 0 .5rem}.cart-hint{font-size:.9rem;margin:0}.cart-list{flex:1;overflow-y:auto;margin-bottom:1.5rem;min-height:0}.cart-item{display:flex;gap:1rem;padding:1rem;border:1px solid var(--border-color);border-radius:8px;margin-bottom:1rem;background:#fff;transition:box-shadow .2s ease}.cart-item:hover{box-shadow:0 2px 8px #00000014}.cart-item:last-child{margin-bottom:0}.cart-item-image{width:80px;height:80px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--bg-light);border-radius:6px;padding:.5rem}.cart-item-image img{max-width:100%;max-height:100%;object-fit:contain}.cart-item-details{flex:1;display:flex;flex-direction:column;min-width:0}.cart-item-title{font-size:.95rem;font-weight:500;margin:0 0 .5rem;color:var(--text-dark);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cart-item-price{font-size:1.1rem;font-weight:700;color:var(--primary-color);margin:0 0 .75rem}.cart-item-controls{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.quantity-controls{display:flex;align-items:center;gap:.5rem;background:var(--bg-light);border-radius:6px;padding:.25rem}.btn-quantity{background:#fff;border:1px solid var(--border-color);width:28px;height:28px;border-radius:4px;font-size:1.1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,border-color .2s ease;color:var(--text-dark)}.btn-quantity:hover{background:var(--primary-color);border-color:var(--primary-color);color:#fff}.btn-quantity:active{transform:scale(.95)}.quantity{min-width:30px;text-align:center;font-weight:600;color:var(--text-dark)}.btn-remove{background:transparent;border:1px solid var(--danger-color);color:var(--danger-color);padding:.4rem .75rem;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;transition:background-color .2s ease,color .2s ease}.btn-remove:hover{background:var(--danger-color);color:#fff}.btn-remove:active{background:var(--danger-hover);transform:scale(.98)}.cart-item-subtotal{font-size:.9rem;color:var(--text-light);margin:0;font-weight:500}.cart-summary{border-top:2px solid var(--border-color);padding-top:1rem}.cart-summary-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;font-size:1rem;color:var(--text-dark)}.cart-summary-row:last-child{margin-bottom:0}.cart-total{font-size:1.25rem;font-weight:700;color:var(--text-dark);margin-top:.5rem}.cart-summary-value{font-weight:700;color:var(--primary-color)}@media (max-width: 1024px){.container{grid-template-columns:1fr 350px;gap:1.5rem}.products-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.25rem}}@media (max-width: 768px){.container{grid-template-columns:1fr;padding:1.5rem}.cart-section{position:static}.cart{max-height:none}.products-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}header{padding:1.25rem 1.5rem}header h1{font-size:1.75rem}h2{font-size:1.5rem;margin-bottom:1.25rem}}@media (max-width: 480px){.container{padding:1rem}.products-grid{grid-template-columns:1fr}.cart-item{flex-direction:column}.cart-item-image{width:100%;height:150px}header{padding:1rem}header h1{font-size:1.5rem}}
