/* ============================================================
   CONEXXA — INTEGRATIONS MODULE
   FASE 1: Shopify UI Base
   ============================================================ */

.integrations-page {
  padding: 32px;
}

.integrations-header {
  margin-bottom: 28px;
}

.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #22c55e;
  margin-bottom: 8px;
}

.integrations-header h1 {
  font-size: 32px;
  margin: 0 0 10px;
  color: #ffffff;
}

.section-description {
  max-width: 680px;
  color: #a3a3a3;
  line-height: 1.5;
  margin: 0;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  gap: 20px;
}

.integration-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px;
}

.integration-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.integration-card h2 {
  color: #ffffff;
  font-size: 24px;
  margin: 10px 0 8px;
}

.integration-card p {
  color: #a3a3a3;
  line-height: 1.5;
  margin: 0;
}

.integration-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.integration-badge.disconnected {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.24);
}

.integration-badge.connected {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.integration-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #2f4c1b;
  flex-shrink: 0;
}

.integration-icon svg {
  width: 42px;
  height: 42px;
}

.integration-info {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.integration-info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.integration-info span {
  color: #737373;
  font-size: 13px;
}

.integration-info strong {
  color: #ffffff;
  font-size: 13px;
  text-align: right;
}

.integration-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.integration-actions button {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}

.integration-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: #22c55e;
  color: #071107;
}

.btn-secondary {
  background: #262626;
  color: #ffffff;
}
/* =========================================
   SHOPIFY MODAL
========================================= */

.shopify-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.shopify-modal {
  width: 100%;
  max-width: 520px;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.shopify-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.shopify-modal-header h2 {
  color: white;
  font-size: 24px;
  margin: 0;
}

.shopify-modal-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.shopify-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shopify-modal-body label {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.shopify-modal-body input {
  width: 100%;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
}

.shopify-modal-body input:focus {
  outline: none;
  border-color: #22c55e;
}

.shopify-modal-body .btn-primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 16px;
  background: #22c55e;
  color: black;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

/* =========================================
   SHOPIFY PRODUCTS DASHBOARD
========================================= */

.sp-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sp-header-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'DM Mono', monospace;
}

.sp-header-counts {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888780;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.sp-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sp-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-card-img-fallback {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sp-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sp-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-card-vendor {
  font-size: 11px;
  color: #888780;
}

.sp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.sp-card-price {
  font-size: 14px;
  font-weight: 700;
  color: #22C55E;
  font-variant-numeric: tabular-nums;
}

.sp-card-inventory {
  font-size: 11px;
  color: #888780;
}

.sp-card-status {
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .sp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}