.shop-admin {
  margin: 0;
  color: #172538;
  background: #f3f6fa;
  font: 15px/1.6 system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.shop-admin *, .shop-form *, .shop-panel *, .shop-cart * { box-sizing: border-box; }
.shop-admin a { color: #146478; text-underline-offset: 3px; }
.shop-admin h1, .page-commerce h1 { letter-spacing: -.04em; line-height: 1.15; font-size: clamp(1.85rem, 4vw, 2.6rem); }
.shop-admin h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.shop-admin p { color: #53647a; }
.shop-admin h1, .shop-admin h2, .shop-admin p { overflow-wrap: anywhere; }
.admin-header { background: linear-gradient(115deg, #102b3b, #124650); color: #fff; box-shadow: 0 5px 24px #16354514; }
.admin-topbar {
  max-width: 1240px; margin: auto; padding: 1.35rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.admin-header .admin-brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; min-width: 0; }
.admin-brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px; background: #a5eee3; color: #133d49; font-weight: 900; letter-spacing: -.06em;
}
.admin-brand strong { display: block; font-size: 1.1rem; letter-spacing: -.025em; }
.admin-brand small { display: block; color: #b8d8dd; font-size: .76rem; }
.admin-account { display: flex; align-items: center; gap: 1.2rem; min-width: 0; }
.admin-account form { margin: 0; }
.admin-header .admin-store-link { color: #d1f0f2; font-size: .85rem; font-weight: 600; text-decoration: none; padding: .7rem 0; white-space: nowrap; }
.admin-user { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.admin-avatar { display: grid; place-items: center; width: 36px; height: 36px; background: #ffffff1a; border: 1px solid #ffffff29; border-radius: 50%; }
.admin-user-details { min-width: 0; }
.admin-user-details strong, .admin-user-details small { display: block; }
.admin-user-details strong { font-size: .78rem; }
.admin-user-details small { font-size: .72rem; color: #c1d5dc; max-width: 220px; overflow-wrap: anywhere; }
.admin-header .admin-signout { background: #ffffff12; color: #fff; border: 1px solid #ffffff40; font-size: .8rem; padding: .55rem .85rem; white-space: nowrap; }
.admin-nav {
  display: flex; gap: .4rem; max-width: 1240px; margin: auto; padding: 0 1.5rem .8rem;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #70aaa9 transparent;
}
.admin-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .6rem 1.1rem; border-radius: 10px; text-decoration: none; color: #d2e1e6; font-size: .88rem; font-weight: 600; flex-shrink: 0;
}
.admin-nav a:hover { background: #ffffff12; color: #fff; }
.admin-nav a[aria-current] { color: #153f4b; background: #c4f1e9; box-shadow: 0 3px 10px #00000012; }
.admin-main { max-width: 1240px; margin: 2.5rem auto 4rem; padding: 0 1.5rem; min-width: 0; }
.admin-main > h1 { margin-bottom: 1rem; }
.admin-page-heading, .shop-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.6rem; }
.admin-page-heading h1, .shop-page-heading h1 { margin: .3rem 0 .55rem; }
.admin-page-heading p, .shop-page-heading p { margin: 0; }
.admin-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.admin-section-heading a { font-size: .85rem; font-weight: 700; }
.shop-eyebrow { margin: 0 0 .45rem; font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: #347780 !important; text-transform: uppercase; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.1rem; margin: 1.25rem 0; min-width: 0; }
.shop-grid > * { min-width: 0; }
.shop-panel { background: #fff; border: 1px solid #e0e7ef; border-radius: 18px; padding: 1.4rem; overflow-wrap: anywhere; box-shadow: 0 4px 16px #1b425004; min-width: 0; }
.shop-panel h2 { margin-top: 0; font-size: 1.1rem; }
.admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.admin-stats .shop-panel { position: relative; padding: 1.35rem 1.5rem; border-bottom: 3px solid #c2e3e4; }
.admin-stats .shop-panel:first-child { background: linear-gradient(125deg, #166173, #123f50); color: #fff; border-color: transparent; }
.admin-stats h2 { font-size: .8rem; font-weight: 600; color: #546880; margin: 0 0 .8rem; letter-spacing: 0; }
.admin-stats .shop-panel:first-child h2 { color: #d0eaed; }
.shop-stat { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
.admin-tools { border: 1px dashed #c0ceda; border-radius: 12px; padding: .8rem 1rem; margin: 1.5rem 0; color: #51627a; }
.admin-tools summary { cursor: pointer; font-size: .86rem; font-weight: 600; min-height: 28px; }
.admin-tools .shop-form { margin-bottom: .5rem; }
.admin-login { max-width: 460px; margin: 5vh auto; padding: clamp(1.5rem, 5vw, 2.5rem); box-shadow: 0 20px 60px #0f415010; }
.admin-login h1 { margin: .65rem 0; }
.admin-login > p:last-child { font-size: .8rem; }
.admin-auth { background: radial-gradient(ellipse at top, #dfefef, #f6f8fb 70%); min-height: 100vh; }
.shop-alert { border: 1px solid #a7d5d8; background: #eef9f8; border-radius: 12px; padding: 1rem; margin: 1rem 0; overflow-wrap: anywhere; }
.shop-error { background: #fff2ef; border-color: #e9b7ae; color: #952f20 !important; }
.shop-form { display: grid; gap: 1.1rem; max-width: 740px; margin: 1.3rem 0 2rem; min-width: 0; }
.shop-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 650; min-width: 0; }
.shop-form [hidden] { display: none; }
.shop-form input, .shop-form select, .shop-form textarea {
  font: inherit; font-size: 16px; padding: .75rem .85rem; border: 1px solid #c3ceda; border-radius: 10px; width: 100%; min-width: 0; max-width: 100%;
  color: #172538; background: #fff; min-height: 46px;
}
.shop-form input[type="file"] { padding: .6rem; }
.shop-form input[type="file"]::file-selector-button { border: 0; border-radius: 6px; padding: .5rem .65rem; margin-right: .7rem; color: #174858; background: #e7f2f5; cursor: pointer; }
.shop-form textarea { resize: vertical; }
.shop-form .shop-check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 500; }
.shop-check input { width: 18px; min-width: 18px; min-height: 18px; margin-top: .25rem; accent-color: #176879; }
.shop-form button, .shop-button, .shop-admin button, .shop-cart-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  font: inherit; font-weight: 700; border: 1px solid transparent; border-radius: 10px; min-height: 44px;
  padding: .75rem 1.1rem; color: #fff; background: #155e70; text-decoration: none; cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}
.shop-form button:hover, .shop-button:hover, .shop-admin button:hover, .shop-cart-button:hover { background: #0e4759; box-shadow: 0 4px 12px #123f5014; }
.shop-admin a.shop-button { color: #fff; }
.shop-admin button { margin: .15rem 0; }
.shop-form button:disabled, .shop-cart-button:disabled { background: #73818c; cursor: not-allowed; box-shadow: none; }
.shop-form .shop-button-secondary { color: #205665; background: #eaf3f5; border-color: #d3e4e8; }
.shop-form .shop-button-text { color: #a33b2f; background: transparent; box-shadow: none; }
.shop-danger { background: #a33729 !important; }
.shop-danger-zone { margin: 2rem 0; padding: 1.25rem; border: 1px solid #e8c1b9; border-radius: 14px; background: #fff7f5; }
.shop-danger-zone h2 { color: #8d2d23; margin-top: 0; }
.shop-danger-zone .shop-form { margin-bottom: 0; }
.shop-delete-customer { min-width: 0; overflow-wrap: anywhere; }
.shop-delete-customer summary { color: #a33729; font-weight: 700; cursor: pointer; min-height: 44px; padding: .6rem 0; }
.shop-delete-customer p { font-size: .8rem; }
.shop-delete-customer .shop-form { margin: .75rem 0; }
.shop-delete-customer button { font-size: .8rem; }
.shop-filter { max-width: 850px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
.shop-filter button { min-height: 46px; }
.shop-table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid #e0e7ef; border-radius: 15px; max-width: 100%; min-width: 0; }
.shop-table-wrap table { width: 100%; border-collapse: collapse; background: #fff; font-size: .87rem; }
.shop-table-wrap th, .shop-table-wrap td { text-align: left; padding: 1rem; border-bottom: 1px solid #edf1f6; overflow-wrap: anywhere; }
.shop-table-wrap th { background: #eaf0f5; font-size: .71rem; color: #5b6c81; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.shop-table-wrap tbody tr:last-child td { border-bottom: 0; }
.shop-table-wrap td a { font-weight: 650; text-decoration: none; }
.shop-table-wrap td a:hover { text-decoration: underline; }
.shop-status { display: inline-block; background: #edf2f7; color: #53647a; border-radius: 7px; padding: .25rem .55rem; font-size: .74rem; font-weight: 650; }
.shop-status[data-status="paid"], .shop-status[data-status="completed"] { background: #e3f5ed; color: #246548; }
.shop-status[data-status="reviewing"], .shop-status[data-status="needs_receipt"] { background: #fff3d9; color: #85560f; }
.shop-status[data-status="shipped"], .shop-status[data-status="packing"] { background: #e7f0fc; color: #365e9a; }
.shop-status[data-status="cancelled"], .shop-status[data-status="refunded"] { background: #fcece8; color: #943d31; }
.admin-order-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin: .5rem 0 1.5rem; }
.admin-order-heading h1 { margin: .3rem 0 .65rem; }
.admin-order-statuses { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: #53647a; font-size: .85rem; }
.admin-order-total { text-align: right; white-space: nowrap; }
.admin-order-total span, .admin-order-total strong { display: block; }
.admin-order-total span { color: #65768a; font-size: .8rem; }
.admin-order-total strong { color: #173d4c; font-size: 1.55rem; }
.admin-order-journey { padding: clamp(1.2rem, 3vw, 2rem); }
.admin-journey-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.admin-journey-heading h2 { font-size: 1.3rem; margin: .2rem 0 0; }
.admin-journey-heading p:last-child { margin: 0; font-size: .82rem; }
.admin-journey-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 2rem 0; padding: 0; }
.admin-journey-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; min-width: 0; color: #7a8a99; }
.admin-journey-step:not(:last-child)::after { content: ''; position: absolute; z-index: 0; top: 31px; left: calc(50% + 38px); right: calc(-50% + 38px); height: 2px; background: #dce5eb; }
.admin-journey-step[data-state="previous"]::after { background: #80c4c0; }
.admin-journey-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .35rem; border-radius: 50%; background: #eff3f6; color: #8596a5; }
.admin-journey-icon svg { width: 34px; height: 34px; }
.admin-journey-step strong { font-size: .9rem; }
.admin-journey-step small { font-size: .72rem; }
.admin-journey-step[data-state="previous"] { color: #397d79; }
.admin-journey-step[data-state="previous"] .admin-journey-icon { background: #e6f4f1; color: #398880; }
.admin-journey-step[data-state="current"] { color: #104c5c; }
.admin-journey-step[data-state="current"] .admin-journey-icon { background: #d5f1ed; color: #135d69; box-shadow: 0 0 0 4px #effaf8; }
.admin-journey-closed { padding: .8rem 0; }
.admin-next-step { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.1rem 1.25rem; border-radius: 12px; background: #edf7f6; border: 1px solid #d5eae7; }
.admin-next-step h3 { margin: .2rem 0; font-size: 1rem; color: #153f4b; }
.admin-next-step p { margin: 0; font-size: .85rem; }
.admin-next-label { color: #287c7a; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.admin-next-step a { flex-shrink: 0; font-size: .85rem; font-weight: 700; padding: .65rem 0; }
.shop-rate-table table { min-width: 600px; }
.shop-rate-table td, .shop-rate-table th { padding: .6rem; }
.shop-rate-table input { min-width: 95px; }
.shop-preview { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; }
.shop-qr { max-width: 280px; width: 100%; height: auto; }
.shop-payment-qr { width: min(100%, 280px); margin: 1rem 0; }
.shop-payment-qr figcaption { margin-bottom: .5rem; font-weight: 700; overflow-wrap: anywhere; }
.shop-payment-qr .shop-qr { display: block; }
.shop-total { font-size: 1.3rem; font-weight: 800; }
.shop-inline { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.shop-inline input[type="number"] { width: 80px; min-height: 44px; border: 1px solid #c3ceda; border-radius: 8px; padding: .6rem; font: inherit; }
.shop-old-price { display: block; font-size: .85em; color: #55657a; font-weight: 400; }
.shop-stock, .shop-muted { font-size: .9rem; color: #5b6c80; }
.shop-email-preview { margin-bottom: 1rem; }
.shop-email-preview summary { cursor: pointer; min-height: 44px; padding: .5rem 0; }
.shop-email-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: #fff; border-radius: 10px; font-size: .85rem; }
.shop-empty { padding: 2.5rem 1.5rem; background: #fff; border: 1px dashed #cbd7e2; border-radius: 16px; text-align: center; color: #53647a; margin: 1rem 0; }
.shop-empty strong { color: #263f55; }
.shop-empty p { margin-bottom: 0; }
.shop-empty-mark { display: grid; place-items: center; margin: 0 auto 1rem; width: 72px; height: 72px; border-radius: 22px; background: #e4f2f2; color: #176070; font-size: 1.4rem; font-weight: 800; }
.shop-cart-empty { padding: 3.5rem 1.5rem; }
.shop-cart-empty p { max-width: 420px; margin: .75rem auto 1.5rem; }
.page-commerce .section { min-width: 0; overflow-wrap: anywhere; }
.shop-back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 650; color: #216479; text-decoration: none; padding: .7rem 0; }
.shop-steps { display: flex; padding: 0; margin: 1.5rem 0 2rem; gap: clamp(.8rem, 4vw, 2.5rem); list-style: none; color: #6c7e90; font-size: .85rem; }
.shop-steps li { display: flex; align-items: center; gap: .5rem; }
.shop-steps span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ced9e3; border-radius: 50%; background: #fff; font-size: .75rem; }
.shop-steps [aria-current] { color: #176171; font-weight: 750; }
.shop-steps [aria-current] span { background: #176171; border-color: #176171; color: #fff; }
.shop-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.4rem; align-items: start; }
.shop-cart-items { display: grid; gap: 1rem; min-width: 0; }
.shop-cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.25rem; background: #fff; border: 1px solid #e0e7ef; border-radius: 16px; }
.shop-cart-image { display: grid; place-items: center; aspect-ratio: 1; background: #f1f6f9; border-radius: 12px; color: #297482; font-weight: 800; }
.shop-cart-image img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.shop-cart-details { min-width: 0; }
.shop-cart-details h2 { font-size: 1rem; margin: .2rem 0 .4rem; line-height: 1.4; }
.shop-cart-details p { margin: .2rem 0 .6rem; }
.shop-cart-line-total { font-size: 1rem; white-space: nowrap; }
.shop-cart-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.shop-cart-controls label { width: 76px; font-size: .72rem; }
.shop-cart-controls input { padding: .65rem .6rem; }
.shop-cart-controls button { font-size: .78rem; padding: .65rem .75rem; min-height: 46px; }
.shop-cart-summary { position: sticky; top: 95px; }
.shop-cart-summary h2 { font-size: 1.25rem; margin: .35rem 0 1.4rem; }
.shop-summary-lines { margin: 0 0 1rem; font-size: .88rem; color: #53647a; }
.shop-summary-lines > div { display: flex; justify-content: space-between; gap: 1rem; margin: .8rem 0; }
.shop-summary-lines dd { margin: 0; font-weight: 650; text-align: right; }
.shop-summary-subtotal { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding-top: 1rem; border-top: 1px solid #e0e7ef; font-size: .95rem; }
.shop-summary-subtotal strong { font-size: 1.5rem; letter-spacing: -.035em; }
.shop-cart-summary .shop-muted { font-size: .8rem; margin: 1rem 0 1.25rem; }
.shop-checkout-link { width: 100%; }
.shop-cart-assurance { text-align: center; font-size: .74rem; line-height: 1.65; color: #627589; margin: 1rem 0 0; }
.shop-checkout-form { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; background: #fff; border: 1px solid #e0e7ef; padding: clamp(1rem, 3vw, 2rem); border-radius: 18px; }
.shop-field-wide { grid-column: 1 / -1; }
.shop-skip-link { position: absolute; left: 1rem; top: -100px; padding: .8rem; background: #fff; z-index: 100; }
.shop-skip-link:focus { top: .5rem; }
.shop-form input:focus-visible, .shop-form select:focus-visible, .shop-form textarea:focus-visible,
.shop-admin a:focus-visible, .shop-admin button:focus-visible, .shop-button:focus-visible, .shop-table-wrap:focus-visible {
  outline: 3px solid #3d96c5; outline-offset: 3px;
}
@media (max-width: 900px) {
  .admin-user-details { display: none; }
  .admin-account { gap: .75rem; }
  .shop-cart-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 1rem; }
  .shop-cart-item { grid-template-columns: 64px minmax(0, 1fr); padding: 1rem; }
  .shop-cart-line-total { grid-column: 2; }
}
@media (max-width: 680px) {
  .admin-topbar { padding: 1rem; gap: .7rem; }
  .admin-brand strong { font-size: .92rem; }
  .admin-brand small { font-size: .64rem; }
  .admin-brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: .8rem; }
  .admin-header .admin-brand { gap: .6rem; }
  .admin-user, .admin-header .admin-store-link { display: none; }
  .admin-auth .admin-store-link { display: inline-flex; font-size: .75rem; }
  .admin-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding: 0 1rem 1rem; }
  .admin-nav a { padding: .55rem .3rem; font-size: .8rem; }
  .admin-main { padding: 0 1rem; margin-top: 1.5rem; }
  .admin-page-heading, .shop-page-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .admin-page-heading .shop-button { font-size: .85rem; }
  .admin-order-heading, .admin-journey-heading, .admin-next-step { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .admin-order-total { text-align: left; }
  .admin-journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .5rem; margin: 1.5rem 0; }
  .admin-journey-step:nth-child(2)::after { display: none; }
  .admin-next-step a { padding: .35rem 0; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .admin-stats .shop-panel { padding: 1rem; border-radius: 13px; }
  .admin-stats h2 { font-size: .72rem; min-height: 2.5em; }
  .admin-section-heading h2 { font-size: 1rem; }
  .admin-section-heading a { font-size: .78rem; }
  .shop-filter { grid-template-columns: minmax(0, 1fr); }
  .shop-responsive-table, .shop-responsive-table tbody { display: block; }
  .shop-responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .shop-responsive-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: 1rem; border-bottom: 1px solid #e0e7ef; }
  .shop-responsive-table tr:last-child { border-bottom: 0; }
  .shop-responsive-table td { display: block; min-width: 0; padding: 0; border: 0; font-size: .84rem; }
  .shop-responsive-table td::before { content: attr(data-label); display: block; color: #687b91; font-size: .66rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
  .shop-responsive-table td a { display: inline-flex; align-items: center; min-height: 44px; }
  .shop-responsive-table td:first-child, .shop-responsive-table td[data-label="Product"], .shop-responsive-table td[data-label="Customer"], .shop-responsive-table td[data-label="Delete"] { grid-column: 1 / -1; }
  .shop-cart-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-cart-summary { position: static; }
  .shop-cart-item { grid-template-columns: 68px minmax(0, 1fr); gap: .85rem; }
  .shop-cart-line-total { grid-column: 2; }
  .shop-cart-controls { gap: .35rem; }
  .shop-cart-controls button { padding: .65rem .55rem; }
  .shop-cart-controls label { width: 65px; }
  .shop-checkout-form { grid-template-columns: minmax(0, 1fr); }
  .shop-panel { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-form button, .shop-button, .shop-admin button, .shop-cart-button { transition: none; }
}
