:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #181a1f;
    --muted: #656b76;
    --line: #dde0e5;
    --surface: #ffffff;
    --canvas: #f4f5f7;
    --accent: #d62828;
    --accent-dark: #ae1f1f;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }

.admin-body { min-height: 100vh; }
.admin-header { min-height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 18px; color: white; background: #15171b; }
.brand { margin-right: auto; font-size: 18px; font-weight: 800; text-decoration: none; }
.admin-user { color: #c9ccd2; font-size: 14px; }
.inline-form { display: inline; }
.link-button { padding: 0; border: 0; color: white; background: transparent; cursor: pointer; text-decoration: underline; }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.admin-shell > * { min-width: 0; }
.admin-nav { padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); background: var(--surface); }
.admin-nav a, .admin-nav span { padding: 11px 14px; border-radius: 8px; text-decoration: none; }
.admin-nav .active { color: white; background: #252931; font-weight: 700; }
.admin-nav span { color: #8b9099; }
.admin-main { width: 100%; max-width: 1200px; padding: 36px; }
.page-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.page-heading h1 { margin-bottom: 0; }
.eyebrow { margin-bottom: 6px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.metric-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card, .panel, .login-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 6px 20px rgb(0 0 0 / .04); }
.metric-card { padding: 20px; }
.metric-card span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.metric-card strong { font-size: 28px; }
.panel { padding: 24px; }
.panel p { margin-bottom: 0; color: var(--muted); }
.dashboard-grid { margin-bottom: 24px; display: grid; grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr); gap: 18px; }
.dashboard-workflow > a { margin-top: 10px; padding: 13px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); text-decoration: none; }
.dashboard-workflow > a:last-child { border-bottom: 0; }
.recent-orders { margin-top: 12px; }
.recent-orders > a { padding: 11px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.recent-orders > a:last-child { border-bottom: 0; }
.recent-orders span:last-child { text-align: right; }
.recent-orders strong, .recent-orders small { display: block; }
.recent-orders small { margin-top: 3px; color: var(--muted); }
.empty-compact { padding: 20px 0; }
.alert-success { border: 1px solid #9cd4aa; color: #185d2a; background: #eefaf1; }
.login-shell { min-height: 100vh; padding: 24px; display: grid; place-items: center; }
.login-card { width: min(100%, 420px); padding: 32px; }
.muted { color: var(--muted); }
.form-stack { display: grid; gap: 18px; }
.form-stack label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.form-stack input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.form-stack input:focus { outline: 3px solid rgb(214 40 40 / .18); border-color: var(--accent); }
.button { min-height: 42px; padding: 10px 16px; border: 1px solid #c8ccd3; border-radius: 8px; background: white; font-weight: 700; cursor: pointer; }
.button-primary { border-color: var(--accent); color: white; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 8px; }
.alert-error { border: 1px solid #efb4b4; color: #8c1616; background: #fff1f1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #fafafa; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.actions-column { min-width: 260px; }
.table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.table-actions form { display: inline; }
.product-sort-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.product-sort-link:hover, .product-sort-link:focus-visible { color: var(--ink); text-decoration: underline; }
.product-sort-link span { color: var(--accent); }
.product-select-column { width: 44px; text-align: center; }
.product-select-column input { width: 18px; height: 18px; cursor: pointer; }
.product-bulk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; }
.product-bulk-toolbar > span { margin-right: auto; font-weight: 700; }
.product-bulk-help { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
#admin-products-table tbody tr:has([data-product-select]:checked) { background: #fff6ec; }
.table-actions a, .text-action { color: #343943; }
.text-action { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-active { color: #185d2a; background: #e5f7e9; }
.status-muted { color: #656b76; background: #eceef1; }
.empty-state { text-align: center; padding-block: 48px; }
.tabs { margin-bottom: 18px; overflow-x: auto; display: flex; gap: 6px; }
.tabs span { padding: 9px 13px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.tabs .active { color: white; background: #252931; font-weight: 700; }
.form-panel { margin-bottom: 22px; }
.form-panel h2 { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.form-grid input, .form-grid textarea, .form-grid select, .inline-editor input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.form-grid textarea { resize: vertical; }
.form-full { grid-column: 1 / -1; }
.checkbox-label { align-content: center; grid-template-columns: auto 1fr !important; align-items: center; justify-content: start; }
.checkbox-label input { width: 18px; min-height: 18px; }
.form-actions { display: flex; justify-content: flex-end; }
.input-suffix { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.input-suffix input { border-radius: 8px 0 0 8px; }
.input-suffix span { min-height: 44px; padding: 10px 13px; border: 1px solid #bfc4cc; border-left: 0; border-radius: 0 8px 8px 0; background: #f3f4f6; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; }
.section-heading p { margin-top: -12px; }
.option-group { margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.option-group-heading { margin-bottom: 14px; display: flex; justify-content: space-between; }
.option-group-heading strong, .option-group-heading span { display: block; }
.option-group-heading span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.option-values { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; background: #eff1f4; font-size: 13px; }
.option-chip i { width: 15px; height: 15px; border: 1px solid #0003; border-radius: 50%; background: var(--swatch); }
.option-chip form { display: inline-flex; }
.chip-delete { padding: 0; border: 0; color: #a01818; background: transparent; font: inherit; font-weight: 900; line-height: 1; cursor: pointer; }
.inline-editor { display: grid; grid-template-columns: 2fr 1fr 1fr 90px auto; gap: 8px; }
.option-new-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.upload-form { margin-bottom: 24px; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.media-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.media-image-wrap { position: relative; margin-bottom: 12px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #eceef1; }
.media-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.main-badge { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 999px; color: white; background: #15171bd9; font-size: 11px; font-weight: 800; }
.media-actions { margin-top: 12px; padding-top: 12px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.media-rotate-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.media-rotate-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.media-rotate-form select { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.media-delete-button { width: 100%; }
.media-visibility-form { margin-top: 12px; display: grid; gap: 8px; }
.media-visibility-form label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 700; }
.media-visibility-form input { flex: none; margin: 2px 0 0; width: 18px; height: 18px; }
.media-gallery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.media-saved-rule { min-width: 0; margin: 14px 0 0; padding: 12px; display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 8px; }
.media-saved-rule legend, .media-saved-rule label { font-size: 12px; font-weight: 700; }
.media-saved-rule label { display: grid; gap: 4px; }
.media-saved-rule select { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.media-save-button { width: 100%; margin-top: 12px; }
.media-reset-form { margin-top: 10px; }
.panel .media-setting-help { font-size: 12px; line-height: 1.4; }
.rule-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.rule-option-group { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.rule-option-group legend { padding: 0 5px; font-weight: 800; }
.rule-option-group label { display: flex; align-items: flex-start; gap: 8px; margin: 7px 0; }
.rule-option-group input { flex: none; width: 18px; min-height: 18px; height: 18px; margin: 1px 0 0; padding: 0; }
.rule-example { font-size: 13px; line-height: 1.5; }
.rule-item-content { min-width: 0; flex: 1; }
.rule-anchor-form { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.rule-anchor-form label { display: grid; gap: 4px; font-size: 12px; }
.rule-anchor-form select { max-width: 100%; min-height: 40px; padding: 8px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.media-rule-form { margin-top: 12px; display: grid; gap: 8px; }
.media-rule-form select { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.media-rule-label { margin: 8px 0 0 !important; font-size: 12px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rule-list { margin-bottom: 22px; display: grid; gap: 10px; }
.rule-item { padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #efc5c5; border-radius: 8px; background: #fff7f7; }
.rule-item strong, .rule-item span { display: block; }
.rule-item span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.danger { color: #a01818; }
.rule-form small { color: var(--muted); font-weight: 400; }

.shop-body { min-height: 100vh; background: #f7f7f5; }
.preview-banner { padding: 9px 18px; color: white; background: #7b2cbf; text-align: center; font-size: 13px; font-weight: 700; }
.product-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(32px, 6vw, 76px); align-items: start; }
.product-gallery { position: sticky; top: 24px; }
.product-hero { overflow: hidden; display: grid; place-items: center; min-height: 320px; padding: clamp(10px, 2vw, 24px); border-radius: 16px; background: #e9e9e6; }
.product-hero img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(760px, 78vh); object-fit: contain; }
.image-placeholder { color: var(--muted); }
.product-thumbnails { margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.product-thumbnails button { overflow: hidden; padding: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.product-thumbnails img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.product-thumbnails button[hidden] { display: none; }
.product-thumbnails button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.product-configurator { padding-top: 8px; }
.product-sku { margin-bottom: 7px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.product-configurator h1 { margin-bottom: 10px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.product-price { margin-bottom: 4px; font-size: 25px; font-weight: 800; }
.tax-note { color: var(--muted); font-size: 13px; }
.product-description { margin: 26px 0; line-height: 1.65; }
.product-option-group { margin: 0 0 24px; padding: 0; border: 0; }
.product-option-group legend { margin-bottom: 10px; font-weight: 800; }
.product-option-group legend span { color: var(--accent); }
.combination-option-error { margin: 7px 0 0; color: #b02020; font-size: 12px; line-height: 1.4; }
.product-option-group > select { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.product-choice input { position: absolute; opacity: 0; pointer-events: none; }
.product-choice > span { min-height: 42px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; cursor: pointer; }
.product-choice input:checked + span { border-color: #181a1f; box-shadow: inset 0 0 0 1px #181a1f; }
.product-choice input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.product-choice i { width: 18px; height: 18px; border: 1px solid #0003; border-radius: 50%; background: var(--swatch); }
.product-choice small { color: var(--muted); }
.quantity-label { margin: 20px 0; display: grid; gap: 7px; font-weight: 700; }
.quantity-label input { width: 90px; min-height: 44px; padding: 8px 10px; border: 1px solid #bfc4cc; border-radius: 8px; }
.product-total { margin: 18px 0; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.product-total strong { font-size: 22px; }
.product-buy-button { width: 100%; min-height: 52px; }
.preview-cart-note { margin-top: 10px; color: #7b2cbf; text-align: center; }
.production-note { margin-top: 18px; padding: 13px; border-radius: 8px; color: #6b5300; background: #fff4d6; font-size: 13px; }
.shop-header { min-height: 68px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: white; }
.shop-brand { font-size: 19px; font-weight: 900; text-decoration: none; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; }
.cart-link span { min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; color: white; background: #252931; font-size: 12px; }
.catalog-page, .cart-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0 72px; }
.catalog-intro { max-width: 700px; margin-bottom: 36px; }
.catalog-intro h1 { margin-bottom: 10px; font-size: clamp(38px, 6vw, 68px); line-height: 1; }
.catalog-intro > p:last-child { color: var(--muted); font-size: 18px; }
.closed-notice { padding: 28px; border: 1px solid #ead79a; border-radius: 12px; background: #fff8df; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 6px 20px rgb(0 0 0 / .04); }
.catalog-image { display: grid; place-items: center; aspect-ratio: 1; color: var(--muted); background: #eceeea; text-decoration: none; }
.catalog-image img { width: 100%; height: 100%; object-fit: contain; }
.catalog-card-body { padding: 18px; }
.catalog-card-body h2 { margin-bottom: 7px; }
.catalog-card-body p { color: var(--muted); }
.catalog-card-body .button { width: 100%; }
.shop-state-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.shop-state-row h2 { margin-bottom: 6px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item { padding: 16px; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.cart-item-image { overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; color: var(--muted); background: #eceef1; font-size: 12px; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-content h2 { margin-bottom: 10px; }
.cart-item-content dl { margin: 0 0 12px; }
.cart-item-content dl div { display: flex; gap: 5px; }
.cart-item-content dt { font-weight: 700; }
.cart-item-content dd { margin: 0; }
.cart-item-content > p { color: var(--muted); font-size: 13px; }
.cart-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.cart-item-actions form:first-child { display: flex; align-items: end; gap: 8px; }
.cart-item-actions label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.cart-item-actions input { width: 70px; min-height: 40px; padding: 7px; border: 1px solid #bfc4cc; border-radius: 7px; }
.cart-line-total { white-space: nowrap; }
.cart-summary { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.cart-summary > div { margin: 22px 0 10px; display: flex; justify-content: space-between; gap: 20px; }
.cart-summary > div strong { font-size: 21px; }
.cart-summary p, .cart-summary small { color: var(--muted); }
.cart-summary .button { width: 100%; margin: 12px 0 8px; }
.checkout-page, .payment-page { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.pickup-emphasis { margin-bottom: 22px !important; padding: 12px; border-radius: 8px; color: #604b00 !important; background: #fff4d6; font-weight: 800; }
.checkout-summary { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.checkout-item { padding: 13px 0; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.checkout-item span { margin-top: 4px; display: block; color: var(--muted); font-size: 12px; }
.checkout-total { margin: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 18px; }
.checkout-summary > p, .checkout-summary > small { color: var(--muted); }
.checkout-summary .button { width: 100%; margin: 10px 0; }
.checkout-legal { margin-top: 14px; padding: 12px; border-radius: 8px; background: #f1f2f4; color: var(--muted); font-size: 12px; line-height: 1.55; }
.checkout-legal a { font-weight: 700; }
.legal-consent-list { margin: 14px 0 4px; display: grid; gap: 10px; }
.legal-consent-list label { padding: 11px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.45; cursor: pointer; }
.legal-consent-list input { margin-top: 2px; flex: 0 0 auto; }
.legal-consent-list a { font-weight: 800; }
.shop-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 34px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.shop-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.withdrawal-function-link { font-weight: 900; }
.legal-guarantee-notice { margin: 16px 0; display: block; border: 2px solid #003399; border-radius: 8px; overflow: hidden; background: white; }
.legal-guarantee-notice img { width: 100%; height: auto; display: block; }
.legal-page { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.legal-document { padding: clamp(24px, 5vw, 54px); }
.legal-document h1 { margin-bottom: 30px; font-size: clamp(31px, 5vw, 48px); line-height: 1.08; }
.legal-document h2 { margin: 30px 0 10px; font-size: 21px; }
.legal-document p { margin: 0 0 13px; line-height: 1.72; }
.legal-document ul { margin: 0 0 18px; padding-left: 23px; line-height: 1.65; }
.legal-document li + li { margin-top: 7px; }
.legal-document code { padding: 2px 5px; border-radius: 4px; background: #eef0f2; font-size: .92em; }
.legal-draft-warning { margin-bottom: 28px; padding: 14px 16px; display: grid; gap: 4px; border: 1px solid #dfbd5b; border-radius: 9px; background: #fff6d9; color: #664c00; }
.legal-version { margin-top: 34px !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.withdrawal-form { margin-top: 24px; display: grid; gap: 14px; }
.withdrawal-form label { display: grid; gap: 7px; font-weight: 700; }
.withdrawal-form input, .withdrawal-form textarea { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; font: inherit; }
.withdrawal-form textarea { min-height: 110px; resize: vertical; }
.withdrawal-form .button { width: 100%; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.payment-page { min-height: calc(100vh - 68px); display: grid; place-items: center; }
.payment-card { width: min(100%, 560px); text-align: center; }
.payment-card .button { width: 100%; margin: 12px 0; }
.payment-card small { display: block; color: var(--muted); }
.order-search { margin-bottom: 20px; display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto; gap: 10px; }
.order-search input, .order-search select, .status-form select, .note-form textarea { min-height: 44px; padding: 9px 11px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.clickable-row small { color: var(--muted); }
.order-status { white-space: nowrap; }
.status-pending_payment { color: #7a5800; background: #fff2c7; }
.status-paid { color: #155b2b; background: #e1f5e7; }
.status-in_production { color: #164f78; background: #e0f1fc; }
.status-ready_for_pickup { color: #5a2a88; background: #f0e4fb; }
.status-collected { color: #39414d; background: #e8ebef; }
.status-cancelled, .status-refunded { color: #842020; background: #f9e1e1; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.order-detail-main { display: grid; gap: 18px; }
.order-detail-sidebar { position: sticky; top: 24px; display: grid; gap: 18px; }
.detail-section h2 { margin-bottom: 18px; }
.detail-section + .detail-section { margin-top: 18px; }
.settings-form { max-width: 720px; margin-top: 20px; display: grid; gap: 14px; }
.settings-form > label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.settings-form .checkbox-label { padding: 12px 14px; display: grid; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }
.settings-form select { min-height: 44px; padding: 9px 11px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.settings-form input { min-height: 44px; padding: 9px 11px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.admin-user-list { margin-top: 18px; border-top: 1px solid var(--line); }
.admin-user-list article { padding: 13px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.admin-user-list strong, .admin-user-list small { display: block; }
.admin-user-list small { margin-top: 4px; color: var(--muted); }
.admin-create-form { grid-template-columns: 1fr 1fr auto; max-width: none; align-items: end; }
.readiness-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.readiness-heading h2 { margin-bottom: 7px; }
.readiness-summary { padding: 7px 11px; border-radius: 999px; background: #edf0f3; color: #39414d; font-size: 12px; font-weight: 800; white-space: nowrap; }
.readiness-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.readiness-item { padding: 14px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafafa; }
.readiness-item strong, .readiness-item small { display: block; }
.readiness-item small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.readiness-dot { margin-top: 4px; width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: #7b8490; }
.readiness-ok .readiness-dot { background: #228449; }
.readiness-warning .readiness-dot { background: #d19000; }
.readiness-error .readiness-dot { background: #bd2e2e; }
@media (max-width: 700px) { .readiness-grid, .dashboard-grid { grid-template-columns: 1fr; } .admin-create-form { grid-template-columns: 1fr; } .shop-footer { flex-direction: column; } }
.order-item-detail { padding: 16px 0; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; border-bottom: 1px solid var(--line); }
.order-item-detail > img { width: 84px; height: 84px; border-radius: 8px; object-fit: contain; }
.order-item-detail h3 { margin: 0 0 8px; }
.order-item-detail dl { margin: 0 0 8px; }
.order-item-detail dl div { display: flex; gap: 5px; }
.order-item-detail dt { font-weight: 700; }
.order-item-detail dd { margin: 0; }
.order-item-detail p { color: var(--muted); font-size: 13px; }
.order-totals { padding-top: 18px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 22px; }
.order-totals span { display: grid; gap: 4px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 22px 28px; display: flex; }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li > span { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 3px solid white; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--line); }
.timeline strong, .timeline small { display: block; }
.timeline small { margin-top: 4px; color: var(--muted); }
.note-form { display: grid; gap: 10px; }
.note-form textarea { width: 100%; resize: vertical; }
.notes-list { margin-top: 18px; display: grid; gap: 10px; }
.notes-list article { padding: 13px; border-radius: 8px; background: #f3f4f6; }
.notes-list article p { margin-bottom: 6px; color: var(--ink); }
.notes-list small { color: var(--muted); }
.status-form { display: grid; gap: 10px; }
.mail-log-list { display: grid; gap: 10px; }
.mail-log-list article { padding: 11px; display: grid; gap: 4px; border-radius: 8px; background: #f3f4f6; font-size: 12px; }
.mail-log-list article strong { font-size: 13px; }
.mail-log-list article span, .mail-log-list article small { color: var(--muted); overflow-wrap: anywhere; }
.button-danger { border-color: #b32626; color: #8c1616; background: #fff1f1; }
.button-danger:hover { color: white; background: #b32626; }
.status-warning { color: #7a5800; background: #fff2c7; }
.status-error { color: #842020; background: #f9e1e1; }
.import-upload-panel { margin-bottom: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 28px; align-items: end; }
.import-upload-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; align-items: end; }
.import-upload-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
.import-upload-form input[type="file"] { min-height: 44px; padding: 8px; border: 1px solid #bfc4cc; border-radius: 8px; background: white; }
.import-job-heading { margin-top: 34px; }
.import-job-heading h2 { margin-bottom: 0; }
.import-metrics article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 6px 20px rgb(0 0 0 / .04); }
.import-metrics span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.import-metrics strong { font-size: 25px; }
.import-settings-form { margin-top: 20px; }
.import-settings-form small { color: var(--muted); font-weight: 400; line-height: 1.4; }
.import-checks { display: grid; gap: 10px; align-content: start; }
.checkbox-row { padding: 10px 12px; display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: center; gap: 9px !important; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; font-weight: 600 !important; }
.checkbox-row input { width: 18px !important; min-height: 18px !important; }
.import-start-actions { grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 18px; }
.import-start-actions p { max-width: 520px; font-size: 13px; }
.import-progress-panel, .import-result-panel, .import-details-panel { margin-bottom: 24px; }
.import-progress-heading { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.import-progress-heading h2 { margin-bottom: 6px; }
.import-progress-heading strong { font-size: 24px; }
.import-progress { height: 12px; margin-bottom: 18px; overflow: hidden; border-radius: 999px; background: #e8ebef; }
.import-progress span { height: 100%; display: block; border-radius: inherit; background: var(--accent); }
.import-progress-panel form { margin-bottom: 12px; }
.import-result-grid { margin: 20px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.import-result-grid p { padding: 14px; display: grid; gap: 4px; border-radius: 8px; background: #f3f4f6; }
.import-result-grid strong { color: var(--ink); font-size: 24px; }
.import-result-panel .form-actions { margin-top: 20px; flex-wrap: wrap; gap: 10px; }
.import-details-panel > .table-wrap { margin-top: 18px; }
.import-details-panel td:first-child { min-width: 280px; }
.import-details-panel td small { margin-top: 4px; display: block; color: var(--muted); overflow-wrap: anywhere; }
.import-warning, .import-error { margin-top: 7px; padding: 6px 8px; display: block; border-radius: 6px; font-size: 12px; line-height: 1.4; }
.import-warning { color: #6b4c00; background: #fff4cf; }
.import-error { color: #842020; background: #f9e1e1; }

@media (max-width: 800px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { overflow-x: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-nav a, .admin-nav span { white-space: nowrap; }
    .admin-main { padding: 24px 18px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inline-editor { grid-template-columns: 1fr 1fr; }
    .inline-editor .button { grid-column: 1 / -1; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-layout { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .order-detail-sidebar { position: static; }
    .import-upload-panel { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .admin-header { padding: 0 16px; }
    .admin-user { display: none; }
    .metric-grid { grid-template-columns: 1fr; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .login-card { padding: 24px; }
    .form-grid, .inline-editor { grid-template-columns: 1fr; }
    .form-full, .inline-editor .button { grid-column: 1; }
    .media-grid { grid-template-columns: 1fr; }
    .product-page { width: min(100% - 24px, 1180px); padding-top: 18px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-page, .cart-page { width: min(100% - 24px, 1180px); padding-top: 32px; }
    .cart-item { grid-template-columns: 82px minmax(0, 1fr); }
    .cart-line-total { grid-column: 2; }
    .shop-state-row { align-items: flex-start; flex-direction: column; }
    .checkout-page, .payment-page { width: min(100% - 24px, 1080px); padding-top: 32px; }
    .order-search { grid-template-columns: 1fr; }
    .order-item-detail { grid-template-columns: 64px minmax(0, 1fr); }
    .order-item-detail > img { width: 64px; height: 64px; }
    .order-item-detail > strong { grid-column: 2; }
    .import-upload-form, .import-result-grid { grid-template-columns: 1fr; }
    .import-start-actions { align-items: stretch; flex-direction: column; }
}

