body.storefront-body a,
body.admin-template-body a,
body.storefront-body button,
body.admin-template-body button,
body.storefront-body .card,
body.admin-template-body .card {
  transition: color var(--theme-transition), background var(--theme-transition), border-color var(--theme-transition), box-shadow var(--theme-transition), transform var(--theme-transition);
}

body.storefront-body .card,
body.storefront-body .content-card,
body.storefront-body .product-card,
body.storefront-body .category-card,
body.storefront-body .filters,
body.storefront-body .summary-panel,
body.storefront-body .taxonomy-hero,
body.admin-template-body .card,
body.admin-template-body .content-card,
body.admin-template-body .metric,
body.admin-template-body .filters,
body.admin-template-body .table-wrap {
  border: 0px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow-sm);
  
}
/*body.admin-template-body .table-wrap {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow-sm);
}*/

body.storefront-body .product-body,
body.storefront-body .content-card,
body.storefront-body .category-card,
body.storefront-body .filters,
body.storefront-body .summary-panel,
body.admin-template-body .content-card,
body.admin-template-body .metric,
body.admin-template-body .filters {
  padding: var(--theme-card-padding);
}

body.storefront-body .btn,
body.admin-template-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--theme-control-height);
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--theme-radius-sm);
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
}

body.storefront-body .btn:hover,
body.admin-template-body .btn:hover {
  background: var(--theme-primary-dark);
  color: var(--theme-on-primary);
  transform: translateY(-1px);
}

body.storefront-body .btn.secondary,
body.admin-template-body .btn.secondary {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-heading);
}

body.storefront-body .btn.secondary:hover,
body.admin-template-body .btn.secondary:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

body.storefront-body input[type="text"],
body.storefront-body input[type="email"],
body.storefront-body input[type="password"],
body.storefront-body input[type="number"],
body.storefront-body input[type="date"],
body.storefront-body input[type="datetime-local"],
body.storefront-body select,
body.storefront-body textarea,
body.admin-template-body input[type="text"],
body.admin-template-body input[type="email"],
body.admin-template-body input[type="password"],
body.admin-template-body input[type="number"],
body.admin-template-body input[type="date"],
body.admin-template-body input[type="datetime-local"],
body.admin-template-body input[type="file"],
body.admin-template-body select,
body.admin-template-body textarea {
  min-height: var(--theme-control-height);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-surface);
  color: var(--theme-text);
  font-size: 13px;
}

body.storefront-body input:focus,
body.storefront-body select:focus,
body.storefront-body textarea:focus,
body.admin-template-body input:focus,
body.admin-template-body select:focus,
body.admin-template-body textarea:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 16%, transparent);
  outline: 0;
}

body.storefront-body .site-header,
body.admin-template-body .site-header {
  border-color: var(--theme-border);
  background: var(--theme-header-bg);
  box-shadow: var(--theme-shadow-sm);
}

body.storefront-body .top-bar {
  background: var(--theme-topbar-bg);
  color: var(--theme-topbar-text);
}

body.storefront-body .header-search {
  border-color: var(--theme-border);
  background: var(--theme-surface);
}

body.storefront-body .header-search > i {
  color: var(--theme-primary);
}

body.storefront-body .header-search button,
body.storefront-body .header-action .count-badge {
  background: var(--theme-primary);
  color: var(--theme-on-primary);
}

body.storefront-body .header-action,
body.storefront-body .header-account .account-menu > summary,
body.storefront-body .menu-btn {
  border-color: var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-surface);
  color: var(--theme-heading);
}

body.storefront-body .navigation-band {
  border-color: var(--theme-primary);
  background: var(--theme-nav-bg);
}

body.storefront-body .navigation-band .nav-links > a,
body.storefront-body .navigation-band .category-menu > summary {
  min-height: var(--theme-nav-height);
  color: var(--theme-nav-text);
  font-family: var(--theme-font-body);
}

body.storefront-body .navigation-band .category-menu > summary {
  background: var(--theme-primary);
  color: var(--theme-on-primary);
}

body.storefront-body .navigation-band .nav-links > a:hover,
body.storefront-body .navigation-band .category-menu[open] > summary {
  background: var(--theme-surface-soft);
  color: var(--theme-primary);
}

body.storefront-body .category-dropdown,
body.storefront-body .account-popover,
body.storefront-body .search-results {
  border-color: var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow-md);
}

body.storefront-body .navigation-band .nested-menu summary,
body.storefront-body .navigation-band .nested-menu a,
body.storefront-body .account-popover a {
  color: var(--theme-text);
}

body.storefront-body .navigation-band .nested-menu summary:hover,
body.storefront-body .navigation-band .nested-menu a:hover,
body.storefront-body .account-popover a:hover {
  background: var(--theme-surface-soft);
  color: var(--theme-primary);
}

body.storefront-body .product-image,
body.storefront-body .category-image {
  aspect-ratio: var(--theme-product-ratio);
  background: var(--theme-surface-soft);
}

body.storefront-body .product-image img,
body.storefront-body .category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.storefront-body .product-title,
body.storefront-body .category-card h3,
body.storefront-body .price {
  color: var(--theme-heading);
}

body.storefront-body .price {
  color: var(--theme-primary);
}

body.storefront-body .pill,
body.admin-template-body .pill {
  background: var(--theme-surface-soft);
  color: var(--theme-primary-dark);
}

body.storefront-body .rating {
  color: var(--theme-warning);
}

body.storefront-body footer.footer {
  min-height: 0;
  border-top: 4px solid var(--theme-primary);
  background: var(--theme-footer-bg);
  color: var(--theme-footer-text);
}

body.storefront-body footer.footer::before {
  display: none;
}

body.storefront-body footer.footer h4,
body.storefront-body footer.footer p,
body.storefront-body footer.footer a,
body.storefront-body footer.footer span,
body.storefront-body footer.footer small {
  color: var(--theme-footer-text);
}

body.storefront-body footer.footer h4 {
  color: #ffffff;
}

body.storefront-body footer.footer h4::after,
body.storefront-body footer.footer .newsletter-field button {
  background: var(--theme-primary);
}

body.admin-template-body .site-header .nav {
  min-height: 52px;
}

body.admin-template-body .admin-nav.card {
  width: auto;
  padding: 7px;
  border-color: var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-sidebar-bg);
  color: var(--theme-sidebar-text);
  box-shadow: var(--theme-shadow-sm);
}

body.admin-template-body .admin-menu-group summary,
body.admin-template-body .admin-nav a {
  border-radius: var(--theme-radius-sm);
  color: var(--theme-sidebar-text);
}

body.admin-template-body .admin-menu-group summary {
  background: var(--theme-surface-soft);
}

body.admin-template-body .admin-menu-group summary:hover,
body.admin-template-body .admin-nav a:hover {
  background: color-mix(in srgb, var(--theme-primary) 12%, var(--theme-surface));
  color: var(--theme-primary);
}

body.admin-template-body .admin-icon {
  background: color-mix(in srgb, var(--theme-primary) 20%, var(--theme-surface));
}

body.admin-template-body .admin-icon::before {
  background: var(--theme-primary);
}

body.admin-template-body .metric strong {
  color: var(--theme-primary);
}

body.admin-template-body .table-wrap {
  width: 100%;
  overflow-x: auto;
}

body.admin-template-body .data-table,
body.admin-template-body .admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--theme-text);
}

body.admin-template-body .data-table th,
body.admin-template-body .admin-table th {
  border-color: var(--theme-border);
  background: var(--theme-surface-soft);
  color: var(--theme-heading);
}

body.admin-template-body .data-table td,
body.admin-template-body .admin-table td {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
}

.theme-preview-shell {
  padding-bottom: 20px;
}

.theme-preview-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow-sm);
}

.theme-preview-toolbar .field {
  width: min(360px, 100%);
  margin: 0;
}

.theme-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-grid-gap);
}

.theme-preview-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow-sm);
}

.theme-preview-card.is-active {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 20%, transparent), var(--theme-shadow-md);
}

.theme-card-scene {
  display: grid;
  min-height: 126px;
  grid-template-columns: 30% 1fr;
  grid-template-rows: 24px 1fr;
  background: var(--preview-bg);
}

.theme-card-scene::before {
  grid-column: 1 / -1;
  background: var(--preview-dark);
  content: "";
}

.theme-card-scene::after {
  margin: 14px;
  border-radius: var(--preview-radius, 6px);
  background: var(--preview-card);
  box-shadow: 38px 0 0 var(--preview-card), 76px 0 0 var(--preview-accent);
  content: "";
}

.theme-card-sidebar {
  grid-row: 2;
  background: var(--preview-soft);
}

.theme-card-content {
  padding: 14px;
}

.theme-card-content h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.theme-card-content p {
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--theme-muted);
  font-size: 12px;
}

.theme-swatches,
.theme-card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.theme-swatches {
  margin-bottom: 12px;
}

.theme-swatches span {
  width: 22px;
  height: 22px;
  border: 2px solid var(--theme-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--theme-border);
}

.theme-card-actions {
  flex-wrap: wrap;
}

.theme-card-actions .btn {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 11px;
}

.theme-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  max-width: 320px;
  padding: 11px 14px;
  border-radius: var(--theme-radius-sm);
  background: var(--theme-secondary);
  color: #ffffff;
  box-shadow: var(--theme-shadow-md);
}
