.ash-qo {
  --ash-qo-ink: #0b1118;
  --ash-qo-muted: #475569;
  --ash-qo-border: #e2e8f0;
  --ash-qo-border-strong: #d5e0ee;
  --ash-qo-surface: #f3f6fb;
  --ash-qo-panel: #ffffff;
  --ash-qo-row: #ffffff;
  --ash-qo-accent: var(--hp-accent, #ff6b3d);
  --ash-qo-accent-ink: #0f172a;
  --ash-qo-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --ash-qo-sticky-height: 56px;
  --ash-qo-list-pad: calc(var(--ash-qo-sticky-height, 56px) + var(--ash-qo-sticky-offset, 8px) + 16px);
  --ash-qo-row-gap: 12px;

  color: var(--ash-qo-ink);
  background: var(--ash-qo-surface);
  border: 1px solid var(--ash-qo-border-strong);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--ash-qo-shadow);
  display: grid;
  gap: 12px;
}

.ash-qov2__intro {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.ash-qov2__intro h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.ash-qov2__intro p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.ash-qov2__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #475569;
}

.ashachar-search-v2 {
  display: none !important;
}

.ash-qo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6edf6;
}

.ash-qo__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ash-qo__title-text {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.ash-qo__debug-toggle {
  border: 1px solid var(--ash-qo-border);
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
}

.ash-qo__view-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--ash-qo-border);
  border-radius: 999px;
  padding: 4px;
}

.ash-qo__view-btn {
  border: none;
  background: transparent;
  color: var(--ash-qo-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ash-qo__view-btn.is-active {
  background: var(--ash-qo-accent);
  color: #fff;
  box-shadow: 0 6px 12px rgba(255, 107, 61, 0.28);
}

.ash-qo__filters-toggle {
  display: none;
  border: 1px solid var(--ash-qo-border);
  background: #f8fafc;
  color: var(--ash-qo-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ash-qo__chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ash-qo-panel);
  border: 1px solid var(--ash-qo-border-strong);
  border-radius: 999px;
  padding: 4px;
}

.ash-qo__chips::-webkit-scrollbar {
  height: 0;
}

.ash-qo__categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ash-qo-panel);
  border: 1px solid var(--ash-qo-border-strong);
  border-radius: 20px;
  padding: 10px 12px;
}

.ash-qo__categories::-webkit-scrollbar {
  height: 0;
}

.ash-qo__category {
  border: 1px solid var(--ash-qo-border);
  background: #fff;
  color: var(--ash-qo-ink);
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  min-height: 74px;
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.ash-qo__category:hover {
  background: #fff7ed;
  transform: translateY(-1px);
}

.ash-qo__category.is-active {
  background: var(--ash-qo-accent);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 18px rgba(255, 107, 61, 0.24);
}

.ash-qo__category-media {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--ash-qo-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ash-qo-muted);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.ash-qo__category-media picture {
  width: 100%;
  height: 100%;
  display: block;
}

.ash-qo__category-media img,
.ash-qo__category-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ash-qo__category-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.ash-qo__category.is-active .ash-qo__category-media {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
}

.ash-qo__chip {
  border: none;
  background: transparent;
  color: var(--ash-qo-accent-ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ash-qo__chip:hover {
  background: #e2e8f0;
}

.ash-qo__chip.is-active {
  background: var(--ash-qo-accent);
  color: #fff;
  box-shadow: 0 6px 12px rgba(255, 107, 61, 0.28);
}

.ash-qo__search-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ash-qo-border-strong);
  padding: 0 12px;
  font-size: 16px;
  background: var(--ash-qo-panel);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.25);
}

.ash-qo__search-input:focus {
  outline: none;
  border-color: var(--ash-qo-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.2);
}

.ash-qo__tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ash-qo__tool {
  border: 1px solid var(--ash-qo-border);
  background: var(--ash-qo-panel);
  color: var(--ash-qo-accent-ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ash-qo__tool--ghost {
  background: #f8fafc;
}

.ash-qo__notice {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}

.ash-qo__status {
  min-height: 20px;
  font-size: 12px;
  color: var(--ash-qo-muted);
}

.ash-qo__list {
  display: flex;
  flex-direction: column;
  gap: var(--ash-qo-row-gap);
  padding-bottom: calc(var(--ash-qo-list-pad, 0px) + env(safe-area-inset-bottom, 0px));
}

.ash-qo__lists {
  display: grid;
  gap: 12px;
}

.ash-qo__lists-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ash-qo-accent-ink);
}

.ash-qo__lists-grid {
  display: grid;
  gap: 8px;
}

.ash-qo__lists-empty {
  font-size: 12px;
  color: var(--ash-qo-muted);
}

.ash-qo__list-card {
  border: 1px solid var(--ash-qo-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ash-qo__list-count {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.ash-qo__list-detail {
  border: 1px solid var(--ash-qo-border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.ash-qo__list-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ash-qo__list-detail-header h3 {
  font-size: 14px;
  margin: 0;
}

.ash-qo__list-items {
  display: grid;
  gap: 8px;
}

.ash-qo__list-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--ash-qo-border);
  border-radius: 12px;
  padding: 8px;
}

.ash-qo__list-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ash-qo-border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash-qo-muted);
  font-size: 12px;
  font-weight: 700;
}

.ash-qo__list-thumb picture {
  width: 100%;
  height: 100%;
  display: block;
}

.ash-qo__list-thumb img,
.ash-qo__list-thumb picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ash-qo__list-check {
  width: 18px;
  height: 18px;
}

.ash-qo__list-info {
  display: grid;
  gap: 4px;
}

.ash-qo__list-meta {
  font-size: 12px;
  color: var(--ash-qo-muted);
}

.ash-qo__list-actions {
  display: flex;
  justify-content: flex-end;
}

.ash-qo__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e4ecf6;
  border-radius: 14px;
  background: var(--ash-qo-row);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}

.ash-qo__row:last-child {
  margin-bottom: 0;
}

.ash-qo__row:hover {
  border-color: #cbd5f1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.ash-qo__row--loading {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  color: var(--ash-qo-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ash-qo__sentinel {
  height: 1px;
}

.ash-qo__row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ash-qo__sku {
  display: none;
  font-size: 12px;
  color: var(--ash-qo-muted);
}

.ash-qo__sku.is-empty {
  display: none;
}

.ash-qo__thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ash-qo-border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash-qo-muted);
  font-size: 12px;
  font-weight: 700;
}

.ash-qo__thumb picture {
  width: 100%;
  height: 100%;
  display: block;
}

.ash-qo__thumb img,
.ash-qo__thumb picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ash-qo__title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ash-qo__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  align-items: center;
}

.ash-qo__last {
  font-weight: 800;
  color: #94a3b8;
}

.ash-qo__price {
  font-weight: 700;
  color: #0f172a;
}

.ash-qo__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ash-qo__stock-label {
  line-height: 1;
}

.ash-qo__stock-num {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ash-qo__stock.is-in {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
}

.ash-qo__stock.is-oos {
  background: #fee2e2;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.18);
}

.ash-qo__stock.is-backorder {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.2);
}

.ash-qo__row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: center;
}

.ash-qo--grid .ash-qo__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ash-qo--grid .ash-qo__row {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  align-items: stretch;
  min-height: 270px;
  border-radius: 20px;
  border-color: #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 65%, #f1f5f9 100%);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ash-qo--grid .ash-qo__row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 107, 61, 0.95), rgba(249, 115, 22, 0.2));
}

.ash-qo--grid .ash-qo__row:hover {
  transform: translateY(-2px);
  border-color: #cbd5f1;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.ash-qo--grid .ash-qo__thumb {
  width: 100%;
  height: 132px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.ash-qo--grid .ash-qo__title {
  display: block;
  overflow: visible;
  white-space: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ash-qo--grid .ash-qo__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.86);
}

.ash-qo--grid .ash-qo__sku {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  font-size: 11px;
  color: #475569;
  line-height: 1.1;
}

.ash-qo--grid .ash-qo__price {
  display: grid;
  gap: 2px;
  font-weight: 900;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.ash-qo--grid .ash-qo__price::before {
  content: "מחיר";
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.2px;
  display: none;
}

.ash-qo--grid .ash-qo__price .woocommerce-Price-amount,
.ash-qo--grid .ash-qo__price .amount {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.ash-qo--grid .ash-qo__price .woocommerce-Price-currencySymbol {
  color: #64748b;
  font-size: 0.85em;
  font-weight: 900;
}

.ash-qo--grid .ash-qo__stock {
  font-size: 10px;
  padding: 3px 10px;
}

.ash-qo--grid .ash-qo__stock-num {
  display: inline-flex;
}

.ash-qo--grid .ash-qo__last {
  flex: 0 0 100%;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}

.ash-qo--grid .ash-qo__row-actions {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
}

.ash-qo--grid .ash-qo__fav {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-self: flex-end;
}

.ash-qo--grid .ash-qo__stepper {
  --ash-qo-stepper-btn: 40px;
  --ash-qo-stepper-input: 56px;
  width: 100%;
  justify-content: center;
}

.ash-qo--grid .ash-qo__add {
  width: 100%;
}

.ash-qo__fav {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ash-qo__fav.is-active {
  background: #fff7ed;
  border-color: #f59e0b;
  color: #f59e0b;
}

.ash-qo__stepper {
  --ash-qo-stepper-h: 48px;
  --ash-qo-stepper-btn: 48px;
  --ash-qo-stepper-input: 68px;
  display: grid;
  grid-template-columns: var(--ash-qo-stepper-btn) var(--ash-qo-stepper-input) var(--ash-qo-stepper-btn);
  height: var(--ash-qo-stepper-h);
  border: 1px solid var(--ash-qo-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  align-items: center;
  direction: ltr;
}

.ash-qo__stepper button {
  border: none;
  background: #f8fafc;
  color: #1f2937;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.ash-qo__stepper button:hover {
  background: var(--ash-qo-accent);
  color: #fff;
}

.ash-qo__stepper button:active {
  transform: translateY(1px);
}

.ash-qo__stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ash-qo__stepper input {
  border: none;
  border-inline: 1px solid var(--ash-qo-border);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  height: 100%;
  padding: 0;
  line-height: 1;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  background: #fff;
}

.ash-qo__stepper,
.ash-qo__fav,
.ash-qo__add {
  align-self: center;
}

.ash-qo__stepper input:focus {
  outline: none;
}

.ash-qo__stepper input[type="number"]::-webkit-inner-spin-button,
.ash-qo__stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ash-qo__stepper input[type="number"] {
  -moz-appearance: textfield;
}

.ash-qo__add {
  height: 48px;
  border-radius: 14px;
  border: none;
  padding: 0 18px;
  background: var(--ash-qo-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  min-width: 88px;
  box-shadow: 0 10px 20px rgba(255, 107, 61, 0.3);
}

.ash-qo__add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ash-qo__empty {
  padding: 16px 0;
  text-align: center;
  color: var(--ash-qo-muted);
  font-size: 13px;
}

.ash-qo__empty[hidden] {
  display: none !important;
}

.ash-qo__sticky {
  position: sticky;
  bottom: calc(var(--ash-qo-sticky-offset, 0px));
  background: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
  z-index: 10;
  margin-top: 6px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.ash-qo__toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--ash-qo-sticky-offset, 0px) + var(--ash-qo-sticky-height, 0px) + 12px + env(safe-area-inset-bottom, 0px));
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 10002;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ash-qo__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ash-qo__toast-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.ash-qo__toast-action {
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body.ashachar-bottom-bar-active,
body.ash-qo-has-bottom-nav {
  --ash-qo-sticky-offset: 72px;
}

@media (max-width: 768px) {
  body.ash-qo-has-chat {
    --ash-qo-sticky-offset: 90px;
  }

  body.ashachar-bottom-bar-active.ash-qo-has-chat,
  body.ash-qo-has-bottom-nav.ash-qo-has-chat {
    --ash-qo-sticky-offset: 140px;
  }

  body.ash-qo-has-bottom-nav {
    --ash-qo-sticky-offset: 90px;
  }

body.ash-qo-page .ash-qo__sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--ash-qo-sticky-offset, 0px));
  margin: 0;
  z-index: 10001;
}
}

@media (max-width: 768px) {
  body.ash-qo-page.ash-qo-mobile-safe .ash-qo__list {
    min-height: 40vh;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.ash-qo-page.ash-qo-mobile-safe .ash-qo__sticky {
    position: sticky;
    left: auto;
    right: auto;
    bottom: env(safe-area-inset-bottom, 0px);
    display: flex !important;
  }

  body.ash-qo-page.ash-qo-mobile-safe .ash-qo__toast {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  }
}

.ash-qo__sticky-meta {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.7);
}

.ash-qo__cart-count {
  font-weight: 700;
  color: #f8fafc;
}

.ash-qo__cart-btn {
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  min-width: 88px;
  text-align: center;
}

body.ash-qo-page .ash-qo-hide-bottom-nav,
body.ash-qo-page .ash-qo-bottom-nav,
body.ash-qo-page .ash-qo-hard-hide,
body.ash-qo-page [data-ash-qo-bottom-nav="1"],
body.ash-qo-page .ash-qo-hide-chat {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.ash-qo__modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ash-qo__modal[hidden] {
  display: none;
}

.ash-qo__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.ash-qo__modal-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: min(600px, 92vw);
  max-height: 80vh;
  overflow: auto;
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.ash-qo__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ash-qo__modal-header h3 {
  margin: 0;
  font-size: 15px;
}

.ash-qo__modal-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.ash-qo__modal-help {
  margin: 0;
  font-size: 12px;
  color: var(--ash-qo-muted);
}

.ash-qo__modal-input {
  width: 100%;
  border: 1px solid var(--ash-qo-border);
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
}

.ash-qo__modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ash-qo__bulk-preview {
  display: grid;
  gap: 8px;
}

.ash-qo__bulk-row {
  display: grid;
  grid-template-columns: 24px 1fr 1fr 70px auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--ash-qo-border);
  border-radius: 12px;
  padding: 8px;
  font-size: 12px;
}

.ash-qo__bulk-check {
  width: 18px;
  height: 18px;
}

.ash-qo__bulk-row.is-error {
  border-color: #fecaca;
  background: #fff1f2;
}

.ash-qo__bulk-sku {
  font-weight: 700;
}

.ash-qo__bulk-name {
  color: var(--ash-qo-muted);
}

.ash-qo__bulk-qty {
  width: 70px;
  border: 1px solid var(--ash-qo-border);
  border-radius: 10px;
  padding: 4px 6px;
  text-align: center;
}

.ash-qo__bulk-status {
  font-size: 11px;
  color: #b91c1c;
}

.ash-qo button:focus-visible,
.ash-qo a:focus-visible,
.ash-qo input:focus-visible {
  outline: 3px solid rgba(255, 107, 61, 0.45);
  outline-offset: 2px;
}

.ash-qo__row--loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--ash-qo-accent);
  border-radius: 50%;
  animation: ash-qo-spin 0.9s linear infinite;
}

.ash-qo__debug {
  position: fixed;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11px;
  z-index: 9999;
  display: grid;
  gap: 6px;
  min-width: 180px;
  max-width: 240px;
  max-height: 60vh;
  overflow: auto;
}

.ash-qo__debug-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ash-qo-legacy {
  margin: 18px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 6px 10px 10px;
}

.ash-qo-legacy summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  padding: 6px 0;
}

.ash-qo-legacy[open] summary {
  margin-bottom: 10px;
}

.ash-qo__row--skeleton {
  border-bottom: 1px solid var(--ash-qo-border);
}

.ash-qo__skeleton {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: ash-qo-shimmer 1.4s ease infinite;
}

.ash-qo__skeleton--title {
  width: 70%;
  height: 16px;
}

.ash-qo__skeleton--meta {
  width: 45%;
}

.ash-qo__skeleton--actions {
  width: 140px;
  height: 44px;
}

@keyframes ash-qo-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes ash-qo-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .ash-qo__thumb,
  .ash-qo__thumb picture,
  .ash-qo__thumb img,
  .ash-qo__thumb picture img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .ash-qo__thumb img,
  .ash-qo__thumb picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none !important;
    transform: none !important;
  }

  .ash-qo__chip {
    padding: 7px 12px;
    font-size: 12px;
  }

  .ash-qo__title-text {
    font-size: 17px;
  }

  .ash-qo__row-actions {
    gap: 6px;
  }

  .ash-qo__debug {
    top: 48px;
    left: 12px;
    max-height: 45vh;
  }

  .ash-qo__toast {
    left: 10px;
    right: 10px;
  }

  .ash-qo.ash-qo--grid {
    padding: 4px;
    gap: 6px;
  }

  .ash-qo--grid .ash-qo__list {
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  body.ash-qo-page .ash-qo--grid .ash-qo__list {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 4px;
    padding-right: 4px;
  }

  .ash-qo--grid .ash-qo__header {
    gap: 8px;
    padding-bottom: 4px;
  }

  .ash-qo--grid .ash-qo__title-text {
    font-size: 16px;
  }

  .ash-qo--grid .ash-qo__view-toggle {
    padding: 3px;
  }

  .ash-qo--grid .ash-qo__view-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .ash-qo--grid .ash-qo__filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 11px;
  }

  .ash-qo--filters-open .ash-qo__filters-toggle {
    background: var(--ash-qo-accent);
    color: #fff;
    box-shadow: 0 6px 12px rgba(255, 107, 61, 0.28);
    border-color: transparent;
  }

  .ash-qo--grid:not(.ash-qo--filters-open) .ash-qo__chips,
  .ash-qo--grid:not(.ash-qo--filters-open) .ash-qo__categories {
    display: none;
  }

  .ash-qo--grid:not(.ash-qo--filters-open) .ash-qo__search,
  .ash-qo--grid:not(.ash-qo--filters-open) .ash-qo__tools {
    display: none;
  }

  .ash-qo--grid .ash-qo__chips {
    padding: 2px;
    gap: 4px;
    border-radius: 14px;
  }

  .ash-qo--grid .ash-qo__chip {
    padding: 4px 8px;
    font-size: 10px;
  }

  .ash-qo--grid .ash-qo__categories {
    padding: 4px 6px;
    gap: 6px;
    border-radius: 14px;
  }

  .ash-qo--grid .ash-qo__category {
    min-height: 46px;
    min-width: 120px;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 11px;
    gap: 6px;
  }

  .ash-qo--grid .ash-qo__category-media {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .ash-qo--grid .ash-qo__category-label {
    font-size: 11px;
  }

  .ash-qo--grid .ash-qo__search-input {
    height: 32px;
    font-size: 13px;
  }

  .ash-qo--grid .ash-qo__row--skeleton {
    height: var(
      --ash-qo-grid-height,
      calc(var(--ash-qo-grid-size, 150px) * 1.5)
    );
    min-height: 0;
    padding: 8px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 6px;
  }

  .ash-qo--grid .ash-qo__row--skeleton .ash-qo__row-actions {
    justify-content: space-between;
  }

  .ash-qo--grid .ash-qo__skeleton--actions {
    width: 100%;
    height: 28px;
  }

  .ash-qo--grid .ash-qo__skeleton--title {
    width: 70%;
    height: 10px;
  }

  .ash-qo--grid .ash-qo__skeleton--meta {
    width: 55%;
    height: 8px;
  }

  .ash-qo--grid .ash-qo__row {
    border-radius: 18px;
    border-color: #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    padding: 8px;
    min-height: 0;
    width: 100%;
    aspect-ratio: auto;
    gap: 6px;
    grid-template-rows: auto auto auto;
    align-content: start;
    overflow: hidden;
  }

  .ash-qo--grid .ash-qo__thumb {
    height: calc(
      var(--ash-qo-grid-height, calc(var(--ash-qo-grid-size, 150px) * 1.5)) * 0.36
    );
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
  }

  .ash-qo--grid .ash-qo__row-main {
    min-height: 0;
    gap: 4px;
    overflow: visible;
  }

  .ash-qo--grid .ash-qo__title {
    font-size: 12.5px;
    min-height: 0;
  }

  .ash-qo--grid .ash-qo__sku {
    padding: 3px 8px;
    font-size: 10px;
  }

  .ash-qo--grid .ash-qo__meta {
    padding: 8px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .ash-qo--grid .ash-qo__price::before {
    font-size: 9px;
  }

  .ash-qo--grid .ash-qo__price .woocommerce-Price-amount,
  .ash-qo--grid .ash-qo__price .amount {
    font-size: 14px;
  }

  .ash-qo--grid .ash-qo__stock {
    font-size: 9px;
    padding: 2px 8px;
  }

  .ash-qo--grid .ash-qo__stock-num {
    min-width: 20px;
    height: 16px;
    padding: 0 5px;
    font-size: 10px;
  }

  .ash-qo--grid .ash-qo__last {
    font-size: 9px;
  }

  .ash-qo--grid .ash-qo__stepper {
    --ash-qo-stepper-h: 34px;
    --ash-qo-stepper-btn: 34px;
    --ash-qo-stepper-input: 48px;
    flex: 0 0 auto;
  }

  .ash-qo--grid .ash-qo__add {
    height: 34px;
    font-size: 12px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #ff7a45, #f97316);
    box-shadow: 0 8px 14px rgba(249, 115, 22, 0.3);
    flex: 1 1 auto;
    min-width: 0;
  }

  .ash-qo--grid .ash-qo__row-actions {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 6px;
    margin-top: auto;
  }

  .ash-qo--grid .ash-qo__stepper {
    width: 100%;
    justify-content: center;
  }

  .ash-qo--grid .ash-qo__add {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .ash-qo-legacy,
  [data-ashachar-legacy] {
    display: none !important;
  }

  .ash-qo__bulk-row {
    grid-template-columns: 24px 1fr 70px;
    grid-template-areas:
      "check sku qty"
      "check name status";
  }

  .ash-qo__bulk-check {
    grid-area: check;
  }

  .ash-qo__bulk-sku {
    grid-area: sku;
  }

  .ash-qo__bulk-name {
    grid-area: name;
  }

  .ash-qo__bulk-qty {
    grid-area: qty;
  }

  .ash-qo__bulk-status {
    grid-area: status;
  }
}

@media (max-width: 414px) {
  .ash-qo__chip {
    padding: 6px 10px;
    font-size: 12px;
  }

  .ash-qo__fav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .ash-qo__add {
    height: 42px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .ash-qo {
    padding: 12px;
  }

  .ash-qo__stepper {
    --ash-qo-stepper-h: 44px;
    --ash-qo-stepper-btn: 40px;
    --ash-qo-stepper-input: 52px;
  }

  .ash-qo:not(.ash-qo--grid) .ash-qo__row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "thumb main"
      "actions actions";
    gap: 10px 12px;
    padding: 10px 12px;
  }

  .ash-qo:not(.ash-qo--grid) .ash-qo__thumb {
    grid-area: thumb;
    width: 54px;
    height: 54px;
  }

  .ash-qo:not(.ash-qo--grid) .ash-qo__row-main {
    grid-area: main;
  }

  .ash-qo:not(.ash-qo--grid) .ash-qo__row-actions {
    grid-area: actions;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
  }

  .ash-qo__fav {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .ash-qo__stepper button {
    font-size: 18px;
  }

  .ash-qo__stepper input {
    font-size: 16px;
  }

  .ash-qo__add {
    flex: 0 0 auto;
    min-width: 74px;
    height: 44px;
    padding: 0 12px;
  }

  .ash-qo__list-item {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "check thumb info"
      "check thumb stepper";
    align-items: start;
  }

  .ash-qo__list-check {
    grid-area: check;
  }

  .ash-qo__list-thumb {
    grid-area: thumb;
  }

  .ash-qo__list-info {
    grid-area: info;
  }

  .ash-qo__list-item .ash-qo__stepper {
    grid-area: stepper;
  }
}

@media (max-width: 360px) {
  .ash-qo__stepper {
    --ash-qo-stepper-h: 40px;
    --ash-qo-stepper-btn: 36px;
    --ash-qo-stepper-input: 48px;
  }

  .ash-qo__title {
    font-size: 13px;
  }

  .ash-qo__row-actions {
    flex-wrap: wrap;
  }

  .ash-qo__add {
    height: 40px;
    font-size: 11px;
  }
}

@media (min-width: 900px) {
  .ash-qo--grid .ash-qo__list {
    max-width: 920px;
    margin: 0 auto;
  }

  .ash-qo--grid .ash-qo__thumb {
    height: 160px;
  }

  .ash-qo--grid .ash-qo__row {
    min-height: 300px;
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .ash-qo--grid .ash-qo__thumb {
    height: calc(
      var(--ash-qo-grid-height, calc(var(--ash-qo-grid-size, 140px) * 1.5)) * 0.36
    );
  }

  .ash-qo--grid .ash-qo__row {
    min-height: 0;
  }
}
