:root{--bg: #f4f6fb;--card: #ffffff;--text: #101a2c;--muted: #5c6b84;--primary: #0f6adf;--primary-dark: #0a52ad;--primary-tint: #eaf2ff;--border: #e1e7f2;--success: #1a9b5c;--success-tint: #e7f8ee;--danger: #d64545;--danger-tint: #fbeaea;--radius-sm: .5rem;--radius-md: .85rem;--radius-lg: 1.25rem;--shadow-sm: 0 1px 2px rgba(16, 26, 44, .06);--shadow-md: 0 8px 24px rgba(16, 26, 44, .08);--shadow-lg: 0 16px 40px rgba(16, 26, 44, .14)}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}h1,h2,h3{font-weight:700;letter-spacing:-.01em}.container{width:min(1160px,92vw);margin:0 auto}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:1rem;top:1rem;background:#fff;padding:.5rem .75rem;border-radius:var(--radius-sm);z-index:100}.site-header{background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:40}.site-footer{background:#fff;border-top:1px solid var(--border);margin-top:2.5rem}.nav-wrap,.footer-row{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:.9rem 0}.footer-row{padding:1.25rem 0;color:var(--muted);font-size:.9rem}.footer-row a{color:var(--muted)}.brand{color:var(--text);font-weight:800;font-size:1.1rem;text-decoration:none;letter-spacing:-.01em}.main-nav{display:flex;gap:1.25rem}.main-nav a,.header-actions a{color:var(--muted);text-decoration:none;font-weight:500;font-size:.95rem;transition:color .15s ease}.main-nav a:hover,.header-actions a:hover{color:var(--primary)}.header-actions{display:flex;align-items:center;gap:.85rem}.currency-label{font-size:.8rem;color:var(--muted)}#currency-select{min-height:2.2rem;padding:.3rem .5rem}.app-banner-wrap{background:#fff;border-bottom:1px solid var(--border)}.app-banner-link{display:block;padding:.65rem 0}.app-banner-image{width:100%;height:auto;display:block;border-radius:var(--radius-md);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:box-shadow .2s ease,transform .2s ease}.app-banner-link:hover .app-banner-image{box-shadow:var(--shadow-md);transform:translateY(-1px)}.hero{margin-top:1.75rem;padding:2.5rem 2rem;border-radius:var(--radius-lg);background:linear-gradient(135deg,#0f6adf 0%,#2a8ff0 55%,#57b0ff 100%);color:#fff;text-align:center}.hero-badge{display:inline-block;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);padding:.3rem .85rem;border-radius:999px;font-size:.8rem;font-weight:600;letter-spacing:.02em;margin-bottom:.9rem}.hero-search-wrap{max-width:540px;margin:0 auto 1rem;text-align:left}.hero-search-box{position:relative}.hero-search-input{width:100%;min-height:2.8rem;border-radius:999px;border:1px solid rgba(255,255,255,.42);background:rgba(255,255,255,.22);color:#fff;font-size:.92rem;padding:.65rem 1rem;outline:none}.hero-search-input::placeholder{color:#ffffffd1}.hero-search-input:focus{border-color:#ffffffc7;box-shadow:0 0 0 3px #ffffff38}.hero-search-results{position:absolute;top:calc(100% + .45rem);left:0;right:0;background:#fff;border:1px solid var(--border);border-radius:var(--radius-md);max-height:360px;overflow-y:auto;z-index:20;box-shadow:var(--shadow-lg)}.hero-search-status{margin:0;padding:.85rem .95rem;font-size:.88rem;color:var(--muted)}.hero-search-item{display:flex;align-items:center;gap:.65rem;padding:.55rem .7rem;text-decoration:none;color:inherit;border-bottom:1px solid var(--border)}.hero-search-item:last-child{border-bottom:none}.hero-search-item:hover{background:#f8fbff}.hero-search-item.is-active{background:#eef4ff}.hero-search-item img{width:52px;height:52px;border-radius:var(--radius-sm);object-fit:cover;object-position:top center;background:#f0f3f9;flex-shrink:0}.hero-search-item-body{min-width:0}.hero-search-item-body h3{margin:0 0 .25rem;font-size:.87rem;line-height:1.35;color:var(--text)}.hero-search-item-price{display:flex;align-items:baseline;gap:.35rem}.hero-search-item-price .price{font-size:.86rem}.hero-search-item-price .price-original{font-size:.72rem}.hero h1{margin:0 0 .6rem;font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.25}.hero p{margin:0 auto;max-width:46rem;color:#ffffffeb}.flash-sale-section{margin-top:1.5rem;padding:1.5rem;border-radius:var(--radius-lg);background:linear-gradient(120deg,#e6350f 0%,#ff6b1a 55%,#ff9142 100%);color:#fff;box-shadow:var(--shadow-md)}.flash-sale-header{display:flex;align-items:center;gap:.85rem;margin-bottom:1.1rem}.flash-icon{width:2.6rem;height:2.6rem;flex-shrink:0;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center}.flash-icon svg{width:1.4rem;height:1.4rem;color:#fff}.flash-sale-header h2{margin:0;font-size:1.25rem}.flash-sale-header p{margin:.1rem 0 0;font-size:.88rem;color:#ffffffe6}.flash-sale-track{display:flex;gap:.9rem;overflow-x:auto;padding-bottom:.4rem;scroll-snap-type:x mandatory}.flash-card{position:relative;flex:0 0 200px;background:#fff;border-radius:var(--radius-md);overflow:hidden;color:var(--text);scroll-snap-align:start;box-shadow:var(--shadow-sm)}.flash-card-link{display:block;color:inherit;text-decoration:none}.flash-card-image{position:relative;background:#f0f3f9}.flash-card-image img{width:100%;height:140px;object-fit:cover;object-position:top center;display:block}.flash-discount{position:absolute;top:.5rem;left:.5rem;background:#fff;color:var(--danger);font-size:.72rem;font-weight:800;padding:.2rem .5rem;border-radius:999px}.flash-card-body{padding:.75rem .85rem .9rem}.flash-card-body h3{margin:0 0 .4rem;font-size:.92rem;line-height:1.35}.flash-price-row{display:flex;align-items:baseline;gap:.4rem;margin-bottom:.4rem}.flash-price-row .price{color:var(--danger);font-size:1rem}.flash-countdown{display:inline-block;font-size:.72rem;font-weight:700;color:#b8460e;background:#fff1e8;padding:.2rem .5rem;border-radius:999px}.flash-cart-btn{position:absolute;top:.5rem;right:.5rem;background:#fff;border-color:#fff}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;margin-bottom:1.25rem;box-shadow:var(--shadow-sm)}.filters-card{margin-top:1.25rem}.filters-card h2,#products h2{margin:0 0 .9rem;font-size:1.2rem}.filters-grid{display:grid;grid-template-columns:1.6fr 1fr auto auto;gap:.75rem;align-items:center}.filters-grid input,.filters-grid select,.auth-form input,button{min-height:2.6rem;border-radius:var(--radius-sm);border:1px solid var(--border);padding:.55rem .8rem;font-family:inherit;font-size:.92rem;transition:border-color .15s ease,box-shadow .15s ease}.filters-grid input:focus,.filters-grid select:focus,.auth-form input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #0f6adf26}.stock-checkbox{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.9rem;white-space:nowrap}.section-header{display:flex;justify-content:space-between;gap:1rem;align-items:center}#products-count{color:var(--muted);font-size:.9rem;margin:0}.home-layout{display:grid;grid-template-columns:25% 1fr;gap:1.5rem;align-items:start;margin-top:1.5rem}.home-main{min-width:0}.category-sidebar{padding:1.1rem}.category-sidebar h2{margin:0 0 .85rem;font-size:1.05rem}.category-tree{display:flex;flex-direction:column;gap:.15rem}.category-item{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;background:transparent;border:none;border-radius:var(--radius-sm);padding:.55rem .65rem;min-height:auto;font-size:.9rem;font-weight:500;color:var(--text);cursor:pointer;transition:background .15s ease,color .15s ease}.category-item:hover{background:var(--primary-tint)}.category-item.active{background:var(--primary-tint);color:var(--primary-dark);font-weight:700}.category-all{margin-bottom:.5rem;padding-bottom:.65rem;border-bottom:1px solid var(--border);border-radius:0}.category-parent{font-weight:600}.category-parent .chevron{width:.9rem;height:.9rem;flex-shrink:0;color:var(--muted);transition:transform .18s ease}.category-branch.expanded .category-parent .chevron{transform:rotate(90deg)}.category-children{display:flex;flex-direction:column;gap:.1rem;margin:.15rem 0 .4rem .5rem;padding-left:.65rem;border-left:2px solid var(--border)}.category-child{font-size:.85rem;font-weight:500;color:var(--muted);padding:.45rem .6rem}.category-child.active{color:var(--primary-dark)}.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.1rem;margin-top:1rem}.product-card{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:#fff;box-shadow:var(--shadow-sm);transition:transform .18s ease,box-shadow .18s ease;display:flex;flex-direction:column}.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}.product-image-frame{position:relative;background:#f0f3f9}.product-image-frame img{width:100%;height:190px;object-fit:cover;display:block}.discount-badge{position:absolute;top:.6rem;left:.6rem;background:var(--danger);color:#fff;font-size:.72rem;font-weight:700;padding:.25rem .55rem;border-radius:999px}.product-body{padding:.95rem 1rem 1.1rem;display:flex;flex-direction:column;flex:1}.product-name{margin:0 0 .3rem;font-size:1rem;line-height:1.35}.product-description{margin:0 0 .6rem;color:var(--muted);font-size:.87rem;line-height:1.45}.price-row{display:flex;align-items:baseline;gap:.5rem;margin-bottom:.55rem}.price{font-weight:800;font-size:1.05rem;color:var(--primary-dark)}.price-original{text-decoration:line-through;color:var(--muted);font-size:.85rem}.product-meta{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.85rem}.category-pill,.stock-pill{display:inline-block;font-size:.75rem;font-weight:600;padding:.25rem .6rem;border-radius:999px;white-space:nowrap}.category-pill{background:var(--primary-tint);color:var(--primary-dark)}.stock-pill.in-stock{background:var(--success-tint);color:var(--success)}.stock-pill.out-of-stock{background:var(--danger-tint);color:var(--danger)}.product-actions{display:flex;justify-content:center;align-items:center;gap:.7rem;margin-top:auto}.icon-action{width:2.6rem;height:2.6rem;border-radius:50%;border:1px solid var(--border);background:var(--primary-tint);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .15s ease,transform .15s ease,border-color .15s ease}.icon-action:hover{background:var(--primary);border-color:var(--primary);transform:translateY(-2px)}.icon-action:hover img{filter:brightness(0) invert(1)}.icon-action img{width:1.15rem;height:1.15rem;transition:filter .15s ease}.actions-row{display:flex;justify-content:center;margin-top:1.25rem}.btn-primary,.btn-secondary,.btn-link{cursor:pointer;font-weight:600}.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary);transition:background .15s ease,transform .15s ease}.btn-primary:hover{background:var(--primary-dark)}.btn-secondary{background:#f8faff;color:var(--text);transition:background .15s ease}.btn-secondary:hover{background:#eef3fc}.btn-link{border:0;background:transparent;color:var(--muted)}.featured-section{margin-top:2.25rem}.sidebar-widget{margin-top:1.1rem;padding-top:1rem;border-top:1px solid var(--border)}.featured-header{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1rem}.featured-header h2{margin:0;font-size:1.2rem}.featured-view-all{color:var(--primary);text-decoration:none;font-weight:600;font-size:.88rem;white-space:nowrap}.featured-view-all:hover{color:var(--primary-dark)}.featured-row{display:flex;gap:.9rem;overflow-x:auto;padding-bottom:.4rem}.sidebar-featured-row{flex-direction:column;overflow:visible;gap:.65rem;padding-bottom:0}.row-card{flex:0 0 260px;display:flex;align-items:center;gap:.85rem;background:#fff;border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}.row-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.row-card-image{width:76px;height:76px;flex-shrink:0;border-radius:var(--radius-sm);overflow:hidden;background:#f0f3f9}.row-card-image img{width:100%;height:100%;object-fit:cover;display:block}.row-card-body{min-width:0}.row-card-body h3{margin:0 0 .35rem;font-size:.92rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-card-price{display:flex;align-items:baseline;gap:.4rem;margin-bottom:.4rem}.row-card-price .price{font-size:.95rem}.sidebar-row-card{flex:1 1 auto;width:100%;padding:.65rem}.sidebar-row-card .row-card-image{width:60px;height:60px}.sidebar-row-card .row-card-body h3{font-size:.86rem}.featured-pair{margin-top:2.1rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.featured-pair .featured-section{margin-top:0;background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem;box-shadow:var(--shadow-sm)}.featured-widget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.featured-widget-card{display:block;text-decoration:none;color:inherit;border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:#fff;transition:transform .15s ease,box-shadow .15s ease}.featured-widget-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.featured-widget-image{background:#f0f3f9}.featured-widget-image img{width:100%;aspect-ratio:1 / 1;object-fit:cover;display:block}.featured-widget-body{padding:.6rem .7rem .75rem}.featured-widget-body h3{margin:0 0 .35rem;font-size:.84rem;line-height:1.35}.featured-widget-price{display:flex;gap:.35rem;align-items:baseline}.featured-widget-price .price{font-size:.88rem}.featured-widget-price .price-original{font-size:.74rem}.product-page{padding-top:1.25rem}.back-button{display:inline-flex;align-items:center;gap:.4rem;text-decoration:none;color:var(--muted);font-weight:600;font-size:.9rem;padding:.5rem .9rem;border-radius:999px;border:1px solid var(--border);background:#fff;margin-bottom:1.1rem;transition:color .15s ease,border-color .15s ease,background .15s ease}.back-button svg{width:1rem;height:1rem}.back-button:hover{color:var(--primary);border-color:var(--primary);background:var(--primary-tint)}.product-detail{padding:1.75rem}.state-message{display:flex;align-items:center;gap:.6rem;color:var(--muted);padding:2rem 0}.spinner{width:1.1rem;height:1.1rem;border-radius:50%;border:2px solid var(--border);border-top-color:var(--primary);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.product-layout{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:2.25rem}.product-image-wrap{border-radius:var(--radius-lg);overflow:hidden;background:#f0f3f9;box-shadow:var(--shadow-md);border:1px solid var(--border)}.product-image-wrap img{width:100%;height:100%;min-height:280px;object-fit:cover;display:block}.product-info h1{margin:.6rem 0 .75rem;font-size:clamp(1.35rem,2.4vw,1.85rem);line-height:1.3}.product-info .category-pill{margin-bottom:0}.price-line{display:flex;align-items:baseline;gap:.65rem;margin:.6rem 0 .75rem}.price-line .price{font-size:1.5rem}.product-info .stock-pill{margin-bottom:1rem}.product-description{color:var(--muted);line-height:1.6;margin-bottom:1.5rem}.app-download-cta{border:1px dashed var(--border);border-radius:var(--radius-md);padding:1.1rem;background:#fafcff}.app-download-hint{margin:0 0 .9rem;color:var(--muted);font-size:.9rem}.button-group{display:flex;gap:.75rem;flex-wrap:wrap}.btn-store{display:inline-flex;align-items:center;gap:.55rem;padding:.7rem 1.1rem;border-radius:var(--radius-sm);background:var(--primary);color:#fff;text-decoration:none;font-weight:600;font-size:.92rem;border:1px solid var(--primary);transition:background .15s ease,transform .15s ease}.btn-store img{width:1.1rem;height:1.1rem;filter:brightness(0) invert(1)}.btn-store:hover{background:var(--primary-dark);transform:translateY(-1px)}.btn-store-outline{background:#fff;color:var(--primary-dark);border-color:var(--border)}.btn-store-outline img{filter:none}.btn-store-outline:hover{background:var(--primary-tint);border-color:var(--primary)}.auth-card{max-width:480px;margin:2rem auto}.auth-form{display:grid;gap:.6rem}.divider{text-align:center;margin:.9rem 0;color:var(--muted);font-size:.85rem}.help-text{color:var(--muted)}.hidden{display:none!important}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(12,20,34,.55);display:grid;place-items:center;z-index:50;padding:1rem}.modal-card{position:relative;background:#fff;width:min(420px,100%);border-radius:var(--radius-lg);padding:2rem 1.75rem 1.75rem;text-align:center;box-shadow:var(--shadow-lg)}.modal-icon{width:3rem;height:3rem;margin:0 auto .9rem;border-radius:50%;background:var(--primary-tint);color:var(--primary);display:flex;align-items:center;justify-content:center}.modal-icon svg{width:1.5rem;height:1.5rem}.modal-card h2{margin:0 0 .6rem;font-size:1.2rem}.modal-card p{margin:0 0 1.25rem;color:var(--muted);font-size:.92rem;line-height:1.5}.modal-cta{display:block;width:100%;text-align:center;text-decoration:none;padding:.75rem 1rem}.modal-dismiss{display:block;width:100%;background:transparent;border:none;color:var(--muted);margin-top:.6rem;font-size:.85rem;cursor:pointer}.modal-close{position:absolute;top:.6rem;right:.6rem;width:1.9rem;height:1.9rem;border-radius:50%;border:1px solid var(--border);background:#fff;color:var(--muted);font-size:1.1rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}.modal-close:hover{background:var(--bg)}.toast{position:fixed;right:1rem;bottom:1rem;background:#1e2c44;color:#fff;padding:.7rem 1rem;border-radius:var(--radius-sm);z-index:60;box-shadow:var(--shadow-md)}@media (max-width: 980px){.filters-grid,.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-layout{grid-template-columns:1fr}.product-image-wrap img{min-height:220px}.home-layout{grid-template-columns:1fr}.category-sidebar{order:-1}.category-tree{flex-direction:row;flex-wrap:wrap;gap:.4rem}.category-branch{flex:1 1 auto}.category-children{margin-left:0;padding-left:0;border-left:none;flex-direction:row;flex-wrap:wrap}.featured-pair{grid-template-columns:1fr}.featured-widget-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width: 680px){.nav-wrap{flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between}.hero{padding:2rem 1.25rem}.products-grid,.filters-grid{grid-template-columns:1fr}.product-detail{padding:1.25rem}.button-group{flex-direction:column}.btn-store{justify-content:center}.category-tree,.category-children{flex-direction:column}.featured-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.row-card{flex-basis:220px}.flash-card{flex-basis:165px}}
