/* ─────────────────────────────────────────────────────────────
   import-list.css — dark/light theme enabled
   Requires theme-core.css to be loaded BEFORE this file.
   Colors below reference CSS variables with the original
   literal kept as a fallback, e.g. var(--accent, #4f35e8).
   ───────────────────────────────────────────────────────────── */

:root {
  --il-accent: var(--accent, #5b3af7);
  --il-accent-2: var(--accent-2, #7c5df9);
  --il-accent-pale: var(--accent-pale-bg, #ede8ff);
  --il-ink: var(--text-primary, #1a1a2e);
  --il-muted: var(--text-secondary, #888);
  --il-faint: var(--border-strong, #ccc);
  --il-border: var(--bg-subtle-2, #e8e8f0);
  --il-surface: var(--bg-surface, #ffffff);
  --il-surface-2: var(--bg-subtle, #f7f7fa);
  --il-danger: var(--danger, #e63a3a);
  --il-success: #18a87e;
  --il-gold: var(--orange, #e65100);
  --il-radius: 14px;
  --il-radius-sm: 8px;
  --il-shadow-sm: 0 2px 8px var(--shadow-color-sm, rgba(0, 0, 0, 0.06));
  --il-shadow-md: 0 6px 24px rgba(0, 0, 0, 0.09);
  --il-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
}

.il-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px 14px;
  background: var(--il-surface);
  border-bottom: 1px solid var(--il-border);
  margin-bottom: 18px;
  border-radius: 0 0 var(--il-radius) var(--il-radius);
  box-shadow: var(--il-shadow-sm);
}

.il-page-title h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--il-ink);
  line-height: 1.2;
  margin: 0;
}

.il-page-title span {
  font-size: 12px;
  color: var(--il-muted);
  display: block;
  margin-top: 2px;
}

/* Controls row */
.il-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* View switcher */
.il-view-switch {
  display: flex;
  background: var(--il-surface-2);
  border: 1px solid var(--il-border);
  border-radius: var(--il-radius-sm);
  padding: 3px;
  gap: 2px;
}

.il-view-btn {
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--il-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--il-transition);
  font-family: inherit;
  white-space: nowrap;
}

.il-view-btn.active {
  background: var(--il-surface);
  color: var(--il-ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.09);
}

/* Stats pill */
.il-stats-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--il-surface-2);
  border: 1px solid var(--il-border);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--il-muted);
  white-space: nowrap;
}

.il-stats-pill strong {
  color: var(--il-ink);
  font-weight: 700;
}

.il-stats-pill .il-sep {
  color: var(--il-faint);
}

/* Publish All */
.il-btn-publish-all {
  background: linear-gradient(135deg, var(--il-accent), var(--il-accent-2));
  color: var(--bg-surface, #fff);
  border: none;
  border-radius: var(--il-radius-sm);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 12px rgba(91, 58, 247, 0.32);
  transition: all var(--il-transition);
  white-space: nowrap;
}

.il-btn-publish-all:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Remove All */
.il-btn-remove-all {
  background: transparent;
  color: var(--il-danger);
  border: 1.5px solid var(--il-danger);
  border-radius: var(--il-radius-sm);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--il-transition);
  white-space: nowrap;
}

.il-btn-remove-all:hover {
  background: var(--danger-pale-bg, #fff0f0);
}

.il-content {
  padding: 0 0px 32px;
}

/* #storesModal .modal-dialog {
            max-width: 600px;
        } */

#storesModal .modal-content {
  border: none;
  border-radius: var(--il-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.il-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--il-border);
  background: var(--il-surface);
}

.il-modal-head h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--il-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.il-modal-head h5 i {
  color: var(--il-accent);
}

.il-modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.il-modal-body {
  padding: 18px 20px;
  max-height: 56vh;
  overflow-y: auto;
}

.il-modal-btn-next {
  background: linear-gradient(135deg, var(--il-accent), var(--il-accent-2));
  color: var(--bg-surface, #fff);
  border: none;
  border-radius: var(--il-radius-sm);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(91, 58, 247, 0.3);
  transition: opacity var(--il-transition);
}

.il-modal-btn-next:hover {
  opacity: 0.88;
}

.il-modal-btn-back {
  background: var(--il-surface-2);
  border: 1.5px solid var(--il-border);
  color: var(--il-ink);
  border-radius: var(--il-radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--il-transition);
}

.il-modal-btn-back:hover {
  border-color: var(--il-accent);
  color: var(--il-accent);
}

.il-modal-btn-cancel {
  background: transparent;
  color: var(--il-danger);
  border: 1.5px solid var(--il-danger);
  border-radius: var(--il-radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--il-transition);
}

.il-modal-btn-cancel:hover {
  background: var(--danger-pale-bg, #fff0f0);
}

.il-modal-btn-push {
  background: linear-gradient(135deg, var(--il-success), #22c795);
  color: var(--bg-surface, #fff);
  border: none;
  border-radius: var(--il-radius-sm);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(24, 168, 126, 0.3);
  transition: opacity var(--il-transition);
}

.il-modal-btn-push:hover {
  opacity: 0.88;
}

/* Shipping note */
.il-shipping-note {
  margin-bottom: 14px;
}

.il-shipping-note-inner {
  border-radius: var(--il-radius-sm);
  padding: 11px 14px;
  font-size: 12.5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.il-shipping-note-inner.overseas {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #7a4800;
}

.il-shipping-note-inner.usa {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.il-sn-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.il-sn-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  opacity: 0.7;
}

.il-sn-val {
  font-size: 12.5px;
  font-weight: 700;
}

/* Slide animation */
.slide-container {
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.38s;
  opacity: 0;
  transform: translateX(100%);
}

.slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.slide.to-left {
  transform: translateX(-100%);
}

.slide.to-right {
  transform: translateX(100%);
}

/* Collection chips */
.il-collection-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--il-accent);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--il-accent);
  cursor: pointer;
  margin: 4px;
  transition: all var(--il-transition);
  font-family: inherit;
  background: transparent;
}

.il-collection-chip.selected-collection {
  background: var(--il-accent);
  color: var(--bg-surface, #fff);
}

#il-page-loader {
  position: fixed;
  inset: 0;
  background: rgba(var(--rgb-surface-tint), 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#il-page-loader.hidden {
  display: none;
}

.il-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--il-accent-pale);
  border-top-color: var(--il-accent);
  border-radius: 50%;
  animation: il-spin 0.75s linear infinite;
}

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

.il-toast {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 99998;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--bg-surface, #fff);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 24px var(--shadow-color-lg, rgba(0, 0, 0, 0.18));
  animation: il-toastin 0.3s ease both;
  max-width: calc(100vw - 40px);
}

@keyframes il-toastin {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .il-page-header {
    padding: 14px 14px 12px;
    gap: 10px;
  }

  .il-controls {
    width: 100%;
    gap: 7px;
  }

  .il-stats-pill {
    display: none;
  }

  .il-btn-publish-all,
  .il-btn-remove-all {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 8px 10px;
  }

  .il-view-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .il-view-switch {
    flex: 1;
  }

  .il-view-btn {
    flex: 1;
    justify-content: center;
  }
}

/* grid view */
.il-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  padding: 2px;
}

.il-grid-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 14px;
  overflow: hidden;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
  position: relative;
  cursor: pointer;
}

.il-grid-card:hover {
  box-shadow: 0 8px 28px rgba(80, 50, 200, 0.13);
  transform: translateY(-3px);
}

/* Image */
.il-grid-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-subtle-2, #f5f5fa);
}

.il-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.il-grid-card:hover .il-grid-img img {
  transform: scale(1.07);
}

/* Dark overlay for contrast on badges */
.il-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0%,
    transparent 45%,
    transparent 60%,
    var(--shadow-color-lg, rgba(0, 0, 0, 0.18)) 100%
  );
  pointer-events: none;
}

/* Profit badge (top-left) */
.il-profit-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: rgba(24, 168, 126, 0.9);
  color: var(--bg-surface, #fff);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

/* USA badge */
.il-usa-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(26, 115, 232, 0.92);
  color: var(--bg-surface, #fff);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Checkbox */
.il-select-wrap {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 5;
}

.il-select-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent, #5b3af7);
  cursor: pointer;
  border-radius: 4px;
}

/* Variant count badge */
.il-variant-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.55);
  color: var(--bg-surface, #fff);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  backdrop-filter: blur(3px);
}

/* Body */
.il-grid-body {
  padding: 10px 11px 12px;
}

.il-grid-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary, #1a1a2e);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}

/* Price row */
.il-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  gap: 4px;
}

.il-cost {
  font-size: 11px;
  color: var(--text-secondary, #888);
  font-weight: 500;
}

.il-sell {
  font-size: 13px;
  font-weight: 700;
  color: #18a87e;
}

/* Source tag */
.il-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  margin-bottom: 9px;
}

.il-source-tag.overseas {
  background: #fff3e0;
  color: var(--orange, #e65100);
}

.il-source-tag.usa {
  background: #e8f5e9;
  color: #1b5e20;
}

/* Action buttons */
.il-grid-actions {
  display: flex;
  gap: 6px;
}

.il-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: inherit;
}

.il-btn-remove {
  background: var(--danger-pale-bg, #fff0f0);
  color: var(--danger, #e63a3a);
  border: 1px solid #ffd5d5;
}

.il-btn-remove:hover {
  background: #ffe0e0;
}

.il-btn-publish {
  background: linear-gradient(
    135deg,
    var(--accent, #5b3af7),
    var(--accent-2, #7c5df9)
  );
  color: var(--bg-surface, #fff);
  box-shadow: 0 2px 10px rgba(91, 58, 247, 0.3);
}

.il-btn-publish:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(91, 58, 247, 0.4);
}

/* Empty state */
.il-empty {
  text-align: center;
  padding: 72px 24px;
  background: var(--bg-surface, #fff);
  border: 2px dashed #e0e0ee;
  border-radius: 20px;
  margin: 8px 0;
}

.il-empty-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-pale-bg, #ede8ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: var(--accent, #5b3af7);
}

.il-empty h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  margin-bottom: 8px;
}

.il-empty p {
  color: var(--text-secondary, #888);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.il-btn-add {
  background: linear-gradient(
    135deg,
    var(--accent, #5b3af7),
    var(--accent-2, #7c5df9)
  );
  color: var(--bg-surface, #fff);
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.18s;
}

.il-btn-add:hover {
  opacity: 0.88;
  color: var(--bg-surface, #fff);
}

/* Pagination */
.il-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 16px;
}

.il-records {
  font-size: 12.5px;
  color: var(--text-secondary, #888);
}

.il-pages {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.il-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid #e4e4ea;
  border-radius: 7px;
  background: var(--bg-surface, #fff);
  color: var(--text-secondary-strong, #555);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  font-family: inherit;
}

.il-page-btn:hover {
  border-color: var(--accent, #5b3af7);
  color: var(--accent, #5b3af7);
}

.il-page-btn.active {
  background: var(--accent, #5b3af7);
  border-color: var(--accent, #5b3af7);
  color: var(--bg-surface, #fff);
}

/* Responsive */
@media (max-width: 768px) {
  .il-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .il-btn {
    font-size: 10.5px;
    padding: 6px 0;
  }
}

@media (max-width: 400px) {
  .il-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .il-grid-body {
    padding: 8px 9px 10px;
  }

  .il-grid-name {
    font-size: 11.5px;
  }
}

/* detailed view */
.ilc {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow-color-sm, rgba(0, 0, 0, 0.05));
  transition: box-shadow 0.22s;
  position: relative;
}

.ilc:hover {
  box-shadow: 0 6px 24px rgba(80, 50, 200, 0.1);
}

/* Selection strip */
.ilc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color, #f0f0f6);
  background: var(--bg-subtle, #fafafa);
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
}

/* Selection strip (now in flow) */
.ilc-select-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface, #fff);
  border: 1.5px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 30px;
  padding: 5px 12px 5px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary, #888);
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 1px 4px var(--shadow-color-sm, rgba(0, 0, 0, 0.06));
  user-select: none;
  flex-shrink: 0;
}

.ilc-select-strip input[type="checkbox"] {
  accent-color: var(--accent, #5b3af7);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.ilc-select-strip.active {
  background: var(--accent-pale-bg, #ede8ff);
  border-color: var(--accent, #5b3af7);
  color: var(--accent, #5b3af7);
}

/* USA badge (now in flow, right side of topbar) */
.ilc-usa-badge {
  background: #1a73e8;
  color: var(--bg-surface, #fff);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Tabs */
.ilc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border-color, #f0f0f6);
  padding: 14px 16px 0;
  margin-top: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ilc-tabs::-webkit-scrollbar {
  display: none;
}

.ilc-tab {
  border: none;
  background: transparent;
  padding: 10px 15px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted, #aaa);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition:
    color 0.18s,
    border-color 0.18s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.ilc-tab i {
  font-size: 13px;
}

.ilc-tab:hover {
  color: var(--text-secondary-strong, #555);
}

.ilc-tab.active {
  color: var(--accent, #5b3af7);
  border-bottom-color: var(--accent, #5b3af7);
}

/* Tab panes */
.ilc-pane {
  display: none;
  padding: 18px 16px 16px;
}

.ilc-pane.active {
  display: block;
}

/* ── Product tab ──── */
.ilc-product-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
}

.ilc-thumb {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: var(--bg-subtle, #f7f7fa);
  flex-shrink: 0;
  position: relative;
}

.ilc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ilc-thumb-profit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(24, 168, 126, 0.9), transparent);
  padding: 6px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-surface, #fff);
  text-align: center;
}

.ilc-fields {
  flex: 1;
}

.ilc-product-headline {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  line-height: 1.35;
  margin-bottom: 14px;
  /* clamp to 2 lines on mobile */
}

/* Quick stats chips */
.ilc-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ilc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle-2, #f5f5fa);
  border: 1px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary-strong, #555);
}

.ilc-chip.green {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}

.ilc-chip.blue {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #0d47a1;
}

.ilc-chip.gold {
  background: #fff8e1;
  border-color: #ffe082;
  color: var(--orange, #e65100);
}

/* Form fields */
.ilc-field {
  margin-bottom: 13px;
}

.ilc-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted, #aaa);
  margin-bottom: 5px;
}

.ilc-input {
  width: 100%;
  border: 1.5px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary, #1a1a2e);
  background: var(--bg-surface, #fff);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  outline: none;
}

.ilc-input:focus {
  border-color: var(--accent, #5b3af7);
  box-shadow: 0 0 0 3px rgba(91, 58, 247, 0.1);
}

.ilc-input[readonly] {
  background: var(--bg-subtle, #f7f7fa);
  color: var(--text-muted, #aaa);
  cursor: default;
}

.ilc-tags-row {
  display: flex;
  gap: 8px;
}

.ilc-tags-row .ilc-input {
  flex: 1;
}

.ilc-btn-save-tags {
  background: var(--bg-subtle, #f0f0f8);
  border: 1.5px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary-strong, #555);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  white-space: nowrap;
}

.ilc-btn-save-tags:hover {
  border-color: var(--accent, #5b3af7);
  color: var(--accent, #5b3af7);
}

/* ── Description tab ──── */
.ilc-desc-textarea {
  width: 100%;
  min-height: 160px;
  border: 1.5px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-primary, #1a1a2e);
  resize: vertical;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

.ilc-desc-textarea:focus {
  border-color: var(--accent, #5b3af7);
  box-shadow: 0 0 0 3px rgba(91, 58, 247, 0.1);
}

/* ── Variants tab ──── */
.ilc-variants-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ilc-bulk-input {
  border: 1.5px solid var(--bg-subtle-2, #e8e8f0);
  background: var(--bg-surface, #fff);
  color: var(--text-primary, #1a1a2e);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 200px;
  max-width: 100%;
  transition: border-color 0.18s;
}

.ilc-bulk-input:focus {
  border-color: var(--accent, #5b3af7);
}

.ilc-btn-bulk {
  background: #f0f0f8;
  border: 1.5px solid var(--bg-subtle-2, #e8e8f0);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  white-space: nowrap;
}

.ilc-btn-bulk:hover {
  border-color: var(--accent, #5b3af7);
  color: var(--accent, #5b3af7);
}

.ilc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ilc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}

.ilc-table th {
  background: var(--bg-subtle, #f7f7fa);
  color: var(--text-muted, #aaa);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color, #f0f0f6);
}

.ilc-table td {
  padding: 10px 12px;
  color: var(--text-secondary-strong, #333);
  border-bottom: 1px solid var(--bg-subtle, #f7f7fa);
  vertical-align: middle;
}

.ilc-table tr:last-child td {
  border-bottom: none;
}

.ilc-table tr:hover td {
  background: var(--bg-subtle, #fafafa);
}

.ilc-profit-input {
  width: 90px;
  border: 1.5px solid var(--bg-subtle-2, #e8e8f0);
  background: var(--bg-surface, #fff);
  color: var(--text-primary, #1a1a2e);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
}

.ilc-profit-input:focus {
  border-color: var(--accent, #5b3af7);
}

.ilc-sell-price {
  font-weight: 700;
  color: #18a87e;
}

.ilc-low-stock {
  background: #fff8e1;
  color: var(--orange, #e65100);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ── Images tab ──── */
.ilc-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ilc-img-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #eee;
  background: var(--bg-subtle-2, #f5f5fa);
}

.ilc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ilc-img-del {
  position: absolute;
  inset: 0;
  background: rgba(230, 58, 58, 0.8);
  color: var(--bg-surface, #fff);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.18s;
}

.ilc-img-wrap:hover .ilc-img-del {
  opacity: 1;
}

.ilc-upload-zone {
  width: 90px;
  height: 90px;
  border: 2px dashed #d0d0e4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--border-strong, #ccc);
  font-size: 10.5px;
  gap: 4px;
}

.ilc-upload-zone i {
  font-size: 22px;
}

.ilc-upload-zone:hover {
  border-color: var(--accent, #5b3af7);
  background: var(--accent-pale-bg, #ede8ff);
  color: var(--accent, #5b3af7);
}

.ilc-upload-zone input {
  display: none;
}

/* ── Card footer ──── */
.ilc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-top: 1px solid var(--border-color, #f0f0f6);
  background: var(--bg-subtle, #fafafa);
}

.ilc-btn-remove {
  background: transparent;
  color: var(--danger, #e63a3a);
  border: 1.5px solid var(--danger, #e63a3a);
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s;
  white-space: nowrap;
}

.ilc-btn-remove:hover {
  background: var(--danger-pale-bg, #fff0f0);
}

.ilc-btn-publish {
  background: linear-gradient(
    135deg,
    var(--accent, #5b3af7),
    var(--accent-2, #7c5df9)
  );
  color: var(--bg-surface, #fff);
  border: none;
  border-radius: 9px;
  padding: 8px 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(91, 58, 247, 0.3);
  transition: all 0.18s;
  white-space: nowrap;
}

.ilc-btn-publish:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Responsive ──── */
@media (max-width: 768px) {
  .ilc-product-layout {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }

  .ilc-thumb {
    width: 110px;
    height: 110px;
  }

  .ilc-product-headline {
    font-size: 13.5px;
  }

  .ilc-tabs {
    padding: 10px 10px 0;
  }

  .ilc-tab {
    padding: 8px 10px 9px;
    font-size: 11.5px;
  }

  .ilc-pane {
    padding: 14px 12px 12px;
  }

  .ilc-footer {
    justify-content: stretch;
  }

  .ilc-btn-remove,
  .ilc-btn-publish {
    flex: 1;
    justify-content: center;
  }

  .ilc-select-strip {
    font-size: 10.5px;
    padding: 3px 9px 3px 6px;
  }
}

@media (max-width: 480px) {
  .ilc-product-layout {
    grid-template-columns: 1fr;
  }

  .ilc-thumb {
    width: 100%;
    height: 180px;
  }
}

.collection-data {
  padding: 20px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collections {
  padding: 10px;
  background: var(--bg-surface, #ffffff);
  border-radius: 15px;
  font-size: 16px;
  border: 1px solid #6a25eb;
  cursor: pointer;
  /* margin-right removed — gap on the parent handles spacing now */
}

.selected-collection {
  background-image: linear-gradient(
    135deg,
    #6a25eb 10%,
    rgb(178, 141, 248) 100%
  );
  color: var(--bg-surface, #fff);
}

.ilc-attrs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ilc-attr-chip {
  background: var(--bg-subtle, #f7f6fd);
  border: 1px solid var(--accent-pale-bg, #ede8ff);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary-strong, #444);
}

.ilc-attr-chip strong {
  color: var(--accent, #5b3af7);
  font-weight: 600;
  margin-right: 3px;
}

/* ── Added: extracted from inline PHP styles in import-list.php ── */

.ilc-count-badge {
  background: var(--accent-pale-bg, #ede8ff);
  color: var(--accent, #5b3af7);
  border-radius: 20px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
}

.il-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, #e8e8f0);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 4px;
}

.il-pagination-info {
  font-size: 12.5px;
  color: var(--text-secondary, #888);
}

.il-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid var(--border-color, #e4e4ea);
  border-radius: 7px;
  background: var(--bg-surface, #fff);
  color: var(--text-secondary-strong, #555);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}

.il-page-btn.active {
  background: var(--accent, #5b3af7);
  border-color: var(--accent, #5b3af7);
  color: var(--text-on-accent, #fff);
}

.ilc-sku-text {
  font-size: 11.5px;
  color: var(--text-muted, #aaa);
  font-weight: 600;
}

.ilc-table-img {
  object-fit: contain;
  border-radius: 5px;
  border: 1px solid var(--border-color, #eee);
}

.ilc-desc-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.ilc-btn-save-desc {
  padding: 9px 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Tags input (jQuery Tags Input plugin) — theme override ──────
   This plugin renders its OWN markup at runtime (.tagsinput wrapper,
   a div ending in "_addTag" containing the real input, .tags_clear),
   completely separate from our .ilc-input classes. Worse, it sets
   `color: rgb(102,102,102)` as an INLINE style via JS on the input
   itself — normal CSS can never beat that, only !important can.
   IDs are randomly generated per-instance (e.g. "tags4f44633d_..."),
   so we target by the stable suffix instead: [id$="_addTag"]. */
.tagsinput {
  background: var(--bg-surface, #fff) !important;
  border: 1.5px solid var(--border-color, #e6e6f0) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.tagsinput span.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-pale-bg, #ede8ff) !important;
  color: var(--accent, #5b3af7) !important;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.tagsinput span.tag a {
  color: var(--accent, #5b3af7) !important;
  cursor: pointer;
  text-decoration: none;
  margin-left: 2px;
  opacity: 0.75;
}

.tagsinput span.tag a:hover {
  opacity: 1;
}

/* The actual typing input — width stays plugin-controlled (it
   auto-sizes as you type), only color/background/border touched */
.tagsinput div[id$="_addTag"] input {
  background: transparent !important;
  color: var(--text-secondary-strong, #333) !important;
  border: none !important;
  outline: none !important;
  font-size: 13px;
  font-family: inherit;
}

.tags_clear {
  clear: both;
}
