/* Product Customizer Plugin — style.css */

.pc-wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 0;
  box-sizing: border-box;
}

.pc-wrap * { box-sizing: border-box; }

/* ── Left panel ── */
.pc-left { flex: 1; min-width: 240px; }

.pc-preview-box {
  background: #f7f7f5;
  border: 1px solid #e0e0dd;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pc-shirt-svg { width: 180px; height: 180px; }

.pc-thumb-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.pc-thumb {
  padding: 5px 12px;
  font-size: 12px;
  border: 1px solid #d0d0cc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
}
.pc-thumb.active,
.pc-thumb:hover { border-color: #185FA5; color: #185FA5; }

/* ── Right panel ── */
.pc-right { flex: 1.4; min-width: 280px; }

.pc-title { font-size: 18px; font-weight: 500; margin: 0 0 4px; }

.pc-meta { font-size: 12px; color: #666; margin: 0 0 12px; }

/* Price */
.pc-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pc-price-new  { font-size: 24px; font-weight: 500; }
.pc-price-old  { font-size: 15px; color: #999; text-decoration: line-through; }
.pc-save-badge { font-size: 11px; background: #EAF3DE; color: #3B6D11; padding: 3px 8px; border-radius: 6px; font-weight: 500; }

/* Badges */
.pc-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pc-badge   { font-size: 11px; padding: 4px 10px; border-radius: 6px; }
.pc-badge-green { background: #EAF3DE; color: #3B6D11; }
.pc-badge-blue  { background: #E6F1FB; color: #185FA5; }

/* Section */
.pc-section { margin-bottom: 16px; }
.pc-label   { font-size: 13px; color: #555; margin-bottom: 8px; font-weight: 500; }
.pc-label span#pc-color-name { color: #1a1a1a; font-weight: 500; }
.pc-optional { font-weight: 400; color: #999; }

/* Colors */
.pc-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-color-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.15s, outline 0.15s;
}
.pc-color-dot.active {
  border-color: #185FA5;
  outline: 2px solid #185FA5;
  outline-offset: 2px;
}

/* Sizes */
.pc-sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-size-btn {
  padding: 6px 13px;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  color: #1a1a1a;
  transition: all 0.15s;
}
.pc-size-btn.active,
.pc-size-btn:hover { background: #185FA5; color: #fff; border-color: #185FA5; }

/* Quantity */
.pc-qty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.pc-qty-opt {
  padding: 7px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  background: #fff;
  color: #1a1a1a;
  transition: all 0.15s;
}
.pc-qty-opt.active,
.pc-qty-opt:hover { background: #185FA5; color: #fff; border-color: #185FA5; }

/* Upload */
.pc-upload-box {
  border: 2px dashed #b0b0aa;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: #f7f7f5;
  transition: background 0.15s;
}
.pc-upload-box:hover { background: #efefec; }
.pc-upload-icon  { font-size: 22px; margin-bottom: 6px; }
.pc-upload-label { font-size: 13px; color: #444; }
.pc-upload-sub   { font-size: 11px; color: #888; margin-top: 4px; }
.pc-logo-preview { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; }

/* Notes */
.pc-note-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #1a1a1a;
  resize: none;
  height: 64px;
  font-family: inherit;
}
.pc-note-input:focus { outline: none; border-color: #185FA5; }

/* Cart button */
.pc-cart-btn {
  width: 100%;
  padding: 13px;
  background: #185FA5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.pc-cart-btn:hover  { background: #0C447C; }
.pc-cart-btn:active { transform: scale(0.98); }

.pc-footer-note { font-size: 11px; color: #888; text-align: center; margin-top: 8px; }

/* Toast */
.pc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #185FA5;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 600px) {
  .pc-wrap { flex-direction: column; }
  .pc-shirt-svg { width: 140px; height: 140px; }
}

/* ── Bulk pricing qty cards ── */
.pc-qty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }

.pc-qty-opt {
  padding: 8px 6px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  background: #fff;
  color: #1a1a1a;
  transition: all 0.15s;
  line-height: 1.3;
}
.pc-qty-opt:hover  { border-color: #185FA5; }
.pc-qty-opt.active { background: #185FA5; border-color: #185FA5; }

.pc-qty-label { font-size: 13px; font-weight: 500; }
.pc-qty-price { font-size: 11px; color: #555; margin-top: 2px; }
.pc-qty-disc  { font-size: 10px; color: #3B6D11; background: #EAF3DE; border-radius: 4px; padding: 1px 4px; margin-top: 3px; display: inline-block; }

.pc-qty-opt.active .pc-qty-label { color: #fff; }
.pc-qty-opt.active .pc-qty-price { color: #cde; }
.pc-qty-opt.active .pc-qty-disc  { background: rgba(255,255,255,0.2); color: #fff; }

/* Per-piece note under price */
.pc-per-piece-note { font-size: 12px; color: #888; margin: -8px 0 14px; }
