/* Streetmash mashup page — matches layout-explain mockup */
.sm-app {
	--sm-bg: #ecebe8;
	--sm-ink: #4a4a4a;
	--sm-muted: #9a9a9a;
	--sm-accent: #1e88e5;
	--sm-badge: #5b6f82;
	font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
	color: var(--sm-ink);
	background: var(--sm-bg);
	padding-bottom: 40px;
	/* Break out of the theme's narrow content column: the app is full width. */
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
body:has(.sm-app) { overflow-x: hidden; }
.sm-app *, .sm-app *::before, .sm-app *::after { box-sizing: border-box; }
.sm-app button { font: inherit; }
.sm-link { background: none; border: 0; padding: 0; color: var(--sm-ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.sm-link:hover { color: #000; }
.sm-sep { color: #bbb; margin: 0 10px; }

/* Header bar */
.sm-bar { display: flex; align-items: center; gap: 24px; background: #fff; padding: 12px 64px; border-bottom: 1px solid #e2e2e2; flex-wrap: wrap; }
.sm-logo img { max-height: 50px; width: auto; display: block; }
.sm-logo-text { font-weight: 800; font-size: 26px; letter-spacing: -1px; text-transform: uppercase; color: #222; text-decoration: none; }
.sm-logo { text-decoration: none; }
.sm-search { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; }
.sm-search label { font-size: 14px; white-space: nowrap; }
.sm-search input { width: 100%; max-width: 250px; border: 1px solid #ddd; border-radius: 10px; padding: 6px 12px; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.12); outline: none; }
.sm-search input:focus { border-color: var(--sm-accent); max-width: 340px; }
.sm-account { display: flex; align-items: center; font-size: 14px; }
.sm-account a { color: var(--sm-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sm-user img { border-radius: 50%; }
.sm-user-icon { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #8a9aaa; display: inline-block; }
.sm-badge { background: var(--sm-badge); color: #fff; border-radius: 6px; padding: 1px 7px; font-size: 13px; min-width: 22px; text-align: center; }
.sm-cart-icon { width: 26px; height: 20px; display: inline-block; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20' fill='none' stroke='%23999' stroke-width='1.4'%3E%3Cpath d='M1 1h4l3 12h14l3-9H7'/%3E%3Ccircle cx='10' cy='17' r='1.6'/%3E%3Ccircle cx='20' cy='17' r='1.6'/%3E%3C/svg%3E"); }

/* Search results carousel */
.sm-results { position: relative; margin: 12px 60px 0; padding: 18px 50px 10px; }
.sm-track-wrap { overflow: hidden; }
.sm-track { display: flex; align-items: flex-end; gap: 48px; transition: transform .35s ease; min-height: 270px; padding: 0 10px; }
.sm-item { margin: 0; flex: 0 0 auto; text-align: center; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.sm-item img { display: block; margin: 0 auto; transition: transform .15s; pointer-events: none; }
.sm-item:hover img { transform: translateY(-4px); filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); }
.sm-item figcaption { color: var(--sm-muted); font-size: 13px; margin-top: 8px; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; margin-left: auto; margin-right: auto; }
.sm-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 70px; border: 0; background: none; cursor: pointer; }
.sm-arrow::before { content: ""; position: absolute; inset: 14px; border: solid #fff; border-width: 0 0 7px 7px; filter: drop-shadow(1px 1px 2px rgba(0,0,0,.35)); }
.sm-prev { left: -6px; } .sm-prev::before { transform: rotate(45deg); left: 18px; }
.sm-next { right: -6px; } .sm-next::before { transform: rotate(-135deg); right: 18px; }
.sm-arrow:disabled { opacity: .3; cursor: default; }
.sm-results-msg { text-align: center; color: var(--sm-muted); margin: 0; position: absolute; left: 0; right: 0; top: 45%; }

/* Workspace */
.sm-workspace { margin: 18px 64px 0; }
.sm-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.sm-title { font-size: 17px; font-weight: 600; color: #444; border: 0; border-bottom: 1px dashed transparent; background: transparent; padding: 2px 0; min-width: 260px; outline: none; }
.sm-title:hover, .sm-title:focus { border-bottom-color: #aaa; }
.sm-title::placeholder { color: #999; font-weight: 400; }
.sm-tools { display: flex; align-items: center; gap: 22px; }
.sm-swatch { width: 22px; height: 22px; display: inline-block; border: 1px solid rgba(0,0,0,.2); background: var(--sm-accent); }
.sm-sky-wrap { position: relative; }
.sm-pop { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 10px; }
.sm-sky-grid { display: grid; grid-template-columns: repeat(6, 28px); gap: 6px; }
.sm-sky-cell { width: 28px; height: 28px; border: 1px solid rgba(0,0,0,.15); border-radius: 3px; cursor: pointer; padding: 0; }
.sm-sky-cell.sm-on { outline: 2px solid var(--sm-accent); outline-offset: 1px; }
.sm-sky-custom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.sm-ico { display: inline-block; width: 24px; height: 20px; background: no-repeat center/contain; }
.sm-ico-preview { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='none' stroke='%23777' stroke-width='1.4'%3E%3Crect x='1' y='1' width='22' height='18'/%3E%3Crect x='4' y='4' width='16' height='12'/%3E%3C/svg%3E"); }
.sm-ico-folder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='none' stroke='%23777' stroke-width='1.4'%3E%3Cpath d='M1 3h8l2 2h12v14H1z'/%3E%3Cpath d='M1 7h22'/%3E%3C/svg%3E"); }
.sm-ico-print { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='none' stroke='%23777' stroke-width='1.4'%3E%3Cpath d='M6 7V1h12v6M6 15H2V7h20v8h-4'/%3E%3Crect x='6' y='12' width='12' height='7'/%3E%3C/svg%3E"); }
.sm-ico-share { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20' fill='none' stroke='%23777' stroke-width='1.4'%3E%3Cpath d='M2 2h14v9H8l-4 3v-3H2z'/%3E%3Cpath d='M18 6h6v9h-2v3l-4-3h-6v-2'/%3E%3C/svg%3E"); width: 26px; }
.sm-ico-drag { width: 26px; height: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23999' stroke-width='1.3'%3E%3Crect x='1' y='1' width='16' height='16' stroke-dasharray='2 2'/%3E%3Cpath d='M11 11l12 4-5 2-2 5z' fill='%23999'/%3E%3C/svg%3E"); vertical-align: middle; }

.sm-stage { position: relative; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.18); line-height: 0; }
.sm-stage canvas { display: block; width: 100%; cursor: grab; }
.sm-hint { position: absolute; top: 22px; left: 28px; margin: 0; line-height: 1.4; color: var(--sm-muted); font-size: 13px; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.sm-remove { position: absolute; width: 22px; height: 22px; line-height: 20px; border-radius: 50%; border: 0; background: #d33; color: #fff; font-size: 16px; cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sm-actions { display: flex; justify-content: flex-end; align-items: center; margin-top: 14px; flex-wrap: wrap; row-gap: 8px; }
.sm-status { text-align: right; min-height: 1.4em; font-size: 13px; color: #2e7d32; margin: 6px 0 0; }
.sm-status.sm-error, .sm-error { color: #c62828; }

/* Dragging */
.sm-ghost { position: fixed; left: 0; top: 0; z-index: 99999; pointer-events: none; opacity: .9; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.sm-ghost-remove { opacity: .4; filter: grayscale(1); }
body.sm-dragging, body.sm-dragging * { cursor: grabbing !important; user-select: none; }

/* Modals */
body.sm-modal-open { overflow: hidden; }
.sm-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(20,20,20,.78); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sm-modal[hidden] { display: none; }
.sm-modal-inner { position: relative; background: #fff; border-radius: 6px; padding: 26px 28px; width: min(960px, 100%); max-height: 94vh; overflow: auto; line-height: 1.5; }
.sm-modal-inner h2 { margin: 0 0 14px; font-size: 20px; }
.sm-modal-inner h3 { margin: 18px 0 4px; font-size: 16px; }
.sm-modal-full { background: transparent; padding: 0; width: auto; box-shadow: none; overflow: visible; }
.sm-modal-full canvas { display: block; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.sm-modal-full .sm-close { top: -34px; right: 0; color: #fff; }
.sm-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #666; }
.sm-modal-img { background: #f3f3f3; text-align: center; line-height: 0; }
.sm-modal-img img { max-width: 100%; max-height: 50vh; }
.sm-btns, .sm-share-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid #ccc; border-radius: 4px; background: #fafafa; color: #333; cursor: pointer; text-decoration: none; font-size: 14px; }
.sm-btn:hover { background: #f0f0f0; color: #000; }
.sm-btn:disabled { opacity: .5; cursor: wait; }
.sm-btn-primary { background: var(--sm-accent); color: #fff; border-color: var(--sm-accent); }
.sm-btn-primary:hover { background: #1565c0; color: #fff; }
.sm-btn-ghost { background: none; border-color: transparent; color: #c62828; }
.sm-share-fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.sm-share-pin { background: #e60023; color: #fff; border-color: #e60023; }
.sm-share-x { background: #000; color: #fff; border-color: #000; }
.sm-share-ig { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); color: #fff; border: 0; }
.sm-share-fb:hover, .sm-share-pin:hover, .sm-share-x:hover, .sm-share-ig:hover { color: #fff; opacity: .9; }
.sm-share-link { display: flex; gap: 8px; margin-top: 14px; }
.sm-share-link input { flex: 1; padding: 7px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.sm-note { font-size: 13px; color: #666; margin: 10px 0 0; }
.sm-buy { border-top: 1px solid #eee; margin-top: 18px; padding-top: 4px; }
.sm-buy p { margin: 0; font-size: 14px; color: #666; }
.sm-saved-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eee; }
.sm-saved-row img, .sm-noimg { width: 140px; height: 74px; object-fit: cover; background: #eee; flex: 0 0 auto; }
.sm-saved-row div { flex: 1; display: flex; flex-direction: column; }
.sm-saved-row small { color: #888; }

/* Small screens */
@media (max-width: 800px) {
	.sm-bar { padding: 10px 16px; gap: 10px; }
	.sm-search { order: 3; flex-basis: 100%; justify-content: flex-start; }
	.sm-search input, .sm-search input:focus { max-width: none; }
	.sm-results { margin: 8px 0 0; padding: 10px 36px; }
	.sm-track { gap: 24px; min-height: 200px; }
	.sm-workspace { margin: 12px 12px 0; }
	.sm-actions { justify-content: center; }
	.sm-sep { margin: 0 6px; }
	.sm-hint { left: 12px; top: 12px; right: 12px; }
}
