/* HK-Basket: celebratory flower-shop identity and compact staff workspaces. */
:root {
    color-scheme: light;
    --ink: #203c32;
    --green: #285b45;
    --green-dark: #183e2e;
    --pale: #edf2e9;
    --line: #e3e5dc;
    --muted: #68756a;
    --orange: #aa513c;
    --coral: #c9654c;
    --gold: #a17b37;
    --ivory: #faf8f1;
    --surface: #fffefa;
    --radius: 12px;
    --shadow: 0 8px 28px rgb(37 63 43 / 5%);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.7; letter-spacing: 0; }
img, svg { max-width: 100%; }
img { height: auto; }
main, header, footer, section, aside, article, form, nav, div { min-width: 0; }
a { color: var(--green); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #bd8b48; outline-offset: 3px; box-shadow: 0 0 0 5px rgb(189 139 72 / 13%); }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; }
button[disabled], .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
[hidden] { display: none !important; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: 16px; padding: 12px 20px; background: white; color: var(--green-dark); }
.skip-link:focus { top: 10px; }
.notice { background: var(--green-dark); color: #f4f2e7; padding: 7px 18px; text-align: center; font-size: 11px; line-height: 1.6; letter-spacing: .045em; }

header.site-header, body > header { max-width: 1280px; padding: 22px 28px 18px; margin: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 36px; align-items: center; border: 0; position: relative; background: transparent; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand img { display: block; width: 176px; max-width: 100%; height: auto; mix-blend-mode: multiply; }
.brand span, .brand small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 20px; flex-wrap: wrap; }
.header-tools > a { font-size: 13px; }
.locale-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 12px; }
.locale-switcher a { padding: 5px 9px; border-radius: 5px; color: var(--muted); white-space: nowrap; }
.locale-switcher a[aria-current="true"], .locale-switcher a[aria-current="page"] { background: #e9eee3; color: var(--green-dark); font-weight: 650; }
.main-nav { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 11px 0; }
.main-nav > summary { display: none; }
.main-nav > nav, .main-nav > div, .main-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a, .main-nav .link { font-size: 14px; font-weight: 550; }
.main-nav a[aria-current="page"] { color: var(--orange); }
.main-nav form, .header-tools form { margin: 0; }
.main-nav .nav-end { margin-left: auto; }
body > header > nav:not(.main-nav) { justify-content: flex-end; gap: 20px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
main { width: 100%; max-width: 1280px; min-height: 70vh; margin: auto; padding: 25px 28px 64px; }
footer { max-width: 1224px; padding: 28px 0 32px; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer nav { gap: 14px; }
footer span { float: none; }
footer p { margin: 0; }

h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
h1 { font-size: clamp(27px, 3.6vw, 40px); margin: 8px 0 16px; }
h2 { font-size: 21px; margin: 0 0 14px; }
h3 { font-size: 17px; margin: 0 0 10px; }
p { margin: 12px 0; overflow-wrap: anywhere; }
small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
h1 small { display: inline-block; margin: 0 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--muted); font-size: 13px; }
.eyebrow, .hero-kicker { color: var(--orange); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .15em; margin: 0 0 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; margin: 0 0 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 40px 0 24px; }
.section-heading h1, .section-heading h2 { margin-bottom: 8px; }
.section-heading p { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.section-heading > a { flex-shrink: 0; font-size: 13px; }

.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; min-height: 458px; gap: 24px; position: relative; background: #eeefe5; border: 1px solid #e8e9dc; border-radius: 16px; padding: 42px 48px; margin: 5px 0 0; overflow: hidden; }
.hero::after { position: absolute; content: ""; width: 240px; height: 240px; border: 1px solid #d4c49f; border-radius: 50%; top: -148px; right: -50px; opacity: .7; pointer-events: none; }
.hero h1 { font-size: clamp(33px, 4.15vw, 56px); line-height: 1.28; letter-spacing: -.045em; margin: 15px 0 20px; font-weight: 550; }
.hero-copy { max-width: 570px; position: relative; z-index: 1; }
.hero-copy > p:not(.hero-kicker), .hero > div > p:not(.eyebrow) { max-width: 440px; color: #586b5c; font-size: 15px; line-height: 1.85; }
.hero .button { margin-top: 12px; }
.hero-art { display: grid; align-self: stretch; place-items: center; position: relative; min-width: 0; }
.hero-art img, .hero > img { width: 100%; max-height: 390px; height: 390px; object-fit: contain; mix-blend-mode: multiply; position: relative; z-index: 1; }
.hero-art::before { content: ""; position: absolute; width: min(330px, 85%); aspect-ratio: 1; background: #e1e6d5; border-radius: 50%; }
.hero .hero-accent { color: var(--orange); }
.trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin: 0 0 24px; padding: 20px 0; gap: 16px; }
.trust-strip > * { color: var(--muted); font-size: 12px; text-align: center; margin: 0; border-right: 1px solid var(--line); }
.trust-strip > :last-child { border: 0; }
.trust-strip strong { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 3px; }

.button, button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid var(--green); border-radius: 6px; padding: 11px 20px; color: #fff; background: var(--green); font-size: 13px; font-weight: 650; line-height: 1.4; cursor: pointer; white-space: normal; text-align: center; overflow-wrap: anywhere; transition: background-color .15s ease, border-color .15s ease; }
.button:hover, button:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.button.secondary, button.secondary, .secondary { background: transparent; color: var(--green); border-color: #bdcbbd; }
.button.secondary:hover, button.secondary:hover { background: var(--pale); border-color: var(--green); }
.button.coral, button.coral { background: var(--coral); border-color: var(--coral); }
.button.coral:hover, button.coral:hover { background: #ac503b; border-color: #ac503b; }
.link, button.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--green); font-size: inherit; font-weight: 500; }
.link:hover { background: none; color: var(--orange); text-decoration: underline; }
.danger, button.danger { background: #984c42; border-color: #984c42; }
.danger:hover { background: #7e3a32; border-color: #7e3a32; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.product-card > a { display: block; background: #f1f1e9; overflow: hidden; }
.product-card img { display: block; width: 100%; aspect-ratio: 1 / 1.08; height: auto; max-height: 400px; object-fit: contain; mix-blend-mode: multiply; padding: 10px; transition: transform .2s ease; }
.product-card > a:hover img { transform: scale(1.025); }
.product-card > div, .product-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 19px 20px 20px; }
.product-card .sku { margin: 0 0 7px; font-size: 10px; color: #7b8375; letter-spacing: .11em; }
.product-card h2 { font-size: 17px; margin: 0 0 5px; line-height: 1.5; letter-spacing: -.01em; }
.product-card h2 a { color: var(--ink); }
.product-card p { margin: 4px 0; font-size: 12px; color: var(--muted); }
.product-card .price { font-size: 19px; color: var(--orange); margin: 13px 0 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding: 0 !important; }
.card-actions form { margin: 0; flex: 1 1 140px; }
.card-actions button { width: 100%; }
.card-actions > a { flex: 1; }
.card-actions .button { min-height: 40px; font-size: 12px; padding: 9px 12px; }
.product-card > div > .button { margin-top: auto; }
.price { font-size: 23px; color: var(--orange); font-weight: 650; font-variant-numeric: tabular-nums; }
.sku { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.badge, .status-pill { display: inline-flex; align-items: center; border: 1px solid #d6e2cf; border-radius: 5px; background: #edf2e7; color: #3d6245; padding: 3px 8px; font-size: 11px; font-weight: 550; line-height: 1.6; white-space: normal; }
.badge.warning, .status-pill.warning { border-color: #e8d3a4; background: #fff4dc; color: #775a23; }
.badge.danger, .status-pill.danger { border-color: #e7c2b9; background: #faeae4; color: #923e30; }
.badge.neutral, .status-pill.neutral { border-color: #deded7; background: #f1f1ec; color: #667065; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin: 25px 0 40px; align-items: start; }
.product-image { display: block; width: 100%; max-height: 660px; aspect-ratio: 1 / 1.1; object-fit: contain; background: #f0f0e7; border-radius: 12px; padding: 20px; }
.detail h1 { font-size: clamp(28px, 3vw, 39px); }
.detail h2 { color: var(--muted); font-size: 17px; font-weight: 400; }
.detail form { max-width: 340px; margin-top: 26px; }
.detail form button { width: 100%; }

.panel { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 22px; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel h2 { font-size: 18px; }
.filters, .admin-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 0 0 25px; }
.filters.panel { padding: 18px; }
.filters label, .admin-toolbar label { margin: 0; flex: 1 1 145px; min-width: 0; max-width: 215px; }
.filters label.checkbox { max-width: none; flex: 0 1 auto; align-self: center; }
.filters > a { font-size: 13px; padding: 10px 3px; }
label { display: block; font-size: 12px; font-weight: 650; color: #43594b; margin-bottom: 17px; line-height: 1.6; }
input, select, textarea { display: block; width: 100%; min-width: 0; padding: 10px 12px; margin-top: 6px; min-height: 44px; color: var(--ink); background: white; border: 1px solid #cbd2c5; border-radius: 6px; font-size: 15px; line-height: 1.5; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #899185; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b0c7ad; outline-offset: 1px; border-color: #769879; }
input[type="checkbox"], input[type="radio"] { display: inline-block; width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--green); vertical-align: middle; }
input[type="file"] { font-size: 13px; padding: 8px; }
textarea { min-height: 95px; resize: vertical; }
.checkbox, .radio { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.checkbox input, .radio input { flex: 0 0 18px; margin-top: 3px; }
[aria-invalid="true"] { border-color: #b64c3d; background: #fffaf6; }
.field-error { display: block; color: #a43c30; font-size: 12px; font-weight: 400; margin: 6px 0 0; line-height: 1.5; }
.field-help, .help { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 6px; }
.required { color: var(--orange); margin-left: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.wide { grid-column: 1 / -1; }
fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
legend { padding: 0; font-size: 17px; font-weight: 650; margin-bottom: 16px; color: var(--ink); }
.form-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.form-section:first-child { border: 0; margin-top: 0; padding-top: 0; }
.step-index { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--pale); color: var(--green); font-size: 12px; margin-right: 8px; }
.flash, .errors, .error-summary { margin-bottom: 24px; padding: 16px 20px; border: 1px solid #cadcc3; border-radius: 8px; background: #edf5e8; color: #36543b; font-size: 14px; }
.errors, .error-summary { border-color: #e5bcb0; background: #fff1e9; color: #8f3c2e; }
.errors ul, .error-summary ul { padding-left: 20px; margin: 8px 0 0; }
.error-summary a { color: inherit; text-decoration: underline; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 25px; align-items: start; }
.checkout-progress { display: flex; align-items: stretch; gap: 0; margin: 24px 0 28px; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; overflow: hidden; }
.checkout-progress li { display: flex; flex: 1; align-items: center; justify-content: center; gap: 9px; position: relative; padding: 13px 10px; font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); line-height: 1.5; }
.checkout-progress li:last-child { border: 0; }
.checkout-progress .step-index { margin: 0; flex-shrink: 0; }
.checkout-progress [aria-current="step"], .checkout-progress .is-current { background: #eaf0e2; color: var(--green-dark); font-weight: 650; }
.checkout-progress .is-current .step-index { color: white; background: var(--green); }
.checkout-progress .is-complete { color: var(--green); }
.summary-sticky { position: sticky; top: 20px; }
.summary-line, .summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 9px 0; font-size: 14px; }
.summary-total { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; font-size: 21px; font-weight: 650; }
.summary-items { display: grid; gap: 13px; margin: 18px 0; }
.summary-item { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 12px; align-items: center; }
.summary-item img { width: 52px; height: 64px; object-fit: contain; background: var(--pale); border-radius: 4px; }
.summary-item p { font-size: 13px; line-height: 1.5; margin: 0; }
.summary-item small { font-size: 11px; margin-top: 4px; }
.totals { max-width: 390px; margin: 25px 0 0 auto; }
.totals p { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; }
.totals .price { font-size: 19px; padding-top: 14px; border-top: 1px solid var(--line); }
.totals .button { width: 100%; margin-top: 12px; }
.auth-panel { width: 100%; max-width: 460px; margin: 30px auto 65px; padding: 35px; }
.auth-panel h1 { font-size: 29px; }
.auth-panel form { margin: 24px 0 15px; }
.auth-panel button { width: 100%; margin: 5px 0 0; }
.auth-panel > a { font-size: 13px; }

.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: #68776b; background: #fafbf6; font-size: 10px; font-weight: 650; text-transform: none; letter-spacing: .04em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf6; }
td .badge { margin: 0; }
.num, .money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.inline input { width: 70px; margin: 0; min-height: 38px; padding: 7px 9px; }
.inline button { min-height: 38px; padding: 8px 11px; font-size: 12px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; margin: 28px 0; color: var(--muted); font-size: 12px; }
.pagination .button { padding: 8px 15px; min-height: 38px; font-size: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin: 0 0 22px; }
.tabs a { padding: 7px 12px; font-size: 13px; border-radius: 5px; }
.tabs a[aria-current="page"], .tabs .active { background: var(--green); color: white; }

.admin-shell { background: #f4f5ef; font-size: 13px; }
.admin-shell main { max-width: 1440px; padding-top: 20px; }
.admin-shell h1 { font-size: 25px; margin-bottom: 16px; }
.admin-shell h2 { font-size: 16px; }
.admin-shell header.site-header { max-width: 1440px; padding-top: 15px; padding-bottom: 12px; }
.admin-shell .brand img { width: 142px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; background: var(--green-dark); border: 0; border-radius: 7px; margin-bottom: 20px; }
.admin-nav a { padding: 7px 12px; color: #e9efe4; font-size: 12px; border-radius: 4px; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: white; background: #3c624d; text-decoration: none; }
.admin-toolbar { margin-bottom: 18px; }
.admin-shell .panel, .compact.panel, .compact .panel { padding: 18px; margin-bottom: 16px; border-radius: 7px; box-shadow: none; }
.admin-shell .filters.panel { padding: 14px; gap: 10px; }
.admin-shell label, .compact label { font-size: 11px; margin-bottom: 12px; }
.admin-shell input, .admin-shell select, .admin-shell textarea, .compact input, .compact select, .compact textarea { font-size: 13px; min-height: 37px; padding: 7px 9px; margin-top: 4px; border-radius: 4px; }
.admin-shell textarea { min-height: 70px; }
.admin-shell button, .admin-shell .button, .compact .button, .compact button { min-height: 36px; font-size: 12px; padding: 8px 13px; border-radius: 4px; }
.admin-shell table { font-size: 12px; }
.admin-shell th, .admin-shell td { padding: 10px 9px; }
.admin-shell .checkout-layout { grid-template-columns: minmax(0,1.2fr) minmax(330px,1fr); gap: 18px; }
.admin-shell .form-grid { gap: 0 12px; }
.admin-shell .eyebrow { font-size: 10px; margin-bottom: 5px; }
.admin-shell small { font-size: 11px; }
.admin-shell .price { font-size: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.metric-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.metric-card h2, .metric-card h3, .metric-card > span:first-child { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin: 0 0 7px; }
.metric-card strong { color: var(--green); font-size: 27px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric-card small { margin-top: 6px; }
.audit-list { list-style: none; margin: 0; padding: 0; }
.audit-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.audit-list li:last-child { border: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.photo-grid figure { margin: 0; padding: 10px; background: #f3f4ed; border: 1px solid var(--line); border-radius: 7px; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.photo-grid figcaption { font-size: 11px; margin-top: 8px; color: var(--muted); }
.support-thread { display: grid; gap: 14px; }
.support-thread article, .support-message { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.support-thread .staff, .support-thread [data-author="staff"] { background: #eef3e7; border-color: #d6e1cc; margin-left: 30px; }
.support-thread p { margin: 8px 0 0; white-space: pre-wrap; }
.support-thread small { font-size: 11px; }
.status-timeline { border-left: 2px solid #cfdbc8; list-style: none; padding-left: 22px; margin: 20px 0; }
.status-timeline li { position: relative; padding: 0 0 20px; }
.status-timeline li::before { content: ""; position: absolute; width: 10px; height: 10px; background: var(--green); border-radius: 50%; top: 7px; left: -28px; border: 2px solid var(--ivory); }
.status-timeline li:last-child { padding-bottom: 0; }
.empty-state { text-align: center; padding: 45px 20px; color: var(--muted); }
.empty-state h2 { color: var(--ink); }
.prose { max-width: 800px; }
.prose h2 { margin-top: 30px; }
.prose li { margin-bottom: 9px; }
.prose a { text-decoration: underline; }
.print-labels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.print-label { border: 1px solid #aeb7a9; padding: 18px; break-inside: avoid; }
.print-label h2 { font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (min-width: 901px) {
    details.main-nav:not([open]) > :not(summary) { display: flex !important; }
}

@media (max-width: 1050px) {
    .header-tools { gap: 12px; }
    .main-nav > nav, .main-nav > div, .main-nav ul { gap: 8px 20px; }
    .hero { padding: 35px; }
    .hero-art img, .hero > img { height: 330px; }
    .grid { gap: 18px; }
    .card-actions { flex-direction: column; align-items: stretch; }
    .card-actions form { flex-basis: auto; }
    .admin-shell .checkout-layout { grid-template-columns: minmax(0,1fr) minmax(290px,1fr); }
}

@media (max-width: 900px) {
    header.site-header, body > header { padding: 17px 22px 0; gap: 14px; }
    .brand img { width: 155px; }
    .header-tools { gap: 12px; }
    .header-tools > a { font-size: 12px; }
    .main-nav { padding: 0; }
    .main-nav > summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
    .main-nav > summary::-webkit-details-marker { display: none; }
    .main-nav > summary::after { content: "+"; color: var(--green); font-size: 22px; font-weight: 400; }
    .main-nav[open] > summary::after { content: "−"; }
    .main-nav > nav, .main-nav > div, .main-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 3px 0 12px; }
    .main-nav a, .main-nav .link { display: block; width: 100%; padding: 10px 0; text-align: left; }
    .main-nav .nav-end { margin-left: 0; }
    main { padding: 22px 22px 44px; }
    footer { margin: 0 22px; }
    .hero { padding: 30px; min-height: 0; gap: 10px; }
    .hero h1 { font-size: 37px; }
    .hero-art img, .hero > img { height: 300px; }
    .hero-copy > p:not(.hero-kicker), .hero > div > p:not(.eyebrow) { font-size: 14px; }
    .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail { gap: 30px; }
    .checkout-layout, .admin-shell .checkout-layout { grid-template-columns: 1fr; }
    .summary-sticky { position: static; }
    .checkout-layout > aside { order: 0; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .section-heading { margin-top: 30px; }
    .product-card img { max-height: none; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .notice { padding: 6px 12px; font-size: 10px; letter-spacing: 0; }
    header.site-header, body > header { padding: 14px 16px 0; gap: 13px 10px; }
    .brand img { width: 142px; }
    .brand span, .brand small { display: none; }
    .header-tools { gap: 8px; justify-content: flex-end; }
    .header-tools > a { font-size: 11px; }
    .locale-switcher { font-size: 10px; gap: 0; }
    .locale-switcher a { padding: 4px 6px; }
    main { padding: 18px 16px 38px; }
    footer { margin: 0 16px; padding: 23px 0; font-size: 11px; gap: 15px; }
    footer nav { gap: 10px; }
    .hero { grid-template-columns: 1fr; padding: 25px 23px 15px; gap: 0; border-radius: 11px; }
    .hero h1 { font-size: 34px; margin: 12px 0 14px; }
    .hero-copy > p:not(.hero-kicker), .hero > div > p:not(.eyebrow) { font-size: 13px; }
    .hero-art img, .hero > img { height: 270px; max-height: 270px; }
    .hero-art { margin-top: 8px; }
    .hero-art::before { max-width: 230px; }
    .hero::after { width: 180px; height: 180px; top: -115px; right: -70px; }
    .hero .button { min-height: 42px; font-size: 12px; }
    .trust-strip { gap: 7px; padding: 16px 0; }
    .trust-strip > * { font-size: 10px; padding: 0 5px; }
    .trust-strip strong { font-size: 12px; }
    .section-heading { display: block; margin: 28px 0 18px; }
    .section-heading p { font-size: 12px; }
    .section-heading > a { display: inline-block; margin-top: 10px; font-size: 12px; }
    h1 { font-size: 28px; margin-bottom: 15px; }
    h1 small { font-size: 12px; margin-left: 0; display: block; margin-top: 6px; }
    h2 { font-size: 19px; }
    .eyebrow, .hero-kicker { font-size: 10px; }
    .grid { gap: 12px; }
    .product-card { border-radius: 7px; }
    .product-card img { padding: 5px; aspect-ratio: 1 / 1.2; }
    .product-card > div, .product-card .card-body { padding: 12px 11px; }
    .product-card .sku { font-size: 8px; letter-spacing: .04em; }
    .product-card h2 { font-size: 13px; line-height: 1.55; }
    .product-card p { font-size: 10px; line-height: 1.6; }
    .product-card .price { font-size: 16px; margin: 9px 0 11px; }
    .card-actions { gap: 6px; }
    .card-actions .button, .card-actions button, .product-card > div > .button { min-height: 36px; width: 100%; padding: 8px 7px; font-size: 10px; }
    .filters { gap: 9px; }
    .filters label { flex-basis: calc(50% - 9px); max-width: none; font-size: 11px; }
    .filters button { flex: 1 1 auto; min-height: 40px; }
    .filters > a { padding: 8px 4px; font-size: 12px; }
    .filters input, .filters select { font-size: 13px; min-height: 40px; padding: 8px 9px; }
    .panel { padding: 18px; border-radius: 8px; margin-bottom: 17px; }
    .panel h2 { font-size: 17px; }
    .detail { grid-template-columns: 1fr; gap: 24px; margin-top: 18px; }
    .product-image { max-height: 430px; padding: 14px; }
    .detail h1 { font-size: 28px; }
    .detail form { max-width: none; }
    .detail h2 { font-size: 15px; }
    .form-grid { gap: 0 12px; }
    label { font-size: 12px; margin-bottom: 15px; }
    input, select, textarea { font-size: 16px; }
    .wide { grid-column: 1/-1; }
    .form-grid > .mobile-wide { grid-column: 1/-1; }
    .checkout-progress { margin: 19px 0 22px; }
    .checkout-progress li { flex-direction: column; gap: 5px; padding: 11px 5px; text-align: center; font-size: 10px; }
    .checkout-progress .step-index { width: 22px; height: 22px; font-size: 10px; }
    .checkout-layout { gap: 16px; }
    .summary-line, .summary-row { font-size: 13px; }
    .summary-total { font-size: 19px; }
    .auth-panel { padding: 25px; margin: 20px auto 40px; }
    .auth-panel h1 { font-size: 27px; }
    .flash, .errors, .error-summary { padding: 14px 16px; font-size: 12px; }
    table { font-size: 11px; }
    th, td { padding: 11px 7px; }
    th { font-size: 9px; }
    td small { font-size: 10px; }
    .inline { gap: 5px; }
    .inline input { width: 57px; padding: 7px; font-size: 13px; }
    .inline button { font-size: 10px; padding: 8px; }
    .table-scroll table { min-width: 530px; }
    .table-scroll { margin-right: 0; }
    .totals { max-width: none; }
    .totals p { font-size: 12px; }
    .totals .price { font-size: 17px; }
    .admin-shell main { padding: 16px 12px 35px; }
    .admin-shell header.site-header { padding: 12px 12px 0; }
    .admin-shell h1 { font-size: 22px; }
    .admin-shell .panel, .compact.panel, .compact .panel { padding: 14px; }
    .admin-nav { gap: 1px; padding: 5px; }
    .admin-nav a { padding: 8px 9px; font-size: 11px; }
    .admin-toolbar label { max-width: none; flex-basis: calc(50% - 12px); }
    .admin-shell .filters.panel { padding: 12px; }
    .admin-shell .form-grid { gap: 0 11px; }
    .metric-grid { gap: 10px; }
    .metric-card { padding: 14px; }
    .metric-card strong { font-size: 23px; }
    .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .photo-grid figure { padding: 7px; }
    .support-thread .staff, .support-thread [data-author="staff"] { margin-left: 15px; }
    .tabs { gap: 3px; }
    .tabs a { padding: 7px 9px; font-size: 11px; }
    .print-labels { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
    .header-tools { max-width: 175px; }
    .brand img { width: 120px; }
    .hero h1 { font-size: 29px; }
    .grid { gap: 9px; }
    .product-card > div, .product-card .card-body { padding: 10px 8px; }
    .form-grid { grid-template-columns: 1fr; }
    .wide { grid-column: auto; }
}

@media print {
    @page { margin: 12mm; }
    body, .admin-shell { background: white !important; color: black; font-size: 11px; }
    header, footer, .notice, .admin-nav, .main-nav, .header-tools, .locale-switcher, .breadcrumbs, .tabs, .pagination, .filters, .admin-toolbar, .checkout-progress, .no-print, button, .button, form, .muted { display: none !important; }
    main, .admin-shell main { padding: 0 !important; margin: 0 !important; max-width: none; min-height: 0; }
    h1, .admin-shell h1 { font-size: 23px; margin: 0 0 16px; }
    h2, .admin-shell h2 { font-size: 16px; }
    .checkout-layout, .admin-shell .checkout-layout, .detail { display: block; }
    .checkout-layout > aside { display: none; }
    .panel, .admin-shell .panel { border: 0; border-radius: 0; padding: 0 !important; margin-bottom: 16px; box-shadow: none; }
    .table-scroll { overflow: visible; }
    .table-scroll table { min-width: 0; }
    table { font-size: 10px; }
    th, td, .admin-shell th, .admin-shell td { padding: 7px 5px; }
    th { color: black; background: #f1f1f1 !important; }
    tr, .photo-grid figure, .print-label { break-inside: avoid; }
    .badge, .status-pill { color: black; background: white; border-color: #aaa; }
    .print-labels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8mm; }
    .print-label { border: 1px solid black; padding: 5mm; }
    .print-label p { font-size: 12px; }
    .photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    a { color: black; text-decoration: none; }
}
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
pre, code { overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-shell .order-line { padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-shell .section-heading { margin: 14px 0 16px; }
.admin-shell .admin-toolbar { margin-bottom: 14px; }
.admin-nav .link { color: #f4f6ef; }
.admin-nav a, .admin-nav button { min-height: 40px; display: inline-flex; align-items: center; }

.ordering-paused-dialog {
    width: min(32rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: clamp(1.25rem, 5vw, 2rem);
    border: 1px solid #d8ded7;
    border-radius: 1rem;
    color: #243e33;
    background: #fffdf8;
}
.ordering-paused-dialog::backdrop { background: rgb(20 32 26 / 62%); }
.ordering-paused-dialog h2, .ordering-paused-panel h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.3; }
.ordering-paused-dialog p, .ordering-paused-panel p { margin: .75rem 0; line-height: 1.6; }
.ordering-paused-contact { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; margin: 1rem 0; }
.ordering-paused-dialog form { display: flex; justify-content: flex-end; }
.ordering-paused-panel { padding: clamp(1rem, 4vw, 2rem); }
