@import url("mall-theme.css?v=20260910-3");

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text-main); background: #e9ede6; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, a, input { touch-action: manipulation; }
svg { display: inline-block; vertical-align: middle; }
:focus-visible { outline: 3px solid #527756; outline-offset: 3px; }
.store-shell { position: relative; width: 100%; max-width: 540px; min-height: 100vh; margin: 0 auto; padding-bottom: calc(var(--nav-height) + 95px + env(safe-area-inset-bottom)); background: linear-gradient(155deg, #a6bf9c 0, #d2ddc9 230px, #f4f5f2 460px); }
.store-header { padding: 18px 16px 0; }
.store-topbar { display: flex; align-items: center; gap: 17px; }
.store-logo { flex-shrink: 0; display: flex; align-items: baseline; gap: 3px; color: #294b32; font-size: 27px; font-weight: 850; letter-spacing: -1.5px; line-height: 1; }
.store-logo span { font-size: 10px; font-weight: 700; letter-spacing: .5px; writing-mode: vertical-rl; }
.store-search { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 42px; border-radius: 30px; background: #ffffffc2; padding: 0 8px 0 16px; }
.search-input { width: 0; flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: #304934; padding: 10px 0; }
.search-input::placeholder { color: #81937f; font-size: 14px; }
.store-search:focus-within { box-shadow: 0 0 0 2px #5c7e5780; background: #fff; }
.store-search button { flex: 0 0 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #456449; font-size: 18px; }
.category-strip { display: flex; align-items: center; gap: 8px; margin: 15px 0 13px; padding: 7px; border: 1px solid #ffffffb0; border-radius: 17px; background: #ffffffa8; box-shadow: 0 3px 12px #385c410c; }
.category-tabs { display: flex; align-items: center; flex: 1; min-width: 0; gap: 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #a6bf9c transparent; padding-bottom: 3px; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { position: relative; flex: 0 0 auto; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #425d42; font-size: 15px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.category-tab:hover { background: #e1ebdb; }
.category-tab.active { color: #fff; background: var(--forest); border-color: var(--forest); font-weight: 800; box-shadow: 0 3px 9px #385c4122; }
.all-categories { align-self: stretch; flex: 0 0 58px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 4px; border: 1px solid #d1ddc9; border-radius: 12px; background: #f4f8ef; color: var(--forest); font-size: 20px; }
.all-categories span { font-size: 12px; font-weight: 700; }
.hero-slider { position: relative; overflow: hidden; margin: 5px 14px 16px; border-radius: 17px; background: #d0dcc9; box-shadow: 0 8px 18px #4e654415; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; display: block; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.hero-image { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.hero-default::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1b351c3b, transparent 50%, #14301930); pointer-events: none; }
.hero-copy { position: absolute; top: 17px; left: 19px; z-index: 1; color: #fff; text-shadow: 0 2px 14px #1e351d80; }
.hero-copy > span:first-child { font-size: 10px; font-weight: 600; letter-spacing: 2px; }
.hero-copy h1 { font-size: clamp(20px, 5.1vw, 28px); letter-spacing: 1px; margin: 6px 0 11px; line-height: 1.3; font-weight: 700; }
.hero-link { font-size: 12px; font-weight: 500; padding-bottom: 3px; border-bottom: 1px solid #ffffff80; }
.hero-link i { margin-left: 4px; }
.hero-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; }
.hero-dots button { padding: 0; width: 7px; height: 7px; border: 0; border-radius: 9px; background: #ffffff80; box-shadow: 0 1px 4px #24351b30; }
.hero-dots button.on { width: 18px; background: #fff; }
.quick-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 19px 3px; padding: 19px 7px 18px; margin: 0 14px 12px; border-radius: 18px; background: #ffffffeb; }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 0 1px; border: 0; background: transparent; color: #455148; font-size: 14px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.quick-icon { position: relative; display: grid; place-items: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle at 32% 20%, var(--tone-light), var(--tone) 85%); color: #fff; box-shadow: inset 0 1px 2px #ffffff99, 0 4px 9px color-mix(in srgb, var(--tone) 18%, transparent); }
.quick-icon i { font-size: 29px; line-height: 1; filter: drop-shadow(0 3px 1px #00000012); }
.quick-icon::after { content: ""; position: absolute; bottom: 5px; left: 10px; right: 10px; height: 11px; border-radius: 50%; background: #ffffff20; pointer-events: none; }
.quick-link:hover .quick-icon { transform: translateY(-2px); }
.tone-orange { --tone-light: #ffd266; --tone: #ffae1e; }
.tone-purple { --tone-light: #d5aeff; --tone: #b46af2; }
.tone-coral { --tone-light: #ffb7a7; --tone: #ff7b63; }
.tone-blue { --tone-light: #b2e6ff; --tone: #69c3ee; }
.tone-pink { --tone-light: #ffc0df; --tone: #f078b3; }
.tone-green { --tone-light: #ade7a9; --tone: #6dca72; }
.store-notice-wrapper { margin: 0 14px 12px; }
.store-notice { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: 12px; background: #ffffffc9; font-size: 14px; }
.notice-icon { flex-shrink: 0; }
.notice-icon svg { stroke: #66835c; }
.notice-text-container { min-width: 0; }
.notice-text { color: #61725e; line-height: 1.6; overflow-wrap: anywhere; }
.order-tip { margin: 0 14px 12px; padding: 12px; display: flex; flex-wrap: wrap; gap: 7px; background: #fff2df; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.product-feed { padding: 0 14px; }
.feed-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 9px 2px 15px; scroll-margin-top: 14px; }
.feed-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; font-weight: 700; }
.feed-heading > span { font-size: 12px; color: #85907e; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.product-card { overflow: hidden; min-width: 0; border-radius: 15px; background: #fff; }
.product-image { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.product-body { padding: 12px; }
.product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.55; height: 3.1em; font-weight: 500; overflow-wrap: anywhere; }
.product-footer { padding-top: 10px; }
.product-price { color: #ec613e; font-size: 22px; font-weight: 700; letter-spacing: -.6px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.product-price::before { content: "¥"; font-size: 13px; margin-right: 3px; }
.product-actions { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.buy-button { flex: 1; border: 0; padding: 8px 12px; min-height: 36px; border-radius: 20px; background: #fff0e9; color: #d95431; font-size: 14px; font-weight: 600; }
.buy-button:hover { background: #ffe2d4; }
.basket-toggle { position: relative; display: block; flex: 0 0 36px; height: 36px; cursor: pointer; }
.basket-checkbox { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.basket-icon { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #f4f6f1; color: #6c8366; }
.basket-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }
.basket-icon .check { display: none; }
.basket-checkbox:checked + .basket-icon { background: #6a8966; color: white; }
.basket-checkbox:checked + .basket-icon .plus { display: none; }
.basket-checkbox:checked + .basket-icon .check { display: block; }
.basket-checkbox:focus-visible + .basket-icon { outline: 3px solid #527756; outline-offset: 3px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: #ffffffba; border-radius: 15px; color: #8d978a; font-size: 15px; }
.empty-state p { margin: 10px 0; }
.retry-button { padding: 10px 18px; border: 1px solid #dce5d5; border-radius: 20px; background: #fff; color: #52734b; font-size: 14px; }
.load-sentinel { padding: 25px 0 10px; text-align: center; color: #8c9686; font-size: 13px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 100; width: 100%; max-width: 540px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 8px calc(8px + env(safe-area-inset-bottom)); min-height: var(--nav-height); background: #fffffff5; border-top: 1px solid #edf0e9; box-shadow: 0 -5px 22px #263b2510; backdrop-filter: blur(18px); }
.dock-item { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; border: 0; background: transparent; color: #8a9088; font-size: 13px; line-height: 1.3; }
.dock-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock-item.on { color: #f76b42; font-weight: 600; }
.cart-badge { display: none; position: absolute; top: 0; left: calc(50% + 9px); width: 7px; height: 7px; border-radius: 50%; background: #ff7248; border: 1px solid #fff; }
.dock-item.has-items .cart-badge { display: block; }
.checkout-dock { position: fixed; bottom: calc(var(--nav-height) + 10px + env(safe-area-inset-bottom)); left: 50%; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 28px); max-width: 512px; padding: 15px; border-radius: 18px; background: #354d3b; color: #fff; box-shadow: 0 8px 25px #26352630; transform: translate(-50%, 25px); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility .2s; }
.checkout-dock.pull-up { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.checkout-count { font-size: 12px; white-space: nowrap; color: #dde6d8; }
.checkout-total { font-size: 20px; font-weight: 700; }
.checkout-button { min-height: 40px; padding: 9px 21px; border: 0; border-radius: 24px; color: #fff; background: #f57c51; font-size: 15px; font-weight: 600; white-space: nowrap; }
.clear-button { padding: 9px; border: 0; background: transparent; color: #cfdbc9; font-size: 13px; white-space: nowrap; }
.category-dialog { width: calc(100% - 28px); max-width: 510px; max-height: 75vh; padding: 22px; border: 0; border-radius: 22px; color: var(--text-main); box-shadow: 0 15px 60px #18351d30; }
.category-dialog::backdrop { background: #18281c60; backdrop-filter: blur(3px); }
.category-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.category-dialog h2 { margin: 0; font-size: 20px; }
.category-dialog-header button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f3ed; color: #657660; }
.category-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.category-options button { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 12px; border: 1px solid #e4eadd; border-radius: 12px; background: #f7f9f4; color: #486243; text-align: left; line-height: 1.4; font-size: 14px; overflow-wrap: anywhere; }
.category-options i { flex-shrink: 0; }
.sheet-mask { display: none; position: fixed; inset: 0; z-index: 200; background: #19271c66; opacity: 0; transition: opacity .25s; }
.sheet-mask.show { opacity: 1; }
.proxy-sheet { position: fixed; z-index: 201; bottom: 0; left: 50%; transform: translate(-50%, 105%); width: 100%; max-width: 540px; max-height: 85vh; overflow: auto; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-radius: 24px 24px 0 0; transition: transform .25s ease; }
.proxy-sheet.show { transform: translate(-50%, 0); }
.sheet-handle { width: 36px; height: 4px; border-radius: 6px; background: #d8e0d2; margin: 0 auto 22px; }
.sheet-title { margin-bottom: 20px; font-size: 20px; font-weight: 700; }
.sheet-title span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; font-weight: 400; color: #8a9584; }
.proxy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 9px; }
.proxy-option { text-align: center; cursor: pointer; }
.proxy-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 8px; border-radius: 14px; color: #fff; font-size: 20px; font-weight: 700; }
.proxy-label { font-size: 12px; line-height: 1.5; color: #566150; }
.sheet-cancel { display: block; width: 100%; padding: 14px; border: 0; border-radius: 12px; margin-top: 22px; background: #f1f4ed; color: #62725c; font-size: 15px; text-align: center; cursor: pointer; }
.premium-order-modal { display: none; position: fixed; inset: 0; z-index: 250; align-items: center; justify-content: center; padding: 25px; }
.premium-order-backdrop { position: absolute; inset: 0; background: #1b2c2066; backdrop-filter: blur(4px); }
.premium-order-panel { position: relative; width: 100%; max-width: 360px; padding: 30px 24px 24px; border-radius: 23px; background: #fff; text-align: center; }
.premium-order-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 20px; background: #eef4e7; color: #73915e; }
.premium-order-icon svg { width: 30px; height: 30px; }
.premium-order-copy > span { font-size: 12px; letter-spacing: 1px; color: #9aa68b; }
.premium-order-copy h3 { margin: 9px 0; font-size: 23px; }
.premium-order-copy p { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: #7d8973; }
.premium-order-status { display: flex; justify-content: space-between; padding: 12px; margin-bottom: 18px; border-radius: 10px; background: #f5f7f1; font-size: 14px; }
.premium-order-status strong { color: #a7743a; }
.premium-order-ok { width: 100%; padding: 13px; border: 0; border-radius: 12px; background: #45633e; color: white; font-size: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
    .store-shell { max-width: 1100px; padding: 0 28px 170px; }
    .store-header { padding: 27px 14px 0; }
    .store-topbar { justify-content: space-between; }
    .store-logo { font-size: 32px; }
    .store-search { flex: 0 1 540px; }
    .category-tabs { gap: 8px; }
    .category-strip { margin-top: 22px; }
    .hero-image { max-height: 400px; }
    .hero-copy { top: 35px; left: 36px; }
    .hero-copy h1 { font-size: 38px; margin: 12px 0 18px; }
    .hero-copy > span:first-child { font-size: 13px; }
    .hero-link { font-size: 15px; }
    .quick-links { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 24px 12px; row-gap: 24px; }
    .quick-icon { width: 58px; height: 58px; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
    .feed-heading { padding-top: 18px; }
    .bottom-nav { max-width: 1100px; }
    .checkout-dock { max-width: 600px; }
}
@media (max-width: 370px) {
    .store-header { padding: 14px 12px 0; }
    .store-topbar { gap: 11px; }
    .store-logo { font-size: 24px; }
    .hero-slider, .quick-links, .store-notice-wrapper { margin-left: 10px; margin-right: 10px; }
    .quick-icon { width: 45px; height: 45px; }
    .quick-icon i { font-size: 25px; }
    .quick-link { font-size: 13px; }
    .product-feed { padding: 0 10px; }
    .product-grid { gap: 9px; }
    .product-body { padding: 10px; }
    .product-name { font-size: 15px; }
    .hero-copy { top: 12px; left: 14px; }
    .checkout-dock { padding: 12px 10px; gap: 5px; }
    .checkout-count { display: block; }
    .checkout-dock .calc-info > div { margin-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
