.site-header { position: sticky; z-index: var(--z-sticky-header); top: 0; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-main { min-height: 70px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: white; font-size: 20px; }
.brand small { display: block; color: var(--muted); font-weight: 500; }
.mode-switch { display: flex; flex: 0 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.mode-switch button { min-height: 42px; padding: 0 15px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.mode-switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); color: var(--brand-dark); font-weight: 700; }
.search { flex: 1 1 auto; min-width: 0; position: relative; }
.search input { width: 100%; min-height: 46px; padding: 0 18px 0 44px; border: 1px solid var(--line); border-radius: 15px; background: var(--canvas); }
.search svg { position: absolute; top: 13px; left: 14px; }
.search #clear-search { position: absolute; right: 6px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.2rem; }
.icon-btn, .cart-btn, .primary, .secondary { min-height: 44px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 700; }
.cart-btn, .primary { padding: 0 18px; background: var(--brand); color: #fff; }
.cart-btn { flex: 0 0 auto; white-space: nowrap; }
.secondary { padding: 0 18px; background: var(--brand-soft); color: var(--brand-dark); }
.hero { margin-top: 20px; padding: clamp(24px, 5vw, 64px); border-radius: var(--radius-lg); background: radial-gradient(circle at 92% 20%, #dbff65 0, transparent 28%), linear-gradient(135deg, #dff2e8, #fbfdfb); overflow: hidden; }
.hero p { max-width: 610px; color: #466052; font-size: 1.08rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: .85rem; }
.eyebrow { margin-bottom: 6px; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured-nav { display: flex; gap: 8px; overflow-x: auto; margin-top: 18px; padding-block: 5px; scrollbar-width: none; scroll-snap-type: x proximity; }
.featured-nav::-webkit-scrollbar, .horizontal-cards::-webkit-scrollbar { display: none; }
.featured-nav button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; scroll-snap-align: start; }
.featured-nav button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.horizontal-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.set-card { display: flex; flex-direction: column; height: 100%; min-height: 294px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-snap-align: start; }
.set-card h3 { margin-bottom: 4px; }
.set-card details { font-size: .86rem; }
.set-visual { width: 100%; height: 112px; margin-bottom: 12px; overflow: hidden; background: transparent; }
.set-visual picture, .set-visual img { display: block; width: 100%; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; box-shadow: none; }
.set-visual img { object-fit: contain; object-position: center; }
.set-footer { display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
.set-add-button { width: 128px; height: 44px; min-height: 44px; padding-inline: 12px; overflow: hidden; white-space: nowrap; text-align: center; text-overflow: ellipsis; }
.set-quantity { width: 128px; min-width: 0; }
.catalog-layout { display: grid; min-width: 0; gap: 24px; }
.catalog-layout > * { min-width: 0; }
.categories { gap: 8px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
#mobile-category-slot, #desktop-category-slot { display: contents; }
.mobile-categories { position: sticky; z-index: var(--z-sticky-content); top: var(--current-header-height, var(--header-height)); display: flex; width: min(calc(100% - 32px), var(--max)); overflow-x: auto; overflow-y: hidden; margin: 8px auto 0; padding-block: 10px; background: var(--canvas); white-space: nowrap; overscroll-behavior-inline: contain; }
.desktop-categories { display: none; }
.category { flex: 0 0 auto; min-height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 15px; background: #fff; cursor: pointer; }
.category[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-content { display: grid; min-width: 0; padding: 30px; gap: clamp(var(--space-4), 2vw, var(--space-5)); border-radius: var(--radius); background: #fff; }
.catalog-content > .section-head, .catalog-content > .catalog-tools { margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; padding: 10px; border: 1px solid rgba(23,32,28,.06); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(23,32,28,.04), 0 8px 24px rgba(23,32,28,.08); }
.product-media { aspect-ratio: 1/1; overflow: hidden; border: 0; border-radius: 0; outline: 0; padding: 0; background: transparent; box-shadow: none; cursor: pointer; }
.product-media picture, .product-media img { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; box-shadow: none; }
.product-media img { object-fit: contain; object-position: center; }
.product-badges { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.product-card > .product-badges { position: absolute; z-index: 2; top: 16px; left: 16px; right: 54px; pointer-events: none; }
.product-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--brand-dark); box-shadow: 0 3px 12px rgba(0,0,0,.07); font-size: .65rem; font-weight: 800; }
.product-badge--new { min-width: 36px; justify-content: center; background: var(--brand); color: #fff; letter-spacing: .04em; }
.product-badge--discount, .product-badge--popular, .product-badge--low { background: rgba(255,255,255,.9); }
.favorite-btn { position: absolute; z-index: 3; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--muted); box-shadow: 0 3px 12px rgba(0,0,0,.08); cursor: pointer; font-size: 1.5rem; line-height: 1; transition: transform .18s ease, color .18s ease; }
.favorite-btn.active { color: #d42145; transform: scale(1.08); }
.favorite-btn.inline { position: static; flex: 0 0 42px; }
.product-card h3 { margin: 12px 0 3px; font-size: .98rem; line-height: 1.25; }
.product-title { color: inherit; text-decoration: none; }
.price-row { display: flex; align-items: baseline; gap: 7px; margin: auto 0 10px; padding-top: 12px; }
.price { font-size: 1.12rem; font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.stock { min-height: 22px; color: var(--muted); font-size: .76rem; }
.stock.low { color: var(--warning); }
.stock.out { color: var(--danger); }
.qty { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 44px; border-radius: 13px; overflow: hidden; background: var(--brand-soft); }
.qty button { height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.4rem; }
.qty output { text-align: center; font-weight: 800; }
.add-btn { width: 100%; overflow: hidden; padding-inline: 6px; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(.76rem, 1vw, .9rem); }
.empty { grid-column: 1/-1; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; background: white; }
.overlay { position: fixed; z-index: var(--z-overlay); inset: 0 auto auto 0; display: grid; place-items: end center; width: 100dvw; max-width: 100dvw; height: 100dvh; overflow: hidden; padding: 0; background: rgba(10, 22, 16, .48); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.dialog { position: relative; z-index: var(--z-modal); width: 100%; max-height: 90dvh; overflow: auto; overscroll-behavior: contain; padding: 24px; border-radius: 28px 28px 0 0; background: white; transform: translateY(30px); transition: transform .2s; }
.open .dialog { transform: none; }
.dialog-close { position: sticky; z-index: 2; top: 0; float: right; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef2ef; cursor: pointer; }
.product-detail { display: grid; gap: 24px; clear: both; }
.detail-image { width: 100%; aspect-ratio: 4/3; overflow: hidden; border: 0; border-radius: 0; outline: 0; padding: 0; background: transparent; box-shadow: none; cursor: zoom-in; }
.detail-image picture, .detail-image img { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; box-shadow: none; }
.detail-image img { object-fit: contain; object-position: center; transition: transform .25s ease; }
.detail-image.is-zoomed { cursor: zoom-out; }
.detail-image.is-zoomed img { transform: scale(1.65); }
.detail-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.product-facts { display: grid; gap: 8px; margin: 18px 0; }
.product-facts div { display: grid; grid-template-columns: minmax(110px, .8fr) 1.2fr; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--muted); }
.product-facts dd { margin: 0; }
.similar { margin-top: 22px; }
.similar button, .cart-recommend button { display: block; width: 100%; min-height: 42px; margin-top: 6px; border: 0; border-radius: 10px; padding: 8px 10px; background: var(--canvas); text-align: left; cursor: pointer; }
.drawer { position: relative; z-index: var(--z-modal); margin-left: auto; width: min(100%, 480px); height: 100%; max-height: none; border-radius: 28px 0 0 28px; padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); background: #fff; overflow: auto; overscroll-behavior: contain; transform: translateX(30px); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line > * { min-width: 0; }
.cart-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.cart-total { display: flex; justify-content: space-between; margin: 22px 0; font-size: 1.2rem; font-weight: 800; }
.cart-saving { display: flex; justify-content: space-between; margin-top: 18px; padding: 12px; border-radius: 12px; background: #eff9d6; color: var(--brand-dark); }
.cart-recommend { margin-block: 20px; }
.group-title { margin-top: 24px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); }
.checkout-grid { display: grid; gap: 14px; }
.checkout-grid > * { min-width: 0; }
.field label, .fieldset-title { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.field input, .field textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: .8rem; }
.radio-row, .check-row { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; }
.check-row span { min-width: 0; overflow-wrap: anywhere; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.mobile-cart { position: fixed; z-index: var(--z-dropdown); right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 16px; display: none; justify-content: space-between; align-items: center; min-height: 58px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.chat-toggle { position: fixed; z-index: var(--z-dropdown); right: 20px; bottom: calc(22px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: var(--shadow); cursor: pointer; font-size: 23px; }
.chat { position: fixed; z-index: var(--z-cart); right: 18px; bottom: calc(86px + env(safe-area-inset-bottom)); display: none; width: min(360px, calc(100% - 32px)); max-height: min(540px, calc(100dvh - 120px)); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.chat.open { display: block; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: var(--ink); color: white; }
.chat-log { height: 240px; overflow: auto; padding: 14px; }
.message { width: fit-content; max-width: 85%; margin: 8px 0; padding: 9px 11px; border-radius: 13px; background: var(--canvas); }
.message.user { margin-left: auto; background: var(--brand-soft); }
.quick-actions { display: flex; gap: 6px; overflow: auto; padding: 10px; border-top: 1px solid var(--line); }
.quick-actions button { flex: 0 0 auto; min-height: 38px; border: 0; border-radius: 999px; padding: 0 12px; background: var(--brand-soft); }
.chat-form { display: flex; gap: 7px; padding: 10px; }
.chat-form input { min-width: 0; flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: white; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.catalog-tools summary { min-height: 38px; cursor: pointer; font-weight: 700; }
.catalog-tools select, .filter-panel input[type=number] { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 10px; }
.catalog-tools details { position: relative; }
.filter-panel { position: absolute; z-index: var(--z-dropdown); top: 44px; left: 0; display: grid; min-width: 300px; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.filter-panel label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.mini-product { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 10px; min-height: 94px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; scroll-snap-align: start; }
.mini-image { width: 70px; height: 70px; overflow: hidden; border: 0; border-radius: 12px; padding: 0; background: transparent; }
.mini-image picture, .mini-image img { width: 100%; height: 100%; object-fit: contain; }
.mini-product > button:last-child { width: 44px; min-height: 44px; padding: 0; }
.profile-section { padding: clamp(22px,4vw,44px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.profile-section .eyebrow { color: var(--accent); }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.profile-card { display: grid; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.09); }
.profile-card span { color: var(--accent); font-size: 1.3rem; }
.profile-card strong { font-size: 1.2rem; }
.profile-card small { color: #cbd5d0; }
.order-summary { margin-top: 16px; }
.skeleton { min-height: 330px; border-radius: var(--radius); background: linear-gradient(90deg,#edf0ee 25%,#f8faf9 50%,#edf0ee 75%); background-size: 200% 100%; animation: skeleton 1.2s infinite linear; }
@keyframes skeleton { to { background-position: -200% 0; } }
.footer { padding: 40px 0 100px; border-top: 1px solid var(--line); background: white; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.legal { max-width: 850px; padding-block: 42px 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
