:root {
	--wst-yellow: #f6d44c;
	--wst-yellow-dark: #dfbb2e;
	--wst-ink: #171717;
	--wst-muted: #6d6d6d;
	--wst-line: #e5e5e5;
	--wst-soft: #f7f7f5;
	--wst-white: #fff;
	--wst-danger: #a32222;
	--wst-success: #176a3a;
}

.wst-shell,
.wst-shell * { box-sizing: border-box; }
.wst-shell { width: min(1220px, calc(100% - 32px)); margin: 40px auto 72px; color: var(--wst-ink); font-family: inherit; }
.wst-shell h1,
.wst-shell h2,
.wst-shell p { margin-top: 0; }
.wst-shell h1 { font-size: clamp(2rem, 5vw, 4.3rem); line-height: .98; letter-spacing: -.045em; }
.wst-shell h2 { font-size: 1.25rem; line-height: 1.2; }
.wst-eyebrow { margin-bottom: 10px; color: var(--wst-ink); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.wst-hero { overflow: hidden; position: relative; padding: clamp(28px, 6vw, 72px); border-radius: 22px; background: var(--wst-yellow); }
.wst-hero::after { content: "WS"; position: absolute; right: -12px; bottom: -55px; color: rgba(0,0,0,.07); font-size: clamp(8rem, 24vw, 19rem); font-weight: 900; line-height: 1; pointer-events: none; }
.wst-hero > * { position: relative; z-index: 1; }
.wst-hero > p:not(.wst-eyebrow) { max-width: 720px; font-size: clamp(1rem, 2vw, 1.25rem); }
.wst-included { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wst-included span { padding: 9px 13px; border: 1px solid rgba(0,0,0,.16); border-radius: 999px; background: rgba(255,255,255,.38); font-size: .88rem; font-weight: 700; }

.wst-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--wst-ink); border-radius: 7px; background: var(--wst-ink); color: #fff !important; font: inherit; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none !important; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.wst-button:hover { background: #333; transform: translateY(-1px); }
.wst-button:focus-visible,
.wst-link-button:focus-visible,
.wst-color-button:focus-visible,
.wst-logo-overlay:focus-visible { outline: 3px solid var(--wst-yellow-dark); outline-offset: 2px; }
.wst-button:disabled { cursor: wait; opacity: .6; transform: none; }
.wst-button-block { width: 100%; }
.wst-button-large { min-height: 56px; padding-inline: 30px; background: var(--wst-yellow); color: var(--wst-ink) !important; }
.wst-button-large:hover { background: var(--wst-yellow-dark); }

.wst-filter { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(200px, .65fr) auto; gap: 14px; align-items: end; margin: 28px 0; padding: 18px; border: 1px solid var(--wst-line); border-radius: 14px; background: var(--wst-white); box-shadow: 0 12px 35px rgba(0,0,0,.05); }
.wst-filter label > span { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 800; }
.wst-filter input,
.wst-filter select,
.wst-placement-controls select,
.wst-size-row input,
.wst-reorder-sizes input { width: 100%; min-height: 45px; padding: 8px 11px; border: 1px solid #cfcfcf; border-radius: 6px; background: #fff; color: var(--wst-ink); font: inherit; }

.wst-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wst-product-card { overflow: hidden; border: 1px solid var(--wst-line); border-radius: 16px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.wst-product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(0,0,0,.09); }
.wst-product-image { display: flex; aspect-ratio: 1 / 1.08; align-items: center; justify-content: center; padding: 24px; background: var(--wst-soft); text-decoration: none; }
.wst-product-image img { width: 100%; height: 100%; object-fit: contain; }
.wst-image-placeholder { color: var(--wst-muted); font-weight: 700; }
.wst-product-body { padding: 20px; }
.wst-product-brand { margin-bottom: 7px; color: var(--wst-muted); font-size: .73rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.wst-product-body h2 { min-height: 2.4em; margin-bottom: 13px; }
.wst-product-body h2 a { color: var(--wst-ink); text-decoration: none; }
.wst-price { margin-bottom: 2px; font-size: 1.25rem; font-weight: 850; }
.wst-tax-note { min-height: 1.2em; margin-bottom: 17px; color: var(--wst-muted); font-size: .75rem; }
.wst-empty { margin: 28px 0; padding: 36px; border: 1px dashed #c9c9c9; border-radius: 14px; background: var(--wst-soft); text-align: center; }
.wst-pagination ul { display: flex; justify-content: center; gap: 6px; margin: 30px 0 0; padding: 0; list-style: none; }
.wst-pagination a,
.wst-pagination span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--wst-line); border-radius: 6px; color: var(--wst-ink); text-decoration: none; }
.wst-pagination .current { border-color: var(--wst-ink); background: var(--wst-ink); color: #fff; }

.wst-steps { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--wst-line); border-radius: 9px; background: #fff; }
.wst-steps span { padding: 12px; border-right: 1px solid var(--wst-line); color: var(--wst-muted); font-size: .82rem; font-weight: 700; text-align: center; }
.wst-steps span:last-child { border-right: 0; }
.wst-steps .is-active { background: var(--wst-yellow); color: var(--wst-ink); }
.wst-config-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.wst-config-head h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.4rem); }
.wst-config-head > div > p:last-child { margin-bottom: 0; }
.wst-config-head > a { flex: 0 0 auto; color: var(--wst-ink); font-weight: 700; }
.wst-builder-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); gap: 24px; align-items: start; }
.wst-preview-panel { position: sticky; top: 25px; padding: 18px; border: 1px solid var(--wst-line); border-radius: 16px; background: var(--wst-soft); }
.wst-side-switch { display: inline-flex; padding: 4px; border-radius: 9px; background: #e7e7e3; }
.wst-side-switch button { min-height: 38px; padding: 7px 15px; border: 0; border-radius: 6px; background: transparent; color: var(--wst-ink); font: inherit; font-size: .85rem; font-weight: 750; cursor: pointer; }
.wst-side-switch .is-active { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wst-stage { overflow: hidden; position: relative; aspect-ratio: 6 / 7; margin-top: 14px; border-radius: 10px; background: #fff; touch-action: none; }
.wst-stage > #wst-garment-image { width: 100%; height: 100%; object-fit: contain; user-select: none; pointer-events: none; }
.wst-garment-placeholder { display: grid; position: absolute; inset: 0; place-items: center; padding: 30px; color: var(--wst-muted); font-weight: 750; text-align: center; }
.wst-overlay-layer { position: absolute; inset: 0; }
.wst-logo-overlay { display: grid; position: absolute; min-width: 44px; min-height: 30px; padding: 2px; transform: translate(-50%, -50%); place-items: center; border: 1px dashed transparent; background: transparent; color: var(--wst-ink); cursor: grab; touch-action: none; }
.wst-logo-overlay:active { cursor: grabbing; }
.wst-logo-overlay.is-active { border-color: var(--wst-ink); background: rgba(246,212,76,.12); }
.wst-logo-overlay img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; pointer-events: none; }
.wst-logo-overlay span { padding: 8px; border: 1px solid var(--wst-ink); background: rgba(255,255,255,.88); font-size: .67rem; overflow-wrap: anywhere; }
.wst-stage-help { margin: 12px 0 0; color: var(--wst-muted); font-size: .8rem; text-align: center; }
.wst-options-panel { display: grid; gap: 16px; }
.wst-option-section { padding: 20px; border: 1px solid var(--wst-line); border-radius: 14px; background: #fff; }
.wst-option-section h2 { margin-bottom: 14px; }
.wst-option-section.is-disabled { opacity: .42; pointer-events: none; }
.wst-color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.wst-color-button { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--wst-line); border-radius: 7px; background: #fff; color: var(--wst-ink); font: inherit; font-size: .86rem; cursor: pointer; }
.wst-color-button.is-active { border-color: var(--wst-ink); box-shadow: inset 0 0 0 1px var(--wst-ink); }
.wst-swatch { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid rgba(0,0,0,.2); border-radius: 50%; background: #eee; }
.wst-sample-box { border-color: #e1c33a; background: #fff9da; }
.wst-sample-box label { display: flex; gap: 9px; align-items: center; }
.wst-sample-box input { width: 19px; height: 19px; accent-color: var(--wst-ink); }
.wst-sample-box p { margin: 8px 0 0 28px; color: #5f541d; font-size: .82rem; }
.wst-safe-note { color: var(--wst-muted); font-size: .82rem; }
.wst-placement-card { margin-top: 10px; padding: 14px; border: 1px solid var(--wst-line); border-radius: 10px; background: var(--wst-soft); }
.wst-placement-card.has-file { border-color: #82b995; background: #f3fbf6; }
.wst-placement-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.wst-placement-title strong,
.wst-placement-title span { display: block; }
.wst-placement-title > div > span { margin-top: 3px; color: var(--wst-muted); font-size: .76rem; }
.wst-included-badge { display: inline-block !important; padding: 4px 8px; border-radius: 999px; background: var(--wst-yellow); font-size: .68rem; font-weight: 850; white-space: nowrap; }
.wst-extra-badge { background: #e5e5e5; }
.wst-placement-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.wst-placement-controls label { min-width: 0; color: var(--wst-muted); font-size: .72rem; font-weight: 700; }
.wst-placement-controls input[type="range"] { width: 100%; margin-top: 8px; accent-color: var(--wst-yellow-dark); }
.wst-file-label > span { display: block; overflow: hidden; margin-top: 4px; padding: 10px; border: 1px solid #cfcfcf; border-radius: 6px; background: #fff; color: var(--wst-ink); text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.wst-file-label input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wst-placement-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; }
.wst-placement-actions button,
.wst-link-button { padding: 3px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--wst-ink); font: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; }
.wst-remove-placement { color: var(--wst-danger) !important; }
.wst-extra-actions { display: grid; justify-items: start; gap: 9px; margin-top: 15px; }
.wst-size-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wst-size-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid var(--wst-line); border-radius: 8px; }
.wst-size-row span { display: flex; min-width: 0; flex-direction: column; }
.wst-size-row small { color: var(--wst-muted); font-size: .66rem; }
.wst-size-row input { width: 74px; min-height: 39px; text-align: center; }
.wst-order-summary { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 24px; align-items: center; position: sticky; z-index: 20; bottom: 10px; margin-top: 22px; padding: 16px 18px; border: 1px solid #333; border-radius: 14px; background: rgba(23,23,23,.97); color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.2); backdrop-filter: blur(8px); }
.wst-order-summary p { margin-bottom: 2px; }
.wst-order-summary p:not(:first-child) { color: #bbb; font-size: .77rem; }
.wst-summary-total { display: grid; text-align: right; }
.wst-summary-total span,
.wst-summary-total small { color: #bbb; font-size: .7rem; }
.wst-summary-total strong { color: var(--wst-yellow); font-size: 1.4rem; }
.wst-form-message { margin-top: 12px; padding: 0; border-radius: 7px; }
.wst-form-message:not(:empty) { padding: 12px 14px; }
.wst-form-message.is-error { background: #fff0f0; color: var(--wst-danger); }
.wst-form-message.is-success { background: #eaf8ef; color: var(--wst-success); }

.wst-customer-login { max-width: 650px; padding: clamp(24px, 5vw, 55px); border: 1px solid var(--wst-line); border-top: 8px solid var(--wst-yellow); border-radius: 14px; background: #fff; }
.wst-customer-login h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); }
.wst-customer-login #loginform { display: grid; gap: 12px; margin-top: 25px; }
.wst-customer-login label { display: block; font-weight: 700; }
.wst-customer-login input[type="text"],
.wst-customer-login input[type="password"] { width: 100%; min-height: 48px; margin-top: 5px; padding: 9px 12px; border: 1px solid #ccc; border-radius: 6px; }
.wst-customer-login input[type="submit"] { min-height: 48px; padding: 10px 20px; border: 0; border-radius: 6px; background: var(--wst-ink); color: #fff; font-weight: 800; }
.wst-customer-hero h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.wst-reorder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.wst-reorder-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--wst-line); border-radius: 14px; background: #fff; }
.wst-reorder-image { display: flex; min-height: 220px; align-items: center; justify-content: center; padding: 16px; background: var(--wst-soft); }
.wst-reorder-image img { width: 100%; height: 100%; object-fit: contain; }
.wst-reorder-body { padding: 20px; }
.wst-reorder-body h2 { margin-bottom: 8px; }
.wst-reorder-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0; }
.wst-reorder-sizes label { display: grid; gap: 3px; font-size: .72rem; font-weight: 750; text-align: center; }
.wst-reorder-sizes input { min-height: 38px; padding: 5px; text-align: center; }
.wst-sample-order-note { padding: 14px; border-left: 4px solid var(--wst-yellow); background: #fff9da; }

@media (max-width: 980px) {
	.wst-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wst-builder-grid { grid-template-columns: 1fr; }
	.wst-preview-panel { position: relative; top: auto; }
	.wst-stage { max-height: 70vh; }
	.wst-reorder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.wst-shell { width: min(100% - 20px, 1220px); margin-top: 22px; }
	.wst-hero { border-radius: 14px; }
	.wst-filter { grid-template-columns: 1fr; }
	.wst-product-grid { grid-template-columns: 1fr; }
	.wst-steps span { padding: 8px 4px; font-size: .66rem; }
	.wst-config-head { align-items: start; flex-direction: column; gap: 5px; }
	.wst-builder-grid { display: block; }
	.wst-preview-panel { margin-bottom: 16px; padding: 10px; }
	.wst-options-panel { gap: 12px; }
	.wst-option-section { padding: 15px; }
	.wst-placement-controls { grid-template-columns: 1fr; }
	.wst-size-grid { grid-template-columns: 1fr; }
	.wst-order-summary { grid-template-columns: 1fr auto; bottom: 5px; gap: 10px; }
	.wst-order-summary .wst-button { grid-column: 1 / -1; }
	.wst-reorder-card { grid-template-columns: 1fr; }
	.wst-reorder-image { min-height: 180px; }
}
