/* Shop owns its layout; shared dashboard/modal rules must not clip its content. */
body.shop-admin-page { color-scheme: light; --shop-surface: #fff; --shop-soft: #f5f7f9; --shop-line: #dfe5eb; --shop-ink: #111923; --shop-muted: #596776; --shop-accent-soft: #eff9d4; }
body.shop-admin-page.theme-dark { color-scheme: dark; --shop-surface: #151e2b; --shop-soft: #1c2735; --shop-line: #344150; --shop-ink: #f0f4f8; --shop-muted: #adbdce; --shop-accent-soft: #263817; }
.shop-admin-page .main-content { min-width: 0; overflow: visible; }
.shop-admin-page .app-shell { align-items: start; }
.shop-admin-page .shop-wrap { max-width: 1120px; margin: 0 auto; padding: 18px 18px 48px; color: var(--shop-ink); }
.shop-admin-page .shop-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.shop-admin-page .shop-heading h1 { font-size: clamp(23px, 3vw, 30px); line-height: 1.2; letter-spacing: -.7px; margin: 0; }
.shop-admin-page .shop-heading p { margin: 6px 0 0; color: var(--shop-muted); font-size: 13px; line-height: 1.5; }
.shop-admin-page .shop-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.shop-admin-page .shop-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 5px; margin: 0 0 20px; background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 16px; position: static; }
.shop-admin-page .shop-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 10px 4px; border: 0; border-radius: 11px; background: transparent; color: var(--shop-muted); line-height: 1.25; font-family: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.shop-admin-page .shop-tabs button.active { background: #111923; color: #fff; }
.shop-admin-page.theme-dark .shop-tabs button.active { background: #c8ff00; color: #111923; }
.shop-admin-page .shop-panel { display: none; }
.shop-admin-page .shop-panel.active { display: block; }
.shop-admin-page .shop-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.shop-admin-page .shop-section-heading h2 { font-size: 16px; margin: 0; letter-spacing: -.2px; }
.shop-admin-page .shop-text-button { border: 0; padding: 8px 0 8px 10px; background: none; color: var(--shop-muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; min-height: 44px; }
.shop-admin-page .shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-admin-page .shop-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative; min-width: 0; border: 1px solid var(--shop-line); border-radius: 18px; background: var(--shop-surface); color: var(--shop-ink); padding: 18px; text-align: left; font-family: inherit; cursor: pointer; }
.shop-admin-page .shop-stat-label { color: var(--shop-muted); font-size: 13px; font-weight: 650; padding-right: 14px; }
.shop-admin-page .shop-stat strong { font-size: 36px; font-weight: 750; line-height: 1.2; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.shop-admin-page .shop-stat small { font-size: 12px; line-height: 1.5; color: var(--shop-muted); }
.shop-admin-page .shop-stat > .shop-icon { position: absolute; top: 17px; right: 14px; width: 16px; color: var(--shop-muted); }
.shop-admin-page .shop-stat-emphasis { background: var(--shop-accent-soft); border-color: #acc970; }
.shop-admin-page .shop-block { margin-top: 24px; }
.shop-admin-page .shop-order-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 16px; padding: 8px; }
.shop-admin-page .shop-order-states button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 88px; min-width: 0; border: 0; border-right: 1px solid var(--shop-line); background: none; color: var(--shop-ink); font-family: inherit; padding: 8px; cursor: pointer; }
.shop-admin-page .shop-order-states button:last-child { border-right: 0; }
.shop-admin-page .shop-order-states strong { font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.shop-admin-page .shop-order-states span { font-size: 12px; line-height: 1.4; color: var(--shop-muted); }
.shop-admin-page .shop-setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-admin-page .shop-setup-link { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--shop-line); border-radius: 16px; background: var(--shop-surface); color: var(--shop-ink); text-decoration: none; min-width: 0; }
.shop-admin-page .shop-icon-tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--shop-soft); flex-shrink: 0; }
.shop-admin-page .shop-setup-copy { flex: 1; min-width: 0; }
.shop-admin-page .shop-setup-copy b { display: block; font-size: 14px; }
.shop-admin-page .shop-setup-copy small { display: block; color: var(--shop-muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.shop-admin-page .shop-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--shop-line); color: var(--shop-muted); font-size: 12px; }
.shop-admin-page .shop-footnote a { color: inherit; text-underline-offset: 3px; }
.shop-admin-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 11px 15px; border: 1px solid transparent; border-radius: 11px; font-family: inherit; font-size: 14px; line-height: 1.4; font-weight: 700; text-decoration: none; cursor: pointer; }
.shop-admin-page .btn-primary { background: #c8ff00; color: #111923; }
.shop-admin-page .btn-dark { background: #111923; color: #fff; }
.shop-admin-page .btn-soft { background: var(--shop-soft); border-color: var(--shop-line); color: var(--shop-ink); }
.shop-admin-page .btn-danger { background: #ffe3e3; color: #a21c16; }
.shop-admin-page button:disabled { opacity: .55; cursor: wait; }
.shop-admin-page :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #669625; outline-offset: 3px; }
.shop-admin-page .toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.shop-admin-page :is(.toolbar, .field) :is(input, select, textarea) { border: 1px solid var(--shop-line); border-radius: 10px; background: var(--shop-surface); color: var(--shop-ink); font: inherit; font-size: 16px; padding: 11px 12px; min-width: 0; max-width: 100%; min-height: 44px; }
.shop-admin-page .toolbar input { flex: 1 1 190px; }
.shop-admin-page .card { background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; box-shadow: none; }
.shop-admin-page .card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; }
.shop-admin-page .card-head img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--shop-soft); }
.shop-admin-page .card-main { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.shop-admin-page .card-main b { display: block; font-size: 16px; color: var(--shop-ink); }
.shop-admin-page .card-main small { display: block; color: var(--shop-muted); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.shop-admin-page .pill { display: inline-flex; border-radius: 7px; padding: 5px 8px; font-size: 11px; font-weight: 700; background: var(--shop-soft); color: var(--shop-muted); }
.shop-admin-page .pill.on { background: var(--shop-accent-soft); color: var(--accent-fg); }
.shop-admin-page .card-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 14px; }
.shop-admin-page .empty { background: var(--shop-surface); border: 1px dashed var(--shop-line); border-radius: 16px; padding: 28px 18px; text-align: center; color: var(--shop-muted); font-size: 14px; line-height: 1.6; }
.shop-admin-page .empty .btn { margin-top: 12px; }
body.shop-admin-page .modal { position: fixed; inset: 0; width: 100%; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; border-radius: 0; background: rgba(8, 14, 22, .6); z-index: 10000; display: none; align-items: flex-end; justify-content: center; overflow: hidden; }
body.shop-admin-page .modal.open { display: flex; }
.shop-admin-page .modal-box { background: var(--shop-surface); color: var(--shop-ink); width: min(760px, 100%); max-width: 760px; max-height: 93dvh; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--shop-line); border-radius: 22px 22px 0 0; padding: 18px; margin: 0; }
.shop-admin-page .modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.shop-admin-page .modal-head h2 { margin: 0; flex: 1; font-size: 22px; color: var(--shop-ink); }
.shop-admin-page .close { border: 0; background: var(--shop-soft); color: var(--shop-ink); width: 44px; height: 44px; border-radius: 12px; font-size: 24px; cursor: pointer; }
.shop-admin-page .form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.shop-admin-page .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.shop-admin-page .field label { font-size: 13px; font-weight: 700; color: var(--shop-muted); }
.shop-admin-page .field textarea { min-height: 110px; resize: vertical; }
.shop-admin-page .check { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.shop-admin-page .check input { width: 22px; height: 22px; min-height: 22px; }
.shop-admin-page .product-image { width: 140px; height: 140px; border: 2px dashed var(--shop-line); border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: var(--shop-soft); }
.shop-admin-page .product-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-admin-page .settings-grid { display: grid; gap: 12px; }
.shop-admin-page .settings-card { background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 16px; padding: 18px; margin-bottom: 12px; overflow-wrap: anywhere; }
.shop-admin-page .settings-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--shop-ink); }
.shop-admin-page .settings-card > p { margin: 0 0 16px; color: var(--shop-muted); font-size: 14px; line-height: 1.6; }
.shop-admin-page .settings-card ol { padding-left: 20px; margin: 16px 0; color: var(--shop-muted); font-size: 14px; line-height: 1.7; }
.shop-admin-page .notice { background: var(--shop-accent-soft); border: 1px solid var(--shop-line); color: var(--shop-ink); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; font-size: 14px; line-height: 1.6; }
.shop-admin-page .toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: #111923; color: #fff; border-radius: 12px; padding: 12px 18px; font-size: 14px; z-index: 12000; display: none; }
.shop-admin-page .toast.show { display: block; }
.shop-admin-page .order-items { margin-top: 8px; color: var(--shop-muted); font-size: 13px; }
.shop-admin-page .shop-state { display: none; margin: 0 0 14px; padding: 13px 15px; border-radius: 12px; background: #fff4d6; border: 1px solid #efc666; color: #543d00; font-size: 14px; line-height: 1.5; }
.shop-admin-page .shop-state.show { display: block; }
.shop-admin-page [aria-busy="true"] { opacity: .65; }
@media (hover: hover) {
  .shop-admin-page :is(.shop-stat, .shop-setup-link):hover { border-color: #92ad61; }
  .shop-admin-page .shop-tabs button:not(.active):hover { background: var(--shop-soft); color: var(--shop-ink); }
  .shop-admin-page .shop-order-states button:hover { background: var(--shop-soft); border-radius: 8px; }
}
@media (min-width: 700px) {
  .shop-admin-page .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-admin-page .field.full { grid-column: 1 / -1; }
  body.shop-admin-page .modal { align-items: center; padding: 24px; }
  .shop-admin-page .modal-box { border-radius: 22px; max-height: 90dvh; }
  .shop-admin-page .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shop-admin-page .app-shell { padding: 0; }
  .shop-admin-page .shop-wrap { padding: 20px 16px 36px; }
  .shop-admin-page .shop-heading { align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .shop-admin-page .shop-heading .btn { padding: 10px 12px; flex-shrink: 0; font-size: 13px; }
  .shop-admin-page .shop-heading .btn .shop-icon { width: 16px; }
  .shop-admin-page .shop-heading p { max-width: 210px; }
  .shop-admin-page .shop-tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .85fr); gap: 2px; padding: 4px; margin-bottom: 16px; }
  .shop-admin-page .shop-tabs button { flex-direction: column; gap: 7px; font-size: 12px; padding: 10px 2px; min-height: 62px; }
  .shop-admin-page .shop-stat { padding: 15px; gap: 7px; }
  .shop-admin-page .shop-stat-label { font-size: 12px; }
  .shop-admin-page .shop-stat strong { font-size: 32px; }
  .shop-admin-page .shop-setup-grid { grid-template-columns: 1fr; gap: 10px; }
  .shop-admin-page .shop-setup-link { padding: 14px; }
}
@media (max-width: 359px) {
  .shop-admin-page .shop-wrap { padding-left: 12px; padding-right: 12px; }
  .shop-admin-page .shop-heading { flex-wrap: wrap; }
  .shop-admin-page .shop-heading p { max-width: none; }
  .shop-admin-page .shop-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .shop-admin-page .shop-tabs button { grid-column: span 2; flex-direction: row; font-size: 12px; min-height: 44px; }
  .shop-admin-page .shop-tabs button:nth-last-child(-n+2) { grid-column: span 3; }
  .shop-admin-page .shop-tabs .shop-icon { display: none; }
}

/* Six sections keep their full labels visible on small screens. */
.shop-admin-page .shop-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
.shop-admin-page .shop-tabs button{overflow-wrap:anywhere}
@media(max-width:820px){.shop-admin-page .shop-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-admin-page .shop-tabs button{grid-column:auto!important;flex-direction:row;gap:6px;min-height:48px;font-size:12px;padding:8px 4px}.shop-admin-page .shop-tabs button .shop-icon{width:17px;height:17px}.shop-admin-page #tab-requests{font-size:11px}}

/* ADMIN_DISCOUNTS_20261001 */
#discount-products{display:flex;gap:6px;flex-wrap:wrap;max-height:220px;overflow:auto;margin-top:8px}
#discount-selected{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
#discount-products button,#discount-selected button{white-space:normal;text-align:left}
#discount-modal input,#discount-modal select{font-size:16px}
#discount-modal h3{margin:18px 0 8px}
#discount-modal p,#shop-discounts>p{font-size:14px;line-height:1.5}
#discount-message{min-height:24px}
.shop-preview-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shop-preview-images img{width:100%;height:auto;border-radius:8px}
.shop-preview-copy{white-space:pre-line;line-height:1.6}
