:root{--primary: #10b981;--primary-dark: #059669;--primary-light: #34d399;--secondary: #6b7280;--background: #f9fafb;--surface: #ffffff;--text: #111827;--text-light: #6b7280;--border: #e5e7eb;--error: #ef4444;--success: #10b981;--warning: #f59e0b}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--background);color:var(--text);line-height:1.6}.app{min-height:100vh;display:flex;flex-direction:column}.main-content{flex:1;padding-top:80px}.navbar{position:fixed;top:0;left:0;right:0;height:70px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 2rem;z-index:100}.navbar-logo{display:flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--primary);font-size:1.5rem;font-weight:700}.navbar-logo span{font-size:1.8rem}.navbar-actions{display:flex;align-items:center;gap:1rem}.navbar-user{display:flex;align-items:center;gap:.75rem}.navbar-user img{width:36px;height:36px;border-radius:50%}.navbar-user-info{display:flex;flex-direction:column;line-height:1.2}.navbar-user-name{font-size:.9rem;font-weight:500}.navbar-user-discount{font-size:.75rem;color:var(--primary)}.cart-btn{position:relative;background:var(--primary);color:#fff;border:none;padding:.75rem 1.25rem;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:.5rem;font-weight:500;transition:background .2s}.cart-btn:hover{background:var(--primary-dark)}.cart-badge{background:#fff;color:var(--primary);font-size:.75rem;font-weight:700;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center}.btn{padding:.75rem 1.5rem;border-radius:8px;border:none;font-weight:500;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-secondary{background:var(--border);color:var(--text)}.btn-secondary:hover{background:#d1d5db}.btn-outline{background:transparent;border:2px solid var(--primary);color:var(--primary)}.btn-outline:hover{background:var(--primary);color:#fff}.btn-sm{padding:.5rem 1rem;font-size:.875rem}.btn-lg{padding:1rem 2rem;font-size:1.1rem}.btn:disabled{opacity:.5;cursor:not-allowed}.form-group{margin-bottom:1rem}.form-label{display:block;font-weight:500;margin-bottom:.5rem;color:var(--text)}.form-input{width:100%;padding:.75rem 1rem;border:2px solid var(--border);border-radius:8px;font-size:1rem;transition:border-color .2s}.form-input:focus{outline:none;border-color:var(--primary)}.form-input::placeholder{color:var(--text-light)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.hero{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);padding:4rem 2rem;text-align:center;color:#fff}.hero h1{font-size:2.5rem;margin-bottom:1rem}.hero p{font-size:1.2rem;opacity:.9;max-width:600px;margin:0 auto}.products-section{padding:3rem 2rem;max-width:1200px;margin:0 auto}.section-title{font-size:1.75rem;margin-bottom:2rem;text-align:center}.category-filters{display:flex;justify-content:center;gap:.5rem;margin-bottom:2rem;flex-wrap:wrap}.category-btn{padding:.5rem 1rem;border-radius:20px;border:2px solid var(--border);background:var(--surface);cursor:pointer;transition:all .2s}.category-btn:hover,.category-btn.active{border-color:var(--primary);background:var(--primary);color:#fff}.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem}.product-card{background:var(--surface);border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000000d;transition:transform .2s,box-shadow .2s}.product-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0000001a}.product-card-image{width:100%;height:200px;background:linear-gradient(135deg,#e8f5e9,#c8e6c9);display:flex;align-items:center;justify-content:center;font-size:4rem}.product-card-content{padding:1.25rem}.product-card-category{font-size:.75rem;color:var(--primary);text-transform:uppercase;letter-spacing:.5px;font-weight:600}.product-card-title{font-size:1.1rem;margin:.5rem 0;color:var(--text)}.product-card-desc{font-size:.875rem;color:var(--text-light);margin-bottom:1rem}.product-card-footer{display:flex;align-items:center;justify-content:space-between}.product-card-price{font-size:1.25rem;font-weight:700;color:var(--primary)}.product-card-price small{font-size:.875rem;font-weight:400}.product-detail{max-width:1000px;margin:2rem auto;padding:0 2rem}.product-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;background:var(--surface);border-radius:16px;overflow:hidden;box-shadow:0 4px 16px #0000000d}.product-detail-image{height:400px;background:linear-gradient(135deg,#e8f5e9,#c8e6c9);display:flex;align-items:center;justify-content:center;font-size:8rem}.product-detail-content{padding:2rem;display:flex;flex-direction:column}.product-detail-category{font-size:.875rem;color:var(--primary);text-transform:uppercase;letter-spacing:.5px;font-weight:600}.product-detail-title{font-size:2rem;margin:.5rem 0 1rem}.product-detail-desc{color:var(--text-light);flex:1;line-height:1.8}.product-detail-price{font-size:2rem;font-weight:700;color:var(--primary);margin:1.5rem 0}.product-detail-stock{font-size:.875rem;color:var(--text-light);margin-bottom:1rem}.product-detail-stock.low{color:var(--warning)}.quantity-selector{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.quantity-selector label{font-weight:500}.quantity-input{display:flex;align-items:center;border:2px solid var(--border);border-radius:8px;overflow:hidden}.quantity-input button{width:40px;height:40px;border:none;background:var(--background);cursor:pointer;font-size:1.25rem;transition:background .2s}.quantity-input button:hover{background:var(--border)}.quantity-input input{width:60px;height:40px;border:none;text-align:center;font-size:1rem;font-weight:500}.quantity-input input:focus{outline:none}.cart-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:200;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.cart-overlay.open{opacity:1;visibility:visible}.cart-drawer{position:fixed;top:0;right:0;width:400px;max-width:100%;height:100%;background:var(--surface);z-index:201;transform:translate(100%);transition:transform .3s;display:flex;flex-direction:column}.cart-overlay.open .cart-drawer{transform:translate(0)}.cart-header{padding:1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.cart-header h2{font-size:1.25rem}.cart-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--text-light)}.cart-items{flex:1;overflow-y:auto;padding:1rem}.cart-empty{text-align:center;padding:3rem 1rem;color:var(--text-light)}.cart-empty span{font-size:4rem;display:block;margin-bottom:1rem}.cart-item{display:flex;gap:1rem;padding:1rem;border-bottom:1px solid var(--border)}.cart-item-image{width:60px;height:60px;background:linear-gradient(135deg,#e8f5e9,#c8e6c9);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.5rem}.cart-item-info{flex:1}.cart-item-name{font-weight:500;margin-bottom:.25rem}.cart-item-price{color:var(--text-light);font-size:.875rem}.cart-item-actions{display:flex;align-items:center;gap:.5rem;margin-top:.5rem}.cart-item-qty{display:flex;align-items:center;border:1px solid var(--border);border-radius:4px}.cart-item-qty button{width:28px;height:28px;border:none;background:none;cursor:pointer}.cart-item-qty span{width:32px;text-align:center;font-weight:500}.cart-item-remove{color:var(--error);background:none;border:none;cursor:pointer;font-size:.875rem;margin-left:auto}.cart-footer{padding:1.5rem;border-top:1px solid var(--border)}.cart-summary{margin-bottom:1rem}.cart-summary-row{display:flex;justify-content:space-between;margin-bottom:.5rem;color:var(--text-light)}.cart-summary-row.total{font-size:1.25rem;font-weight:700;color:var(--text);padding-top:.5rem;border-top:1px solid var(--border)}.cart-discount-info{background:#ecfdf5;color:var(--primary-dark);padding:.75rem;border-radius:8px;text-align:center;margin-bottom:1rem;font-size:.875rem}.checkout-page{max-width:800px;margin:2rem auto;padding:0 2rem}.checkout-grid{display:grid;grid-template-columns:1fr 380px;gap:2rem}.checkout-form{background:var(--surface);padding:2rem;border-radius:12px;box-shadow:0 2px 8px #0000000d}.checkout-form h2{margin-bottom:1.5rem;font-size:1.25rem}.checkout-summary{background:var(--surface);padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000000d;height:fit-content;position:sticky;top:90px}.checkout-summary h3{margin-bottom:1rem;font-size:1.1rem}.checkout-item{display:flex;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--border)}.checkout-item-image{width:50px;height:50px;background:linear-gradient(135deg,#e8f5e9,#c8e6c9);border-radius:6px;display:flex;align-items:center;justify-content:center}.checkout-item-info{flex:1}.checkout-item-name{font-size:.9rem;font-weight:500}.checkout-item-qty{font-size:.8rem;color:var(--text-light)}.checkout-item-price{font-weight:500}.order-confirmation{max-width:600px;margin:3rem auto;padding:0 2rem;text-align:center}.order-success-icon{width:80px;height:80px;background:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem;color:#fff;font-size:2.5rem}.order-confirmation h1{color:var(--primary);margin-bottom:.5rem}.order-number{font-size:1.25rem;color:var(--text-light);margin-bottom:2rem}.order-details{background:var(--surface);border-radius:12px;padding:2rem;text-align:left;margin-bottom:2rem}.order-detail-section{margin-bottom:1.5rem}.order-detail-section h3{font-size:.875rem;color:var(--text-light);text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem}.my-orders{max-width:800px;margin:2rem auto;padding:0 2rem}.order-card{background:var(--surface);border-radius:12px;padding:1.5rem;margin-bottom:1rem;box-shadow:0 2px 8px #0000000d}.order-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.order-status{padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:uppercase}.order-status.pending{background:#fef3c7;color:#92400e}.order-status.confirmed{background:#dbeafe;color:#1e40af}.order-status.shipped{background:#e0e7ff;color:#3730a3}.order-status.delivered{background:#d1fae5;color:#065f46}.login-prompt{background:linear-gradient(135deg,#ecfdf5,#d1fae5);padding:1.5rem;border-radius:12px;text-align:center;margin:2rem}.login-prompt h3{color:var(--primary-dark);margin-bottom:.5rem}.login-prompt p{color:var(--text-light);margin-bottom:1rem}.footer{background:var(--surface);border-top:1px solid var(--border);padding:2rem;text-align:center;color:var(--text-light);margin-top:auto}.loading{display:flex;align-items:center;justify-content:center;padding:4rem}.spinner{width:40px;height:40px;border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.alert{padding:1rem 1.25rem;border-radius:8px;margin-bottom:1rem}.alert-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.alert-success{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}@media (max-width: 768px){.navbar{padding:0 1rem}.navbar-user-info{display:none}.hero h1{font-size:1.75rem}.product-detail-grid{grid-template-columns:1fr}.product-detail-image{height:250px}.checkout-grid{grid-template-columns:1fr}.checkout-summary{position:static}.form-row{grid-template-columns:1fr}.cart-drawer{width:100%}}.login-page{min-height:calc(100vh - 150px);display:flex;align-items:center;justify-content:center;padding:2rem}.login-card{background:var(--surface);border-radius:16px;padding:2.5rem;width:100%;max-width:420px;box-shadow:0 4px 24px #00000014}.login-header{text-align:center;margin-bottom:2rem}.login-logo{font-size:1.5rem;font-weight:700;color:var(--primary);text-decoration:none;display:block;margin-bottom:1rem}.login-header h1{font-size:1.5rem;margin-bottom:.5rem}.login-session-info{background:#ecfdf5;color:var(--primary-dark);padding:.75rem;border-radius:8px;font-size:.875rem;margin-top:1rem}.login-footer{text-align:center;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border);color:var(--text-light)}.link-button{background:none;border:none;color:var(--primary);font-weight:500;cursor:pointer;text-decoration:underline}.link-button:hover{color:var(--primary-dark)}.login-benefits{margin-top:1.5rem;padding:1rem;background:var(--background);border-radius:8px}.login-benefits h3{font-size:.9rem;margin-bottom:.75rem}.login-benefits ul{list-style:none;font-size:.875rem;color:var(--text-light)}.login-benefits li{padding:.25rem 0}.login-benefits li:before{content:"✓ ";color:var(--primary)}.login-success{text-align:center;padding:2rem 0}.success-icon{width:60px;height:60px;background:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;color:#fff;font-size:2rem}.login-success h2{color:var(--primary);margin-bottom:.5rem}.navbar-user-avatar{width:36px;height:36px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.9rem}
