/* Kit designer page: intro styles, then the Kit Designer by Corenetsol library styles. (The old builder.css stays for pages cached before the switch.) */

.kb-intro { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.kb-intro-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.kb-title { font-size: clamp(54px, 8vw, 120px); }
.kb-intro .lead { margin: 0; max-width: 30em; }

/* The designer itself: Kit Designer by Corenetsol (library CSS, from D:\Corenetsol\Corenetsol Kit Designer). */
/*!
 * Kit Designer v1.0.0 | Developed by Corenetsol | www.corenetsol.com | +92 301 6310153
 * Every rule is scoped to .kd so the designer looks the same on any website theme.
 */

/* tokens: override these on .kd to match a site (or pass "accent" to KitDesigner.mount) */
.kd { --ink: #0A0A0B; --line: #E2E3E7; --paper-2: #F2F3F5; --mute: #5A5E66; --font: inherit; --kd-accent: #E11D27; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; text-align: left; }
.kd [hidden] { display: none !important; }
.kd *, .kd *::before, .kd *::after { box-sizing: border-box; }
.kd button, .kd input, .kd select, .kd textarea { font-family: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; margin: 0; }
.kd button { line-height: 1.2; }
.kd h2 { color: inherit; letter-spacing: normal; }
.kd p { margin: 0; }
.kd svg { max-width: none; }

/* fields, buttons and messages (normally provided by the site theme) */
.kd .f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kd .f-full { grid-column: 1 / -1; }
.kd .f label { font-size: 13px; font-weight: 600; color: var(--mute); }
.kd .field { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; font: 500 15px var(--font); background: #fff; color: var(--ink); border: 1px solid #D5D7DC; box-shadow: none; }
.kd .field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 11, .08); }
.kd textarea.field { min-height: 96px; resize: vertical; }
.kd .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 700 15px/1 var(--font); letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s; }
.kd .btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.kd .btn-accent { background: var(--kd-accent); color: #fff; }
.kd .btn-accent:hover { filter: brightness(.92); color: #fff; }
.kd .btn-dark { background: var(--ink); color: #fff; }
.kd .btn-dark:hover { background: #2a2b30; color: #fff; }
.kd .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kd .qmsg { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; border: 1.5px solid transparent; }

.kd .kb-app { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; align-items: start; }

/* stage */
.kd .kb-stage { position: sticky; top: var(--kd-sticky-top, 24px); display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 28px; background: var(--paper-2); }
.kd .kb-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.kd .seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.kd .seg-btn { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 600 14px var(--font); cursor: pointer; color: var(--ink); }
.kd .seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.kd .kb-tools { display: flex; gap: 8px; }
.kd .tool { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px var(--font); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.kd .tool:hover { border-color: var(--ink); }
.kd .tool-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.kd .tool-dark:hover { background: #2a2b30; }
.kd .kb-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kd .kb-views[data-show="front"], .kd .kb-views[data-show="back"] { grid-template-columns: minmax(0, 1fr); }
.kd .kb-views[data-show="front"] .kb-view[data-view="back"], .kd .kb-views[data-show="back"] .kb-view[data-view="front"] { display: none; }
.kd .kb-views[data-show="front"] svg, .kd .kb-views[data-show="back"] svg { max-height: 70vh; }
.kd .kb-view { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 12px 12px; border-radius: 20px; background: #fff; }
.kd .kb-view svg { width: 100%; height: auto; max-height: 78vh; overflow: visible; filter: drop-shadow(0 18px 24px rgba(10, 10, 11, .14)); }
.kd .kb-view figcaption { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.kd .kb-view figcaption span { font-weight: 500; letter-spacing: .02em; text-transform: none; }
.kd .kb-note { margin: 0; font-size: 13px; color: var(--mute); text-align: center; }

/* draggable names, numbers and logos */
.kd .kb-view svg { touch-action: pan-y; }
.kd .kb-view [data-drag] { cursor: grab; outline: none; }
.kd .kb-view [data-drag]:hover, .kd .kb-view [data-drag]:focus { filter: drop-shadow(0 0 1.5px #E11D27) drop-shadow(0 0 1.5px #E11D27); }
.kd .kb-view svg.is-dragging, .kd .kb-view svg.is-dragging [data-drag] { cursor: grabbing; }
.kd .tool-icon { width: 42px; padding: 0; display: inline-grid; place-items: center; }
.kd .tool[disabled] { opacity: .4; cursor: not-allowed; }

/* panel */
.kd .kb-panel { display: flex; flex-direction: column; gap: 18px; padding: clamp(18px, 2.4vw, 28px); border-radius: 28px; border: 1px solid var(--line); background: #fff; min-width: 0; scroll-margin-top: 96px; }
.kd .kb-tabs { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
.kd .kb-tabs::-webkit-scrollbar { display: none; }
.kd .kb-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }
.kd .kb-tab span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); font-size: 12px; font-weight: 700; }
.kd .kb-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.kd .kb-tab[aria-selected="true"] span { background: var(--kd-accent); color: #fff; }
.kd .kb-pane { display: flex; flex-direction: column; gap: 14px; }
.kd .kb-h { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.kd .kb-h small { font-size: 14px; font-weight: 500; text-transform: none; color: var(--mute); font-stretch: 100%; }
.kd .kb-hint { margin: 0; font-size: 14px; color: var(--mute); }
.kd .link { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.kd .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kd .opt-grid { display: grid; gap: 8px; }
.kd .opt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kd .opt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kd .opt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kd .opt-style { min-height: 0; padding: 10px 6px; gap: 6px; }
.kd .opt-mini { width: 100%; max-width: 64px; height: auto; }
.kd .opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 8px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 13px/1.2 var(--font); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.kd .opt:hover { border-color: #9a9da4; }
.kd .opt[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink); }
.kd .opt-sm { min-height: 52px; }
.kd .opt[disabled] { opacity: .4; cursor: not-allowed; }
.kd .opt-font b { font-size: 22px; font-weight: 400; line-height: 1; }
.kd .opt-swatch { width: 100%; height: 44px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .08); }
.kd .preset-dots { display: flex; gap: 4px; }
.kd .preset-dots i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }

/* colors */
.kd .zones { display: flex; flex-wrap: wrap; gap: 6px; }
.kd .zone { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 13px var(--font); color: var(--ink); cursor: pointer; }
.kd .zone i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.kd .zone[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kd .palette { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.kd .pal { aspect-ratio: 1; min-height: 32px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); cursor: pointer; padding: 0; transition: transform .15s; }
.kd .pal:hover { transform: scale(1.12); }
.kd .pal[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.kd .custom-color { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.kd .custom-color input { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; }

/* text + fields (light) */
.kd .fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kd .f label { color: var(--mute); }
.kd .field { background: #fff; color: var(--ink); border: 1px solid #D5D7DC; }
.kd .field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 11, .08); }
.kd .check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; cursor: pointer; }
.kd .check input { width: 20px; height: 20px; accent-color: var(--ink); }
.kd input[type="range"] { width: 100%; accent-color: var(--ink); }

/* text sizes */
.kd .checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.kd .sizes { display: grid; gap: 10px; }
.kd .size-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.kd .size-row output { font-size: 13px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }

/* logos */
.kd .drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; border: 1.5px dashed #C3C6CC; border-radius: 18px; background: #fff; color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.kd .drop:hover { border-color: var(--ink); background: var(--paper-2); }
.kd .drop[disabled] { cursor: not-allowed; opacity: .55; }
.kd .drop span { font-size: 13px; color: var(--mute); }
.kd .lib { display: grid; gap: 8px; }
.kd .lib:empty { display: none; }
.kd .lib-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
.kd .lib-thumb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: repeating-conic-gradient(#EEF0F2 0 25%, #fff 0 50%) 0 0 / 12px 12px; overflow: hidden; }
.kd .lib-thumb img { max-width: 44px; max-height: 44px; object-fit: contain; }
.kd .lib-name { min-width: 0; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd .lib-name b { display: block; color: var(--ink); font-size: 14px; }
.kd .slots { display: grid; gap: 8px; }
.kd .slot { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.kd .slot-t b { display: block; font-size: 15px; }
.kd .slot-t span { font-size: 12px; color: var(--mute); }
.kd .slot .field { min-height: 42px; padding: 8px 10px; font-size: 14px; }
.kd .slot input[type="range"] { grid-column: 1 / -1; }
.kd .slot input[type="range"][disabled] { opacity: .35; }

/* roster */
.kd .roster-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.kd .roster { width: 100%; border-collapse: collapse; font-size: 14px; }
.kd .roster th { padding: 10px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--paper-2); }
.kd .roster td { padding: 6px; border-top: 1px solid var(--line); }
.kd .roster input, .kd .roster select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #D5D7DC; border-radius: 10px; font: 500 15px var(--font); background: #fff; color: var(--ink); }
.kd .roster td:nth-child(2) { width: 72px; }
.kd .roster td:nth-child(3) { width: 96px; }
.kd .roster td:last-child { width: 44px; text-align: center; }
.kd .row-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 20px; cursor: pointer; color: var(--mute); }
.kd .row-x:hover { background: var(--paper-2); color: var(--kd-accent); }
.kd .qmsg-err { color: var(--kd-accent); background: #FDECEC; border-color: var(--kd-accent); }
.kd .qmsg-ok { background: var(--ink); color: #fff; }
.kd .kb-submit { width: 100%; }
.kd .kb-submit[disabled] { opacity: .6; cursor: progress; }

.kd .kb-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
	.kd .kb-app { grid-template-columns: minmax(0, 1fr); }
	.kd .kb-stage { position: relative; top: 0; }
}
@media (max-width: 560px) {
	.kd .kb-stage { padding: 12px; border-radius: 22px; }
	.kd .kb-view { padding: 10px 6px 8px; }
	.kd .palette { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.kd .fgrid { grid-template-columns: minmax(0, 1fr); }
	.kd .opt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kd .opt { min-height: 84px; font-size: 12px; }
	.kd .opt-style { min-height: 0; }
	.kd .size-row { grid-template-columns: 96px minmax(0, 1fr) 44px; }
	.kd .kb-view figcaption span { display: none; }
	.kd .kb-tools .tool { padding: 0 12px; }
}

/* "Show pants / shorts" toggle in the preview toolbar */
.kd .check-tool { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.kd .check-tool input { width: 18px; height: 18px; }

/* Tap a part: quick colors and designs */
.kd .kb-part { cursor: pointer; }
.kd .kb-part:hover { filter: brightness(1.08); }
.kd .kb-pop { position: fixed; z-index: 1000; width: 300px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 14px; border-radius: 16px; border: 1px solid var(--line, #e6e6e6); background: #fff; color: var(--ink, #111); box-shadow: 0 18px 44px rgba(0, 0, 0, .18); font-family: var(--font, sans-serif); }
.kd .kb-pop[hidden] { display: none; }
.kd .kb-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 15px; }
.kd .kb-pop-x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.kd .kb-pop-pal { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.kd .kb-pop-pal .pal { min-height: 26px; }
.kd .kb-pop-sub { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b6f76; }
.kd .kb-pop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kd .kb-chip { padding: 6px 11px; border-radius: 999px; border: 1.5px solid var(--line, #e6e6e6); background: #fff; color: inherit; font: 600 12px/1.2 var(--font, sans-serif); cursor: pointer; }
.kd .kb-chip[aria-pressed="true"] { border-color: var(--ink, #111); background: var(--ink, #111); color: #fff; }
.kd .kb-pop-more { display: block; width: 100%; margin-top: 14px; padding: 9px; border-radius: 10px; border: 0; background: #f2f3f5; color: inherit; font: 600 13px/1 var(--font, sans-serif); cursor: pointer; }
@media (max-width: 639px) {
	.kd .kb-pop { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 60vh; }
}

/* Your own print */
.kd .print-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kd .print-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--line, #e6e6e6); border-radius: 14px; background: #fff; }
.kd .print-card.has-print { border-color: var(--ink, #111); }
.kd .print-thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #f2f3f5; color: #9a9da3; font-size: 20px; overflow: hidden; }
.kd .print-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kd .print-name { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: #6b6f76; }
.kd .print-name b { font-size: 13px; color: var(--ink, #111); }
.kd .print-name, .kd .print-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd .kb-pop-print { background: var(--ink, #111); color: #fff; }
.kd .print-size { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) 44px auto; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.kd .print-size output { text-align: right; color: #6b6f76; }
.kd [data-drag^="print-"] { cursor: move; }

/* The setting that belongs to what was just touched on the uniform */
.kd .kb-flash { animation: kb-flash 1.6s ease-out; }
@keyframes kb-flash {
	0%, 35% { box-shadow: 0 0 0 3px var(--kd-accent); }
	100% { box-shadow: 0 0 0 3px rgba(225, 29, 39, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.kd .kb-flash { animation: none; box-shadow: 0 0 0 3px var(--kd-accent); }
}

/* Selection handles on the uniform */
.kd .kb-handle { cursor: nwse-resize; }
.kd .kb-handle-rotate { cursor: grab; }
.kd .kb-view svg { touch-action: pan-y; }
.kd .kb-credit { margin: 0; font-size: 12px; color: var(--mute, #6b6f76); text-align: center; }
.kd .kb-credit a { color: inherit; font-weight: 600; text-decoration: none; }
.kd .kb-credit a:hover { color: var(--ink, #111); text-decoration: underline; }

/* Demo mode (demo: true) */
.kd .opt { position: relative; }
.kd .opt-locked > :not(.kd-lock) { opacity: .5; }
.kd .opt-locked .opt-mini { filter: grayscale(1); }
.kd .kd-lock { position: absolute; top: 6px; right: 6px; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.4; font-style: normal; white-space: nowrap; letter-spacing: .02em; }
.kd .kd-demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; }
.kd .kd-demo-bar b { padding: 1px 8px; border-radius: 6px; background: var(--kd-accent); letter-spacing: .08em; text-transform: uppercase; }
.kd .kd-demo-bar span { flex: 1; min-width: 0; opacity: .85; }
.kd .kd-demo-bar a { color: #fff; font-weight: 700; }
.kd .kd-demo-note { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: 14px; color: var(--ink); }
.kd .kd-demo-note a { color: inherit; font-weight: 700; }
.kd .kd-demo-cta { display: grid; gap: 12px; padding: 18px; border-radius: 16px; border: 1.5px solid var(--line); }
.kd .kd-demo-cta .kb-h { margin: 0; }
/* The preview carries a light watermark too, so a screenshot is not a clean copy. */
.kd.kd-demo .kb-view::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .08;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160'%3E%3Ctext x='110' y='90' text-anchor='middle' transform='rotate(-28 110 80)' font-family='Arial,sans-serif' font-size='34' font-weight='900' fill='%230A0A0B'%3EDEMO%3C/text%3E%3C/svg%3E") center / 220px 160px repeat; }

/* Product groups: garments first, then accessories (caps, bags) */
.kd .opt-group { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* space below the designer, as before */
.kd-host { padding-bottom: clamp(72px, 8vw, 120px); }
