*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{--black:#000;--white:#fff;--gray:#f7f7f7;--gray2:#ebebeb;--gray3:#aaa;--text:#111;--text2:#777}
body{font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;background:var(--white);color:var(--text);max-width:480px;margin:0 auto;padding-bottom:72px;min-height:100vh}
.page{display:none}.page.active{display:block}

.banner-slider{position:relative;overflow:hidden;width:100%;aspect-ratio:16/7;background:var(--gray)}
.banner-track{display:flex;transition:transform .4s cubic-bezier(.25,.46,.45,.94);height:100%}
.banner-slide{min-width:100%;height:100%;cursor:pointer;overflow:hidden}
.banner-slide img{width:100%;height:100%;object-fit:cover;display:block}
.banner-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:2}
.banner-dot{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.45);transition:all .3s}
.banner-dot.active{background:#fff;width:20px;border-radius:3px}

.section-header{display:flex;align-items:center;justify-content:space-between;padding:18px 12px 10px}
.section-title{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text)}
.section-link{font-size:12px;color:var(--gray3);text-decoration:none}

.categories{display:flex;gap:6px;padding:0 12px 14px;overflow-x:auto;scrollbar-width:none}
.categories::-webkit-scrollbar{display:none}
.cat-btn{flex-shrink:0;padding:8px 18px;border-radius:0;border:1px solid var(--gray2);background:var(--white);font-size:13px;color:var(--text2);cursor:pointer;transition:all .2s;white-space:nowrap;font-family:inherit;letter-spacing:.02em}
.cat-btn.active{background:var(--black);color:var(--white);border-color:var(--black)}

.products-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--gray2);margin:0}
.product-card{background:var(--white);cursor:pointer;overflow:hidden}
.product-card-img{width:100%;aspect-ratio:3/4;object-fit:cover;background:var(--gray);display:block;transition:transform .4s ease}
.product-card:active .product-card-img{transform:scale(.97)}
.product-card-info{padding:10px 10px 14px}
.product-card-name{font-size:13px;line-height:1.4;color:var(--text);margin-bottom:5px}
.product-card-price{font-size:14px;font-weight:700;color:var(--black)}

.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:var(--white);border-top:1px solid var(--gray2);display:flex;z-index:100;padding-bottom:env(safe-area-inset-bottom)}
.nav-btn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px 0 8px;background:none;border:none;cursor:pointer;color:var(--gray3);font-size:10px;gap:4px;position:relative;transition:color .2s;font-family:inherit;letter-spacing:.02em}
.nav-btn.active{color:var(--black)}
.nav-btn svg{transition:transform .2s}
.nav-btn.active svg{transform:translateY(-1px)}
.cart-badge{position:absolute;top:6px;right:calc(50% - 18px);background:var(--black);color:var(--white);font-size:9px;width:15px;height:15px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600}

.back-btn{display:flex;align-items:center;gap:8px;padding:14px 12px;font-size:14px;color:var(--text2);cursor:pointer;background:none;border:none;font-family:inherit;letter-spacing:.01em}
.back-btn svg{flex-shrink:0}

.product-images{position:relative;overflow:hidden;background:var(--gray)}
.product-img-track{display:flex;transition:transform .35s ease;touch-action:pan-y}
.product-img-track img{min-width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
.product-img-dots{display:flex;justify-content:center;gap:5px;padding:10px 0 0}
.product-img-dot{width:5px;height:5px;border-radius:50%;background:var(--gray2);transition:all .3s}
.product-img-dot.active{background:var(--black);width:16px;border-radius:3px}

.product-info{padding:16px 14px 100px}
.product-name{font-size:19px;font-weight:600;line-height:1.3;letter-spacing:-.01em}
.product-price{font-size:24px;font-weight:700;margin-top:10px;letter-spacing:-.02em}

.attr-label{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--gray3);margin:20px 0 10px}
.colors-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.color-dot{width:30px;height:30px;border-radius:50%;cursor:pointer;transition:all .2s;position:relative;border:2px solid transparent}
.color-dot.active{border-color:var(--black);box-shadow:0 0 0 2px var(--white) inset}
.color-name{font-size:13px;color:var(--text2);margin-top:8px}

.sizes-row{display:flex;gap:8px;flex-wrap:wrap}
.size-btn{min-width:44px;padding:10px 14px;border:1px solid var(--gray2);background:var(--white);font-size:14px;cursor:pointer;transition:all .2s;font-family:inherit;letter-spacing:.02em}
.size-btn.active{background:var(--black);color:var(--white);border-color:var(--black)}
.size-btn:disabled{opacity:.35;cursor:not-allowed}
.size-chart-btn{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--gray3);text-decoration:underline;cursor:pointer;background:none;border:none;font-family:inherit;margin-top:10px}

.desc-section{margin-top:6px}
.desc-text{font-size:14px;color:var(--text2);line-height:1.7}
.chars-table{width:100%;border-collapse:collapse;font-size:13px}
.chars-table tr:nth-child(odd){background:var(--gray)}
.chars-table td{padding:8px 10px;color:var(--text2)}
.chars-table td:first-child{font-weight:500;color:var(--text);width:45%}

.add-bar{position:fixed;bottom:72px;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:var(--white);padding:12px 14px;border-top:1px solid var(--gray2);z-index:99}
.add-btn{width:100%;padding:16px;background:var(--black);color:var(--white);border:none;font-size:15px;font-weight:500;cursor:pointer;letter-spacing:.04em;font-family:inherit;transition:opacity .2s}
.add-btn:active{opacity:.8}

.page-title{font-size:20px;font-weight:700;padding:18px 14px 12px;letter-spacing:-.02em}

.cart-empty{text-align:center;padding:70px 20px;color:var(--gray3)}
.cart-empty-icon{font-size:48px;margin-bottom:16px;opacity:.4}
.cart-empty-text{font-size:15px}

.cart-item{display:flex;gap:12px;padding:14px;border-bottom:1px solid var(--gray2)}
.cart-item-img{width:72px;height:96px;object-fit:cover;background:var(--gray);flex-shrink:0}
.cart-item-body{flex:1;min-width:0}
.cart-item-name{font-size:14px;font-weight:500;line-height:1.3;margin-bottom:4px}
.cart-item-meta{font-size:12px;color:var(--gray3);margin-bottom:8px}
.cart-item-price{font-size:15px;font-weight:700}
.qty-row{display:flex;align-items:center;gap:12px;margin-top:8px}
.qty-btn{width:30px;height:30px;border:1px solid var(--gray2);background:var(--white);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s}
.qty-btn:active{background:var(--gray)}
.qty-num{font-size:15px;min-width:22px;text-align:center;font-weight:500}
.del-btn{margin-left:auto;background:none;border:none;color:var(--gray3);cursor:pointer;padding:4px;font-size:20px;line-height:1}

.cart-footer{padding:16px 14px}
.cart-total-row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px}
.cart-total-label{font-size:14px;color:var(--gray3)}
.cart-total-sum{font-size:22px;font-weight:700;letter-spacing:-.02em}
.order-btn{width:100%;padding:16px;background:var(--black);color:var(--white);border:none;font-size:15px;font-weight:500;cursor:pointer;letter-spacing:.04em;font-family:inherit}

.checkout-form{padding:0 14px 20px}
.form-group{margin-bottom:16px}
.form-label{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--gray3);margin-bottom:6px;display:block}
.form-input{width:100%;padding:14px 12px;border:1px solid var(--gray2);background:var(--white);font-size:15px;outline:none;transition:border .2s;border-radius:0;font-family:inherit;-webkit-appearance:none}
.form-input:focus{border-color:var(--black)}
.form-input.err{border-color:#e00}
.form-err{font-size:11px;color:#e00;margin-top:4px;display:none}
.form-err.show{display:block}
.info-box{background:var(--gray);padding:14px;margin-bottom:18px;font-size:13px;color:var(--text2);line-height:1.6;display:flex;gap:10px}
.info-box-icon{font-size:18px;flex-shrink:0}

.qr-box{border:1px solid var(--gray2);padding:24px 14px;text-align:center;margin-bottom:18px}
.qr-box img{width:160px;height:160px;margin:0 auto 14px;display:block}
.qr-label{font-size:12px;color:var(--gray3);margin-bottom:6px;letter-spacing:.04em;text-transform:uppercase}
.qr-amount{font-size:26px;font-weight:700;letter-spacing:-.02em}
.qr-hint{font-size:12px;color:var(--gray3);margin-top:8px}

.submit-btn{width:100%;padding:16px;background:var(--black);color:var(--white);border:none;font-size:15px;font-weight:500;cursor:pointer;letter-spacing:.04em;font-family:inherit;margin-bottom:20px}

.success-wrap{text-align:center;padding:60px 24px}
.success-check{width:64px;height:64px;border:2px solid var(--black);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:28px}
.success-title{font-size:22px;font-weight:700;letter-spacing:-.02em;margin-bottom:12px}
.success-text{font-size:14px;color:var(--text2);line-height:1.7;margin-bottom:32px}
.success-home{padding:14px 40px;background:var(--black);color:var(--white);border:none;font-size:14px;cursor:pointer;font-family:inherit;letter-spacing:.04em}

.profile-head{display:flex;align-items:center;gap:16px;padding:20px 14px 18px;border-bottom:1px solid var(--gray2)}
.profile-ava{width:58px;height:58px;border-radius:50%;background:var(--gray2);object-fit:cover;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;flex-shrink:0;overflow:hidden}
.profile-ava img{width:100%;height:100%;object-fit:cover}
.profile-name{font-size:17px;font-weight:600;letter-spacing:-.01em}
.profile-user{font-size:13px;color:var(--gray3);margin-top:3px}
.profile-menu{list-style:none}
.profile-menu li{border-bottom:1px solid var(--gray2)}
.profile-menu-btn{display:flex;align-items:center;justify-content:space-between;width:100%;padding:17px 14px;font-size:15px;color:var(--text);background:none;border:none;cursor:pointer;font-family:inherit;text-decoration:none}
.profile-menu-btn::after{content:"›";font-size:22px;color:var(--gray3);line-height:1}

.order-card{padding:14px;border-bottom:1px solid var(--gray2)}
.order-id{font-size:13px;font-weight:600;letter-spacing:.04em}
.order-date{font-size:12px;color:var(--gray3);margin-top:2px}
.order-badge{display:inline-block;padding:4px 10px;font-size:11px;letter-spacing:.04em;margin-top:8px;font-weight:500}
.badge-new{background:#fff8e1;color:#856404}
.badge-preparing{background:#e3f2fd;color:#0d47a1}
.badge-delivering{background:#e8f5e9;color:#1b5e20}
.badge-delivered{background:#e8f5e9;color:#1b5e20}
.badge-cancelled{background:#fce4ec;color:#880e4f}
.order-sum{font-size:15px;font-weight:700;margin-top:8px}

.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:300;display:none;align-items:flex-end}
.modal-bg.open{display:flex}
.modal-sheet{background:var(--white);width:100%;max-height:75vh;overflow-y:auto;border-radius:16px 16px 0 0;padding:20px 14px 32px}
.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.modal-title{font-size:16px;font-weight:600}
.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:var(--gray3);line-height:1;padding:0}

.banner-page{padding:0 14px 24px}
.banner-page img{width:100%;margin-bottom:18px}
.banner-page h2{font-size:21px;font-weight:700;letter-spacing:-.02em;margin-bottom:14px}
.banner-page p{font-size:15px;color:var(--text2);line-height:1.75}

.info-page{padding:0 14px 24px;font-size:14px;color:var(--text2);line-height:1.8}
.info-page h3{font-size:15px;font-weight:600;color:var(--text);margin:18px 0 6px}
.info-page h3:first-child{margin-top:0}
