*{box-sizing:border-box}body{color:#222;background:#f7f7fa;margin:0;font-family:system-ui,Segoe UI,Roboto,sans-serif}a{color:inherit;text-decoration:none}button{cursor:pointer;font-family:inherit}.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}.app-shell{flex-direction:column;min-height:100vh;display:flex}.main-content{flex:1;padding:2rem 0}.site-header{color:#fff}.header-top{background:linear-gradient(90deg,#8dc63f,#6fa621);padding:.9rem 0}.header-top-inner{align-items:center;gap:1.5rem;display:flex}.logo{color:#fff;white-space:nowrap;align-items:center;gap:.5rem;display:flex}.logo-icon{font-size:1.8rem}.logo-text{flex-direction:column;font-size:1.4rem;font-weight:800;line-height:1.1;display:flex}.logo-text small{letter-spacing:.03em;color:#eafccb;font-size:.55rem;font-weight:600}.search-form{background:#fff;border-radius:6px;flex:1;align-items:center;max-width:560px;padding:0 .75rem;display:flex}.search-icon{color:#888;font-size:.9rem}.search-form input{color:#222;border:none;border-radius:6px;outline:none;flex:1;padding:.55rem .6rem}.header-actions{white-space:nowrap;align-items:center;gap:1.5rem;margin-left:auto;display:flex}.location-select{cursor:pointer;color:#fff;background:0 0;border:none;align-items:center;gap:.25rem;max-width:160px;padding:0;font-size:.9rem;display:flex}.location-select span:nth-child(2){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.header-link{color:#fff}.header-top-link{color:#fff;white-space:nowrap;background:0 0;border:none;font-size:.9rem;font-weight:700}.cart-link{background:#fff;border-radius:50%;justify-content:center;align-items:center;width:2.4rem;height:2.4rem;font-size:1.2rem;display:flex;position:relative}.cart-count{color:#fff;background:#ff6b35;border-radius:999px;padding:.05rem .4rem;font-size:.7rem;font-weight:700;position:absolute;top:-4px;right:-4px}.header-user-bar{background:#f1f4ea}.header-user-inner{justify-content:space-between;align-items:center;padding:.6rem 0;display:flex}.user-greeting{align-items:center;gap:.75rem;display:flex}.user-avatar{color:#fff;background:#8dc63f;border-radius:50%;justify-content:center;align-items:center;width:2.4rem;height:2.4rem;font-size:1.1rem;display:flex}.user-greeting-text{color:#222;line-height:1.2}.user-greeting-text strong{font-size:.95rem}.user-greeting-text p{color:#666;margin:0;font-size:.8rem}.header-user-bar .header-link{color:#6fa621;font-weight:700}.link-btn{color:#6fa621;background:0 0;border:none;padding:0;font-size:.9rem;font-weight:700}.category-nav{background:#22223a;gap:1.25rem;padding:.6rem 1.5rem;display:flex;overflow-x:auto}.category-nav a{color:#ddd;white-space:nowrap;font-size:.9rem}.category-nav a:hover{color:#fff}.modal-overlay{z-index:100;background:#00000080;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal-card{color:#222;background:#fff;border-radius:8px;width:100%;max-width:420px;max-height:90vh;padding:1.5rem;overflow-y:auto}.modal-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.modal-header h3{margin:0}.modal-close{color:#888;background:0 0;border:none;font-size:1.1rem}.modal-divider{text-align:center;color:#999;margin:1rem 0;font-size:.8rem;position:relative}.modal-divider:before,.modal-divider:after{content:"";background:#eee;width:40%;height:1px;position:absolute;top:50%}.modal-divider:before{left:0}.modal-divider:after{right:0}.site-footer{color:#ccc;background:#1a1a2e;margin-top:3rem}.footer-grid{grid-template-columns:repeat(4,1fr);gap:2rem;padding:2.5rem 1.5rem;display:grid}.footer-grid h4{color:#fff;margin-bottom:.75rem}.footer-grid ul{margin:0;padding:0;list-style:none}.footer-grid li{margin-bottom:.4rem}.footer-grid a:hover{color:#fff}.footer-bottom{text-align:center;border-top:1px solid #333;padding:1rem;font-size:.85rem}.hero-slider{background:#222;border-radius:8px;height:320px;margin-bottom:2rem;position:relative;overflow:hidden}.hero-slide{opacity:0;background-position:50%;background-size:cover;transition:opacity .6s;position:absolute;inset:0}.hero-slide.active{opacity:1}.hero-slide-overlay{background:linear-gradient(90deg,#0009,#0000001a);align-items:center;height:100%;display:flex}.hero-slide-content{color:#fff;max-width:500px;padding:0 2.5rem}.hero-slide-content h1{margin:0 0 .5rem;font-size:2rem}.hero-slide-content p{opacity:.9;margin:0 0 1.25rem;font-size:1rem}.hero-arrow{color:#fff;cursor:pointer;z-index:2;background:#ffffff4d;border:none;border-radius:50%;width:2.5rem;height:2.5rem;font-size:1.5rem;line-height:1;position:absolute;top:50%;transform:translateY(-50%)}.hero-arrow:hover{background:#ffffff80}.hero-arrow-prev{left:1rem}.hero-arrow-next{right:1rem}.hero-dots{z-index:2;gap:.5rem;display:flex;position:absolute;bottom:1rem;left:50%;transform:translate(-50%)}.hero-dot{cursor:pointer;background:#ffffff80;border:none;border-radius:50%;width:.6rem;height:.6rem;padding:0}.hero-dot.active{background:#fff}.category-tiles{flex-wrap:wrap;gap:1rem;margin-bottom:2rem;display:flex}.category-tile{background:#fff;border-radius:8px;padding:1rem 1.5rem;font-weight:600;box-shadow:0 1px 4px #00000014}.category-tile:hover{box-shadow:0 2px 10px #0000001f}.section-title{margin-bottom:1rem}.category-hint{color:#666;margin-bottom:1.5rem}.product-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.5rem;display:grid}.product-card{background:#fff;border-radius:8px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 1px 4px #00000014}.product-image img{aspect-ratio:1;object-fit:cover;width:100%;display:block}.product-info{flex-direction:column;gap:.35rem;padding:1rem;display:flex}.product-name{font-weight:600}.product-category{color:#888;margin:0;font-size:.85rem}.product-price{color:#ff6b35;margin:.25rem 0;font-weight:700}.btn{border:none;border-radius:6px;padding:.6rem 1rem;font-weight:600}.btn-primary{color:#fff;background:#ff6b35}.btn-secondary{color:#222;background:#eee}.btn-full{width:100%;margin-top:1rem}.breadcrumb{color:#888;margin-bottom:1rem;font-size:.9rem}.breadcrumb a:hover{text-decoration:underline}.product-detail{background:#fff;border-radius:8px;grid-template-columns:1fr 1fr;gap:2.5rem;padding:2rem;display:grid}.product-detail-image img{border-radius:8px;width:100%}.product-detail-price{color:#ff6b35;font-size:1.6rem;font-weight:700}.stock-info{color:#4a8;font-size:.9rem}.qty-selector{align-items:center;gap:.75rem;margin:1rem 0;display:flex}.qty-selector input{width:70px;padding:.4rem}.product-detail-actions{gap:1rem;display:flex}.cart-layout{grid-template-columns:2fr 1fr;align-items:start;gap:2rem;display:grid}.cart-table{border-collapse:collapse;background:#fff;border-radius:8px;width:100%;overflow:hidden}.cart-table th,.cart-table td{text-align:left;border-bottom:1px solid #eee;padding:.85rem}.cart-product-cell{align-items:center;gap:.75rem;display:flex}.cart-product-cell img{object-fit:cover;border-radius:4px;width:50px;height:50px}.cart-table input[type=number]{width:60px;padding:.3rem}.cart-summary{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 1px 4px #00000014}.summary-row{justify-content:space-between;padding:.4rem 0;display:flex}.summary-total{border-top:1px solid #eee;margin-top:.5rem;padding-top:.75rem;font-weight:700}.auth-container{justify-content:center;display:flex}.auth-card{background:#fff;border-radius:8px;width:100%;max-width:400px;padding:2rem;box-shadow:0 1px 4px #00000014}.auth-subtitle{color:#888;margin-bottom:1rem}.auth-footnote{color:#888;margin:1rem 0 .5rem;font-size:.85rem}.auth-actions-row{justify-content:space-between;margin-top:.75rem;display:flex}form label{margin:.75rem 0 .3rem;font-size:.9rem;font-weight:600;display:block}form input{border:1px solid #ddd;border-radius:6px;width:100%;padding:.6rem .75rem;font-size:1rem}.form-row{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.form-error{color:#c0392b;background:#fdecea;border-radius:6px;padding:.6rem .85rem;font-size:.9rem}.form-success{color:#2e7d32;background:#eafbea;border-radius:6px;padding:.6rem .85rem;font-size:.9rem}.product-master-layout{grid-template-columns:1fr 1fr;align-items:start;gap:2rem;margin-bottom:2rem;display:grid}.db-status-row{align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.db-status-badge{border-radius:999px;padding:.3rem .7rem;font-size:.85rem;font-weight:700}.db-status-ok{color:#2e7d32;background:#eafbea}.db-status-offline{color:#c0392b;background:#fdecea}.image-preview-thumb{object-fit:cover;border-radius:6px;width:80px;height:80px;margin:.5rem 0;display:block}.catalog-thumb{object-fit:cover;border-radius:4px;width:40px;height:40px}.checkout-layout{grid-template-columns:2fr 1fr;align-items:start;gap:2rem;display:grid}.checkout-form{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 1px 4px #00000014}.order-confirmation{text-align:center;background:#fff;border-radius:8px;padding:3rem 2rem;box-shadow:0 1px 4px #00000014}@media (width<=900px){.container{padding:0 1rem}.footer-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=768px){.header-top-inner{flex-wrap:wrap;gap:.75rem}.search-form{flex-basis:100%;order:3;max-width:100%}.header-actions{gap:1rem;margin-left:0}.header-user-inner{flex-wrap:wrap;gap:.5rem}.product-detail,.cart-layout,.checkout-layout,.footer-grid,.product-master-layout,.form-row{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}.hero-slider{height:220px}.hero-slide-content{max-width:100%;padding:0 1.5rem}.hero-slide-content h1{font-size:1.4rem}.hero-slide-content p{font-size:.85rem}.hero-arrow{width:2rem;height:2rem;font-size:1.1rem}.product-detail{gap:1.5rem;padding:1.25rem}.product-detail-actions,.qty-selector{flex-wrap:wrap}.cart-table{-webkit-overflow-scrolling:touch;width:100%;display:block;overflow-x:auto}.cart-table th,.cart-table td{white-space:nowrap}.category-nav{gap:.9rem}.category-nav a{flex-shrink:0}}@media (width<=480px){.container{padding:0 .75rem}.main-content{padding:1.25rem 0}.logo-text{font-size:1.1rem}.logo-text small{font-size:.5rem}.header-actions{justify-content:space-between;width:100%}.location-select{max-width:55%}.hero-slider{border-radius:6px;height:170px}.hero-slide-content h1{font-size:1.1rem}.hero-slide-content p{display:none}.hero-arrow-prev{left:.4rem}.hero-arrow-next{right:.4rem}.category-tiles{gap:.6rem}.category-tile{padding:.7rem 1rem;font-size:.9rem}.product-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:.75rem}.product-info{padding:.75rem}.product-detail-actions{flex-direction:column}.product-detail-actions .btn{width:100%}.auth-card{padding:1.25rem}.modal-card{padding:1.1rem}}
