/* MenHair Try-On — styles (scoped under .mht) — v3.1.0 "Menhairinspo Match"
   Clean white + burnt orange (#c64800) to match the site theme. */
.mht { max-width: 860px; margin: 0 auto 56px; font-family: inherit; color: #32373c; }
.mht-notice { background: #fdf0e8; border: 1px solid #f5c9a8; padding: 16px 20px; border-radius: 8px; }

.mht-steps { display: flex; gap: 8px; margin: 0 0 24px; }
.mht-step { flex: 1; text-align: center; padding: 10px 6px; border-radius: 8px; background: #f4f4f4; color: #777; font-size: 14px; font-weight: 600; }
.mht-step span { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #ccc; color: #fff; align-items: center; justify-content: center; margin-right: 6px; font-size: 13px; }
.mht-step.is-active { background: #c64800; color: #fff; }
.mht-step.is-active span { background: #fff; color: #c64800; }

.mht-drop { border: 2px dashed #ccc; border-radius: 8px; padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; position: relative; overflow: hidden; background: #fff; }
.mht-drop:hover, .mht-drop.drag { border-color: #c64800; background: #fffaf5; }
.mht-drop.has-photo { padding: 0; border-style: solid; }
.mht-drop.has-photo .mht-drop-inner { display: none; }
.mht-drop-icon { font-size: 44px; }
.mht-hint { font-size: 13px; color: #777; max-width: 420px; margin: 8px auto 0; }
.mht-preview { width: 100%; max-height: 520px; object-fit: contain; display: block; background: #000; }

.mht-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.mht-upload-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.mht-upload-btns .mht-btn { flex: 1 1 160px; }
.mht-preview[hidden] { display: none; }
.mht-drop.has-photo .mht-upload-btns { display: none; }
.mht-camera-modal { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mht-camera-modal[hidden] { display: none; }
.mht-camera-box { width: 100%; max-width: 520px; }
.mht-camera-box video { width: 100%; border-radius: 8px; background: #000; max-height: 70vh; }
.mht-camera-actions { display: flex; gap: 10px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.mht-btn { appearance: none; border: 1.5px solid #ddd; background: #fff; border-radius: 8px; padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer; color: #32373c; text-decoration: none; display: inline-block; }
.mht-btn:hover:not(:disabled) { border-color: #c64800; color: #c64800; }
.mht-btn:disabled { opacity: .45; cursor: not-allowed; }
.mht-btn-primary { background: #c64800; border-color: #c64800; color: #fff; }
.mht-btn-primary:hover:not(:disabled) { background: #a83c00; color: #fff; border-color: #a83c00; }

.mht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.mht-search { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; margin-bottom: 16px; box-sizing: border-box; }
.mht-search:focus { outline: none; border-color: #c64800; box-shadow: 0 0 0 3px rgba(198,72,0,.15); }
.mht-gallery-title { text-align: center; font-size: 20px; font-weight: 800; color: #1a1a1a; margin: 4px 0 18px; }
.mht-gallery-sub { text-align: center; font-size: 14px; color: #777; margin: -10px 0 18px; }
.mht-sticky-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid #eee; }
.mht-sticky-label { font-size: 13px; font-weight: 600; color: #32373c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mht-sticky-actions { display: flex; gap: 12px; width: 100%; flex-shrink: 0; }
.mht-sticky-actions .mht-btn { flex: 1; padding: 17px 12px; font-size: 17px; border-radius: 8px; }
.mht-sticky-actions .mht-btn-primary { box-shadow: 0 6px 16px rgba(198,72,0,.3); }
.mht-btn-danger { border-color: #e05252; color: #c0392b; }
.mht-btn-danger:hover:not(:disabled) { border-color: #c0392b; color: #c0392b; background: #fff5f5; }
.mht-privacy { margin-top: 8px; border: 1px solid #eee; border-radius: 8px; background: #fafafa; }
.mht-privacy summary { padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 14px; color: #32373c; list-style: none; }
.mht-privacy summary::-webkit-details-marker { display: none; }
.mht-privacy summary::before { content: '🔒 '; }
.mht-privacy-body { padding: 0 18px 16px; font-size: 14px; color: #555; }
.mht-privacy-body ul { margin: 0; padding-left: 18px; }
.mht-privacy-body li { margin-bottom: 8px; line-height: 1.5; }
.mht-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: transform .15s, border-color .15s, box-shadow .15s; }
.mht-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.mht-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.mht-card span { display: block; padding: 10px 6px; font-size: 13px; font-weight: 700; color: #32373c; }
.mht-card.is-selected { border: 2px solid #c64800; box-shadow: 0 4px 14px rgba(198,72,0,.18); }

.mht-loading { text-align: center; padding: 60px 20px; }
.mht-spinner { width: 48px; height: 48px; border: 4px solid #fdf0e8; border-top-color: #c64800; border-radius: 50%; margin: 0 auto 16px; animation: mht-spin 0.9s linear infinite; }
@keyframes mht-spin { to { transform: rotate(360deg); } }

.mht-compare { position: relative; border-radius: 8px; overflow: hidden; max-width: 560px; margin: 0 auto; user-select: none; }
.mht-compare img { display: block; width: 100%; }
.mht-compare #mht-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 50% 0 0); }
.mht-compare #mht-slider { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.mht-compare-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #32373c; margin-top: 8px; }
.mht-compare-labels span { background: rgba(255,255,255,.9); padding: 4px 12px; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.mht-error { background: #fff5f5; border: 1px solid #ffc9c9; color: #c92a2a; padding: 14px 18px; border-radius: 8px; margin-bottom: 8px; }

.mht-preset-note { background: #fdf0e8; border: 1px solid #f5c9a8; color: #a83c00; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.mht-try-btn { display: inline-block; margin: 10px 0 18px; background: #c64800; color: #fff !important; font-weight: 700; font-size: 15px; padding: 12px 24px; border-radius: 8px; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: background .15s, transform .15s; }
.mht-try-btn:hover { background: #a83c00; color: #fff !important; transform: translateY(-1px); }

.mht-paywall { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 32px 26px; text-align: center; max-width: 560px; margin: 0 auto; }
.mht-paywall h3 { font-size: 22px; margin: 0 0 8px; color: #1a1a1a; }
.mht-pay-sub { color: #777; font-size: 14px; margin-bottom: 18px; }
#mht-email-wrap { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
#mht-email { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.mht-credit-line { font-size: 16px; margin-bottom: 14px; }
.mht-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mht-pack { border: 2px solid #eee; border-radius: 8px; padding: 16px 8px; text-decoration: none; color: #1a1a1a; background: #fff; transition: border-color .15s, transform .15s; display: block; }
.mht-pack:hover { border-color: #c64800; transform: translateY(-2px); }
.mht-pack strong { display: block; font-size: 15px; margin-bottom: 4px; }
.mht-pack span { font-size: 20px; font-weight: 800; color: #c64800; }
.mht-pack:nth-child(2) { border-color: #f5c9a8; position: relative; }
@media (max-width: 600px) { .mht-packs { grid-template-columns: 1fr; } #mht-email-wrap { flex-direction: column; } }

@media (max-width: 600px) {
	.mht-steps { font-size: 12px; }
	.mht-step span { width: 20px; height: 20px; font-size: 11px; }
	.mht-grid { grid-template-columns: repeat(2, 1fr); }
}
