:root {
  --bg: #f6f8fb;
  --panel: #fff;
  --text: #202b3d;
  --muted: #778193;
  --line: #e5eaf1;
  --primary: #3478ed;
  --primary-dark: #2465d6;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.6; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; font-weight: 650; letter-spacing: -.9px; line-height: 1.25; overflow-wrap: anywhere; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.3px; line-height: 1.4; overflow-wrap: anywhere; }
h3 { font-size: 15px; font-weight: 600; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: calc(100% - 64px); max-width: 1120px; margin-inline: auto; }
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 700; letter-spacing: -.8px; }
.brand-mark { display: grid; place-items: center; background: #eaf2ff; color: var(--primary); width: 34px; height: 36px; font-size: 28px; line-height: 1; border-radius: 9px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 12px; color: #6c7789; }
.nav nav a[aria-current], .nav .admin-link { color: var(--primary); }
.section { padding-block: 43px 64px; }
.store-page { max-width: 1040px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.page-heading p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.payment-caption { font-size: 11px; color: #8791a2; letter-spacing: .2px; white-space: nowrap; }
.announcement { padding: 15px 19px; border: 1px solid #d9e7fa; background: #edf5ff; border-radius: 8px; font-size: 12px; color: #506988; margin-bottom: 22px; white-space: pre-line; overflow-wrap: anywhere; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 27px; box-shadow: 0 2px 5px #223c6603; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 19px; font-size: 12px; font-weight: 550; min-height: 40px; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; line-height: 1.5; white-space: nowrap; transition: background .15s; }
.primary { color: white; background: var(--primary); }
.primary:hover { background: var(--primary-dark); color: white; }
.secondary { background: white; border-color: #dce3ed; color: #52627b; }
.secondary:hover { border-color: #b7c9e6; background: #f8fbff; color: var(--primary); }
.danger { background: #fff; border-color: #efdbdb; color: #b95050; }
.small { font-size: 11px; min-height: 32px; padding: 6px 12px; gap: 10px; }
.full { width: 100%; }
.spaced { margin-top: 20px; }
.text-link { color: var(--primary); display: inline-block; font-size: 12px; }
.back-link { color: var(--muted); font-size: 12px; display: inline-block; margin-bottom: 20px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.category-tabs { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; gap: 7px; }
.category-chip { border: 1px solid transparent; padding: 8px 14px; background: transparent; border-radius: 6px; color: #748095; font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.category-chip.active { border-color: #d6e5ff; background: #eaf2ff; color: #2969d1; font-weight: 550; }
.catalog-toolbar input.search-input { width: 205px; flex-shrink: 0; font-size: 11px; padding: 10px 12px; background: white; }
.catalog-list { padding: 0 25px; }
.catalog-list-heading { display: flex; justify-content: space-between; padding: 18px 0 14px; color: #9aa4b2; font-size: 9px; letter-spacing: 1px; border-bottom: 1px solid var(--line); }
.catalog-list-heading>span:last-child { margin-right: 135px; }
.catalog-row { display: flex; align-items: center; gap: 19px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.catalog-row:last-of-type { border-bottom: none; }
.item-icon { width: 47px; height: 47px; flex-shrink: 0; border: 1px solid #dce8f8; background: linear-gradient(145deg,#f1f7ff,#e5eeff); border-radius: 10px; color: #6187c5; display: grid; place-items: center; font-size: 25px; }
.item-thumbnail { width: 47px; height: 47px; flex-shrink: 0; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
.product-cover { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 23px; }
.product-upload-preview { display: block; width: 180px; height: 150px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #f8fafc; }
.admin-product-thumbnail { float: left; width: 36px; height: 36px; object-fit: cover; border-radius: 6px; margin-right: 11px; }
.recent-orders { margin-bottom: 20px; }
.recent-order { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.recent-order strong { font-weight: 550; overflow-wrap: anywhere; }
.recent-order small { display: block; margin-top: 5px; }
.item-info { flex: 1; min-width: 0; }
.item-info h2 { font-size: 15px; letter-spacing: -.15px; }
.item-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 10px; color: #98a0ad; margin-top: 5px; }
.stock { font-size: 10px; color: #39846b; }
.stock::before { content: ''; display: inline-block; width: 5px; height: 5px; background: #50a884; border-radius: 50%; margin: 0 6px 1px 0; }
.stock.out { color: #9b8a88; }
.stock.out::before { background: #b7a49e; }
.item-price { font-weight: 600; font-size: 17px; letter-spacing: -.4px; margin-inline: 16px 10px; }
.catalog-row>.button { min-width: 108px; }
.empty-state { text-align: center; padding: 55px 20px; color: var(--muted); font-size: 13px; }
.empty-state h2 { margin-top: 15px; color: #56657d; }
.empty-state p { margin: 10px 0 18px; }
.empty-icon { font-size: 33px; color: #8ea9cd; }
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; color: #99a2b1; }
.footer-inner>div { display: flex; gap: 24px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.checkout-page { max-width: 1000px; }
.cart-count { color: var(--primary); background: #edf4ff; padding: 1px 5px; border-radius: 4px; }
.cart-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.cart-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { padding-bottom: 0; border-bottom: 0; }
.cart-item-heading { display: flex; align-items: center; gap: 15px; }
.cart-item-heading h3 { font-size: 14px; overflow-wrap: anywhere; }
.cart-item-heading>strong { font-size: 14px; white-space: nowrap; }
.cart-item-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.quantity-form { display: flex; align-items: center; gap: 10px; }
.quantity-form label { margin: 0; font-size: 10px; }
.quantity-form input[type=number] { width: 66px; padding: 6px 9px; }
.order-lines { margin-top: 18px; }
.order-lines>div { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 11px; color: #748399; }
.order-lines>div>span { overflow-wrap: anywhere; min-width: 0; }
.order-lines strong { font-weight: 550; white-space: nowrap; }
.order-lines small { display: block; }
.delivered-item .key-box { margin-top: 7px; }
.product-detail h1 { font-size: 27px; margin-top: 18px; }
.detail-price { font-size: 33px; font-weight: 600; letter-spacing: -1px; margin: 22px 0 8px; }
.detail-price>span { font-size: 11px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.product-description { font-size: 13px; color: #68768b; line-height: 1.9; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-line; }
.empty-checkout p { color: var(--muted); margin-block: 20px; font-size: 13px; }
label { display: block; font-size: 11px; font-weight: 550; margin: 19px 0 7px; color: #5a6880; }
input:not([type=checkbox]), select, textarea { width: 100%; border: 1px solid #dce3ec; background: #fff; border-radius: 6px; padding: 10px 12px; outline: none; color: var(--text); font-size: 12px; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: #8aafea; box-shadow: 0 0 0 3px #3478ed0c; }
input::placeholder, textarea::placeholder { color: #a4adbb; }
textarea { resize: vertical; min-height: 70px; line-height: 1.8; }
small, .fine-print { font-size: 10px; color: #929cac; line-height: 1.8; }
input+small, textarea+small { display: block; margin-top: 6px; }
.fine-print { margin-top: 16px; }
.fine-print a, .checkbox-label a { color: var(--primary); }
.optional { font-weight: 400; color: #a2aab7; margin-left: 4px; font-size: 10px; }
.input-action { display: flex; align-items: stretch; gap: 8px; }
.input-action>input { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; font-size: 10px; font-weight: 400; margin: 20px 0; line-height: 1.8; }
.checkbox-label input { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.field-message { font-size: 11px; color: #6c7b92; line-height: 1.8; margin-top: 9px; }
.field-message.error { color: #b94b4b; }
.field-message.success { color: #378065; }
.price-summary { margin: 23px 0 9px; }
.price-summary>div { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #6e7b8e; margin-top: 9px; }
.price-summary .total-line { padding-top: 13px; margin-top: 15px; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; }
.total-line strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.pill { display: inline-flex; align-items: center; border-radius: 5px; padding: 4px 9px; background: #f3f6fa; color: #8090a6; border: 1px solid #e6edf6; font-size: 10px; white-space: nowrap; }
.pill.paid { color: #348266; background: #eff9f4; border-color: #d8eee4; }
.pill.pending { color: #af8a3c; background: #fffbef; border-color: #f3e9cf; }
.pill.expired { color: #9699a2; background: #f6f6f8; border-color: #e8e8ed; }
.subtle { font-size: 12px; color: #8792a3; line-height: 1.8; margin-top: 10px; }
.subtle-inline { color: #929cac; }
.live-text { color: #36896c; }
.dot-separator { margin-inline: 6px; color: #b4bdca; }
.messages { padding-top: 18px; }
.alert { padding: 12px 16px; border: 1px solid #dfe8f4; border-radius: 7px; font-size: 12px; line-height: 1.8; margin-bottom: 18px; }
.alert.info { background: #eef5ff; color: #577295; border-color: #dae7fa; }
.alert.warning { background: #fff9eb; color: #9e7f42; border-color: #f2e6c8; }
.alert.error { background: #fff2f1; color: #af5a55; border-color: #f2dad8; }
.alert.success { background: #f0f9f4; color: #44836b; border-color: #d9ecdf; }
.compact { font-size: 11px; padding: 10px 15px; }
.narrow { max-width: 475px; }
.form-page { max-width: 760px; }
.admin-tabs { display: flex; gap: 26px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; white-space: nowrap; }
.admin-tabs a { font-size: 12px; color: #8893a5; padding-bottom: 14px; border-bottom: 2px solid transparent; }
.admin-tabs a.active { color: var(--primary); border-color: var(--primary); font-weight: 550; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { color: #99a3b3; font-weight: 500; font-size: 10px; padding: 13px 12px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 19px 12px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td strong { font-weight: 550; }
td small { display: block; margin-top: 4px; }
td code { font-size: 12px; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.settings-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; align-items: start; }
.email-settings { max-width: 760px; }
.email-settings .panel-heading { align-items: flex-start; }
.order-page { max-width: 1050px; }
.order-page .page-heading .back-link { margin-bottom: 12px; }
.order-layout { display: grid; grid-template-columns: .85fr 1.3fr; gap: 24px; align-items: start; }
.order-receipt h2 { font-size: 20px; }
.receipt-details { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px 20px; font-size: 11px; margin: 24px 0 0; }
.receipt-details dt { color: #94a0b1; }
.receipt-details dd { margin: 0; text-align: right; color: #62718a; overflow-wrap: anywhere; }
.receipt-details code { font-size: 10px; }
.copy-box { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #dce7f6; background: #f7faff; border-radius: 6px; min-width: 0; }
.copy-box code { color: #3a69a9; font-size: 19px; min-width: 0; overflow-wrap: anywhere; }
.copy-box>span { color: #8d9ab0; font-size: 10px; }
.copy-button { margin-left: auto; border: 1px solid #d5e2f6; color: #4d75ae; background: #edf4ff; border-radius: 4px; font-size: 10px; padding: 5px 9px; flex-shrink: 0; }
.address-box code { font-size: 10px; word-break: break-all; }
.key-box { margin: 25px 0 15px; flex-wrap: wrap; }
.key-box code { font-size: 18px; word-break: break-all; }
.network-warning { margin-top: 18px; color: #5377a6; background: #eff5ff; padding: 9px 12px; border-radius: 5px; font-size: 11px; }
.qr-row { display: flex; align-items: center; gap: 23px; margin-top: 19px; }
.payment-qr { background: white; border: 1px solid var(--line); border-radius: 6px; flex-shrink: 0; }
.qr-row .fine-print { margin: 0; font-size: 10px; }
.success-icon { display: grid; place-items: center; background: #e6f5ec; color: #459271; width: 45px; height: 45px; border-radius: 50%; font-size: 24px; margin-bottom: 17px; }
details { font-size: 11px; color: #8b98ab; }
summary { display: flex; justify-content: space-between; gap: 15px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary>span { color: #99b0cf; }
details[open] summary>span { transform: rotate(45deg); }
details p { margin-top: 10px; font-size: 10px; line-height: 1.8; }
.payment-note { margin-top: 20px; }
.legal.narrow { max-width: 850px; }
.legal h2 { margin-top: 26px; margin-bottom: 12px; }
.legal h2:first-child { margin-top: 0; }
.legal .panel { margin-top: 25px; }
.legal p { color: #7b8798; font-size: 12px; line-height: 1.9; margin-bottom: 12px; }
.legal a { color: var(--primary); }
.page-title { font-size: 29px; }
.eyebrow { font-size: 10px; color: #99a4b6; margin-bottom: 12px; letter-spacing: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .container { width: calc(100% - 40px); }
  .catalog-row { gap: 15px; }
  .item-price { margin-inline: 0 4px; }
  .checkout-layout { gap: 20px; }
  .settings-layout { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: .8fr 1.2fr; gap: 18px; }
  .panel { padding: 23px; }
  .order-layout .panel { padding: 21px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .nav { min-height: 68px; gap: 15px; flex-wrap: wrap; padding-block: 15px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 27px; height: 30px; font-size: 24px; border-radius: 7px; }
  .nav nav { gap: 16px; font-size: 10px; flex-wrap: wrap; }
  .nav .admin-link { display: none; }
  .section { padding-block: 29px 45px; }
  h1 { font-size: 25px; }
  .page-heading { gap: 15px; margin-bottom: 23px; }
  .page-heading p { font-size: 11px; }
  .store-page .page-heading { align-items: flex-start; }
  .payment-caption { font-size: 9px; margin-top: 7px; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .category-chip { padding: 7px 11px; font-size: 11px; }
  .catalog-toolbar input.search-input { width: 100%; }
  .catalog-list { padding: 0 17px; }
  .catalog-list-heading>span:last-child { margin-right: 0; }
  .catalog-row { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 13px 12px; padding: 22px 0; }
  .item-icon { width: 35px; height: 36px; font-size: 20px; border-radius: 8px; }
  .item-thumbnail { width: 35px; height: 36px; border-radius: 8px; }
  .item-info h2 { font-size: 13px; }
  .item-meta { font-size: 9px; gap: 4px 10px; }
  .stock { font-size: 9px; }
  .item-price { font-size: 16px; margin: 0; }
  .catalog-row>.button { grid-column: 2 / 4; min-height: 35px; font-size: 11px; width: 100%; }
  .panel { padding: 21px; }
  .checkout-layout, .order-layout { grid-template-columns: 1fr; gap: 19px; }
  .cart-layout { grid-template-columns: 1fr; gap: 19px; }
  .cart-item-heading { gap: 10px; }
  .cart-item-heading h3 { font-size: 12px; }
  .cart-item-heading>strong { font-size: 12px; }
  .cart-item-controls { flex-wrap: wrap; }
  .quantity-form { gap: 8px; }
  .product-detail h1 { font-size: 25px; }
  .product-detail hr { margin-block: 20px; }
  .detail-price { font-size: 29px; margin-block: 18px 7px; }
  .form-row { gap: 12px; }
  .panel-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading>.button { min-height: 34px; font-size: 11px; padding: 8px 12px; }
  .panel-heading .input-action { width: 100%; }
  .admin-tabs { gap: 23px; margin-bottom: 20px; }
  .admin-tabs a { font-size: 11px; }
  table { font-size: 11px; }
  td, th { padding: 13px 9px; }
  td { min-width: 85px; }
  .row-actions { min-width: 140px; }
  .management-table thead { display: none; }
  .management-table tbody { display: block; }
  .management-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .management-table tr:last-child { border-bottom: none; padding-bottom: 0; }
  .management-table td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .management-table td:first-child, .management-table td:last-child { grid-column: 1 / -1; }
  .management-table td[data-label]::before { content: attr(data-label); display: block; font-size: 9px; color: #9ba6b7; margin-bottom: 5px; }
  .order-receipt .receipt-details { margin-top: 19px; }
  .receipt-details { font-size: 10px; gap: 13px 16px; }
  .qr-row { gap: 16px; }
  .payment-qr { width: 105px; height: 105px; }
  .qr-row .fine-print { font-size: 9px; }
  .copy-box { padding: 11px; gap: 8px; }
  .copy-box code { font-size: 17px; }
  .address-box code { font-size: 10px; }
  .payment-caption { display: none; }
  .footer-inner { font-size: 9px; gap: 15px; min-height: 65px; }
  .footer-inner>div { gap: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
