:root{--primary:#4f46e5;--primary-hover:#4338ca;--danger:#dc2626;--text:#1f2937;--text-secondary:#6b7280;--bg:#fff;--bg-secondary:#f9fafb;--border:#e5e7eb;--radius:8px;--shadow:0 1px 3px #0000001a;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,sans-serif}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{min-height:100vh}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{font-weight:600;line-height:1.25}h1{font-size:1.75rem}h2{font-size:1.25rem}h3{font-size:1.1rem}.btn,.btn-sm{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--text);cursor:pointer;justify-content:center;align-items:center;font-size:.9rem;text-decoration:none;transition:background .15s,opacity .15s;display:inline-flex}.btn{padding:.5rem 1rem}.btn-sm{padding:.3rem .6rem;font-size:.8rem}.btn:hover{background:var(--bg-secondary);text-decoration:none}.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn-primary:hover{background:var(--primary-hover)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-danger{background:var(--danger);color:#fff;border-color:var(--danger)}.btn-link{color:var(--primary);cursor:pointer;font-size:inherit;background:0 0;border:none;padding:0}.btn-link:hover{text-decoration:underline}.page{width:100%;max-width:1200px;margin:0 auto;padding:1.5rem}.layout{flex-direction:column;min-height:100vh;display:flex}.main{flex:1}.header{border-bottom:1px solid var(--border);background:var(--bg);align-items:center;gap:1.5rem;padding:.75rem 1.5rem;display:flex}.logo{color:var(--text);font-size:1.25rem;font-weight:700}.logo:hover{text-decoration:none}.nav{flex:1;gap:1rem;display:flex}.header-actions{align-items:center;gap:1rem;margin-left:auto;display:flex}.cart-link{position:relative}.cart-badge{background:var(--primary);color:#fff;border-radius:999px;justify-content:center;align-items:center;width:18px;height:18px;font-size:.7rem;display:flex;position:absolute;top:-8px;right:-12px}.user-info{color:var(--text-secondary);align-items:center;gap:.5rem;font-size:.85rem;display:flex}.home{text-align:center;padding-top:3rem}.home .greeting{color:var(--text-secondary);margin:1rem 0}.home-links{justify-content:center;gap:1rem;margin-top:2rem;display:flex}.catalog-page{gap:1.5rem;display:flex}.category-sidebar{flex-shrink:0;width:200px}.category-sidebar h3{margin-bottom:.75rem}.category-sidebar ul{list-style:none}.category-sidebar li{margin-bottom:.25rem}.category-sidebar button{text-align:left;border-radius:var(--radius);cursor:pointer;width:100%;color:var(--text);background:0 0;border:1px solid #0000;padding:.4rem .75rem;font-size:.9rem;display:block}.category-sidebar button:hover{background:var(--bg-secondary)}.category-sidebar button.active{background:var(--primary);color:#fff}.product-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;display:grid}.product-card{border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.product-card-img{background:var(--bg-secondary);justify-content:center;align-items:center;height:160px;display:flex}.product-card-img img{object-fit:contain;max-width:100%;max-height:100%}.img-placeholder{color:var(--text-secondary);font-size:.85rem}.product-card-body{padding:.75rem}.product-card-body h3{margin-bottom:.25rem;font-size:1rem}.price{color:var(--primary);font-weight:600}.stock{color:var(--text-secondary);margin:.25rem 0;font-size:.8rem}.product-card-actions{gap:.5rem;margin-top:.5rem;display:flex}.product-detail{gap:2rem;display:flex}.product-detail-img{background:var(--bg-secondary);border-radius:var(--radius);justify-content:center;align-items:center;width:400px;height:300px;display:flex}.product-detail-img img{object-fit:contain;max-width:100%;max-height:100%}.product-detail-info{flex:1}.product-detail-info .description{color:var(--text-secondary);margin:1rem 0;line-height:1.5}.cart-items{flex-direction:column;gap:.75rem;display:flex}.cart-item{border:1px solid var(--border);border-radius:var(--radius);align-items:center;gap:1rem;padding:.75rem;display:flex}.cart-item-info{flex:1}.cart-item-info h3{font-size:1rem}.cart-item-qty{align-items:center;gap:.5rem;display:flex}.cart-item-qty button{border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:4px;width:28px;height:28px;font-size:1rem}.cart-item-total{text-align:right;min-width:70px;font-weight:600}.cart-summary{justify-content:space-between;align-items:center;margin-top:1.5rem;display:flex}.checkout-items{flex-direction:column;gap:.5rem;margin:1rem 0;display:flex}.checkout-item{border-bottom:1px solid var(--border);justify-content:space-between;padding:.5rem 0;display:flex}.error{color:var(--danger);margin:.5rem 0}.orders-table,.order-items-table{border-collapse:collapse;width:100%;margin-top:1rem}.orders-table th,.orders-table td,.order-items-table th,.order-items-table td{text-align:left;border-bottom:1px solid var(--border);padding:.5rem .75rem}.orders-table th,.order-items-table th{color:var(--text-secondary);font-size:.85rem;font-weight:600}.status{border-radius:4px;padding:.15rem .5rem;font-size:.8rem;font-weight:600;display:inline-block}.spinner{border:3px solid var(--border-color,#e5e7eb);border-top-color:var(--primary,#4f46e5);border-radius:50%;width:32px;height:32px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.status-pending{color:#92400e;background:#fef3c7}.status-paid{color:#1e40af;background:#dbeafe}.status-shipped,.status-dispatched{color:#3730a3;background:#e0e7ff}.status-delivered{color:#065f46;background:#d1fae5}.status-failed,.status-cancelled,.status-payment_failed{color:#991b1b;background:#fee2e2}.status-returned,.status-reimbursed{color:#6b21a8;background:#f3e8ff}.login-page{text-align:center;padding-top:3rem}.login-page p{margin:1rem 0}
