@import url('/vendor/bootstrap-icons/font/bootstrap-icons.min.css');

:root {
  color-scheme: light;
  --ink: #201e2d;
  --ink-soft: #393747;
  --muted: #7a7887;
  --muted-light: #a3a1ad;
  --line: #e8e7eb;
  --line-strong: #dbd9e1;
  --paper: #ffffff;
  --canvas: #f7f7f4;
  --canvas-soft: #f1f0ed;
  --accent: #6956df;
  --accent-dark: #5142be;
  --accent-pale: #f1efff;
  --accent-line: #ded9ff;
  --green: #438961;
  --green-pale: #edf7f0;
  --amber: #b47822;
  --amber-pale: #fff6e8;
  --red: #b64a54;
  --red-pale: #fff0f1;
  --shadow: 0 16px 40px rgba(36, 32, 58, .07);
  --radius: 18px;
  --radius-small: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.hidden { display: none !important; }
.page-container { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }

.site-header, .admin-topbar {
  height: 78px;
  padding: 0 max(28px, calc((100vw - 1376px) / 2));
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  font-size: 25px;
}
.brand-name { color: #211f2e; font-weight: 750; font-size: 21px; letter-spacing: -.055em; }
.brand-small .brand-symbol { width: 30px; height: 30px; font-size: 20px; }
.brand-small .brand-name { font-size: 17px; }
.site-nav-links { display: flex; align-items: center; gap: 34px; margin-left: 78px; color: var(--muted); font-size: 14px; }
.site-nav-links a { transition: color .18s ease; }
.site-nav-links a:hover, .site-nav-links .active { color: var(--ink); }
.site-header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; font-size: 14px; }
.text-link:hover { color: var(--accent); }
.admin-entry { padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: 999px; }
.mobile-admin { display: none !important; }
.icon-button {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 auto;
  background: transparent; border: 1px solid transparent; border-radius: 12px; color: var(--muted); cursor: pointer;
}
.icon-button:hover { color: var(--accent); background: var(--accent-pale); border-color: var(--accent-line); }

.store-hero { min-height: 488px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 34px; padding-top: 32px; padding-bottom: 34px; }
.hero-copy { padding: 26px 0 34px 5px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 11px; font-weight: 760; letter-spacing: .13em; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.hero-copy h1 { margin: 20px 0 19px; font-size: clamp(44px, 5.2vw, 68px); line-height: 1.14; letter-spacing: -.07em; font-weight: 760; }
.hero-copy h1 span { color: var(--accent); }
.hero-copy p { max-width: 460px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 21px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 680; font-size: 14px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 7px 15px rgba(105,86,223,.16); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: white; border-color: var(--line-strong); color: var(--ink-soft); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.button-wide { width: 100%; min-height: 52px; }
.hero-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.hero-note i { color: var(--green); font-size: 15px; }
.hero-art { min-height: 380px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 26px; background: #eeecf8; }
.hero-art > img { position: relative; z-index: 1; width: min(330px, 63%); aspect-ratio: 1; object-fit: cover; border-radius: 26px; box-shadow: 0 24px 50px rgba(38,31,72,.22); transform: rotate(3deg); }
.hero-orbit { position: absolute; width: 340px; height: 340px; border: 1px solid rgba(105,86,223,.16); border-radius: 50%; }
.orbit-one { width: 440px; height: 440px; }
.orbit-two { width: 520px; height: 520px; }
.hero-art-caption { position: absolute; z-index: 2; left: 24px; bottom: 21px; display: flex; flex-direction: column; gap: 5px; padding: 11px 15px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.8); border-radius: 13px; box-shadow: 0 8px 24px rgba(31,27,49,.08); }
.hero-art-caption span { color: var(--muted); font-size: 11px; }
.hero-art-caption strong { font-size: 13px; font-weight: 690; }
.hero-art-tag { position: absolute; right: 21px; top: 20px; z-index: 2; display: flex; align-items: center; gap: 7px; color: #59556e; font-size: 10px; letter-spacing: .08em; }
.hero-art-tag i { color: var(--accent); }

.benefit-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 24px; margin-bottom: 99px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.benefit-item { display: flex; align-items: center; gap: 13px; min-height: 50px; padding: 2px 16px; }
.benefit-item + .benefit-item { border-left: 1px solid var(--line); }
.benefit-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; color: var(--accent); background: var(--accent-pale); border-radius: 14px; font-size: 17px; }
.benefit-item strong, .benefit-item small { display: block; }
.benefit-item strong { font-size: 13px; font-weight: 690; }
.benefit-item small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.catalog-section { padding-bottom: 104px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading h2 { margin: 10px 0 4px; font-size: 30px; letter-spacing: -.05em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.catalog-search { width: 250px; height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: white; border: 1px solid var(--line); border-radius: 11px; color: var(--muted-light); }
.catalog-search:focus-within { border-color: #aaa0f2; box-shadow: 0 0 0 3px rgba(105,86,223,.08); }
.catalog-search input { min-width: 0; width: 100%; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 13px; }
.catalog-search input::placeholder { color: var(--muted-light); }
.category-tabs { display: flex; gap: 7px; margin: 26px 0 19px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.category-tab { padding: 8px 13px; background: transparent; border: 1px solid transparent; border-radius: 999px; color: var(--muted); cursor: pointer; font-size: 13px; }
.category-tab:hover { color: var(--ink); background: white; }
.category-tab.active { color: var(--accent); background: var(--accent-pale); border-color: var(--accent-line); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product-card { min-width: 0; padding: 12px 12px 17px; background: white; border: 1px solid var(--line); border-radius: 17px; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card-image { position: relative; overflow: hidden; display: block; width: 100%; aspect-ratio: 1.47; background: var(--canvas-soft); border-radius: 12px; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-card-image img { transform: scale(1.025); }
.product-card-category { position: absolute; left: 12px; top: 12px; padding: 5px 9px; color: var(--ink-soft); background: rgba(255,255,255,.9); border-radius: 999px; font-size: 10px; font-weight: 650; }
.product-card-content { padding: 14px 4px 0; }
.product-card h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.product-card p { min-height: 43px; margin: 6px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-size: 19px; font-weight: 760; letter-spacing: -.04em; }
.product-price small { margin-right: 2px; font-size: 12px; font-weight: 600; }
.buy-button { min-height: 38px; padding: 0 12px; font-size: 12px; }
.stock-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.stock-note i { color: var(--green); }
.loading-card { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 48px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; }
.loading-spinner { width: 17px; height: 17px; display: inline-block; border: 2px solid var(--accent-line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer a:last-child { color: var(--muted); }
.site-footer a:last-child:hover { color: var(--accent); }

.checkout-header { padding-inline: max(28px, calc((100vw - 1120px) / 2)); }
.checkout-header-note { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--green); font-size: 12px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 66px; padding-top: 36px; padding-bottom: 84px; }
.checkout-main-column { max-width: 660px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 29px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--accent); }
.checkout-main-column > h1 { margin: 8px 0 3px; font-size: 34px; letter-spacing: -.06em; }
.page-lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.checkout-section { padding: 26px 0 25px; border-bottom: 1px solid var(--line); }
.checkout-section-title { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 19px; }
.step-index { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .08em; padding-top: 3px; }
.checkout-section-title h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.checkout-section-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.checkout-product { display: flex; gap: 15px; align-items: center; min-height: 88px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 13px; }
.checkout-product img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.checkout-product-info { flex: 1; min-width: 0; }
.checkout-product-info strong { display: block; color: var(--ink); font-size: 14px; }
.checkout-product-info small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.checkout-product-price { font-weight: 740; color: var(--ink); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-method { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: left; cursor: pointer; }
.payment-method.selected { border-color: #a79bf2; box-shadow: 0 0 0 3px rgba(105,86,223,.08); }
.pay-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; font-size: 19px; }
.wechat-icon { color: #2e9c60; background: #e8f8ef; }
.alipay-icon { color: #1677de; background: #e9f3ff; font-weight: 760; }
.payment-method strong, .payment-method small { display: block; }
.payment-method strong { font-size: 13px; }
.payment-method small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.method-check { margin-left: auto; color: var(--accent); opacity: 0; }
.payment-method.selected .method-check { opacity: 1; }
.field-label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 12px; font-weight: 650; }
.field-label span { color: var(--muted-light); font-weight: 450; }
.text-field { width: 100%; min-height: 45px; padding: 10px 12px; outline: none; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; }
.text-field:focus { border-color: #a79bf2; box-shadow: 0 0 0 3px rgba(105,86,223,.08); }
.text-field::placeholder { color: #aaa8b3; }
.checkout-error, .dialog-error { min-height: 22px; padding-top: 5px; color: var(--red); font-size: 12px; }
.checkout-terms { display: flex; align-items: center; gap: 7px; margin: 11px 0 0; color: var(--muted-light); font-size: 10px; }
.checkout-aside { padding-top: 82px; }
.summary-card { position: sticky; top: 18px; padding: 21px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 28px rgba(36,32,58,.035); }
.summary-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.summary-heading i { color: var(--accent); font-size: 17px; }
.summary-product { display: flex; align-items: center; gap: 12px; min-height: 100px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.summary-product img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.summary-product strong { display: block; color: var(--ink); font-size: 12px; }
.summary-product small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.summary-line, .summary-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); font-size: 12px; }
.summary-line strong { color: var(--ink-soft); font-weight: 570; }
.summary-total { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 680; }
.summary-total strong { font-size: 22px; letter-spacing: -.04em; }
.summary-assurance { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 12px; color: var(--green); background: var(--green-pale); border-radius: 11px; font-size: 11px; line-height: 1.55; }
.summary-assurance i { font-size: 15px; }
.summary-assurance small { color: #679078; font-size: 10px; }
.help-note { display: flex; gap: 10px; margin-top: 17px; padding: 13px; color: var(--muted); background: #f0efec; border-radius: 12px; font-size: 11px; }
.help-note > i { color: var(--accent); font-size: 16px; }
.help-note strong { color: var(--ink-soft); font-size: 11px; }
.help-note p { margin: 4px 0 0; line-height: 1.65; }
.payment-dialog, .admin-dialog { width: min(440px, calc(100% - 32px)); max-height: min(90vh, 850px); padding: 28px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(30,26,47,.2); }
.payment-dialog::backdrop, .admin-dialog::backdrop { background: rgba(25,22,36,.38); backdrop-filter: blur(4px); }
.payment-dialog { text-align: center; }
.dialog-close { position: absolute; right: 15px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.dialog-close:hover { color: var(--ink); background: var(--canvas); }
.dialog-eyebrow { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.payment-dialog h2 { margin: 8px 0 5px; font-size: 21px; letter-spacing: -.04em; }
.dialog-product { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.qr-frame { position: relative; width: min(300px, 100%); height: auto; margin: 0 auto; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.qr-frame img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; image-rendering: auto; }
.qr-corner { position: absolute; width: 16px; height: 16px; border-color: var(--accent); border-style: solid; }
.qr-corner-tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; border-radius: 5px 0 0; }
.qr-corner-tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }
.qr-corner-bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }
.qr-corner-br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; border-radius: 0 0 5px; }
.qr-amount { margin-top: 15px; font-size: 25px; font-weight: 760; letter-spacing: -.04em; }
.payment-waiting { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 9px 0 15px; color: var(--muted); font-size: 12px; }
.pulse-dot { width: 7px; height: 7px; background: #d99b3c; border-radius: 50%; box-shadow: 0 0 0 4px #fff3df; }
.demo-payment-note { margin: 9px 0 13px; color: var(--amber); font-size: 11px; }
.order-link-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.order-link-row strong { color: var(--ink-soft); }
.order-link-row .text-link { font-size: 11px; }
.delivery-link { display: block; margin-top: 14px; color: var(--accent); font-size: 13px; font-weight: 680; }
.payment-guidance { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0 5px; padding: 11px 12px; color: var(--muted); background: var(--canvas); border-radius: 11px; text-align: left; font-size: 11px; line-height: 1.6; }
.payment-guidance > i { flex: 0 0 auto; margin-top: 1px; color: var(--accent); font-size: 14px; }
.payment-guidance strong { display: block; color: var(--ink-soft); font-size: 11px; }
.payment-guidance p { margin: 2px 0 0; }
.refresh-payment { margin: 4px auto 7px; color: var(--accent); font-size: 11px; }
.active-order-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 11px; padding: 13px 14px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.active-order-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.active-order-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--amber); background: var(--amber-pale); border-radius: 10px; }
.active-order-copy strong, .active-order-copy small { display: block; }
.active-order-copy strong { color: var(--ink-soft); font-size: 12px; }
.active-order-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.active-order-copy small b { color: var(--ink-soft); font-weight: 600; }
.active-order-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.active-order-card.is-paid .active-order-mark { color: var(--green); background: var(--green-pale); }
.active-order-card.is-expired .active-order-mark { color: var(--red); background: var(--red-pale); }

.delivery-wrap { padding-top: 74px; padding-bottom: 90px; display: flex; justify-content: center; }
.delivery-card { width: min(570px, 100%); padding: 36px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 14px 36px rgba(36,32,58,.05); }
.delivery-success-mark { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 18px; color: var(--green); background: var(--green-pale); border-radius: 50%; font-size: 25px; }
.delivery-card h1 { margin: 8px 0 7px; font-size: 27px; letter-spacing: -.05em; }
.delivery-product { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; padding: 12px; text-align: left; background: var(--canvas); border-radius: 13px; }
.delivery-product img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.delivery-product strong { display: block; font-size: 13px; }
.delivery-product small { color: var(--muted); font-size: 11px; }
.delivery-codes { margin-top: 13px; text-align: left; }
.delivery-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fcfcfb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; word-break: break-all; }
.delivery-code button { border: 0; background: transparent; color: var(--accent); cursor: pointer; flex: 0 0 auto; }
.delivery-order-number { margin-top: 16px; color: var(--muted); font-size: 11px; }
.delivery-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f2f1ee; }
.login-back { position: absolute; left: 28px; top: 25px; display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 13px; }
.login-card { width: min(420px, 100%); padding: 34px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 55px rgba(36,32,58,.08); }
.login-brand { margin-bottom: 34px; }
.login-card h1 { margin: 10px 0 5px; font-size: 27px; letter-spacing: -.05em; }
.login-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 9px; margin-top: 24px; }
.login-form label, .dialog-form label { margin-top: 5px; font-size: 12px; font-weight: 650; }
.login-form .button { margin-top: 9px; }
.login-error { margin: 2px 0 0; color: var(--red); font-size: 12px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 21px; padding-top: 16px; color: var(--muted-light); border-top: 1px solid var(--line); font-size: 10px; }

.admin-page { min-height: 100vh; background: #f4f4f1; }
.admin-topbar { height: 72px; padding-inline: clamp(22px, calc((100vw - 1450px) / 2), 64px); gap: 19px; }
.topbar-divider { width: 1px; height: 25px; background: var(--line); }
.admin-context { color: var(--muted); font-size: 12px; white-space: nowrap; }
.admin-main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.admin-nav-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; }
.admin-nav-item:hover { color: var(--ink); background: var(--canvas); }
.admin-nav-item.active { color: var(--accent); background: var(--accent-pale); font-weight: 700; }
.admin-user-menu { display: flex; align-items: center; gap: 9px; margin-left: 24px; font-size: 12px; font-weight: 650; }
.avatar-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--accent); border-radius: 50%; font-size: 13px; }
.admin-workspace { width: min(1430px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 62px; }
.admin-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 23px; }
.admin-page-heading h1 { margin: 6px 0 4px; font-size: 29px; letter-spacing: -.06em; }
.admin-page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-heading-actions { display: flex; align-items: center; gap: 10px; }
.admin-search { width: 275px; }
.metrics-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.metric-item { min-width: 0; padding: 16px 19px; }
.metric-item + .metric-item { border-left: 1px solid var(--line); }
.metric-item span, .metric-item strong, .metric-item small { display: block; }
.metric-item span { color: var(--muted); font-size: 11px; }
.metric-item strong { margin-top: 5px; font-size: 24px; letter-spacing: -.05em; }
.metric-item small { margin-top: 3px; color: var(--muted-light); font-size: 10px; }
.metric-item small i { margin-right: 3px; }
.admin-columns { display: grid; grid-template-columns: minmax(385px, 42%) minmax(0, 1fr); gap: 14px; align-items: start; }
.panel-surface { background: white; border: 1px solid var(--line); border-radius: 15px; }
.order-queue { overflow: hidden; }
.queue-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px 19px 15px; }
.queue-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; letter-spacing: -.03em; }
.queue-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.count-badge { min-width: 23px; padding: 3px 7px; border-radius: 999px; color: var(--ink-soft); background: var(--canvas-soft); font-size: 10px; text-align: center; }
.status-tabs { display: flex; align-items: center; gap: 4px; padding: 0 16px 11px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.status-tab { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.status-tab:hover { color: var(--ink); background: var(--canvas); }
.status-tab.active { color: var(--accent); background: var(--accent-pale); font-weight: 720; }
.status-tab span { min-width: 17px; color: inherit; opacity: .75; }
.order-list { max-height: 610px; overflow: auto; padding: 0 10px 10px; }
.order-date-heading { display: flex; align-items: center; gap: 9px; margin: 14px 9px 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.order-date-heading::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.order-row { width: 100%; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px; text-align: left; border: 1px solid transparent; border-radius: 12px; background: white; cursor: pointer; }
.order-row:hover { background: #fbfaff; }
.order-row.selected { border-color: #c6befa; background: #f5f3ff; }
.order-row img { width: 50px; height: 50px; border-radius: 9px; object-fit: cover; background: var(--canvas-soft); }
.order-row-main { min-width: 0; }
.order-row-main strong, .order-row-main small, .order-row-meta small { display: block; }
.order-row-main strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-row-main small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-row-meta { text-align: right; }
.order-row-meta strong { display: block; font-size: 12px; }
.order-row-meta small { margin-top: 5px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; font-size: 9px; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { color: #846222; background: #fff5df; }
.status-paid { color: #9b691c; background: var(--amber-pale); }
.status-delivered { color: var(--green); background: var(--green-pale); }
.status-cancelled { color: #8e8992; background: #f2f1f3; }
.status-demo { margin-left: 4px; padding: 2px 5px; color: var(--accent); background: var(--accent-pale); border-radius: 5px; font-size: 8px; }
.order-detail { position: sticky; top: 16px; min-height: 560px; padding: 21px; }
.detail-empty { min-height: 515px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--accent); background: var(--accent-pale); border-radius: 15px; font-size: 20px; }
.detail-empty h2 { margin: 15px 0 5px; font-size: 17px; }
.detail-empty p { max-width: 260px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.detail-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.detail-topline h2 { margin: 0; font-size: 17px; }
.detail-topline p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.detail-actions-top { display: flex; gap: 5px; }
.detail-item { display: flex; gap: 13px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-item img { width: 68px; height: 68px; object-fit: cover; border-radius: 11px; background: var(--canvas-soft); }
.detail-item-main { flex: 1; min-width: 0; }
.detail-item-main strong, .detail-item-main small { display: block; }
.detail-item-main strong { font-size: 14px; }
.detail-item-main small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.detail-price { text-align: right; font-size: 14px; font-weight: 720; }
.detail-meta { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-meta div { min-width: 0; padding-right: 8px; }
.detail-meta div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.detail-meta small, .detail-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-meta small { color: var(--muted); font-size: 10px; }
.detail-meta strong { margin-top: 4px; font-size: 11px; }
.fulfillment-block { padding-top: 16px; }
.fulfillment-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fulfillment-heading h3 { margin: 0; font-size: 14px; }
.fulfillment-heading span { color: var(--muted); font-size: 10px; }
.fulfillment-copy { margin: 4px 0 11px; color: var(--muted); font-size: 10px; }
.textarea-field { min-height: 102px; resize: vertical; line-height: 1.65; }
.delivery-code-list { display: grid; gap: 7px; margin-top: 9px; }
.admin-delivery-code { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); background: #fcfcfb; font-family: ui-monospace, Consolas, monospace; font-size: 11px; word-break: break-all; }
.admin-delivery-code button { flex: 0 0 auto; color: var(--accent); border: 0; background: transparent; cursor: pointer; }
.delivery-note { display: flex; gap: 9px; margin-top: 12px; padding: 11px 12px; border-radius: 10px; color: #6e5b98; background: #f5f2ff; font-size: 10px; line-height: 1.6; }
.delivery-note i { color: var(--accent); }
.detail-bottom-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-bottom-actions small { color: var(--muted); font-size: 10px; }
.detail-bottom-actions .button { min-width: 145px; }
.admin-empty-list { padding: 45px 15px; color: var(--muted); text-align: center; font-size: 12px; }
.admin-empty-list i { display: block; margin-bottom: 9px; color: var(--muted-light); font-size: 23px; }
.inventory-summary { display: flex; align-items: center; gap: 9px; margin: 3px 0 18px; padding: 12px 14px; color: #61558c; background: #f0edff; border-radius: 11px; font-size: 12px; }
.inventory-summary i { color: var(--accent); font-size: 15px; }
.admin-product-list { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 15px; }
.admin-product-row { display: grid; grid-template-columns: 64px minmax(180px,1.5fr) minmax(130px,1fr) minmax(135px,1fr) auto; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.admin-product-row:last-child { border-bottom: 0; }
.admin-product-row img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; }
.admin-product-name strong, .admin-product-name small { display: block; }
.admin-product-name strong { font-size: 13px; }
.admin-product-name small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.inventory-stat small, .inventory-stat strong { display: block; }
.inventory-stat small { color: var(--muted); font-size: 10px; }
.inventory-stat strong { margin-top: 4px; font-size: 13px; }
.inventory-stat .stock-low { color: var(--amber); }
.product-row-actions { display: flex; gap: 6px; }
.product-row-actions .button { min-height: 35px; padding-inline: 10px; font-size: 11px; }
.product-active-label { display: inline-flex; gap: 5px; align-items: center; margin-top: 6px; color: var(--green); font-size: 10px; }
.product-active-label::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.dialog-form { display: flex; flex-direction: column; gap: 10px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.dialog-header h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.04em; }
.dialog-form label { display: flex; flex-direction: column; gap: 6px; }
.dialog-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-form textarea { font-weight: 450; }
.dialog-copy { margin: 0; color: var(--muted); font-size: 12px; }
.field-hint { margin: 0; color: var(--muted); font-size: 10px; }
.field-hint i { color: var(--green); margin-right: 4px; }
.toast-region { position: fixed; z-index: 10; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast-message { max-width: min(370px, calc(100vw - 40px)); padding: 12px 15px; color: white; background: #282535; border-radius: 11px; box-shadow: 0 10px 30px rgba(24,20,39,.2); font-size: 12px; animation: toast-in .2s ease-out; }
.toast-message.error { background: #852f3c; }

/* Working states and administration actions */
.button-small { min-height: 34px; padding: 8px 11px; border-radius: 9px; font-size: 11px; }
.button-disabled { color: var(--muted); background: #efeff1; border: 1px solid #e6e5e8; cursor: not-allowed; }
.checkout-error:not(.visible) { visibility: hidden; }
.checkout-error.visible { padding: 8px 0 2px; }
.empty-list { display: flex; min-height: 190px; flex-direction: column; justify-content: center; align-items: center; gap: 7px; color: var(--muted); text-align: center; }
.empty-list > i { margin-bottom: 5px; color: var(--accent); font-size: 23px; }
.empty-list strong { color: var(--ink); font-size: 13px; }
.empty-list small { font-size: 11px; }
.product-row-actions { display: flex; align-items: center; gap: 6px; }
.admin-product-row.inactive { opacity: .65; }
.inactive-tag { margin-left: 5px; padding: 3px 6px; color: var(--muted); background: #f1f0f2; border-radius: 5px; font-size: 9px; font-weight: 500; }
.detail-delivery { padding: 16px 0 2px; }
.delivery-section-heading h3 { margin: 0; font-size: 13px; }
.delivery-section-heading p { margin: 4px 0 9px; color: var(--muted); font-size: 10px; }
.manual-delivery-form { display: grid; gap: 9px; margin-top: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfafc; }
.manual-delivery-form label { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.manual-delivery-form .button { justify-self: start; }
.delivery-done-label { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 11px; font-weight: 650; }
.payment-waiting.paid { color: var(--green); font-weight: 650; }
.payment-waiting.paid i { font-size: 15px; }
.button:disabled { opacity: .65; cursor: wait; }

/* The selected order-management direction puts the queue and detail first. */
.admin-workspace { padding-top: 22px; }
.admin-page #orders-view > .admin-page-heading,
.admin-page #orders-view > .metrics-row { display: none; }
.admin-page .admin-columns { grid-template-columns: minmax(365px, 39%) minmax(0, 1fr); gap: 16px; }
.admin-page .order-list { max-height: calc(100vh - 230px); }
.admin-page .order-detail { min-height: calc(100vh - 112px); }
.admin-page .queue-heading { padding: 20px 21px 17px; }
.admin-page .queue-heading h2 { font-size: 21px; }
.admin-page .queue-heading p { font-size: 13px; }
.admin-page .status-tabs { gap: 6px; padding-inline: 17px; }
.admin-page .status-tab { padding: 9px 12px; font-size: 12px; }
.admin-page .order-date-heading { margin: 17px 10px 9px; font-size: 12px; }
.admin-page .order-row { grid-template-columns: 86px minmax(0,1fr) auto; gap: 14px; padding: 17px 11px; }
.admin-page .order-row img { width: 82px; height: 82px; border-radius: 11px; }
.admin-page .order-row-main strong { font-size: 15px; }
.admin-page .order-row-main small { font-size: 12px; }
.admin-page .order-row-main .order-row-time { margin-top: 4px; }
.admin-page .order-row-meta strong { font-size: 15px; }
.admin-page .status-pill { padding: 5px 9px; font-size: 11px; }
.admin-page .detail-topline { padding-bottom: 20px; }
.admin-page .detail-topline h2 { font-size: 22px; }
.admin-page .detail-topline p { font-size: 13px; }
.admin-page .detail-item { gap: 18px; padding: 19px 0; }
.admin-page .detail-item img { width: 122px; height: 122px; border-radius: 13px; }
.admin-page .detail-item-main strong { font-size: 19px; }
.admin-page .detail-item-main small { font-size: 13px; }
.admin-page .detail-price { font-size: 19px; }
.admin-page .detail-meta { gap: 12px; padding: 18px 0; }
.admin-page .detail-meta div + div { padding-left: 15px; }
.admin-page .detail-meta small { font-size: 12px; }
.admin-page .detail-meta strong { font-size: 14px; }
.admin-page .detail-delivery { padding-top: 20px; }
.admin-page .delivery-section-heading h3 { font-size: 19px; }
.admin-page .delivery-section-heading p { font-size: 13px; }
.admin-page .order-detail .delivery-code { padding: 15px; font-size: 14px; }
.admin-page .detail-bottom-actions small,
.admin-page .delivery-done-label { font-size: 12px; }

@media (max-width: 980px) {
  .admin-page .admin-columns { grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .admin-page .order-detail { min-height: 0; }
  .admin-page .order-list { max-height: 440px; }
  .admin-page .order-row { grid-template-columns: 58px minmax(0,1fr) auto; gap: 9px; padding: 9px; }
  .admin-page .order-row img { width: 54px; height: 54px; }
  .admin-page .order-row-main strong { font-size: 12px; }
  .admin-page .order-row-main small { font-size: 10px; }
  .admin-page .order-row-meta strong { font-size: 12px; }
  .admin-page .detail-item img { width: 72px; height: 72px; }
  .admin-page .detail-item-main strong { font-size: 14px; }
  .admin-page .detail-item-main small { font-size: 11px; }
  .admin-page .detail-meta small { font-size: 10px; }
  .admin-page .detail-meta strong { font-size: 11px; }
  .admin-page .delivery-section-heading h3 { font-size: 15px; }
  .admin-page .delivery-section-heading p { font-size: 11px; }
  .product-row-actions { grid-column: 2 / -1; }
  .product-row-actions .button { flex: 1; }
  .detail-bottom-actions { align-items: flex-start; }
}
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .page-container { width: min(100% - 38px, 720px); }
  .store-hero { grid-template-columns: 1fr .85fr; min-height: 430px; gap: 15px; }
  .hero-art { min-height: 315px; }
  .hero-art > img { width: 68%; }
  .benefit-strip { margin-bottom: 74px; padding-inline: 4px; }
  .benefit-item { padding-inline: 10px; }
  .checkout-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 30px; }
  .admin-context { display: none; }
  .admin-columns { grid-template-columns: minmax(330px, 42%) minmax(0,1fr); }
  .admin-workspace { width: calc(100% - 36px); }
  .admin-product-row { grid-template-columns: 58px minmax(140px,1fr) 95px auto; }
  .admin-product-row .inventory-stat:nth-of-type(2) { display: none; }
}
@media (max-width: 720px) {
  .page-container { width: calc(100% - 32px); }
  .site-header, .checkout-header { height: 65px; padding-inline: 16px; }
  .brand-symbol { width: 32px; height: 32px; font-size: 22px; }
  .brand-name { font-size: 18px; }
  .site-nav-links { gap: 15px; margin-left: auto; margin-right: 16px; font-size: 11px; }
  .site-nav-links a:nth-child(2) { display: none; }
  .admin-entry { display: none; }
  .mobile-admin { display: inline-grid !important; }
  .store-hero { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding-top: 31px; padding-bottom: 26px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { margin: 16px 0 11px; font-size: clamp(41px, 11vw, 55px); }
  .hero-copy p { max-width: 440px; font-size: 14px; }
  .hero-actions { flex-wrap: wrap; margin-top: 19px; gap: 13px; }
  .hero-note { font-size: 10px; }
  .hero-art { min-height: 255px; border-radius: 19px; }
  .hero-art > img { width: 175px; border-radius: 18px; }
  .hero-orbit { width: 240px; height: 240px; }
  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 395px; height: 395px; }
  .hero-art-caption { left: 11px; bottom: 11px; padding: 8px 10px; }
  .hero-art-caption strong { font-size: 10px; }
  .hero-art-caption span { font-size: 9px; }
  .hero-art-tag { right: 12px; top: 12px; font-size: 8px; }
  .benefit-strip { grid-template-columns: 1fr; margin-bottom: 58px; padding: 8px 0; }
  .benefit-item { min-height: 63px; padding: 9px 6px; }
  .benefit-item + .benefit-item { border-left: 0; border-top: 1px solid var(--line); }
  .catalog-section { padding-bottom: 65px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 25px; }
  .section-heading p { font-size: 12px; }
  .catalog-search { width: 100%; margin-top: 17px; }
  .category-tabs { gap: 1px; margin-top: 19px; overflow-x: auto; }
  .category-tab { padding: 7px 10px; white-space: nowrap; font-size: 11px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .product-card { padding: 8px 8px 12px; border-radius: 13px; }
  .product-card-image { aspect-ratio: 1.1; border-radius: 9px; }
  .product-card-category { left: 7px; top: 7px; padding: 4px 7px; font-size: 8px; }
  .product-card-content { padding: 10px 2px 0; }
  .product-card h3 { font-size: 13px; }
  .product-card p { min-height: 48px; margin: 5px 0 10px; font-size: 10px; }
  .product-card-bottom { align-items: center; }
  .product-price { font-size: 16px; }
  .product-price small { font-size: 10px; }
  .buy-button { min-height: 32px; padding-inline: 8px; font-size: 10px; }
  .stock-note { font-size: 9px; }
  .site-footer { flex-wrap: wrap; gap: 10px; padding-block: 16px; font-size: 9px; }
  .site-footer > span { order: 3; width: 100%; }

  .checkout-layout { display: flex; flex-direction: column; gap: 24px; padding-top: 22px; padding-bottom: 55px; }
  .back-link { margin-bottom: 21px; }
  .checkout-main-column > h1 { font-size: 29px; }
  .checkout-section { padding-block: 21px; }
  .payment-methods { gap: 8px; }
  .payment-method { gap: 7px; padding: 11px 8px; }
  .pay-icon { width: 31px; height: 31px; font-size: 16px; }
  .payment-method strong { font-size: 11px; }
  .payment-method small { font-size: 9px; }
  .method-check { font-size: 13px; }
  .checkout-aside { padding-top: 0; order: 2; }
  .summary-card { position: static; padding: 17px; }
  .checkout-main-column { display: contents; }
  .checkout-main-column > .back-link, .checkout-main-column > .eyebrow, .checkout-main-column > h1, .checkout-main-column > .page-lead,
  .checkout-main-column > .checkout-section, .checkout-main-column > .checkout-error, .checkout-main-column > .button, .checkout-main-column > .active-order-card, .checkout-main-column > .checkout-terms { order: 1; }
  .active-order-card { align-items: flex-start; flex-direction: column; }
  .active-order-actions { width: 100%; }
  .active-order-actions > * { flex: 1; }
  .checkout-aside { order: 2; }
  .delivery-wrap { padding-top: 34px; }
  .delivery-card { padding: 25px 18px; }
  .delivery-card h1 { font-size: 23px; }
  .delivery-actions { flex-direction: column; }
  .login-page { padding: 18px; }
  .login-back { left: 18px; top: 17px; }
  .login-card { padding: 27px 22px; }

  .admin-topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .admin-topbar .brand { margin-right: auto; }
  .topbar-divider, .admin-context { display: none; }
  .admin-main-nav { order: 3; width: 100%; margin: 5px 0 -2px; border-top: 1px solid var(--line); padding-top: 7px; }
  .admin-nav-item { flex: 1; justify-content: center; padding: 9px 7px; font-size: 11px; }
  .admin-user-menu { gap: 6px; margin-left: 8px; font-size: 10px; }
  .avatar-mark { width: 29px; height: 29px; }
  .admin-user-menu .icon-button { width: 32px; height: 32px; }
  .admin-workspace { width: calc(100% - 24px); padding-top: 22px; }
  .admin-page-heading { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 16px; }
  .admin-page-heading h1 { font-size: 25px; }
  .admin-page-heading p { font-size: 11px; }
  .admin-heading-actions { width: 100%; }
  .admin-search { width: 100%; }
  .admin-heading-actions .button { display: none; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .metric-item { padding: 12px; }
  .metric-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metric-item:nth-child(4) { border-top: 1px solid var(--line); }
  .metric-item strong { font-size: 20px; }
  .metric-item small { font-size: 9px; }
  .admin-columns { grid-template-columns: 1fr; gap: 12px; }
  .order-queue { order: 1; }
  .order-detail { position: static; min-height: 0; padding: 15px; order: 2; }
  .detail-empty { min-height: 190px; }
  .order-list { max-height: 440px; }
  .order-row { grid-template-columns: 45px minmax(0,1fr) auto; gap: 9px; padding: 8px; }
  .order-row img { width: 43px; height: 43px; }
  .order-row-main strong { font-size: 11px; }
  .order-row-meta strong { font-size: 11px; }
  .detail-meta { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .detail-meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .admin-product-row { grid-template-columns: 50px minmax(0,1fr) auto; gap: 10px; padding: 12px; }
  .admin-product-row img { width: 50px; height: 50px; }
  .admin-product-row .inventory-stat { grid-column: 2; }
  .admin-product-row .inventory-stat:nth-of-type(2) { display: block; }
  .admin-product-row .product-row-actions { grid-column: 2 / -1; }
  .admin-product-row .product-row-actions .button { flex: 1; }
  .admin-dialog { padding: 22px 17px; }
}
@media (max-width: 390px) {
  .product-grid { gap: 8px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .order-link-row { align-items: flex-start; flex-direction: column; }
}
