/* Creá tu producto: pestañas, editor de planchas e imanes. */
.vcb { --t: #2CB0B9; --bad: #E5484D; --ok: #1F8A5B; --k: #3C3C3B; --line: #D9D4CC; color: var(--k); font-family: 'Quicksand', sans-serif; }
.vcb *, .vcb *::before, .vcb *::after { box-sizing: border-box; }
.vcb [hidden] { display: none !important; }

/* Pestañas */
.vcb-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.vcb-tabs [role="tab"] { border: 2px solid var(--t); background: #fff; color: var(--t); border-radius: 999px; padding: 10px 22px; font: 600 15px/1.2 'Quicksand', sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.vcb-tabs [role="tab"][aria-selected="true"] { background: var(--t); color: #fff; }
.vcb-tabs [role="tab"]:focus-visible { outline: 3px solid rgba(44,176,185,.35); outline-offset: 2px; }

/* Subpestañas de Stickers */
.vcb-subtabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: -8px auto 26px; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(60,60,59,.08); }
.vcb .vcb-subtabs button { border: 0 !important; background: transparent !important; color: var(--k) !important; border-radius: 999px; padding: 8px 18px; font: 600 14px/1.2 'Quicksand', sans-serif; cursor: pointer; box-shadow: none; transition: background .2s; }
.vcb .vcb-subtabs button[aria-pressed="true"] { background: #F8C34E !important; }
.vcb .vcb-subtabs button:focus-visible { outline: 3px solid rgba(44,176,185,.35); }

/* Paneles: imagen/hoja a la izquierda, controles a la derecha */
.vcb-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.vcb-panel.vcb-panel-prendas { display: block; }
.vcb-stage .vcb-mockup { display: block; width: 100%; height: auto; border-radius: 20px; }
.vcb-side { display: flex; flex-direction: column; gap: 16px; }
.vcb-head { display: flex; align-items: center; gap: 14px; }
.vcb-head .vcb-mockup { flex: none; width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }
.vcb-head h3 { margin: 0 0 4px; font-size: 24px; }
.vcb-head p { margin: 0; font-size: 14px; line-height: 1.45; }

/* Hoja: 20 × 24 cm, línea punteada = margen de 0,6 cm */
.vcb-sheet { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 200 / 240; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(60,60,59,.15); touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.vcb-sheet::before { content: ""; position: absolute; inset: 2.5% 3%; border: 1px dashed var(--line); border-radius: 4px; pointer-events: none; }
.vcb-sheet:focus-visible { box-shadow: 0 0 0 3px var(--t), 0 10px 30px rgba(60,60,59,.15); }
.vcb-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 20px; text-align: center; color: #A09A92; font-weight: 600; pointer-events: none; }
.vcb-sheet.has-items .vcb-empty { display: none; }
.vcb-item { position: absolute; cursor: grab; touch-action: none; }
.vcb-item img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.vcb-item.is-sel { z-index: 2; cursor: move; outline: 2px solid var(--t); outline-offset: 2px; }
.vcb-item.is-bad { outline: 2px solid var(--bad); outline-offset: 2px; background: rgba(229,72,77,.12); }
.vcb-h { position: absolute; display: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--t); color: var(--t); font-size: 15px; line-height: 1; touch-action: none; box-shadow: 0 2px 6px rgba(60,60,59,.2); }
.vcb-item.is-sel .vcb-h { display: flex; }
.vcb-h-size { right: -14px; bottom: -14px; cursor: nwse-resize; }
.vcb-h-rot { left: 50%; top: -42px; margin-left: -14px; cursor: grab; }
.vcb-h-rot::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 12px; margin-left: -1px; background: var(--t); }
@media (pointer: coarse) {
	.vcb-h { width: 36px; height: 36px; font-size: 18px; }
	.vcb-h-size { right: -18px; bottom: -18px; }
	.vcb-h-rot { top: -52px; margin-left: -18px; }
}

/* Controles */
.vcb-upload { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--t); border-radius: 16px; background: #fff; text-align: center; cursor: pointer; transition: background .2s; }
.vcb-upload:hover, .vcb-upload.is-over { background: #EAF7F8; }
.vcb-upload:focus-within { box-shadow: 0 0 0 3px rgba(44,176,185,.35); }
.vcb-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vcb-upload-title { color: var(--t); font-weight: 700; font-size: 16px; }
.vcb-upload-hint { color: #77716A; font-size: 13px; }
.vcb-rules { margin: 0; padding-left: 18px; color: #5D5852; font-size: 13px; line-height: 1.6; }
.vcb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; background: #fff; border-radius: 14px; }
.vcb-size { margin-right: auto; font-size: 14px; font-weight: 700; }
/* !important: los estilos globales de botones del tema pisan estos colores */
.vcb .vcb-tools button, .vcb .vcb-btn-ghost, .vcb .vcb-qty button { border: 2px solid var(--t) !important; background: #fff !important; color: var(--t) !important; border-radius: 999px; padding: 8px 14px; font: 600 14px/1.2 'Quicksand', sans-serif; cursor: pointer; box-shadow: none; }
.vcb .vcb-tools button:hover, .vcb .vcb-btn-ghost:hover:not(:disabled), .vcb .vcb-qty button:hover { background: #EAF7F8 !important; }
.vcb .vcb-tools .vcb-danger { border-color: var(--bad) !important; color: var(--bad) !important; }
.vcb .vcb-btn { width: 100%; border: 0; border-radius: 999px; padding: 15px 24px; background: var(--t) !important; color: #fff !important; font: 700 16px/1.2 'Quicksand', sans-serif; cursor: pointer; transition: opacity .2s; }
.vcb .vcb-chip button { background: none !important; color: var(--k) !important; }
.vcb-btn:disabled, .vcb-btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.vcb-status { min-height: 1.4em; margin: 0; font-size: 14px; line-height: 1.45; }
.vcb-status.is-bad { color: var(--bad); }
.vcb-status.is-ok { color: var(--ok); }
.vcb-status a { color: var(--t); font-weight: 700; }
.vcb-chip { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border-radius: 14px; }
.vcb-chip img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #F2E9DC; }
.vcb-chip span { flex: 1; font-size: 14px; word-break: break-all; }
.vcb-chip button { border: 0; background: none; color: var(--k); font-size: 24px; line-height: 1; cursor: pointer; }
.vcb-qty { display: flex; align-items: center; gap: 10px; }
.vcb-qty span { margin-right: auto; font-weight: 700; }
.vcb-qty .vcb-min { color: #6B6B6A; font-size: 13px; }
.vcb-qty button { width: 42px; height: 42px; padding: 0; font-size: 20px; }
.vcb-qty input { width: 72px; height: 42px; border: 2px solid var(--line); border-radius: 12px; text-align: center; font: 700 16px 'Quicksand', sans-serif; }
.vcb-label { display: block; margin-bottom: 8px; font-weight: 700; }
.vcb-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vcb-sizes .vcb-label { grid-column: 1 / -1; margin: 0; }
.vcb-presets { grid-template-columns: repeat(4, 1fr); }
.vcb-size-opt { position: relative; cursor: pointer; }
.vcb-size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vcb-size-opt > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: center; transition: border-color .2s, background .2s; }
.vcb-size-opt input:checked + span { border-color: var(--t); background: #EAF7F8; }
.vcb-size-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(44,176,185,.35); }
.vcb-total { padding: 12px 14px; background: #fff; border-radius: 14px; font-size: 15px; line-height: 1.6; }
.vcb-total:empty { display: none; }
.vcb-total del { color: #A09A92; }
.vcb-off { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #F8C34E; color: var(--k); font-size: 12px; font-weight: 700; }
.vcb-promo { margin: 0; padding: 10px 14px; border-radius: 14px; background: #FFF3D6; font-size: 14px; font-weight: 600; line-height: 1.4; }
.vcb-promo small { font-weight: 500; color: #5D5852; }
.vcb-cart-thumb { width: 100%; height: auto; object-fit: contain; background: #fff; }

/* Tablet y celular: una columna, en el orden en que se usa */
@media (max-width: 900px) {
	.vcb-panel { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
	.vcb-side { display: contents; }
	.vcb-side > * { order: 10; }
	.vcb-head { order: 1; }
	.vcb-panel[data-type="sheet"] .vcb-upload { order: 2; }
	.vcb-panel[data-type="sheet"] .vcb-rules { order: 3; }
	.vcb-panel[data-type="sheet"] .vcb-stage { order: 4; margin: 26px 0 6px; }
	.vcb-panel[data-type="magnet"] .vcb-stage, .vcb-panel[data-type="single"] .vcb-stage { order: 2; }
	.vcb-panel[data-type="magnet"] .vcb-upload, .vcb-panel[data-type="single"] .vcb-upload { order: 3; }
	.vcb .vcb-subtabs button { padding: 8px 12px; font-size: 13px; }
	.vcb-tabs [role="tab"] { padding: 9px 14px; font-size: 14px; }
	.vcb-head h3 { font-size: 20px; }
	.vcb-stage .vcb-mockup { max-width: 420px; margin: 0 auto; }
}
/* Celular: el bloque usa todo el ancho de la pantalla (16 px de margen), así la hoja se ve más grande */
@media (max-width: 600px) {
	.vcb { width: calc(100vw - 32px); margin-left: calc(50% - 50vw + 16px); }
	.vcb-sheet { max-width: none; }
	.vcb-upload { padding: 16px; }
}
