:root {
  --paper: #f7f6f2;
  --white: #fffefa;
  --ink: #232420;
  --brand: #30302b;
  --brand-deep: #1e1f1c;
  --muted: #585951;
  --line: #e5e2da;
  --brand-soft: #eeece5;
  --brand-line: #d9d5c9;
  --field: #f3f1eb;
  --field-line: #d8d4c9;
  --stage: #eeeae1;
  --stage-image: #c6beb1;
  --accent: #7e5b32;
  --accent-soft: #f3eadc;
  --accent-line: #cab99f;
  --price: #6e4e2b;
  --radius: 18px;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
body, uni-page-body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { appearance: none; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; line-height: inherit; }
button:disabled { opacity: .49; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
input, textarea { min-width: 0; color: var(--ink); }
input[type=checkbox] { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--brand); cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
img { display: block; width: 100%; }
svg { flex-shrink: 0; }


.site { min-height: 100vh; }
.container { width: min(100% - 64px, 1180px); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-main {
  min-height: 82px;
  display: grid;
  grid-template-columns: max-content max-content minmax(170px, 1fr) max-content;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}
.wordmark { display: inline-flex; gap: 10px; align-items: center; text-align: left; }
.wordmark-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: var(--brand); color: white; }
.wordmark-text { display: grid; gap: 5px; }
.wordmark strong { font-size: 20px; letter-spacing: .06em; line-height: 1; }
.wordmark small { font-size: 8px; letter-spacing: .13em; color: var(--muted); font-weight: 700; }
.desktop-nav { display: flex; align-items: stretch; align-self: stretch; gap: clamp(17px, 2.4vw, 35px); }
.desktop-nav button { position: relative; min-width: 30px; font-size: 15px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.desktop-nav button:hover, .desktop-nav .current { color: var(--ink); }
.desktop-nav .current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); height: 3px; border-radius: 4px 4px 0 0; }
.header-search, .inline-search { display: flex; align-items: center; gap: 10px; color: var(--muted); background: var(--field); border: 1px solid var(--line); border-radius: 11px; min-height: 44px; padding: 4px 4px 4px 13px; }
.header-search { justify-self: end; width: min(100%, 388px); background: var(--white); border-radius: 40px; }
.header-search input, .inline-search input { flex: 1; min-width: 0; font-size: 14px; border: 0; background: transparent; padding: 5px 0; width: 100%; }
.header-search button { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.header-search button:hover { background: var(--brand); color: white; }
.header-actions { grid-column: 4; display: flex; gap: 8px; justify-self: end; }
.header-action { display: grid; place-items: center; width: 42px; min-height: 42px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; }
.header-action:hover, .section-link:hover, .text-button:hover { color: var(--accent); }
.cart-icon { position: relative; display: inline-flex; }
.cart-icon i { position: absolute; display: grid; place-items: center; top: -7px; right: -10px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 11px; background: var(--accent); color: white; font-size: 10px; font-style: normal; font-weight: 700; }
.mobile-back, .mobile-title, .bottom-nav { display: none; }

.page-content { padding: 26px 0 48px; min-height: 58vh; }
.editorial-title { font-family: "Songti SC", "Noto Serif SC", SimSun, serif; font-weight: 700; letter-spacing: -.045em; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  min-height: clamp(310px, 29vw, 370px);
  background: var(--stage);
  border-radius: 26px;
  overflow: hidden;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: clamp(28px, 3.5vw, 48px) clamp(30px, 5.2vw, 76px); }
.hero h1 { font-size: clamp(46px, 5.25vw, 74px); line-height: 1.075; }
.hero-description { font-size: 15px; color: var(--muted); line-height: 1.65; margin-top: 19px; }
.hero-button { margin-top: 23px; padding-inline: 18px; min-height: 46px; }
.hero-art, .card-hero-art { position: relative; min-width: 0; overflow: hidden; }
.hero-art { background: var(--stage-image); }
.hero-art img, .card-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.home-discovery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(292px, .43fr); gap: 18px; align-items: stretch; margin-top: 24px; }
.category-section { padding: 15px 18px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.category-section .section-heading { margin-bottom: 10px; }
.home-section { margin-top: 31px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.section-heading h2 { font-size: 27px; letter-spacing: -.036em; }
.category-section h2 { font-size: 21px; }
.section-link { color: var(--brand); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 32px; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.category-tile { display: grid; justify-items: center; align-content: start; text-align: center; gap: 7px; padding: 4px 2px 7px; border-radius: 12px; min-width: 0; transition: background .2s ease; }
.category-tile:hover { background: var(--field); }
.category-tile:hover .category-icon { color: var(--accent); border-color: var(--accent-line); }
.category-icon { width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; background: var(--field); color: var(--brand); border: 1px solid var(--line); }
.category-copy { display: grid; min-width: 0; gap: 4px; }
.category-copy strong { font-size: 14px; white-space: nowrap; }
.category-copy small { font-size: 11px; color: var(--muted); }

.card-entry-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); min-height: 143px; align-items: stretch; width: 100%; min-width: 0; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--stage); color: var(--ink); position: relative; isolation: isolate; }
.card-entry-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 16px 8px 15px 21px; min-width: 0; }
.card-entry-copy strong { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.card-entry-copy small { font-size: 12px; color: var(--muted); }
.card-entry-arrow { width: 30px; height: 30px; margin-top: 3px; border-radius: 50%; background: var(--white); color: var(--accent); display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.card-entry-banner:hover .card-entry-arrow { color: white; background: var(--accent); }
.card-entry-banner img { width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: cover; background: var(--stage-image); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { border-color: var(--field-line); box-shadow: 0 9px 20px #2927220b; }
.product-picture { position: relative; background: var(--stage); display: block; aspect-ratio: 1.36; width: 100%; overflow: hidden; }
.product-picture img { width: 100%; height: 100%; object-fit: contain; transition: transform .22s ease; }
.product-picture:hover img { transform: scale(1.035); }
.product-meta { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; row-gap: 5px; color: var(--muted); font-size: 11px; }
.product-tag, .pill-label { color: var(--brand); background: var(--brand-soft); border-radius: 5px; font-size: 11px; font-weight: 650; padding: 4px 6px; display: inline-flex; align-items: center; line-height: 1.15; }
.product-tag.otc { background: var(--accent-soft); color: var(--accent); }
.product-card-info { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 9px; padding: 14px 15px 13px; }
.product-title { display: block; text-align: left; font-weight: 750; line-height: 1.4; font-size: 16px; }
.product-price-line { margin-top: auto; min-height: 37px; display: flex; justify-content: space-between; gap: 4px; align-items: center; }
.price { color: var(--price); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: .73em; margin-right: 3px; }
.add { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.add:hover { color: white; background: var(--brand); border-color: var(--brand); }
.out-of-stock { color: var(--muted); font-weight: 650; font-size: 12px; white-space: nowrap; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; margin-top: 32px; background: var(--field); border-radius: var(--radius); border: 1px solid var(--line); }
.service-strip button { display: flex; justify-content: center; align-items: center; gap: 10px; text-align: left; color: var(--brand); padding: 7px 5px; }
.service-strip button span { display: grid; gap: 4px; }
.service-strip small { color: var(--muted); font-size: 12px; }
.site-footer { display: flex; align-items: center; gap: 15px; justify-content: space-between; border-top: 1px solid var(--line); padding: 17px 0 27px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 15px; }
.footer-links .text-button { font-size: 12px; }

.page-heading { margin: 0 0 22px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(31px, 4.45vw, 50px); line-height: 1.15; }
.page-heading p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.content-panel, .summary { padding: clamp(16px, 2.1vw, 25px); min-width: 0; }
.content-panel h2, .summary h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.content-panel .section-heading h2 { margin-bottom: 0; }
.content-panel > p { margin-top: 8px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.button { border: 1px solid transparent; border-radius: 9px; padding: 9px 15px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.3; }
.button.primary { background: var(--brand); color: white; }
.button.primary:hover:not(:disabled) { background: var(--brand-deep); }
.button.secondary, .button.icon-secondary { color: var(--brand); border-color: var(--brand-line); background: var(--field); }
.button.secondary:hover:not(:disabled), .button.icon-secondary:hover:not(:disabled) { background: var(--brand-soft); }
.button.icon-secondary { padding-inline: 12px; }
.button.full { width: 100%; }
.text-button, .back-link { color: var(--brand); font-size: 14px; font-weight: 650; }
.back-link { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; }
.icon-button { min-width: 34px; min-height: 34px; place-items: center; border-radius: 7px; }
.icon-button:not(.mobile-back) { display: inline-grid; }
.icon-button:hover { background: var(--brand-soft); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.muted { color: var(--muted); font-size: 14px; }
.danger, .form-error { color: #972f27; }
.form-error { font-size: 13px; font-weight: 650; }
.stack { min-width: 0; display: grid; gap: 14px; align-content: start; }
.narrow { max-width: 780px; }
.load-more { display: flex; justify-content: center; margin-top: 20px; }
.load-state { border: 1px dashed var(--field-line); border-radius: var(--radius); background: var(--white); display: grid; align-content: center; justify-items: center; gap: 12px; min-height: 176px; padding: 24px; text-align: center; color: var(--muted); }
.spinner { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.catalogue-controls { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .58fr); align-items: center; gap: 12px; }
.catalogue-search { width: 100%; }
.inline-search { width: min(100%, 460px); }
.inline-search .button { min-height: 34px; padding: 5px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 13px; min-height: 36px; border: 1px solid var(--line); color: var(--muted); border-radius: 40px; font-size: 13px; font-weight: 680; background: var(--white); }
.chips button.chosen, .chips button:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.catalogue-meta { margin: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.catalogue-meta select, .field select { color: var(--ink); padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }

.product-detail { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.detail-image { display: grid; place-items: center; background: var(--stage); overflow: hidden; min-width: 0; }
.detail-image img { max-height: 445px; aspect-ratio: 1.2; object-fit: contain; }
.detail-info { display: grid; align-content: center; justify-items: start; min-width: 0; padding: clamp(19px, 3.5vw, 43px); }
.detail-info h1 { font-size: clamp(25px, 3.7vw, 39px); line-height: 1.22; margin: 10px 0; }
.detail-pricing { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; width: 100%; margin-top: 18px; padding: 13px 14px; border-radius: 11px; background: var(--accent-soft); }
.detail-price { display: block; font-size: 34px; }
.detail-stock { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.detail-stock span { border: 1px solid var(--accent-line); border-radius: 20px; padding: 3px 7px; }
.detail-actions { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; margin-top: 7px; }
.detail-actions .button { min-width: 0; padding-inline: 8px; }
.detail-actions .icon-secondary { padding-inline: 10px; }
.quantity-line { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.quantity-control { display: inline-grid; grid-template-columns: 32px 34px 32px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--white); text-align: center; font-size: 14px; }
.quantity-control button { display: grid; place-items: center; min-height: 32px; }
.quantity-control button:hover:not(:disabled) { background: var(--brand-soft); }
.inline-notice { display: flex; align-items: center; gap: 7px; color: var(--muted); }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, 360px); gap: 16px; align-items: start; }
.item-list { padding: 0 18px; }
.cart-list-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
.cart-list-head h2 { font-size: 18px; }
.line-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.line-row:last-child { border-bottom: 0; }
.line-image { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; background: var(--field); flex: 0 0 auto; }
.line-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.line-name p, .line-amount p, .address-card-info p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.line-name .price { display: inline-block; margin-top: 5px; font-size: 16px; }
.line-amount { text-align: right; white-space: nowrap; }
.line-end { display: grid; justify-items: end; gap: 3px; }
.summary { display: grid; gap: 11px; background: #fbf9f4; border-color: var(--line); }
.summary h2 { margin-bottom: 2px; }
.money-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 25px; color: var(--muted); font-size: 14px; }
.money-row strong:not(.price) { color: var(--ink); white-space: nowrap; }
.total-row { border-top: 1px solid var(--line); padding-top: 10px; padding-bottom: 4px; font-weight: 650; }
.check-label { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 30px; }
.address-select { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 9px; text-align: left; padding: 11px; border-radius: 9px; background: var(--field); }
.address-select span { display: grid; gap: 5px; }
.address-select small { color: var(--muted); }
.address-card { display: grid; gap: 12px; }
.address-card-info { display: flex; gap: 12px; align-items: flex-start; }
.address-card-info .pill-label { margin-left: 8px; }
.address-form { display: grid; gap: 12px; }
.address-form .section-heading { margin-bottom: 0; }
.field { display: grid; gap: 7px; font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--field-line); min-height: 41px; padding: 9px 11px; border-radius: 8px; background: var(--white); }
.field textarea { min-height: 70px; resize: vertical; }
.account-grid { display: grid; grid-template-columns: minmax(240px, .67fr) minmax(0, 1.33fr); gap: 16px; align-items: start; }
.account-intro, .order-banner { display: flex; align-items: center; gap: 14px; padding: 19px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-deep); min-width: 0; }
.account-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; padding: 24px; min-height: 168px; border: 1px solid var(--brand-line); }
.account-intro .text-button { grid-column: 2; text-align: left; justify-self: start; }
.account-intro p, .order-banner p { font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.account-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: var(--white); }
.order-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.order-shortcuts button { color: var(--brand); border-radius: 10px; display: grid; gap: 7px; justify-items: center; padding: 8px 1px; font-size: 13px; font-weight: 700; }
.order-shortcuts button > span, .account-link-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.order-shortcuts button:hover, .account-links button:hover { background: var(--field); }
.account-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.account-links button { display: grid; width: 100%; gap: 10px; align-items: center; grid-template-columns: 36px minmax(0, 1fr) 17px; text-align: left; padding: 13px; font-size: 14px; }
.account-link-icon { width: 36px; height: 36px; border-radius: 10px; }
.account-links button:last-child { border-bottom: 0; }
.order-card-head, .order-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.order-card-head strong { color: var(--brand); background: var(--brand-soft); padding: 4px 8px; border-radius: 20px; }
.order-card-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 3px; }
.help-detail { padding: 16px 20px; }
.help-detail summary { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 720; list-style: none; cursor: pointer; }
.help-detail summary::-webkit-details-marker { display: none; }
.help-detail summary::after { content: "+"; margin-left: auto; }
.help-detail[open] summary::after { content: "−"; }
.help-detail p { font-size: 14px; line-height: 1.7; margin-top: 10px; color: var(--muted); }


.card-hero { min-height: 285px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); border-radius: 24px; overflow: hidden; margin-bottom: 19px; color: var(--ink); background: var(--stage); }
.card-hero-copy { display: grid; align-content: center; justify-items: start; padding: 29px clamp(24px, 5.3vw, 68px); min-width: 0; }
.card-hero h1 { font-size: clamp(34px, 5vw, 63px); line-height: 1.12; }
.card-hero p { font-size: 15px; line-height: 1.65; max-width: 24em; margin: 13px 0 18px; color: var(--muted); }
.card-hero-art { background: var(--stage-image); }
.card-hero .button.secondary { color: var(--accent); background: var(--white); border-color: var(--brand-line); }
.card-hero .button.secondary:hover:not(:disabled) { background: var(--brand-soft); }
.card-shop .text-button { display: flex; align-items: center; justify-content: center; gap: 5px; }
.denominations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.denominations button { background: var(--white); border: 1px solid var(--line); padding: 11px 2px; min-height: 56px; border-radius: 10px; font-weight: 800; font-size: clamp(16px, 2.2vw, 23px); color: var(--accent); font-variant-numeric: tabular-nums; }
.denominations button.chosen { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.denominations small { font-size: .65em; margin-right: 1px; }
.card-shop .chips button.chosen, .card-shop .chips button:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.card-shop .summary { border-top: 2px solid var(--accent-line); }
.wallet-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wallet-error { margin-bottom: 10px; }
.claim-form { width: 100%; margin-top: 9px; }
.card-purchase, .wallet-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 12px 2px; overflow-wrap: anywhere; }
.card-purchase.highlighted { background: var(--accent-soft); border-radius: 9px; padding: 12px 9px; }
.card-purchase p, .wallet-card p { color: var(--muted); font-size: 13px; margin: 5px 0; }
.wallet-entries { flex: 1 1 100%; background: var(--field); border-radius: 8px; padding: 10px; }
.operation-form { display: grid; gap: 10px; align-content: start; }
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.operation-error { margin-bottom: 12px; background: #f9eae8; padding: 10px; border-radius: 9px; }
.issued-code { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: var(--field); padding: 8px; margin-top: 8px; border-radius: 7px; color: var(--brand); overflow-wrap: anywhere; font-size: 13px; }

@media (max-width: 900px) {
  .container { width: calc(100% - 44px); }
  .header-main { gap: 16px; }
  .header-actions { gap: 5px; }
  .desktop-nav { gap: 14px; }
  .card-entry-copy { padding-left: 15px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .header-main { padding: 9px 0; min-height: 58px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
  .header-main-inner { grid-template-columns: auto 1fr auto; }
  .wordmark { min-height: 37px; gap: 8px; justify-self: start; }
  .wordmark-symbol { width: 36px; height: 36px; border-radius: 12px; }
  .wordmark-symbol svg { width: 19px; height: 19px; }
  .wordmark strong { font-size: 17px; }
  .wordmark small { font-size: 7px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 42px; }
  .header-search button { width: 32px; height: 32px; }
  .header-actions { grid-column: 2; }
  .header-main-inner .header-actions { grid-column: 3; }
  .header-action { width: 40px; min-height: 40px; }
  .header-main-inner .wordmark, .header-main-inner .header-search, .desktop-only, .desktop-nav { display: none; }
  .mobile-title { display: block; text-align: center; font-size: 16px; }
  .mobile-back { display: inline-grid; min-width: 40px; min-height: 40px; }
  .page-content { padding: 14px 0 28px; }
  .hero { min-height: clamp(211px, 60vw, 308px); grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); border-radius: 16px; }
  .hero-copy { padding: 15px 8px 15px clamp(14px, 4.8vw, 28px); }
  .hero h1 { font-size: clamp(30px, 9vw, 56px); }
  .hero-description { font-size: 12px; margin-top: 9px; max-width: 14em; }
  .hero-button { margin-top: 12px; min-height: 40px; padding: 7px 10px; font-size: 12px; }
  .hero-art img { object-position: 55% center; }
  .home-discovery { grid-template-columns: 1fr; gap: 12px; margin-top: 17px; }
  .category-section { padding: 0; background: transparent; border: 0; }
  .category-section .section-heading { margin-bottom: 7px; }
  .home-section { margin-top: 24px; }
  .section-heading { margin-bottom: 10px; }
  .section-heading h2 { font-size: 22px; }
  .section-link { font-size: 12px; }
  .category-grid { gap: 4px; }
  .category-tile { gap: 6px; min-height: 64px; padding: 2px 0 6px; }
  .category-icon { width: 42px; height: 42px; border-radius: 14px; }
  .category-icon svg { width: 21px; height: 21px; }
  .category-copy strong { font-size: 11px; }
  .category-copy small { display: none; }
  .card-entry-banner { min-height: 93px; grid-template-columns: minmax(0, 1fr) minmax(0, .50fr); border-radius: 14px; }
  .card-entry-copy { padding: 10px 7px 10px 14px; gap: 4px; }
  .card-entry-copy strong { font-size: 18px; }
  .card-entry-arrow { width: 24px; height: 24px; margin-top: 1px; }
  .card-entry-arrow svg { width: 16px; height: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { border-radius: 13px; }
  .product-card-info { padding: 9px; gap: 7px; }
  .product-title { font-size: 14px; }
  .product-meta, .product-tag { font-size: 10px; }
  .price { font-size: 17px; }
  .add { width: 34px; height: 34px; }
  .service-strip { gap: 5px; margin-top: 18px; padding: 8px; }
  .service-strip button { flex-direction: column; justify-content: start; text-align: center; gap: 5px; font-size: 12px; }
  .service-strip small { display: none; }
  .site-footer { padding-bottom: calc(79px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; z-index: 12; bottom: 0; left: 0; right: 0; padding: 6px 6px calc(5px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px #2927220b; }
  .bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 44px; color: var(--muted); font-size: 11px; font-weight: 650; }
  .bottom-nav .current { color: var(--brand); }
  .bottom-nav .current .cart-icon { background: var(--brand-soft); border-radius: 10px; padding: 2px 11px; }
  .bottom-nav .cart-icon i { right: -3px; top: -4px; }
  .page-heading { margin-bottom: 15px; padding: 1px 0 11px; }
  .page-heading p { font-size: 13px; }
  .product-detail, .checkout-grid, .account-grid, .wallet-layout, .catalogue-controls { grid-template-columns: 1fr; gap: 10px; }
  .account-intro { padding: 15px; min-height: 102px; }
  .product-back-link { display: none; }
  .detail-info { padding: 15px; }
  .detail-pricing { margin-top: 12px; padding: 9px 11px; }
  .detail-price { font-size: 30px; }
  .detail-image img { max-height: 275px; aspect-ratio: 1.32; }
  .line-row { gap: 8px; }
  .line-image { width: 48px; height: 48px; }
  .line-name strong { font-size: 14px; }
  .item-list { padding: 0 10px; }
  .content-panel, .summary { padding: 14px; }
  .cart-line .quantity-control { grid-template-columns: 25px 23px 25px; }
  .card-hero { min-height: 177px; border-radius: 16px; margin-bottom: 13px; }
  .card-hero-copy { padding: 17px 10px 16px 15px; }
  .card-hero h1 { font-size: clamp(24px, 7vw, 39px); }
  .card-hero p { font-size: 12px; margin: 6px 0 11px; }
  .card-hero .button { min-height: 37px; padding: 6px 9px; font-size: 12px; }
  .denominations { gap: 5px; }
  .denominations button { min-height: 50px; }
  .operations-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
