/* web/public/admin/product-create/product-create.css */

:root {
  --shadow-soft: 0 18px 38px rgba(15, 23, 42, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.pc-body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #020617 0, #020617 60%);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

/* Header */

.pc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.65),
    transparent
  );
}

.pc-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-logo {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: #e5e7eb;
}

.pc-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #9ca3af;
}

.pc-nav-links a {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  margin-left: 10px;
}

.pc-nav-links a:hover {
  color: #e5e7eb;
}

/* Main */

.pc-main {
  max-width: 1160px;
  margin: 0 auto 26px;
  padding: 10px 18px 24px;
}

.pc-page-title {
  font-size: 20px;
  margin: 6px 0 4px;
}

.pc-page-sub {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 8px;
}

/* Layout */

.pc-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .pc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pc-form {
  /* unused but kept if referenced elsewhere */
}

.pc-column {
  background: radial-gradient(circle at top, #1b2344 0, #050815 65%);
  border-radius: 24px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.pc-section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.pc-field-group {
  margin-bottom: 10px;
}

.pc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
  display: block;
}

.pc-input,
.pc-textarea,
.pc-input-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  padding: 7px 9px;
  font-size: 13px;
}

.pc-input::placeholder,
.pc-textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.pc-textarea {
  resize: vertical;
  min-height: 70px;
}

.pc-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .pc-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pc-help {
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
}

/* Module cards */

.pc-module-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, #111827 0, #020617 70%);
  padding: 10px 10px 11px;
  margin-bottom: 10px;
}

.pc-module-header {
  margin-bottom: 8px;
}

.pc-module-title {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

.pc-module-sub {
  font-size: 11px;
  color: #9ca3af;
}

/* Drop zones */

.pc-drop-zone {
  position: relative;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, #020617 0, #020617 60%);
  padding: 10px;
  min-height: 90px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.pc-drop-zone.pc-drop-zone-gallery {
  min-height: 110px;
}

.pc-drop-zone-small {
  min-height: 80px;
}

.pc-drop-inner {
  position: relative;
  z-index: 1;
}

.pc-drop-title {
  font-size: 12px;
  font-weight: 500;
  color: #e5e7eb;
}

.pc-drop-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.pc-drop-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0.9;
  display: none;
}

.pc-drop-preview-small {
  object-fit: cover;
}

.pc-drop-zone.has-image .pc-drop-inner {
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.1)
  );
}

.pc-drop-zone.has-image .pc-drop-preview {
  display: block;
}

.pc-drop-zone.drag-over {
  border-style: solid;
  border-color: #4ade80;
  background: radial-gradient(circle at top left, #022c22 0, #020617 70%);
}

/* Gallery preview */

.pc-drop-gallery-preview {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.pc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Upload button */

.pc-upload-btn {
  margin-top: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 5px 11px;
  font-size: 11px;
  background: radial-gradient(circle at top, #020617 0, #020617 70%);
  color: #e5e7eb;
  cursor: pointer;
}

/* Checkbox */

.pc-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #e5e7eb;
}

.pc-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

/* Footer */

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}

.pc-submit-btn {
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: #020617;
  box-shadow: 0 12px 22px rgba(16, 185, 129, 0.3);
}

.pc-submit-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.pc-status-text {
  font-size: 11px;
  color: #9ca3af;
}

.pc-created-links {
  margin-top: 8px;
  font-size: 12px;
  color: #e5e7eb;
}

.pc-created-links a {
  color: #a5b4fc;
  text-decoration: underline;
}

/* ===== Bulk Brand Rows UI ===== */

.pc-brand-rows {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.pc-brand-row {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.35);
  padding: 10px;
}

.pc-brand-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.6fr) 84px;
  gap: 10px;
  align-items: end;
}

@media (max-width: 900px) {
  .pc-brand-row-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pc-row-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pc-row-remove-wrap {
  display: flex;
  justify-content: flex-end;
}

.pc-row-remove {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.65);
  padding: 7px 10px;
  font-size: 11px;
  background: radial-gradient(
    circle at top,
    rgba(127, 29, 29, 0.6) 0,
    rgba(2, 6, 23, 0.9) 70%
  );
  color: #fecaca;
  cursor: pointer;
}

.pc-row-remove:hover {
  filter: brightness(1.05);
}

.pc-input.pc-input-select {
  appearance: none;
}

/* Per-row image block */
.pc-brand-row-image {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.pc-row-image-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .pc-row-image-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Hide SINGLE quantity when bulk active */
.pc-bulk-active #single-quantity-wrap {
  display: none;
}
