/* ============================================================
   Hashtagprint Configurator – configurator.css
   ============================================================ */

.htp-page {
  --htp-accent:   #e6007e;
  --htp-accent-h: #c40069;
  --htp-dark:     #161616;
  --htp-text:     #2b2b2b;
  --htp-muted:    #6f6f6f;
  --htp-border:   #e8e8e8;
  --htp-bg:       #ffffff;
  --htp-soft:     #f7f7f8;
  --htp-radius:   22px;
  --htp-radius-s: 14px;
  --htp-shadow:   0 10px 28px rgba(0,0,0,.06);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--htp-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.htp-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO ────────────────────────────────────────────────── */
.htp-hero {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--htp-border);
}

.htp-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.htp-badge {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.htp-hero h1 {
  font-size: 48px;
  line-height: 1.08;
  margin: 0 0 14px;
  color: #111;
  font-weight: 800;
}

.htp-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--htp-muted);
  max-width: 720px;
  margin: 0 0 18px;
}

.htp-points {
  margin: 0;
  padding-left: 20px;
  color: #333;
  line-height: 1.9;
  font-size: 15px;
}

.htp-points li::marker {
  color: var(--htp-accent);
}

/* ── Cards / Panels ──────────────────────────────────────── */
.htp-config-card,
.htp-panel,
.htp-summary-card {
  background: #fff;
  border: 1px solid var(--htp-border);
  border-radius: var(--htp-radius);
  box-shadow: var(--htp-shadow);
}

/* ── Config Card ─────────────────────────────────────────── */
.htp-config-card {
  padding: 28px 24px;
}

.htp-config-head {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 22px;
  color: #111;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--htp-border);
}

/* ── Fields ──────────────────────────────────────────────── */
.htp-field {
  margin-bottom: 18px;
}

.htp-field > label:first-child {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 7px;
  color: #888;
}

.htp-field select {
  width: 100%;
  border: 1.5px solid #e2e2e8;
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--htp-text);
  background: #fafafa;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .18s, background .18s;
  outline: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.htp-field select:hover {
  border-color: #bbb;
  background: #fff;
}

.htp-field select:focus {
  outline: none;
  border-color: #bbb;
  background: #fff;
  box-shadow: none;
}

/* ── Checkboxes ──────────────────────────────────────────── */
.htp-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 400 !important;
  cursor: pointer;
  user-select: none;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--htp-text) !important;
}

.htp-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #d0d0d8;
  border-radius: 5px;
  background: #fafafa;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s, background .15s;
}

.htp-check input[type="checkbox"]:checked {
  background: var(--htp-accent);
  border-color: var(--htp-accent);
}

.htp-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── Upload Area ─────────────────────────────────────────── */
.htp-upload-area {
  position: relative;
  border: 2px dashed #d9d9df;
  border-radius: var(--htp-radius-s);
  background: var(--htp-soft);
  transition: border-color .2s, background .2s;
  cursor: pointer;
  overflow: hidden;
}

.htp-upload-area:hover,
.htp-upload-area.htp-drag-over {
  border-color: var(--htp-accent);
  background: #fff0f7;
}

.htp-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.htp-upload-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  pointer-events: none;
  color: var(--htp-muted);
  font-size: 14px;
  text-align: center;
}

.htp-upload-ui svg {
  color: var(--htp-accent);
  margin-bottom: 2px;
}

.htp-upload-ui small {
  font-size: 12px;
  color: #aaa;
}

.htp-upload-ui span {
  font-weight: 600;
  color: #444;
}

/* ── MAIN section ────────────────────────────────────────── */
.htp-main {
  padding: 34px 0 60px;
}

.htp-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  align-items: start;
}

.htp-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Panels ──────────────────────────────────────────────── */
.htp-panel {
  padding: 28px;
}

.htp-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  color: #111;
  font-weight: 800;
}

.htp-panel > p {
  color: var(--htp-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  font-size: 15px;
}

/* ── Feature Grid ────────────────────────────────────────── */
.htp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.htp-feature {
  background: var(--htp-soft);
  border: 1px solid var(--htp-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.htp-feature-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--htp-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--htp-accent);
  margin-bottom: 4px;
}

.htp-feature strong {
  font-size: 15px;
  color: #111;
  font-weight: 700;
}

.htp-feature span {
  color: var(--htp-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Product Info Box ────────────────────────────────────── */
.htp-product-info {
  background: var(--htp-soft);
  border: 1px solid var(--htp-border);
  border-radius: 16px;
  padding: 18px;
  line-height: 1.75;
  font-size: 15px;
  color: var(--htp-text);
  min-height: 72px;
  transition: background .2s;
}

/* ── Summary Card ────────────────────────────────────────── */
.htp-summary-card {
  padding: 26px 24px;
  position: sticky;
  top: 24px;
}

.htp-summary-card h3 {
  margin: 0 0 16px;
  font-size: 26px;
  color: #111;
  font-weight: 800;
}

.htp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--htp-border);
  font-size: 14px;
}

.htp-row span {
  color: var(--htp-muted);
}

.htp-row strong {
  color: #111;
  font-weight: 700;
  text-align: right;
}

.htp-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.htp-total strong {
  color: var(--htp-accent);
  font-size: 26px;
}

/* ── Cart Button ─────────────────────────────────────────── */
.htp-btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: var(--htp-radius-s);
  background: var(--htp-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 16px 18px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: .2px;
  font-family: inherit;
}

.htp-btn-main:hover {
  background: var(--htp-accent-h);
}

.htp-btn-main:active {
  transform: scale(.98);
}

/* ── Note ────────────────────────────────────────────────── */
.htp-note {
  margin: 14px 0 0;
  color: var(--htp-muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

/* ── Value transitions ───────────────────────────────────── */
.htp-val-updated {
  animation: htpFlash .35s ease;
}

@keyframes htpFlash {
  0%   { opacity: 1; }
  30%  { opacity: .35; }
  100% { opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .htp-hero-grid,
  .htp-main-grid {
    grid-template-columns: 1fr;
  }

  .htp-summary-card {
    position: static;
  }

  .htp-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .htp-feature-grid {
    grid-template-columns: 1fr;
  }

  .htp-hero h1 {
    font-size: 28px;
  }

  .htp-config-head {
    font-size: 18px;
  }
}

/* ── Feedback message ────────────────────────────────────── */
.htp-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.htp-msg--ok {
  background: #edfaf3;
  color: #1a7a47;
  border: 1px solid #a8e6c3;
}

.htp-msg--error {
  background: #fff0f3;
  color: #c0143c;
  border: 1px solid #f5b8c4;
}
