/* Public storefront: the same brand palette and lockup as NFC and the mini program. */
:root {
  color-scheme: dark;
  --paper: var(--yf-background);
  --surface: var(--yf-surface);
  --soft: var(--yf-inset);
  --ink: var(--yf-text);
  --muted: var(--yf-muted);
  --line: var(--yf-line);
  --accent: var(--yf-gold);
}
html { background: var(--paper); scroll-padding-top: 112px; }
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--yf-font); line-height: 1.65; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1,h2,h3,p,.serial,.line-info,.params span { overflow-wrap: anywhere; }
a,button,input,textarea,select { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--yf-price); }
button,a,input,select,textarea { scroll-margin-top: 112px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid var(--yf-gold); outline-offset: 4px; }
button { min-height: 44px; background: #222a23; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 11px 20px; }
button:hover { background: #2a322b; filter: none; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 1px solid var(--yf-primary); border-radius: 6px; background: var(--yf-primary); color: #1b1b17; font-weight: 600; }
.primary:hover { background: #d3b57d; border-color: #d3b57d; color: #1b1b17; }
.secondary { background: #2a322b; color: var(--ink); border-color: #aa915f80; }
input,textarea,select { background: var(--soft); color: var(--ink); border-color: var(--line); border-radius: 6px; font-size: 16px; }
input::placeholder,textarea::placeholder { color: #a99f8c; opacity: 1; }
input:focus,textarea:focus,select:focus { border-color: var(--yf-gold); box-shadow: 0 0 0 3px #d1ad671a; }
input[type=checkbox],input[type=radio] { width: auto; accent-color: var(--yf-primary); }
label { color: var(--muted); font-size: 14px; }
textarea { resize: vertical; min-height: 100px; }
.skip-link { background: var(--yf-primary); color: #1b1b17; }
#header { flex-shrink: 0; min-height: calc(92px + env(safe-area-inset-top)); height: auto; padding: max(16px, env(safe-area-inset-top)) max(4vw,24px) 16px; gap: 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { font-size: 14px; gap: 32px; color: var(--muted); }
.nav a { position: relative; padding: 14px 0; }
.nav a:hover,.nav a.active { color: var(--yf-price); }
.nav a.active:after { display: block; position: absolute; bottom: 4px; left: 0; content: ''; width: 100%; height: 1px; margin: 0; background: var(--yf-gold); }
.header-actions { gap: 14px; color: #d8c7a3; }
.header-actions a { min-width: 40px; }
.cart-badge { background: var(--yf-primary); color: #1b1b17; }
#shop { width: 100%; flex: 1 0 auto; max-width: 1560px; margin: 0 auto; padding: 0 max(4vw,24px) 56px; }
.catalog-toolbar { padding: 30px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.catalog-heading { align-items: center; gap: 16px; }
.catalog-heading h1,.page-title,.detail-info h1,.section-head h2,.scans h2,.auth-form h1,.about-page h1 { font-family: var(--yf-display); font-weight: 500; letter-spacing: .06em; }
.catalog-heading h1 { font-size: 28px; }
.catalog-heading>span { font-size: 13px; color: var(--muted); }
.catalog-selects select { background: #202820; border: 1px solid var(--line); color: #dfcfad; border-radius: 5px; font-size: 13px; min-height: 44px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-size: 13px; min-height: 44px; }
.chip.active { color: #1b1b17; background: var(--yf-primary); border-color: var(--yf-primary); }
.products { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 22px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 8px 22px #0002; }
.product-card:hover { box-shadow: 0 14px 28px #0004; border-color: #ad935d90; }
.cover { aspect-ratio: .88; padding: 18px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.cover img { mix-blend-mode: normal; }
.cover .tag { color: #e2c88e; background: #151a16ed; border-color: #ad935d70; border-radius: 3px; font-size: 12px; }
.card-body { padding: 20px; }
.card-body h2 { font-size: 19px; letter-spacing: .02em; font-weight: 500; color: var(--ink); }
.card-body p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.card-bottom { margin-top: 20px; }
.card-bottom strong { color: var(--yf-price); font-size: 21px; font-weight: 500; }
.card-add { min-height: 44px; color: #e4cd9d; background: #2a322b; border: 1px solid #ad935d70; border-radius: 5px; font-size: 13px; }
.card-add:hover { background: #364033; }
.banners img { border: 1px solid var(--line); border-radius: 7px; }
.page-title { font-size: 30px; margin: 34px 0 26px; }
.breadcrumb { font-size: 14px; color: var(--muted); padding: 26px 0; }
.detail-grid { gap: 52px; }
.detail-cover { background: var(--soft); border: 1px solid var(--line); border-radius: 7px; height: min(68vh,720px); }
.thumbs img { background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }
.detail-info h1 { font-size: 34px; }
.detail-info .eyebrow { color: var(--yf-gold); font-size: 13px; letter-spacing: .09em; }
.detail-price { color: var(--yf-price); font-weight: 500; font-size: 32px; }
.detail-info>p { color: var(--muted); font-size: 15px; max-width: 620px; }
.params { gap: 0 16px; border-color: var(--line); }
.params div { min-width: 0; padding: 16px 0; border-color: var(--line); }
.params small { color: var(--muted); font-size: 13px; }
.params span { font-size: 16px; }
.buy-row button { min-height: 50px; }
.scans img { background: var(--soft); border: 1px solid var(--line); border-radius: 7px; min-height: 120px; }
.scans .muted { color: var(--muted); font-size: 13px; }
.section-head h2 { font-size: 25px; }
.box,.line-item,.profile-links a { background: var(--surface); border-color: var(--line); border-radius: 7px; }
.box { padding: 26px; box-shadow: 0 8px 20px #0002; }
.box h2 { font-size: 21px; font-weight: 500; }
.muted,.line-info p,.notice,.empty,.auth-back,.auth-help { color: var(--muted); font-size: 14px; }
.line-item { gap: 20px; }
.line-item img { background: var(--soft); border-radius: 4px; }
.line-info h3 { font-size: 16px; }
.line-info .money { color: var(--yf-price); }
.summary { background: var(--surface); color: var(--ink); border: 1px solid #ad935d80; border-radius: 7px; }
.summary strong { color: var(--yf-price); }
.summary button { min-width: 120px; }
.address { border-color: var(--line); border-radius: 6px; }
.address:has(input:checked) { background: #2b352d; border-color: var(--yf-primary); }
.notice { background: #222b23; border: 1px solid var(--line); border-radius: 6px; line-height: 1.8; }
.profile-links a { min-height: 80px; display: flex; align-items: center; }
.account-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-title .eyebrow { display: none; }
.account-title h2 { margin: 0 0 10px; }
.auth-layout { display: block; width: 100%; max-width: 430px; margin: 44px auto 8px; }
.auth-form { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 16px 40px #0003; }
.auth-form h1 { font-size: 30px; margin: 24px 0; }
.auth-form input:not([type=checkbox]) { height: 48px; background: var(--soft); border-color: var(--line); color: var(--ink); font-size: 16px; }
.auth-form label { color: var(--muted); font-size: 14px; }
.sms-code-row { display: flex; align-items: center; border: 1px solid var(--line); background: var(--soft); border-radius: 6px; gap: 4px; margin-top: 8px; padding-right: 6px; }
.auth-form .sms-code-row input { margin: 0; min-width: 0; flex: 1; border: 0; background: transparent; box-shadow: none; }
.sms-code-row:focus-within { border-color: var(--yf-gold); }
.sms-code-row button { width: auto; flex-shrink: 0; min-height: 38px; height: auto; padding: 8px 10px; border: 0; color: #e0c897; background: #2a322b; font-size: 12px; }
.auth-form .agreement { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.agreement input { width: 18px; height: 18px; margin: 0; }
.agreement a { color: #e0c897; text-decoration: underline; text-underline-offset: 4px; }
.auth-submit { width: 100%; margin-top: 6px; min-height: 48px; font-size: 16px; }
.form-error,.error,.shipment-error { color: #efaa95; }
.form-error { min-height: 18px; font-size: 13px; }
.about-page { margin-top: 34px; max-width: 860px; line-height: 1.95; }
.about-page h1 { font-size: 32px; }
.about-page p { color: #cfc5b2; }
.empty { padding: 72px 16px; line-height: 1.9; }
.empty a,.text-link { color: #e0c897; text-decoration: underline; text-underline-offset: 5px; }
.timeline li,.ticket { border-color: var(--line); }
.skeleton { background: linear-gradient(110deg,#202820,#2a322b,#202820); border-radius: 7px; }
.site-footer { flex-shrink: 0; width: 100%; margin: auto 0 0; padding: 0 max(4vw,24px); text-align: left; background: var(--yf-footer); border-top: 1px solid #a88b57; color: var(--muted); }
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 0; }
.footer-links { display: flex; justify-content: flex-end; gap: 12px 28px; margin: 0; font-size: 14px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; }
.footer-legal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); padding: 20px 0 24px; }
.site-footer small,.site-record { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer .yf-brand:hover { text-decoration: none; color: var(--ink); }
dialog,dialog:has(.address-editor) { background: var(--surface); color: var(--ink); border: 1px solid #ad935d80; border-radius: 8px; box-shadow: 0 24px 80px #0008; }
dialog::backdrop { background: #080d0ae8; backdrop-filter: blur(5px); }
.dialog-head h2 { font-size: 23px; font-weight: 500; }
.dialog-head button { min-width: 44px; min-height: 44px; color: var(--yf-price); }
.privacy { font-size: 15px; color: #ded4c0; line-height: 1.95; }
dialog:has(.consent-dialog) { background: var(--surface); border: 1px solid #ad935d80; border-radius: 8px; }
.consent-dialog p { color: var(--muted); }
.consent-dialog a { color: var(--yf-price); }
.gallery { background: var(--paper); border-color: var(--line); }
.gallery .image-scroll { background: var(--soft); border-radius: 5px; }
.gallery-actions button { border-radius: 5px; }
#gallery-status { color: var(--muted); font-size: 14px; }
.address-editor,.address-editor label,.address-region legend,dialog:has(.address-editor) .dialog-head h2 { color: var(--ink); }
.address-editor input,.address-editor select { background: var(--soft); color: var(--ink); border-color: var(--line); }
.address-editor input:focus,.address-editor select:focus { border-color: var(--yf-gold); box-shadow: 0 0 0 3px #d1ad671a; }
.address-candidates { background: var(--soft); border-color: var(--line); }
.address-candidates li+li { border-color: var(--line); }
.address-candidates strong { color: var(--ink); }
.address-candidates span,.address-intro,.address-selects label,.address-region-status,.address-search-status,.address-privacy,.address-region-tools button { color: var(--muted); }
.address-candidates li[aria-selected=true],.address-candidates button:hover { background: #2b352d; }
.address-editor .address-save { background: var(--yf-primary) !important; border-color: var(--yf-primary) !important; color: #1b1b17 !important; }
.shipment-panel { color: var(--ink); }
.shipment-number,.shipment-timeline li,.shipment-manual { border-color: var(--line); }
.shipment-carrier,.shipment-updated,.shipment-number>span,.shipment-timeline time,.shipment-timeline span,.shipment-empty,.shipment-manual,.shipment-estimate>span,.shipment-estimate p { color: var(--muted); }
.shipment-estimate { background: var(--soft); }
.shipment-timeline li.latest h3 { color: var(--yf-price); }
.shipment-timeline li.latest:before { background: var(--yf-gold); box-shadow: 0 0 0 4px #d1ad6720; }
#toast { background: #2a322bf7; color: var(--ink); border: 1px solid #ad935d80; box-shadow: 0 8px 30px #0006; pointer-events: none; text-align: center; }
@media(max-width:1100px) {
  .nav { gap: 20px; }
  .header-actions { gap: 6px; }
  .footer-top { align-items: flex-start; }
  .footer-links { gap: 8px 20px; }
}
@media(max-width:1000px) {
  .products { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 16px; }
  .card-body { padding: 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
  .detail-grid { gap: 28px; }
}
@media(max-width:800px) {
  .nav { display: none; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: minmax(0,1fr); }
  .footer-top { flex-direction: column; gap: 18px; }
  .footer-links { justify-content: flex-start; }
}
@media(max-width:650px) {
  html { scroll-padding-top: 108px; }
  body { padding: 0; }
  #header { padding-inline: 20px; min-height: calc(86px + env(safe-area-inset-top)); gap: 8px; flex-wrap: nowrap; }
  .header-actions>a:not(:last-child) { display: none; }
  #shop { padding: 0 16px 36px; }
  .catalog-toolbar { padding: 24px 0 20px; gap: 18px; margin-bottom: 20px; }
  .catalog-heading h1 { font-size: 25px; }
  .catalog-selects select { padding: 9px 12px; font-size: 13px; }
  .products { gap: 18px 12px; }
  .cover { aspect-ratio: .8; padding: 10px 8px; }
  .card-body { padding: 14px 12px; }
  .card-body h2 { font-size: 16px; min-height: 0; margin-bottom: 7px; }
  .card-body p { font-size: 12px; min-height: 0; }
  .card-bottom { margin-top: 16px; gap: 6px; }
  .card-bottom strong { font-size: 17px; }
  .card-add { min-width: 40px; min-height: 40px; padding: 8px; }
  .card-add span { display: none; }
  .page-title { font-size: 27px; }
  .breadcrumb { font-size: 13px; padding: 22px 0; }
  .detail-info h1 { font-size: 29px; }
  .detail-cover { min-height: 320px; height: 58vh; }
  .detail-price { font-size: 30px; }
  .detail-grid { gap: 22px; }
  .params { gap: 0 12px; }
  .params small { font-size: 13px; }
  .params span { font-size: 15px; }
  .box { padding: 20px; }
  .line-item { gap: 12px; padding: 14px 12px; }
  .line-info h3 { font-size: 15px; }
  .line-info p { font-size: 12px; }
  .summary { bottom: calc(72px + env(safe-area-inset-bottom)); padding: 16px 12px; }
  .summary>span { font-size: 13px; }
  .summary strong { font-size: 19px; }
  .summary button { min-width: 90px; padding: 10px 14px; }
  .profile-links a { font-size: 15px; padding: 18px; }
  .account-title { flex-wrap: wrap; }
  .auth-layout { margin: 28px auto 8px; }
  .auth-form { padding: 24px 20px; }
  .auth-form h1 { font-size: 29px; }
  .auth-form .agreement { font-size: 12px; }
  .site-footer { padding: 0 20px calc(74px + env(safe-area-inset-bottom)); }
  .footer-top { padding: 28px 0 18px; gap: 18px; }
  .footer-links { gap: 0 22px; font-size: 13px; }
  .footer-legal { display: block; padding: 18px 0 22px; }
  .site-record { margin-top: 8px; }
  .mobile-nav { display: flex; min-height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 5px calc(6px + env(safe-area-inset-bottom)); background: #101510f7; border-top: 1px solid var(--line); }
  .mobile-nav a { color: #bcb4a5; font-size: 11px; }
  .mobile-nav a.active { color: var(--yf-price); }
  #toast { bottom: calc(82px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 30px); font-size: 14px; }
  .gallery-actions button { min-height: 40px; }
}
@media(max-width:360px) {
  .card-body { padding: 12px 10px; }
  .card-body h2 { font-size: 15px; }
  .card-bottom strong { font-size: 15px; }
  .auth-form { padding: 22px 16px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
