/* ===== Print page ===== */
.print-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* Hero */
.print-hero {
  text-align: center;
  margin: 12px auto 32px;
  max-width: 640px;
}

.print-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin: 0 0 8px;
}

.print-hero h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
}

.print-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* Layout */
.print-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

/* ── Upload column ── */
.print-dropzone {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 20px;
  background: #fafafa;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
  padding: 20px;
}

.print-dropzone:hover,
.print-dropzone:focus-visible {
  border-color: #111;
  background: #f5f5f5;
  outline: none;
}

.print-dropzone.dragging {
  border-color: #111;
  background: #eef2ff;
}

.print-dropzone.has-image {
  border-style: solid;
  border-color: #e5e7eb;
  background: #fff;
  cursor: default;
}

.dropzone-empty,
.dropzone-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  text-align: center;
}

.dz-label {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.dz-hint {
  font-size: 13px;
  color: #9ca3af;
}

.dropzone-preview {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-preview img {
  max-width: 100%;
  max-height: 460px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dz-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #e5e7eb;
  border-top-color: #111;
  border-radius: 50%;
  animation: pv-spin 0.8s linear infinite;
}

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

.upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  min-height: 24px;
}

.replace-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.replace-btn:hover { color: #111; }

.image-dims {
  font-size: 13px;
  color: #9ca3af;
  margin-left: auto;
}

.res-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

/* ── Config column ── */
.config-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #9ca3af;
  border: 1px solid #eceef1;
  border-radius: 20px;
  padding: 48px 24px;
  min-height: 340px;
}

.config-locked p {
  margin: 0;
  font-size: 14px;
  max-width: 240px;
}

.print-config {
  border: 1px solid #eceef1;
  border-radius: 20px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.cfg-group { margin-bottom: 22px; }

.cfg-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-bottom: 10px;
}

.material-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.material-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.material-btn:hover { border-color: #c7ccd1; }

.material-btn.active {
  border-color: #111;
  background: #fafafa;
}

.material-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.material-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}

.size-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #111;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.size-select:focus {
  outline: none;
  border-color: #111;
}

.size-res {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.qty-stepper button {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  font-size: 18px;
  color: #111;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty-stepper button:hover { background: #f3f4f6; }

.qty-stepper #qty-value {
  min-width: 44px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

/* Summary */
.print-summary {
  border-top: 1px solid #f0f1f3;
  padding-top: 18px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.price-label {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.total-price {
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.price-note {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 16px;
}

.buy-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.buy-btn:hover:not(:disabled) { background: #000; }

.buy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 16px;
}

.trust-badges span {
  position: relative;
  font-size: 12px;
  color: #6b7280;
  padding-left: 16px;
}

.trust-badges span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .print-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .print-hero h1 { font-size: 27px; }
  .print-dropzone { min-height: 260px; }
  .config-locked { display: none; }
  .print-config { padding: 20px; }
}

@media (max-width: 420px) {
  .print-page { padding: 20px 14px 60px; }
  .material-options { grid-template-columns: 1fr; }
}
