:root {
  --v10-ink: #111827;
  --v10-muted: #64748b;
  --v10-border: #e2e8f0;
  --v10-panel: rgba(255, 255, 255, 0.92);
  --v10-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

.business-suite-v10 .store-header {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.business-suite-v10 .hero-inner,
.business-suite-v10 .product-card,
.business-suite-v10 .panel,
.admin-body .panel,
.admin-body .table-panel,
.admin-body .stat-card {
  box-shadow: var(--v10-shadow);
}

.business-suite-v10 .product-card {
  position: relative;
  isolation: isolate;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.business-suite-v10 .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.wish-btn,
.product-card button,
.product-card input {
  position: relative;
  z-index: 2;
}

.v10-catalog-tools,
.v10-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.v10-catalog-tools {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.v10-catalog-tools {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--v10-border);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.v10-catalog-tools label,
.v10-filter-grid label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 800;
}

.v10-policy-footer {
  padding: 32px 0;
  background: #0f172a;
  color: #f8fafc;
}

.v10-policy-footer h3 {
  margin: 0 0 14px;
}

.v10-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.v10-policy-links a,
.v10-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #cbd5e1;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.v10-policy-links a:hover,
.v10-link-button:hover {
  color: white;
  text-decoration: underline;
}

.v10-policy-copy {
  color: #334155;
  font-size: 1rem;
  line-height: 1.9;
}

.v10-guest-note,
.v10-dashboard-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: #f0f9ff;
  color: #075985;
}

.v10-guest-note {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.v10-guest-note span,
.v10-dashboard-notice span {
  font-size: 0.82rem;
}

.v10-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: white;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.v10-sync::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.v10-sync.success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.v10-sync.working {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.v10-sync.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.v10-filter-panel {
  margin-bottom: 14px;
}

.v10-filter-grid .span-2 {
  grid-column: span 2;
}

.v10-bulk-bar {
  position: sticky;
  top: 74px;
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(160px, 0.5fr) minmax(220px, 1fr) repeat(4, auto);
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(15px);
}

.v10-home-section-name {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.v10-home-section-name span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
}

.v10-home-section-name .input {
  min-width: 0;
}

.v10-danger-zone {
  border-color: #fecaca !important;
  background: #fffafa !important;
}

.v10-suspicious {
  background: #fff7ed;
}

.v10-order-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.v10-fulfil-row,
.v10-return-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
}

.v10-fulfil-row span,
.v10-return-choice span {
  display: grid;
  gap: 2px;
}

.v10-return-choice {
  grid-template-columns: minmax(180px, 1fr) 90px minmax(150px, 0.8fr);
}

.v10-note {
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: #f8fafc;
}

.v10-note b {
  margin-right: 8px;
}

.v10-note span {
  color: #64748b;
  font-size: 0.72rem;
}

.v10-note p {
  margin: 5px 0 0;
}

.v10-workflow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 14px;
}

.v10-workflow span {
  padding: 10px 8px;
  background: #e0f2fe;
  color: #075985;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.v10-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v10-card-grid .panel h3 {
  margin-top: 0;
}

.v10-policy-layout {
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1.55fr);
}

.v10-policy-editor {
  min-height: 430px;
  line-height: 1.7;
}

.text-danger {
  color: #b91c1c;
  font-weight: 800;
}

.text-success {
  color: #047857;
  font-weight: 800;
}

.v10-track-order {
  position: relative;
}

.v10-stock-notify {
  width: 100%;
}

.btn,
.icon-btn,
.v10-link-button,
.v10-policy-links a {
  min-height: 40px;
}

.v10-policy-links a,
.v10-link-button {
  display: inline-flex;
  align-items: center;
}

.modal.open,
#adminModal.open {
  animation: v10-modal-in 180ms ease-out both;
}

.drawer.open {
  animation: v10-drawer-in 180ms ease-out both;
}

.product-card,
.stat-card,
.queue-card,
.panel {
  animation: v10-rise 320ms ease-out both;
}

@keyframes v10-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes v10-modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes v10-drawer-in {
  from {
    opacity: 0.75;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #38bdf8 !important;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .v10-filter-grid,
  .v10-catalog-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v10-bulk-bar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .v10-filter-grid,
  .v10-catalog-tools,
  .v10-card-grid,
  .v10-workflow {
    grid-template-columns: 1fr;
  }

  .v10-filter-grid .span-2 {
    grid-column: auto;
  }

  .v10-bulk-bar,
  .v10-return-choice {
    grid-template-columns: 1fr;
  }

  .v10-policy-layout {
    grid-template-columns: 1fr;
  }

  .v10-dashboard-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .v10-home-section-name {
    grid-column: 2 / -1;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .business-suite-v10 .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .business-suite-v10 .product-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
