:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --sidebar: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --border: #d8e0e9;
  --text: #111827;
  --muted: #64748b;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #0284c7;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(15, 23, 42, .10);
  --nav-hover: #f1f5f9;
  --nav-active: #e8eef5;
  --nav-active-border: #cbd5e1;
  --input-border: #cbd5e1;
  --secondary-hover: #eef2f7;
  --danger-text: #b91c1c;
  --danger-border: #fecaca;
  --alert-info-text: #075985;
  --alert-info-bg: #e0f2fe;
  --alert-info-border: #7dd3fc;
  --alert-success-text: #166534;
  --alert-success-bg: #dcfce7;
  --alert-success-border: #86efac;
  --alert-warning-text: #92400e;
  --alert-warning-bg: #fef3c7;
  --alert-warning-border: #fcd34d;
  --alert-error-text: #991b1b;
  --alert-error-bg: #fee2e2;
  --alert-error-border: #fca5a5;
  --image-bg: #e2e8f0;
  --toast-bg: #ffffff;
  --summary-bg: #f8fafc;
  --admin-nav: #0369a1;
  --header-bg: #050505;
  --header-border: #252525;
  --header-text: #ffffff;
  --header-menu-bg: #161616;
  --header-menu-line: #ffffff;
  --header-mobile-border: #2d2d2d;
  --header-shadow: 0 5px 22px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --sidebar: #111827;
  --panel: #151e2e;
  --panel-2: #0f172a;
  --border: #263449;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #38bdf8;
  --shadow: 0 14px 38px rgba(0, 0, 0, .28);
  --nav-hover: #182235;
  --nav-active: #1d2a40;
  --nav-active-border: #33435c;
  --input-border: #334155;
  --secondary-hover: #1d2a40;
  --danger-text: #fecaca;
  --danger-border: #7f1d1d;
  --alert-info-text: #bae6fd;
  --alert-info-bg: rgba(14, 116, 144, .18);
  --alert-info-border: #155e75;
  --alert-success-text: #bbf7d0;
  --alert-success-bg: rgba(22, 101, 52, .20);
  --alert-success-border: #166534;
  --alert-warning-text: #fde68a;
  --alert-warning-bg: rgba(146, 64, 14, .20);
  --alert-warning-border: #92400e;
  --alert-error-text: #fecaca;
  --alert-error-bg: rgba(127, 29, 29, .24);
  --alert-error-border: #991b1b;
  --image-bg: #020617;
  --toast-bg: #172033;
  --summary-bg: #172235;
  --admin-nav: #bae6fd;
  --header-bg: #050505;
  --header-border: #252525;
  --header-text: #ffffff;
  --header-menu-bg: #161616;
  --header-menu-line: #ffffff;
  --header-mobile-border: #2d2d2d;
  --header-shadow: 0 5px 22px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
body,
.sidebar,
.card,
.quote-card,
.cart-card,
.order-card,
.metric,
input,
select,
textarea,
.druk24-site-header,
.druk24-site-navigation,
.theme-toggle {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 20;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: var(--sidebar); border-right: 1px solid var(--border); padding: 22px 16px;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 18px; }
.brand-icon { font-size: 2rem; }
.brand h1 { margin: 0; font-size: 1.25rem; }
.brand p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.navigation {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: scroll;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.navigation::-webkit-scrollbar { width: 8px; }
.navigation::-webkit-scrollbar-track { background: transparent; }
.navigation::-webkit-scrollbar-thumb {
  min-height: 38px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--muted);
  background-clip: padding-box;
}
.navigation::-webkit-scrollbar-thumb:hover { background: var(--text); background-clip: padding-box; }
.nav-button {
  width: 100%; text-align: left; color: var(--text); background: transparent;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 12px;
}
.nav-button:hover { background: var(--nav-hover); }
.nav-button.active { background: var(--nav-active); border-color: var(--nav-active-border); }
.service-badge-24h {
  display: inline-block;
  margin-left: .08em;
  font-weight: 800;
  letter-spacing: .03em;
  background: linear-gradient(45deg, #1fe0fa 0%, #0059ff 35%, #62f3ff 60%, #0066ff 80%, #2ee7ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(126, 239, 255, .18);
  animation: badge24hFlow 3.2s linear infinite;
}

@keyframes badge24hFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.sidebar-footer { margin-top: auto; padding-top: 18px; }
.workspace { margin-left: 270px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding: 28px; }
.content { min-width: 0; }
.cart-panel { min-width: 0; }
.menu-toggle { display: none; position: fixed; z-index: 30; top: 12px; left: 12px; border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 10px; padding: 9px 12px; }
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 6px; }
.page-header p { color: var(--muted); margin: 0; }
.card, .quote-card, .cart-card, .order-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card { padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.field { grid-column: span 12; display: grid; gap: 7px; }
.field.half { grid-column: span 6; }
.field.third { grid-column: span 4; }
.field label { font-weight: 600; font-size: .92rem; }
.field small, .muted { color: var(--muted); }
input, select, textarea {
  width: 100%; color: var(--text); background: var(--panel-2); border: 1px solid var(--input-border);
  border-radius: 10px; padding: 11px 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--info); box-shadow: 0 0 0 3px rgba(56,189,248,.12); }
textarea { min-height: 100px; resize: vertical; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 14px;
  text-decoration: none; font-weight: 700; color: #06130a; background: var(--accent);
}
.button:hover { background: var(--accent-2); color: white; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { background: var(--secondary-hover); }
.button.danger { background: transparent; color: var(--danger-text); border-color: var(--danger-border); }
.button.full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.alert { margin: 14px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid; }
.alert.info { color: var(--alert-info-text); background: var(--alert-info-bg); border-color: var(--alert-info-border); }
.alert.success { color: var(--alert-success-text); background: var(--alert-success-bg); border-color: var(--alert-success-border); }
.alert.warning { color: var(--alert-warning-text); background: var(--alert-warning-bg); border-color: var(--alert-warning-border); }
.alert.error { color: var(--alert-error-text); background: var(--alert-error-bg); border-color: var(--alert-error-border); }
.quote-card { padding: 20px; margin-top: 18px; }
.quote-card h3 { margin: 0 0 8px; }
.price-big { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.details { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 14px; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); }
.detail-row strong { color: var(--text); text-align: right; }
.cart-panel > .card { position: sticky; top: 24px; }
.cart-list { display: grid; gap: 10px; margin: 14px 0; }
.cart-card { padding: 12px; box-shadow: none; }
.cart-card h4 { margin: 0 0 5px; }
.cart-card p { margin: 4px 0; color: var(--muted); font-size: .9rem; }
.cart-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 12px; }
.cart-total strong { font-size: 1.45rem; }
.order-card { padding: 16px; margin-top: 18px; box-shadow: none; }
.order-card h3 { margin-top: 0; }
.code-box { position: relative; }
.code-box textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 260px; white-space: pre-wrap; }
.copy-button { position: absolute; top: 8px; right: 8px; padding: 7px 10px; font-size: .82rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.metric span { color: var(--muted); display: block; margin-bottom: 5px; }
.metric strong { font-size: 1.25rem; }
details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 700; }
.tier-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.tier-table th, .tier-table td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }
.image-preview { max-width: 100%; max-height: 520px; object-fit: contain; background: var(--image-bg); border-radius: 10px; margin: 12px 0; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 100; opacity: 0; transform: translateY(12px); pointer-events: none; background: var(--toast-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; transition: .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 1fr; }
  .cart-panel > .card { position: static; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: min(86vw, 300px); }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: block; }
  .workspace { margin-left: 0; padding: 66px 14px 20px; }
  .field.half, .field.third { grid-column: span 12; }
  .metrics { grid-template-columns: 1fr; }
}
.code-box input, .code-box textarea { padding-right: 92px; }

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.nav-button.admin-nav {
  margin-top: 12px;
  border-top-color: var(--border);
  color: var(--admin-nav);
}
.admin-login-card {
  max-width: 520px;
}
.admin-security-note {
  margin: 16px 0 0;
  font-size: .85rem;
}
.admin-toolbar {
  margin-bottom: 18px;
}
.admin-status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 18px;
  color: var(--muted);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #64748b;
  box-shadow: 0 0 0 4px rgba(100,116,139,.12);
}
.status-dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,197,94,.14);
}
.admin-search {
  max-width: 680px;
}
.admin-actions {
  align-items: stretch;
}
.admin-file-button {
  position: relative;
  overflow: hidden;
}
.admin-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.price-editor {
  display: grid;
  gap: 14px;
}
.admin-category {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-category > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--summary-bg);
  list-style: none;
}
.admin-category > summary::-webkit-details-marker {
  display: none;
}
.admin-category[open] > summary {
  border-bottom: 1px solid var(--border);
}
.admin-count {
  min-width: 34px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: .8rem;
}
.admin-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.admin-price-field {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
}
.admin-price-field label {
  font-weight: 700;
  font-size: .9rem;
}
.admin-price-field small {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.admin-price-field.filtered-out,
.admin-category.filtered-out {
  display: none;
}

@media (max-width: 1500px) {
  .admin-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-price-grid { grid-template-columns: 1fr; }
  .admin-actions .button { width: 100%; }
}
/* Układ strony Druk24 */
:root {
  --druk24-header-height: 86px;
  --druk24-page-width: 1400px;
  --druk24-blue: #5493d0;
  --druk24-blue-dark: #3277b8;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.druk24-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--druk24-header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
}

.druk24-site-header__inner {
  width: min(var(--druk24-page-width), calc(100% - 40px));
  min-height: var(--druk24-header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.druk24-site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.druk24-site-logo img {
  display: block;
  width: 188px;
  max-width: 100%;
  max-height: 64px;
}

.druk24-site-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.2vw, 34px);
}

.druk24-site-navigation a {
  position: relative;
  padding: 31px 0 28px;
  color: var(--header-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.druk24-site-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--druk24-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.druk24-site-navigation a:hover,
.druk24-site-navigation a.is-current {
  color: var(--druk24-blue-dark);
}

.druk24-site-navigation a:hover::after,
.druk24-site-navigation a.is-current::after {
  transform: scaleX(1);
}

.druk24-site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.theme-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--header-border);
  border-radius: 999px;
  background: var(--header-menu-bg);
  color: var(--header-text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--druk24-blue);
}

.theme-toggle__icon {
  font-size: 16px;
  line-height: 1;
}


.druk24-site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--header-menu-bg);
}

.druk24-site-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--header-menu-line);
  transition: transform .2s ease, opacity .2s ease;
}

.druk24-site-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.druk24-site-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.druk24-site-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: calc(100vh - var(--druk24-header-height));
}

.sidebar {
  position: sticky;
  inset: auto;
  top: var(--druk24-header-height);
  width: 270px;
  height: calc(100vh - var(--druk24-header-height));
  height: calc(100dvh - var(--druk24-header-height));
  max-height: calc(100vh - var(--druk24-header-height));
  max-height: calc(100dvh - var(--druk24-header-height));
  align-self: start;
}

.workspace {
  min-width: 0;
  margin-left: 0;
}

.druk24-site-footer {
  position: relative;
  z-index: 40;
  background: #0e0e0f;
  color: #ffffff;
  border-top: 1px solid #252525;
}

.druk24-site-footer__grid {
  width: min(var(--druk24-page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 46px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 66px);
}

.druk24-site-footer h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.druk24-site-footer p {
  margin: 0 0 18px;
  color: #c8c8ca;
  font-size: 14px;
  line-height: 1.75;
}

.druk24-site-footer a {
  color: #c8c8ca;
  text-decoration: none;
  transition: color .2s ease;
}

.druk24-site-footer a:hover {
  color: #ffffff;
}

.druk24-footer-logo {
  display: inline-flex;
  margin-bottom: 22px;
}

.druk24-footer-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
}

.druk24-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.druk24-site-footer__bottom {
  width: min(var(--druk24-page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 19px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #29292b;
  color: #8f8f93;
  font-size: 13px;
}

.druk24-site-footer__bottom a {
  color: #aeb0b5;
}

@media (max-width: 1020px) {
  .druk24-site-header__inner {
    position: relative;
  }

  .druk24-site-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .theme-toggle__label {
    display: none;
  }

  .theme-toggle {
    width: 44px;
    min-height: 44px;
    padding: 9px;
  }

  .druk24-site-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--header-bg);
    border-top: 1px solid var(--header-mobile-border);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 18px 28px rgba(15, 23, 42, .12);
  }

  .druk24-site-navigation.is-open {
    display: flex;
  }

  .druk24-site-navigation a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--header-mobile-border);
  }

  .druk24-site-navigation a::after {
    display: none;
  }

  .druk24-site-navigation a:last-child {
    border-bottom: 0;
  }

  .druk24-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --druk24-header-height: 72px;
  }

  .druk24-site-header__inner {
    width: min(var(--druk24-page-width), calc(100% - 24px));
  }

  .druk24-site-logo img {
    width: 155px;
    max-height: 50px;
  }

  .app-shell {
    display: block;
    min-height: calc(100vh - var(--druk24-header-height));
  }

  .sidebar {
    position: fixed;
    inset: var(--druk24-header-height) auto 0 0;
    top: var(--druk24-header-height);
    width: min(86vw, 300px);
    height: calc(100vh - var(--druk24-header-height));
    height: calc(100dvh - var(--druk24-header-height));
    max-height: calc(100vh - var(--druk24-header-height));
    max-height: calc(100dvh - var(--druk24-header-height));
    overflow: hidden;
  }

  .menu-toggle {
    top: calc(var(--druk24-header-height) + 12px);
  }

  .druk24-site-footer__grid {
    width: min(var(--druk24-page-width), calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px 0 36px;
  }

  .druk24-site-footer__bottom {
    width: min(var(--druk24-page-width), calc(100% - 32px));
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Wyszukiwanie produktów */
.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;
}

.product-search {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.product-search__field {
  position: relative;
}

.product-search__field > span {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: var(--muted);
  font-size: 1.15rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.product-search__field input {
  min-height: 44px;
  padding-left: 38px;
  background: var(--panel-2);
}

.product-search__results {
  display: grid;
  gap: 6px;
}

.product-search__result {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text);
  font-size: .78rem;
  line-height: 1.35;
  text-align: left;
}

.product-search__result:hover,
.product-search__result.is-best {
  border-color: var(--accent);
  background: var(--nav-active);
}

.product-search__empty {
  padding: 3px 4px;
  color: var(--muted);
  font-size: .78rem;
}

.nav-button.search-match {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}

.nav-button.search-dim {
  opacity: .38;
}

.nav-button.search-dim:hover {
  opacity: .82;
}

.table-scroll {
  overflow-x: auto;
}

.comparison-table .is-selected td {
  background: var(--nav-active);
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 760px) {
  .product-search {
    margin-top: 2px;
  }
}


/* Edycja słownika wyszukiwarki */
.search-dictionary-editor {
  display: grid;
  gap: 14px;
}

.search-dictionary-category {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-dictionary-category > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--summary-bg);
  list-style: none;
}

.search-dictionary-category > summary::-webkit-details-marker {
  display: none;
}

.search-dictionary-category[open] > summary {
  border-bottom: 1px solid var(--border);
}

.search-dictionary-category__body {
  padding: 16px;
}

.search-dictionary-category__body p {
  margin: 0 0 10px;
}

.search-dictionary-category textarea {
  min-height: 230px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
}

.search-dictionary-category.filtered-out {
  display: none;
}


/* Wtorkowa ruletka */
body.roulette-open {
  overflow: hidden;
}

.roulette-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(7px);
}

.roulette-overlay.is-open {
  display: flex;
}

.roulette-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 42px);
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .46);
  text-align: center;
}

.roulette-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel-2);
  font-size: 28px;
  line-height: 1;
}

.roulette-kicker {
  margin: 0 0 7px;
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.roulette-dialog h2 {
  margin: 0 38px 8px;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
}

.roulette-intro,
.roulette-note {
  color: var(--muted);
}

.roulette-intro {
  max-width: 480px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

.roulette-balance {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: fit-content;
  min-width: 170px;
  margin: 0 auto 22px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-2);
}

.roulette-balance span,
.roulette-balance small {
  color: var(--muted);
}

.roulette-balance strong {
  font-size: 2rem;
}

.roulette-wheel-wrap {
  position: relative;
  width: 224px;
  height: 224px;
  margin: 0 auto 24px;
}

.roulette-pointer {
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  border-top: 28px solid #f8fafc;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35));
  transform: translateX(-50%);
}

.roulette-wheel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 12px solid #e5e7eb;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -4.86deg,
    #b91c1c 0deg 9.72deg,
    #111827 9.72deg 19.44deg
  );
  box-shadow: inset 0 0 0 7px #d4af37, 0 16px 38px rgba(0, 0, 0, .28);
}

.roulette-wheel::before {
  content: "";
  position: absolute;
  width: 45%;
  height: 45%;
  border: 7px solid #d4af37;
  border-radius: 50%;
  background: #0f172a;
}

.roulette-wheel span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #ffffff;
  background: #0f172a;
  font-size: 2rem;
  font-weight: 900;
}

.roulette-wheel.is-spinning {
  animation: roulette-spin 1.35s cubic-bezier(.18, .78, .2, 1);
}

.roulette-wheel.result-red span { background: #b91c1c; }
.roulette-wheel.result-black span { background: #111827; }
.roulette-wheel.result-green span { background: #15803d; }

@keyframes roulette-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(1440deg); }
}

.roulette-controls {
  display: grid;
  gap: 14px;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.roulette-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.roulette-color {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 850;
}

.roulette-color.red { background: #b91c1c; }
.roulette-color.black { background: #111827; }
.roulette-color.green { background: #15803d; }

.roulette-color.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px var(--info);
}

.roulette-spin {
  margin-top: 2px;
}

.roulette-result {
  min-height: 48px;
  margin: 18px auto 0;
  padding: 13px 15px;
  color: var(--text);
  background: var(--summary-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 750;
}

.roulette-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.roulette-note {
  margin: 16px 0 0;
  font-size: .78rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .roulette-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .roulette-dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 16px;
    border-radius: 18px;
  }

  .roulette-dialog h2 {
    margin-right: 42px;
    margin-left: 42px;
  }

  .roulette-wheel-wrap {
    width: 190px;
    height: 190px;
  }

  .roulette-colors {
    grid-template-columns: 1fr;
  }
}


.order-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.privacy-check a {
  color: var(--info);
  font-weight: 700;
}

.order-send-status {
  margin-top: 12px;
}

.order-copy-details {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.order-copy-details > summary {
  color: var(--muted);
}
