/* Deepnet Product Card - Public Styles */
.dpc-card {
  box-sizing: border-box;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.dpc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dpc-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.dpc-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dpc-cart { display: none; }
.dpc-cart.dpc-show { display: inline-flex; }
.dpc-cart-svg { display: block; }

.dpc-slider { width: 100%; }

.dpc-brief { font-size: 0.95rem; color: #222; }
.dpc-brief .dpc-more { margin-left: 6px; text-decoration: underline; }

.dpc-actions {
  margin-top: auto; /* pin actions to bottom */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dpc-btn {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.dpc-btn-primary {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
.dpc-btn-primary:hover { filter: brightness(1.05); }

.dpc-btn-secondary {
  background: #f3f4f6;
  color: #111;
  border-color: #d4d4d8;
}
.dpc-btn-secondary:hover { filter: brightness(0.98); }

/* Modal */
.dpc-modal[hidden] { display: none !important; }
.dpc-modal {
  position: fixed;
  inset: 0;
  z-index: 999999; /* high to be above themes */
}

.dpc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.dpc-modal-dialog {
  position: relative;
  max-width: 880px;
  width: 92%;
  margin: 6vh auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}

.dpc-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dpc-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.dpc-modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.dpc-modal-body {
  padding: 14px 16px;
  overflow: auto;
  max-height: calc(88vh - 60px);
}

/* Small utilities */
.dpc-error { color: #b91c1c; }


/* v1.0.4 - clearer cart states & badge */
.dpc-cart-link { position: relative; }
.dpc-cart-svg { display: block; color: #4b5563; } /* gray-600 */
.dpc-cart-full .dpc-cart-svg { color: #0f766e; } /* teal-700 for full */
.dpc-cart-badge {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444; /* red-500 */
  box-shadow: 0 0 0 2px #fff;
  display: none;
}
.dpc-cart-full.dpc-show + .dpc-cart-badge, .dpc-cart-full.dpc-show .dpc-cart-badge { display: inline-block; }

/* Ensure only one state shows at a time */
.dpc-cart { display: none; line-height: 0; }
.dpc-cart.dpc-show { display: inline-flex; align-items: center; justify-content: center; }
