.ic-studio{--ic-paper:#f7f3ee;--ic-border:#d6cbc3;--ic-ink:#171717;--ic-red:#ae1c24;background:var(--ic-paper);color:var(--ic-ink);padding:clamp(1.2rem,5vw,4.5rem)}
.ic-studio [hidden]{display:none!important}
.ic-studio-heading h2,.ic-product-detail h2{margin:0 0 .6rem;font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.045em;line-height:1.05}
.ic-studio-heading p{margin:0 0 1.2rem}
.ic-studio button,.ic-studio select,.ic-studio input:not([type=range]){font:inherit;color:inherit}
.ic-studio button{min-height:44px;border:1px solid #95877f;background:#fff;padding:.55rem .8rem;cursor:pointer}
.ic-studio button:disabled{opacity:.52;cursor:default}
.ic-studio button[aria-pressed=true]{border:2px solid var(--ic-red);background:#fff5f2}
.ic-studio .ic-primary{background:var(--ic-red);border-color:var(--ic-red);color:#fff;font-weight:750}
.ic-studio .ic-plain{background:transparent}
.ic-studio select,.ic-studio input:not([type=range]){background:#fff;border:1px solid #95877f;padding:.45rem;min-height:38px;max-width:100%}
.ic-studio label{display:grid;gap:.25rem;font-weight:650}
.ic-catalog-filter{max-width:21rem;margin:0 0 1.4rem}
.ic-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:.8rem}
.ic-item-card{padding:0!important;text-align:left}
.ic-item-card img{display:block;width:100%;height:185px;object-fit:contain;background:#fff}
.ic-item-card span,.ic-item-card small{display:block;padding:.3rem .65rem}
.ic-item-card span{font-weight:750}
.ic-item-card small{color:#584b44}
.ic-studio dialog{color:var(--ic-ink);padding:0;background:var(--ic-paper);border:0;margin:auto;overscroll-behavior:contain}
.ic-studio dialog::backdrop{background:#171717be}
.ic-detail-dialog{width:min(1040px,calc(100% - 1rem));max-height:94dvh;overflow:auto;position:fixed;inset:0}
.ic-dialog-close{position:absolute;top:.5rem;right:.5rem;z-index:2}
.ic-product-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.ic-detail-photo{background:#fff;display:grid;place-items:center}
.ic-detail-photo img{max-width:100%;width:100%;max-height:600px;object-fit:contain;aspect-ratio:1}
.ic-detail-content{display:grid;align-content:start;gap:.75rem;padding:clamp(1rem,4vw,2.4rem)}
.ic-detail-content p,.ic-detail-content h2{margin:0}
.ic-studio fieldset{border:1px solid var(--ic-border);padding:.5rem;margin:0;min-inline-size:0}
.ic-color-row,.ic-size-row,.ic-tool-pair{display:flex;gap:.35rem;flex-wrap:wrap}
.ic-color-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(37px,1fr));max-height:10rem;overflow:auto;padding:3px}
.ic-color-row button{min-height:36px;padding:1px;background:#fff}
.ic-color-row img{display:block;width:100%;height:34px;object-fit:contain}
.ic-color-row button span{font-size:.56rem;overflow-wrap:anywhere}
.ic-editor-dialog{width:min(1320px,100%);height:min(900px,100dvh);max-width:100%;max-height:100dvh;position:fixed;inset:0;overflow:auto}
.ic-editor-header,.ic-editor-footer{background:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;padding:.8rem 1rem;border-bottom:1px solid var(--ic-border)}
.ic-editor-header h2{font-size:1.3rem;margin:0}
.ic-editor-header p,.ic-editor-footer p{margin:0}
.ic-editor-header [data-exit]{margin-left:auto}
.ic-editor-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);min-height:0}
.ic-editor-controls{display:grid;gap:.65rem;align-content:start;padding:1rem;background:#fff;border-right:1px solid var(--ic-border)}
.ic-editor-controls h3{font-size:1rem;margin:0}
.ic-editor-controls fieldset,.ic-editor-controls [data-design-library]{display:grid;gap:.45rem}
.ic-editor-controls input[type=range]{width:100%;accent-color:var(--ic-red)}
.ic-coordinate-row{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.ic-editor-preview{min-width:0;display:grid;justify-items:center;align-content:start;gap:.55rem;padding:1rem;background:#ece5df}
.ic-editor-side{display:flex;gap:.4rem}
.ic-editor-stage{background:#fff;position:relative;isolation:isolate;width:min(100%,560px);aspect-ratio:1}
.ic-editor-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.ic-print-area{position:absolute;left:32%;top:29%;width:36%;height:43%;border:1px dashed #886965;touch-action:none;overflow:hidden;container-type:inline-size}
.ic-editor-stage[data-category=Hats] .ic-print-area{left:35%;top:31%;width:30%;height:25%}
.ic-editor-note{max-width:62ch;font-size:.875rem;margin:0}
.ic-print-area .ic-layer{position:absolute;min-height:0;border:1px solid transparent;line-height:1.05;padding:0;background:none;transform:translate(-50%,-50%) rotate(var(--layer-angle));touch-action:none;cursor:move}
.ic-print-area .ic-layer[aria-pressed=true]{border:1px dashed #b51c24;background:#fff2}
.ic-layer img{width:100%;height:auto;display:block;pointer-events:none}
.ic-layer span{display:block;font-weight:850;overflow-wrap:anywhere;pointer-events:none}
.ic-layer-panel{display:grid;gap:.35rem}
.ic-layer-panel [data-layer-list]{display:grid;gap:.25rem}
.ic-layer-panel button{min-height:38px;text-align:left;overflow-wrap:anywhere}
.ic-editor-footer{border-top:1px solid var(--ic-border);border-bottom:0;justify-content:flex-end}
.ic-editor-footer p{margin-right:auto;flex:1 1 15rem}
.ic-editor-footer input{width:6rem}
.ic-studio-quotes{margin-top:2rem}
@media(max-width:700px){.ic-product-detail,.ic-editor-layout{grid-template-columns:1fr}.ic-detail-photo img{max-height:43dvh}.ic-editor-preview{grid-row:1}.ic-editor-stage{width:min(100%,360px)}.ic-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ic-item-card img{height:138px}.ic-editor-controls{border-right:0}.ic-editor-header h2{font-size:1.05rem}}

.ic-sublimation-picker{margin-bottom:clamp(2.5rem,6vw,5rem);scroll-margin-top:2rem}
.ic-sublimation-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.ic-sublimation-grid .ic-item-card img{height:auto;aspect-ratio:1;object-fit:cover}
.ic-own-item{align-content:center;padding:.5rem!important;min-height:7rem}
.ic-editor-stage[data-category=Tumbler] .ic-print-area{left:43%;top:30%;width:14%;height:42%}
.ic-editor-stage[data-category=Mug] .ic-print-area{left:32%;top:38%;width:27%;height:26%}
.ic-editor-stage[data-category=Hat] .ic-print-area{left:37%;top:34%;width:26%;height:21%}
.ic-editor-stage[data-category=Keychain] .ic-print-area{left:37%;top:47%;width:26%;height:24%}
.ic-editor-stage[data-category="Own item"] .ic-print-area{inset:12%;width:auto;height:auto}
.ic-editor-stage>img:not([src]){display:none}
@media(max-width:700px){.ic-sublimation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ic-ready-sample{display:block;object-fit:contain;width:150px;height:150px;background:#f8f4ef}
[data-ready-gallery] .ic-item-card img{object-fit:contain;padding:.5rem}
.ic-sublimation-picker .ic-quote-form{display:grid;gap:.65rem;max-width:30rem}
.ic-sublimation-picker details{margin-top:.75rem}

.ic-sticker-types{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.75rem;max-width:48rem}
.ic-sticker-types .ic-item-card{min-height:5rem}
.ic-sticker-specs p{margin:0}
.ic-editor-stage[data-category=Sticker]{width:min(100%,560px,calc(58dvh * var(--sticker-ratio,1)));aspect-ratio:var(--sticker-ratio,1);background:#fff}
.ic-editor-stage[data-category=Sticker] .ic-print-area{inset:0;width:auto;height:auto}
[data-sticker-quote-fields]{display:grid;gap:.75rem;margin-top:1rem!important}
