/* ─────────────────────────────────────────────────────────────
   store-design.css — dark/light theme enabled
   Requires theme-core.css to be loaded BEFORE this file.
   ───────────────────────────────────────────────────────────── */

.store-header {
  text-align: center;
  margin: 40px 0 20px;
}

.store-box {
  background-color: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #dee2e6);
  border-radius: 12px;
  padding: 20px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease;
}

.store-box:hover {
  box-shadow: 0 4px 16px var(--shadow-color-sm, rgba(0, 0, 0, 0.06));
}

.store-connect-btn {
  padding: 10px 20px;
  background-color: var(--info, #0d6efd);
  color: var(--bg-surface, #fff);
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
}

.store-connect-btn:hover {
  background-color: var(--info, #0b5ed7);
}

.store-details {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  justify-content: space-between;
}

.store-info {
  flex: 1;
}

.store-info h6 {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

.store-info small {
  color: var(--text-secondary, #6c757d);
}

.store-logo {
  /* width: 40px;
    height: 40px; */
  border-radius: 6px;
  object-fit: contain;
}

.store-remove-btn {
  background-color: var(--danger, #dc3545);
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  color: var(--bg-surface, #fff);
}

.store-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.store-popup-content {
  background-color: var(--bg-surface, #fff);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px var(--shadow-color-lg, rgba(0, 0, 0, 0.15));
}

.store-popup-content h5 {
  font-weight: 600;
  margin-bottom: 20px;
}

.store-popup-content .platform-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  color: white;
}

.platform-shopify {
  background-color: #95bf47;
}

.platform-ebay {
  background-color: #e53238;
}

.platform-tiktok {
  background-color: #000000;
}

.platform-cancel {
  background-color: var(--text-secondary, #6c757d);
}

@media (max-width: 768px) {
  .store-box {
    height: auto;
  }
}

.store-card {
  background: var(--bg-surface, #fff);
  border-radius: var(--radius-md, 14px);
  padding: var(--space-md, 16px);
  border: 1px solid var(--border-color, #eee);
  margin-bottom: 16px;
}

.store-status {
  text-align: right;
  margin-bottom: 8px;
}

.store-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-logo img {
  width: 120px;
  height: 70px;
  object-fit: contain;
}

.store-info {
  flex: 1;
}

.store-name {
  font-weight: 600;
}

.store-domain {
  font-size: 13px;
  color: var(--text-secondary, #6b7280);
}

.store-actions .btn {
  border-radius: 8px;
}

.store-add-card {
  border: 2px dashed rgba(94, 23, 235, 0.3);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  height: 100%;
}

.store-add-card:hover {
  background: rgba(94, 23, 235, 0.04);
}

.add-icon {
  font-size: 26px;
  color: var(--accent, #5e17eb);
  margin-bottom: 8px;
}

.add-text {
  font-weight: 500;
  color: var(--accent, #5e17eb);
}

/* Modal */
.connect-store-modal {
  border-radius: 16px;
}

/* Store Card */
.store-card {
  background: var(--bg-surface, #fff);
  border-radius: var(--radius-md, 14px);
  padding: var(--space-md, 16px);
  margin-bottom: 16px;
  box-shadow: 0 8px 24px var(--shadow-color-sm, rgba(0, 0, 0, 0.05));
}

.store-card.active {
  border: 1px solid rgba(94, 23, 235, 0.2);
}

.store-card.disabled {
  opacity: 0.6;
}

/* Logo */
/* .store-logo {
    max-height: 40px;
    max-width: 100%;
} */

.store-logo.muted {
  filter: grayscale(100%);
}

/* Button */
.connect-btn {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--accent, #5e17eb);
  border-radius: 10px;
  font-weight: 600;
  color: var(--accent, #5e17eb);
}

/* Text */
.coming-soon {
  margin-bottom: 4px;
  font-weight: 600;
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .store-card {
    padding: 14px;
  }

  .modal-title {
    font-size: 18px;
  }

  .store-logo img {
    width: 70px;
  }
}
