/* Hide the standard OC add-to-cart form when the print folie editor is present */
#product .product-action,
#product #button-cart,
#product input[name="quantity"],
.product-action { display: none !important; }

.pf-editor { max-width: 680px; margin: 24px auto; font-family: Arial, sans-serif; }

/* Canvas */
.pf-canvas-wrap {
  position: relative; overflow-x: auto; background: #111;
  border-radius: 8px; padding: 16px; margin-bottom: 16px; text-align: center;
}
.pf-canvas-wrap canvas { display: inline-block; border-radius: 4px; }
.pf-dim-bar {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
}
.pf-dim-bar hr { flex: 1; border-color: #533483; margin: 0; }
.pf-dim-tag {
  background: #533483; color: #fff; font-size: 11px;
  padding: 2px 10px; border-radius: 10px; white-space: nowrap;
}
.pf-height-tag { font-size: 11px; color: #533483; text-align: right; margin-top: 4px; }

/* Sections */
.pf-section { margin-bottom: 18px; }
.pf-section label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; color: #666; margin-bottom: 6px;
}
.pf-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }

.pf-auto-dim { background: #f5f5f5; border-radius: 6px; padding: 10px; }
.pf-auto-dim .pf-label { display: block; font-size: 11px; color: #888; margin-bottom: 4px; }
.pf-auto-dim .pf-val   { font-size: 18px; font-weight: bold; }

/* Colour swatches */
.pf-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-swatch {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: border-color .15s, transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.pf-swatch:hover  { border-color: #333; transform: scale(1.15); }
.pf-swatch.selected {
  border-color: #333; transform: scale(1.15);
  outline: 2px solid #533483; outline-offset: 2px;
}

/* Upload */
.pf-upload-zone {
  border: 2px dashed #ccc; border-radius: 6px; padding: 16px;
  text-align: center; cursor: pointer; color: #999; font-size: 13px;
  transition: border-color .15s;
}
.pf-upload-zone:hover { border-color: #555; color: #333; }
.pf-upload-status          { display: block; font-size: 12px; color: #0a7a4b; margin-top: 6px; }
.pf-upload-status.is-error { color: #c0392b; }

/* Price box */
.pf-price-box { background: #f9f9f9; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.pf-price-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 4px 0; font-size: 14px;
}
.pf-price-row.pf-total strong { font-size: 24px; color: #0a7a4b; }
.pf-price-row.pf-rabat strong { color: #c0392b; }

/* Error and button */
.pf-error { color: #c0392b; font-size: 13px; min-height: 18px; margin-bottom: 8px; }
#pf-add-cart { width: 100%; padding: 14px; font-size: 16px; }

@media (max-width: 600px) {
  .pf-row { grid-template-columns: 1fr 1fr; }
}
