/* ══════════════════════════════════════════════════════════
 * STK-DESKTOP.CSS v3.15 — Deduplicated (removed ~700 duplicate lines)
 *
 * Changes from v3.12:
 *   - Removed 8 duplicate copies of nota-panel/qty-info/price blocks
 *   - Removed 2 duplicate copies of v3.14q edit mode rules
 *   - Removed old qty-info/price originals superseded by updated copies
 *   - Total: 2269 lines → ~1560 lines
 *   - #stk-borde-panel::before: caret apunta a la derecha (hacia el botón)
 *   - #stk-grosor-panel::before: caret apunta a la derecha (hacia el botón)
 *   - top values simplificados: borde=60px, grosor=120px (columna derecha)
 *
 * Layout final de botones flotantes:
 *   IZQUIERDA (left:80px / left:194px):  Clipart (top:60px), T-texto (top:60px)
 *   DERECHA   (right:30px):              Borde/Color (top:60px), Grosor (top:120px)
 * ══════════════════════════════════════════════════════════ */

#stk-v38 { width: 100%; margin: 0; box-sizing: border-box; font-family: var(--stk-font); color: var(--stk-text); background: var(--stk-container-bg); overflow-x: clip; }


/* ═══ LANDING ═══ */
#stk-landing { display: grid; grid-template-columns: var(--stk-grid-columns); gap: var(--stk-grid-gap); align-items: stretch; max-width: 1440px; margin: 0 auto; padding: var(--stk-container-pad-top) var(--stk-container-pad-x) 0; }
#stk-landing .stk-left { position: -webkit-sticky; position: sticky; top: 20px; align-self: start; }
#stk-landing .stk-right { min-width: 0; }

.stk-stage-landing { position: relative; width: 100%; min-height: 400px; height: calc(100dvh - 335px); border: 1px solid var(--stk-stage-border); background: var(--stk-bg-stage); overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
#stk-landing #stk-placeholder { color: var(--stk-text-muted); font-size: 20px; text-align: center; line-height: 1.4; padding: 20px; }

/* Carousel */
#stk-landing #stk-carousel { position: absolute; inset: 0; z-index: 1; background: var(--stk-bg-carousel); display: none; }
#stk-landing #stk-carousel.active { display: block; }
#stk-carousel-track { position: relative; width: 100%; height: 100%; }
.stk-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: var(--stk-arrow-size); height: var(--stk-arrow-size); border-radius: 50%; border: none; background: var(--stk-arrow-bg); color: var(--stk-arrow-color); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.stk-carousel-arrow:hover { background: var(--stk-arrow-bg-hover); }
#stk-carousel-prev { left: 12px; }
#stk-carousel-next { right: 12px; }
.stk-carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }

#stk-landing .stk-section { margin-bottom: var(--stk-section-gap); }

.stk-upload-btn { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; width: 100%; padding: 24px; background: var(--stk-accent); color: var(--stk-text); border: none; border-radius: 0; font-family: "Inter Tight", sans-serif !important; font-size: 15px !important; font-weight: 800 !important; letter-spacing: 1px !important; cursor: pointer; transition: all .15s; text-transform: uppercase; }
.stk-upload-btn:hover { background: var(--stk-accent-hover); transform: translateY(-1px); }
.stk-upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.stk-file-name { margin-top: 6px; font-size: 12px; color: var(--stk-text-muted); text-align: center; }


/* ═══ EDITOR ═══ */
#stk-editor { width: 100%; min-height: 100vh; background: var(--stk-container-bg); position: relative; }

/* Top Bar */
.stk-topbar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 46px 24px 0 0; background: #fff; border-bottom: 1px solid var(--stk-border); position: sticky; top: 0; z-index: 100; margin-right: 460px; }
.stk-topbar-left { display: flex; align-items: center; gap: 0; }
.stk-topbar-logo { font-family: var(--stk-font-heading); font-size: 14px; font-weight: 900; letter-spacing: 2px; color: var(--stk-text); }
.stk-topbar .stk-topbar-logo-img { height: 20px !important; margin-top: 4px; }


/* Logo+subtítulo flotante: sale del flow para que cambios de tamaño no afecten al stage */

.stk-topbar-left > div { position: absolute; top: 35px; left: 80px; }
/* Subtítulo desplazado a la derecha para alinear con la "V" del logo */
.stk-editor-subtitle { padding-left: 8px; }



.stk-topbar-right { display: flex; align-items: center; gap: 8px; }
.stk-topbar-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: none; border: 1px solid var(--stk-border); color: var(--stk-text); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s, border-color .12s; position: relative; }
.stk-topbar-btn:hover { background: var(--stk-bg-active); }
#stk-editor-back { border: none; width: 80px; min-width: 80px; height: 100%; align-items: center; justify-content: center; padding: 0; }
#stk-editor-back:hover { background: none; color: #000; }
.stk-topbar-toggle { background: var(--stk-bg-active); }
.stk-topbar-toggle.stk-toggle-active { background: var(--stk-text); color: #fff; border-color: var(--stk-text); }
.stk-topbar-change { cursor: pointer; }
.stk-topbar-change:hover { background: var(--stk-bg-active); }

/* 3-Column Grid — panel is position:fixed */
.stk-editor-grid { display: grid; grid-template-columns: 1fr; height: calc(100vh - 64px); overflow: hidden; margin-right: 460px; }
body.admin-bar .stk-editor-grid { height: calc(100vh - 96px); }

/* Left Sidebar */
.stk-sidebar { display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 4px; background: #fff; border-right: 1px solid var(--stk-border); overflow-y: auto; }
.stk-sidebar-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; padding: 12px 0; background: none; border: none; color: #000; font-size: 11px; font-weight: 800; letter-spacing: 0.3px; cursor: pointer; transition: color .12s, background .12s; }
.stk-sidebar-btn svg { width: 26px; height: 26px; stroke: #000; }
.stk-sidebar-btn:hover { color: var(--stk-text); background: var(--stk-bg-active); }
.stk-sidebar-btn.active { color: var(--stk-text); background: var(--stk-bg-active); }
.stk-sidebar-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stk-sidebar-btn:disabled:hover { background: none; color: var(--stk-text-muted); }
.stk-sidebar-sep { width: 36px; height: 1px; background: var(--stk-border); margin: 8px 0; }

/* Center Canvas */
.stk-canvas-area { display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #d8d8d8; position: relative; box-shadow: inset 0 1px 4px rgba(0,0,0,0.06); }
#stk-editor #stk-stage { position: relative; width: 70%; height: 70%; max-width: 700px; max-height: 700px; display: flex; align-items: center; justify-content: center; perspective: 600px; overflow: visible; }
#stk-editor #stk-preview { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: none; }
#stk-editor #stk-loading { display: none; position: absolute; inset: 0; background: #d8d8d8; align-items: center; justify-content: center; font-size: 15px; color: var(--stk-loading-color); font-weight: 600; z-index: 2; }
#stk-editor #stk-loading.active { display: flex; }

/* Border Thickness Controls */
.stk-border-controls { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.12); pointer-events: auto; border-radius: 10px; }
.stk-border-label { font-size: 10px; font-weight: 600; color: var(--stk-text-muted); letter-spacing: 0.3px; margin-right: 4px; }
.stk-border-size { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--stk-border); background: #fff; color: var(--stk-text); font-size: 11px; font-weight: 700; cursor: pointer; transition: background .12s, color .12s; border-radius: 6px; }
.stk-border-size:hover { background: var(--stk-bg-active); }
.stk-border-size.active { background: var(--stk-text); color: #fff; border-color: var(--stk-text); }

/* Border Color Swatches */
#stk-border-colors button { border: 1px solid transparent; box-sizing: content-box; }
#stk-border-colors button[data-white] { border-color: #aaa; }
#stk-border-colors button.stk-bcolor-active { border: 2px solid #333; }

/* Right Panel — fixed full-height */
.stk-panel { position: fixed; right: 0; top: 0; bottom: 0; width: 460px; z-index: 200; background: #fff; border-left: 1px solid var(--stk-border); overflow: hidden; display: flex; flex-direction: column; }
body.admin-bar .stk-panel { top: 32px; }
.stk-panel-scroll { flex: 1; overflow-y: auto; padding: 43px 26px 28px; }
.stk-panel .stk-section { margin-bottom: 40px; }
.stk-panel .stk-label { font-size: 16px !important; font-weight: 700 !important; letter-spacing: -0.02em; margin-bottom: 10px !important; }


/* ═══ SHAPES — Icon pills on track ═══ */
.stk-panel .stk-shapes:has(.stk-shape-card) {
  display: flex !important;
  background: rgba(0,0,0,0.06) !important;
  border-radius: 10px !important;
  padding: 3px !important;
  gap: 2px !important;
}
.stk-panel .stk-shape-card {
  flex: 1 !important;
  border: none !important;
  border-radius: 8px !important;
  height: 50px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  min-width: 0 !important;
  cursor: pointer;
  transition: all .18s cubic-bezier(.4,0,.2,1) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.stk-panel .stk-shape-card.active {
  background: #2a2a2c !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
}
.stk-panel .stk-shape-card-icon { display: flex; align-items: center; justify-content: center; }
.stk-panel .stk-shape-card-icon svg { width: 26px; height: 26px; }
.stk-panel .stk-shape-card svg { fill: #999 !important; color: #999 !important; }
.stk-panel .stk-shape-card:hover svg { fill: #2a2a2c !important; color: #2a2a2c !important; }
.stk-panel .stk-shape-card.active svg { fill: #fff !important; color: #fff !important; }
.stk-panel .stk-shape-card:nth-child(n+2) svg { width: 25px !important; height: 25px !important; }
.stk-panel .stk-shape-card:nth-child(3) svg,
.stk-panel .stk-shape-card:nth-child(4) svg { width: 22px !important; height: 22px !important; }
/* Hide shape labels inside pills */
.stk-panel .stk-shape-card-label { display: none !important; }
/* TOP ribbon on first shape card */
.stk-panel .stk-shape-card:first-child { position: relative !important; overflow: hidden !important; }
.stk-panel .stk-shape-card:first-child::before {
  content: "TOP" !important;
  display: block !important;
  position: absolute !important;
  top: 6px !important;
  left: -18px !important;
  width: 70px !important;
  padding: 2px 0 !important;
  background: #f5c518 !important;
  color: #000 !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  text-align: center !important;
  transform: rotate(-45deg) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
  z-index: 2 !important;
}


/* ═══ MATERIALS — circles only, no boxes, hover border on img ═══ */
.stk-panel .stk-mats {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  gap: 6px !important;
  padding: 0 14px 0 1px !important;
  cursor: pointer;
}
.stk-panel .stk-mat-card { flex: 0 0 75px !important; min-width: 75px !important; width: 75px !important; }
/* Kill all card backgrounds/hover/active */
.stk-panel .stk-mat-card,
.stk-panel .stk-mat-card:hover,
.stk-panel .stk-mat-card:focus,
.stk-panel .stk-mat-card.active { background: none !important; box-shadow: none !important; outline: none !important; border: none !important; }
/* Thumb container: transparent, auto height */
.stk-panel .stk-mat-thumb { height: auto !important; width: auto !important; display: flex !important; align-items: center !important; justify-content: center !important; border: none !important; border-radius: 50% !important; box-shadow: none !important; }
.stk-mat-card:hover .stk-mat-thumb,
.stk-mat-card.active .stk-mat-thumb,
.stk-panel .stk-mat-card:hover .stk-mat-thumb,
.stk-panel .stk-mat-card.active .stk-mat-thumb { background: transparent !important; background-color: transparent !important; }
.stk-mat-thumb,
.stk-mat-card .stk-mat-thumb,
#stk-v38 .stk-mat-thumb { background: transparent !important; background-color: transparent !important; }
/* Img: 50px circle, border on hover/active */
.stk-panel .stk-mat-thumb img { width: 50px !important; height: 50px !important; min-width: 50px !important; min-height: 50px !important; border-radius: 50% !important; border: 2px solid transparent !important; transition: border-color .15s !important; }
.stk-panel .stk-mat-card.active .stk-mat-thumb img { border-color: #1f1f21 !important; }
.stk-panel .stk-mat-card:hover .stk-mat-thumb img { border-color: #1f1f21 !important; }
/* Vinilo (first) always has light gray border */
.stk-panel .stk-mat-card:first-child .stk-mat-thumb img { border-color: #ccc !important; }
.stk-panel .stk-mat-card:first-child:hover .stk-mat-thumb img { border-color: #1f1f21 !important; }
.stk-panel .stk-mat-card:first-child.active .stk-mat-thumb img { border-color: #1f1f21 !important; }
/* Name: 15px gap from img */
.stk-panel .stk-mat-name { padding: 15px 0 0 !important; font-size: 11px !important; font-weight: 700 !important; }
/* Hide bar */
.stk-panel .stk-mat-bar { display: none !important; }
.stk-panel .stk-mat-card.active .stk-mat-bar { display: none !important; }
.stk-panel .stk-mat-card[data-material="reflective"] .stk-mat-thumb::after { width: 50px !important; height: 50px !important; }
/* Reflectivo: box-shadow for circular border (::after covers border/outline) */
.stk-panel .stk-mat-card[data-material="reflective"] .stk-mat-thumb { border: none !important; outline: none !important; border-radius: 50% !important; width: 54px !important; height: 54px !important; margin: 0 auto !important; box-shadow: none; transition: box-shadow .15s !important; }
.stk-panel .stk-mat-card[data-material="reflective"] .stk-mat-thumb img { border: none !important; }
.stk-panel .stk-mat-card[data-material="reflective"].active .stk-mat-thumb { box-shadow: 0 0 0 2px #1f1f21 !important; }
.stk-panel .stk-mat-card[data-material="reflective"]:hover .stk-mat-thumb { box-shadow: 0 0 0 2px #1f1f21 !important; }


/* ═══ FINISH — Text pills on track ═══ */
.stk-panel .stk-finishes {
  display: flex !important;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 0;
  gap: 0 !important;
}
.stk-panel .stk-finish-btn {
  flex: 1;
  height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none !important;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  background: transparent;
  color: #2a2a2c;
}
.stk-panel .stk-finish-btn.active {
  background: #2a2a2c !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.stk-panel .stk-finish-btn:hover:not(.active) { background: rgba(0,0,0,0.04) !important; }
/* Remove old finish radio */
.stk-panel .stk-finish-radio { display: none; }
/* TOP ribbon on Brillante (first finish) */
.stk-panel .stk-finish-btn:first-child { position: relative !important; overflow: hidden !important; }
.stk-panel .stk-finish-btn:first-child::before {
  content: "TOP" !important;
  display: block !important;
  position: absolute !important;
  top: 6px !important;
  left: -18px !important;
  width: 70px !important;
  padding: 2px 0 !important;
  background: #f5c518 !important;
  color: #000 !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  text-align: center !important;
  transform: rotate(-45deg) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
  z-index: 2 !important;
}


/* ═══ SIZES — 3-col grid, rounded, BEST badge ═══ */
.stk-panel .stk-sizes {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  border: none !important;
  overflow: visible !important;
}
.stk-panel .stk-size-btn {
  width: auto !important;
  padding: 14px 8px !important;
  background: rgba(0,0,0,0.06) !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer;
  text-align: center !important;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  height: 50px;
  position: relative;
}
.stk-panel .stk-size-btn.active {
  background: #2a2a2c !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
@media (hover:hover) {
  .stk-panel .stk-size-btn:hover:not(.active) { background: rgba(0,0,0,0.09) !important; }
}
/* BEST ribbon on 8x8 (second size) */
.stk-panel .stk-size-btn:nth-child(2) { position: relative !important; overflow: hidden !important; }
.stk-panel .stk-size-btn:nth-child(2)::before {
  content: "BEST" !important;
  display: block !important;
  position: absolute !important;
  top: 6px !important;
  left: -18px !important;
  width: 70px !important;
  padding: 2px 0 !important;
  background: #16a34a !important;
  color: #000 !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  text-align: center !important;
  transform: rotate(-45deg) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
  z-index: 2 !important;
}
.stk-panel .stk-badge-popular { display: none !important; }
.stk-custom-size { margin-top: 10px; display: none; gap: 8px; align-items: center; }
.stk-custom-size.visible { display: flex; }
.stk-custom-size input { width: 70px; padding: 8px 6px; border: 1px solid var(--stk-border); border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.stk-custom-size input:focus { outline: none; border-color: var(--stk-text); }
.stk-custom-size span { color: var(--stk-text-muted); font-size: var(--stk-text-size); }


/* ═══ QUANTITY — rows with dark active, badges ═══ */
.stk-panel .stk-qty-table {
  border: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stk-panel .stk-qty-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px;
  align-items: center;
  padding: 0 12px 0 20px;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  background: rgba(0,0,0,0.06);
  border: none;
  border-bottom: none;
}
.stk-panel .stk-qty-row:last-child { border-bottom: none; }
.stk-panel .stk-qty-row.active {
  background: #2a2a2c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.stk-panel .stk-qty-row.active .stk-qty-pcs,
.stk-panel .stk-qty-row.active .stk-qty-price {
  color: #fff;
  font-weight: 700;
}
@media (hover:hover) {
  .stk-panel .stk-qty-row:hover:not(.active) { background: rgba(0,0,0,0.09); }
}
.stk-qty-pcs { font-size: 13px; font-weight: 500; white-space: nowrap; }
.stk-qty-price { font-size: 13px; font-weight: 500; text-align: center; padding-left: 55px; }
.stk-qty-disc-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 90px; }
/* Discount badge styling */
.stk-qty-disc {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #16a34a;
  color: #fff;
  letter-spacing: 0.02em;
  justify-self: end;
  white-space: nowrap;
}
.stk-qty-disc:empty { display: none; }
.stk-panel .stk-qty-row.active .stk-qty-disc {
  background: #16a34a;
  color: #fff;
}
/* Featured badge (50 uds) always Vulcan yellow */
.stk-panel .stk-qty-row[data-qty="50"] .stk-qty-disc,
.stk-panel .stk-qty-row[data-qty="50"].active .stk-qty-disc {
  background: #f5c518 !important;
  color: #000 !important;
}
/* "Mas cantidad" info row */

/* Custom qty input */
.stk-qty-custom-input { margin-top: 8px; display: none; }
.stk-qty-custom-input.visible { display: block; }
.stk-qty-custom-input input { width: 100%; padding: 12px 14px; border: 1px solid var(--stk-border); border-radius: 10px; font-size: 15px; }
.stk-qty-custom-input input:focus { outline: none; border-color: var(--stk-text); }

/* ═══ PRICE BOX + FOOTER ═══ */
.stk-panel .stk-price-box { background: #fff; padding: 0; margin-bottom: 0; }
/* Summary line — bordered box */
.stk-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 12px 16px;
  margin-bottom: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #2a2a2c;
}
.stk-price-line strong { font-weight: 500; font-size: 13px; color: #2a2a2c; }

/* TOTAL line */
.stk-price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  margin-top: 16px;
  border-top: none;
}
.stk-price-total span {
  font-size: 15px;
  font-weight: 800;
  color: #2a2a2c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stk-price-total strong {
  font-size: 28px;
  font-weight: 800;
  color: #2a2a2c;
  letter-spacing: -0.03em;
}

/* Footer summary overrides */
.stk-panel-footer #stk-summary,
.stk-panel-footer #stk-unit-price {
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #2a2a2c;
}
.stk-panel-footer .stk-price-total span { text-transform: uppercase; font-weight: 700; }

/* Cart button — GREEN */
.stk-panel .stk-cart-btn {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity .15s;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}
.stk-panel .stk-cart-btn:hover { opacity: 0.88; transform: none; }
.stk-panel .stk-cart-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Panel sticky footer */
.stk-panel-footer {
  padding: 24px 26px 24px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}

/* Divider between TOTAL and note */
.stk-panel-footer .stk-section {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 16px;
  margin-bottom: 0;
}
.stk-panel-footer .stk-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  letter-spacing: normal;
  color: #2a2a2c;
  margin-bottom: 10px !important;
}

/* Comment */
.stk-panel .stk-comment {
  min-height: 52px;
  height: 52px;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
.stk-panel .stk-comment:focus { outline: none; border-color: var(--stk-text); }

/* Vinyl colors in canvas (shown/hidden by JS) */
#stk-editor .stk-vinyl-colors { display: none !important; }


/* ═══ CLIPART PANEL ═══ */
#stk-clipart-panel { display: none; position: absolute; left: 0; top: 0; width: 280px; height: 100%; background: #fff; z-index: 50; border-right: 1px solid var(--stk-border); padding: 0; overflow: hidden; font-family: var(--stk-font); flex-direction: column; }
#stk-clipart-panel.open { display: flex; }
.stk-clipart-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 22px 16px; flex-shrink: 0; }
.stk-clipart-header .stk-text-lbl { margin-bottom: 0; }
#stk-clipart-close { border: none; background: none; font-size: 20px; cursor: pointer; color: var(--stk-text-muted); padding: 0; line-height: 1; }
#stk-clipart-close:hover { color: var(--stk-text); }
#stk-clipart-category { margin: 0 22px 16px; padding: 10px 12px; border: 1px solid var(--stk-border); font-size: 13px; font-weight: 600; cursor: pointer; width: calc(100% - 44px); box-sizing: border-box; border-radius: 10px; }
#stk-clipart-category:focus { outline: none; border-color: var(--stk-text); }
#stk-clipart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 22px 22px; overflow-y: auto; flex: 1; }
.stk-clipart-item { aspect-ratio: 1; background: var(--stk-bg-active); border: 1px solid var(--stk-border); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 8px; transition: border-color .12s, box-shadow .12s; overflow: hidden; border-radius: 8px; }
.stk-clipart-item:hover { border-color: var(--stk-text); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.stk-clipart-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.stk-clipart-empty { grid-column: 1 / -1; text-align: center; color: var(--stk-text-muted); font-size: 13px; padding: 40px 0; }

/* Clipart overlay on canvas */
.stk-clipart-overlay { position: absolute; cursor: grab; z-index: 10; pointer-events: auto; user-select: none; -webkit-user-select: none; }
.stk-clipart-overlay:active { cursor: grabbing; }
.stk-clipart-overlay img { width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }


/* ═══ FLOATING PANEL TOKENS (shared by text/clipart/border panels) ═══ */

/* ═══ BACKDROP for closing panels on outside click ═══ */
#stk-text-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: transparent;
  cursor: default;
}

/* ═══ FLOATING TOOL BUTTONS on canvas — LEFT COLUMN ═══ */
#stk-text-float-btn {
  position: absolute;
  top: 60px;
  left: 80px;
  z-index: 30;
  width: 50px;
  height: 50px;
  background: #1f1f21 !important;
  border: none !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  transition: box-shadow .15s;
  padding: 0 !important;
  gap: 0 !important;
  color: #fff !important;
}
#stk-text-float-btn:hover svg path { fill: #f5c518 !important; }
#stk-text-float-btn .stk-sidebar-label { display: none !important; }
#stk-text-float-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  fill: #fff;
}

/* ═══ TEXT PANEL — Floating dark panel on canvas ═══ */
#stk-text-panel {
  display: none;
  position: absolute !important;
  left: 70px !important;
  top: 132px !important;
  width: 280px !important;
  height: auto;
  max-height: 85vh;
  overflow: visible;
  background: #2a2a2c;
  z-index: 50;
  border: none;
  border-right: none;
  border-radius: 18px;
  padding: 0 0 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  cursor: default;
  user-select: none;
}
#stk-text-panel input,
#stk-text-panel select,
#stk-text-panel button,
#stk-text-panel textarea { cursor: auto !important; user-select: auto !important; pointer-events: auto !important; }
#stk-text-panel input[type="range"] { cursor: pointer !important; }
#stk-text-panel button { cursor: pointer !important; }
#stk-text-panel::-webkit-scrollbar { width: 4px; }
#stk-text-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
/* Arrow caret pointing up toward T button */
#stk-text-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid #2a2a2c;
  filter: drop-shadow(0 -2px 3px rgba(0,0,0,0.2));
  z-index: 1;
}

/* Header */
.stk-text-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 22px 31px;
  margin-bottom: 0;
}
.stk-text-header .stk-text-lbl {
  margin-bottom: 0 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  font-family: inherit;
}
#stk-text-close {
  border: none; background: none; font-size: 18px;
  cursor: pointer; color: rgba(255,255,255,0.42);
  padding: 10px; margin: -10px; line-height: 1; transition: color .15s;
}
#stk-text-close:hover { color: rgba(255,255,255,0.55); }

/* Text input */
#stk-text-input {
  display: block;
  width: calc(100% - 44px);
  margin: 0 22px 28px;
  padding: 0 16px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.02em;
  box-sizing: border-box;
}
#stk-text-input:focus { outline: none; border: none; }
#stk-text-input::placeholder { color: rgba(255,255,255,0.3); }

/* Sections */
.stk-text-section { padding: 0 22px; margin-bottom: 28px; }
.stk-text-lbl {
  color: rgba(255,255,255,0.42) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  font-family: inherit;
  display: block;
  margin-bottom: 10px !important;
}

/* Font dropdown */
#stk-text-font {
  width: 100%;
  padding: 0 44px 0 16px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(0,0,0,0.38);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
}
#stk-text-font:focus { outline: none; }
#stk-text-font option { background: #222224; color: #fff; }

/* Size slider */
#stk-text-size {
  width: 100%;
  height: 18px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  margin: 4px 0;
}
#stk-text-size::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}
#stk-text-size::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  cursor: pointer;
  margin-top: -7.5px;
}
#stk-text-size-label {
  text-align: right;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}

/* Color swatches */
#stk-text-colors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  row-gap: 14px;
  margin-bottom: 0;
}
#stk-text-colors button {
  width: 100%;
  max-width: 28px;
  height: 28px;
  aspect-ratio: auto;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  border: none;
  justify-self: center;
  align-self: center;
  transition: transform .12s;
}
#stk-text-colors button:hover { transform: scale(1.1); }
#stk-text-colors button.stk-tc-active {
  box-shadow: 0 0 0 3px #2a2a2c, 0 0 0 5px rgba(255,255,255,0.6);
}

/* Color picker/hue - hidden */
#stk-text-picker { display: none !important; }
#stk-text-hue { display: none !important; }
#stk-text-color { display: none; }
#stk-text-done { display: none !important; }
.stk-text-footer { display: none !important; }


/* ═══ FULL-SCREEN EDITOR — hide WP chrome ═══ */
body.stk-editor-open #masthead,
body.stk-editor-open .site-header,
body.stk-editor-open .main-navigation,
body.stk-editor-open .site-navigation,
body.stk-editor-open .menu-toggle,
body.stk-editor-open .navigation-branding,
body.stk-editor-open .gen-sidebar-nav,
body.stk-editor-open .inside-header,
body.stk-editor-open header.site-header,
body.stk-editor-open nav.main-navigation,
body.stk-editor-open .page-header,
body.stk-editor-open .inside-page-header,
body.stk-editor-open .entry-header,
body.stk-editor-open #page > header,
body.stk-editor-open .elementor-location-header,
body.stk-editor-open .wp-block-post-title { display: none !important; }
body.stk-editor-open .site-content,
body.stk-editor-open .content-area,
body.stk-editor-open #primary,
body.stk-editor-open .inside-article { padding-top: 0 !important; margin-top: 0 !important; }
body.stk-editor-open { overflow: hidden; }
body.stk-editor-open .site-footer,
body.stk-editor-open footer { display: none !important; }


/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  #stk-v38 { padding: 0; }
  #stk-landing { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px 0; }
  #stk-landing .stk-left { position: relative; top: 0; }
  .stk-stage-landing { min-height: 300px; }
  #stk-editor { display: none !important; }
}


/* ═══ SVG OVERLAY ═══ */
#stk-svg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(4px 8px 14px rgba(0,0,0,0.25)); }

/* ═══ BORDER COLOR BAR ═══ */
#stk-border-colors { display: none; align-items: center; gap: 12px; padding: 14px 22px; background: #fff; position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); z-index: 20; box-shadow: 0 2px 14px rgba(0,0,0,0.13); white-space: nowrap; pointer-events: auto; border-radius: 10px; }
.stk-bcolor-label { font-size: 10px; font-weight: 600; color: var(--stk-text-muted); letter-spacing: 0.3px; margin-right: 2px; }
.stk-bcolor-swatch { width: 16px; height: 16px; border-radius: 50%; outline: none; cursor: pointer; transition: transform 0.12s; flex-shrink: 0; padding: 0; }
.stk-bcolor-custom { width: 18px; height: 18px; border-radius: 50%; border: 1px dashed #aaa; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.stk-bcolor-custom-input { opacity: 0; position: absolute; width: 0; height: 0; }
.stk-bcolor-plus { font-size: 11px; color: var(--stk-text-muted); pointer-events: none; }

/* ═══ TILT WRAPPER ═══ */
#stk-tilt-wrapper { width: 100%; height: 100%; position: absolute; inset: 0; margin: auto; transform-style: preserve-3d; will-change: transform; display: flex; align-items: center; justify-content: center; overflow: visible; }

/* ═══ LAMINATE OVERLAY ═══ */
#stk-laminate-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; mix-blend-mode: screen; opacity: 0.35; display: none; background: repeating-linear-gradient(-30deg, rgba(255,255,255,0) 0px, rgba(255,255,255,0.05) 6px, rgba(255,255,255,0.14) 9px, rgba(255,255,255,0.05) 12px, rgba(255,255,255,0) 16px, rgba(255,255,255,0) 35px, rgba(255,255,255,0.03) 38px, rgba(255,255,255,0.18) 44px, rgba(255,255,255,0.20) 50px, rgba(255,255,255,0.08) 56px, rgba(255,255,255,0) 62px, rgba(255,255,255,0) 74px, rgba(255,255,255,0.04) 77px, rgba(255,255,255,0.10) 79px, rgba(255,255,255,0.04) 81px, rgba(255,255,255,0) 84px, rgba(255,255,255,0) 96px, rgba(255,255,255,0.02) 100px, rgba(255,255,255,0.12) 105px, rgba(255,255,255,0.06) 112px, rgba(255,255,255,0) 118px, rgba(255,255,255,0) 150px); background-size: 200% 200%; background-position: 50% 50%; }

/* ═══ PROCESSING OVERLAY ═══ */
.stk-process-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #d8d8d8; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 100; border-radius: 0; }
.stk-process-text { font-family: Inter, sans-serif; font-size: 11px; font-weight: 500; color: var(--stk-text-muted); margin-bottom: 10px; letter-spacing: 0.3px; }
.stk-process-bar-wrap { width: 140px; height: 1px; background: var(--stk-border); overflow: hidden; }
.stk-process-bar { width: 0%; height: 100%; background: #aaa; transition: width 0.4s ease; }

/* ═══ TEXT LAYER (SVG) ═══ */
.stk-text-layer { user-select: none; -webkit-user-select: none; }


/* ══════════════════════════════════════════════════════════
 * FLOATING CLIPART BUTTON + FLOATING CLIPART PANEL
 * ══════════════════════════════════════════════════════════ */

/* ═══ FLOATING CLIPART BUTTON — left column, beside T button ═══ */
#stk-clipart-float-btn {
  position: absolute;
  top: 60px;
  left: 145px;
  z-index: 30;
  width: 50px;
  height: 50px;
  background: #1f1f21 !important;
  border: none !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  transition: box-shadow .15s;
  padding: 0 !important;
  gap: 0 !important;
  color: #fff !important;
}
#stk-clipart-float-btn:hover svg path { fill: #f5c518 !important; }
#stk-clipart-float-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  fill: #fff;
}

/* ================================================================
 * v2.47 - EDIT MODE FAB + MODE TRANSITIONS
 * ----------------------------------------------------------------
 * The "Editar" FAB is positioned top-right, vertically aligned
 * with the Borde/Grosor FABs (right: 80px). It stays in the same
 * position in both states (normal and active).
 * ================================================================ */

#stk-edit-float-btn {
  position: absolute;
  top: 60px;
  right: 80px;
  z-index: 30;
  min-width: 50px;
  height: 50px;
  padding: 0 14px 0 12px !important;
  background: #1f1f21 !important;
  border: none !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  transition: box-shadow .15s, background .25s, color .25s;
  gap: 8px !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
#stk-edit-float-btn:hover svg path { fill: #f5c518 !important; }
#stk-edit-float-btn:hover { color: #f5c518 !important; }
#stk-edit-float-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  fill: #fff;
}
#stk-edit-float-btn .stk-edit-btn-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Active state: green background (same position as normal) */
button#stk-edit-float-btn.stk-edit-active {
  background: #FFD700 !important;
  color: #000 !important;
}

button#stk-edit-float-btn.stk-edit-active:hover {
  background: #333 !important;
  color: #fff !important;
}
button#stk-edit-float-btn.stk-edit-active:hover svg path {
  fill: #fff !important;
}

/* v3.14q: Edit FAB icon + label styling */
button#stk-edit-float-btn svg {
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  min-height: 27px !important;
}
button#stk-edit-float-btn {
  padding: 0 23px !important;
}
button#stk-edit-float-btn .stk-edit-btn-label {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* v3.14q: Dim entire canvas area in edit mode */
.stk-canvas-area:has(.stk-editing)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  z-index: 0;
  pointer-events: none;
}
/

/* v3.14q: Dashed cut line around shape in edit mode */

/* v3.14q: Edit FAB label styling */
button#stk-edit-float-btn .stk-edit-btn-label {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* v3.14q: Cart button yellow in edit mode */
#stk-cart-btn.stk-cart-btn-editing {
  background: #FFD700 !important;
  color: #000 !important;
}

/* v3.14q: Layers non-interactive outside edit mode */
.stk-clipart-overlay {
  pointer-events: none !important;
  cursor: default !important;
}
.stk-text-layer {
  pointer-events: none !important;
  cursor: default !important;
}

/* v3.14q: Layers interactive only inside edit mode */
.stk-editing .stk-clipart-overlay {
  pointer-events: auto !important;
  cursor: grab !important;
}
.stk-editing .stk-clipart-overlay:active {
  cursor: grabbing !important;
}
.stk-editing .stk-text-layer {
  pointer-events: all !important;
  cursor: move !important;
}

/* v3.14q: Cart button yellow in edit mode */
#stk-cart-btn.stk-cart-btn-editing {
  background: #FFD700 !important;
  color: #000 !important;
}

button#stk-edit-float-btn.stk-edit-active svg path { fill: #fff !important; }
button#stk-edit-float-btn.stk-edit-active:hover svg path { fill: #fff !important; }

/* Smooth transitions for tilt wrapper and laminate overlays */
#stk-tilt-wrapper {
  transition: none;
}
#stk-laminate-overlay,
.stk-shine,
.stk-glare,
.stk-sparkle {
  transition: opacity 0.3s ease-out;
}

/* MODE EDITING ON: hide laminate/shine/glare/sparkle */
#stk-stage.stk-editing #stk-laminate-overlay,
#stk-stage.stk-editing .stk-shine,
#stk-stage.stk-editing .stk-glare,
#stk-stage.stk-editing .stk-sparkle {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ═══ FLOATING CLIPART PANEL — dark panel on canvas ═══ */
#stk-clipart-panel.stk-float-open {
  display: flex;
  position: absolute !important;
  left: 105px !important;
  top: 132px !important;
  width: 280px !important;
  height: auto;
  max-height: 85vh;
  overflow: visible;
  background: #2a2a2c;
  z-index: 50;
  border: none;
  border-right: none;
  border-radius: 18px;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  cursor: default;
  user-select: none;
  flex-direction: column;
}
#stk-clipart-panel.stk-float-open::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 54px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid #2a2a2c;
  filter: drop-shadow(0 -2px 3px rgba(0,0,0,0.2));
  z-index: 1;
}
#stk-clipart-panel.stk-float-open .stk-clipart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 22px 24px;
  margin-bottom: 0;
  flex-shrink: 0;
  background: transparent;
  border: none;
}
#stk-clipart-panel.stk-float-open .stk-clipart-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: inherit;
}
#stk-clipart-panel.stk-float-open #stk-clipart-close {
  border: none; background: none; font-size: 18px; cursor: pointer;
  color: rgba(255,255,255,0.42); padding: 10px; margin: -10px; line-height: 1; transition: color .15s;
}
#stk-clipart-panel.stk-float-open #stk-clipart-close:hover { color: rgba(255,255,255,0.55); }
#stk-clipart-panel.stk-float-open .stk-clipart-cat-wrap { padding: 0 22px; margin-bottom: 20px; flex-shrink: 0; }
#stk-clipart-panel.stk-float-open #stk-clipart-category {
  width: 100%; padding: 0 44px 0 16px; height: 44px; margin: 0; border: none; border-radius: 10px;
  background: rgba(0,0,0,0.38); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; box-sizing: border-box; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 22px center;
}
#stk-clipart-panel.stk-float-open #stk-clipart-category:focus { outline: none; }
#stk-clipart-panel.stk-float-open #stk-clipart-category option { background: #222224; color: #fff; }
#stk-clipart-panel.stk-float-open .stk-clipart-scroll {
  flex: 1; overflow-y: auto; padding: 0 22px 24px; min-height: 320px; max-height: 55vh;
}
#stk-clipart-panel.stk-float-open .stk-clipart-scroll::-webkit-scrollbar { width: 4px; }
#stk-clipart-panel.stk-float-open .stk-clipart-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
#stk-clipart-panel.stk-float-open #stk-clipart-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; overflow: visible;
}
#stk-clipart-panel.stk-float-open .stk-clipart-item {
  aspect-ratio: 1; background: rgba(255,255,255,0.06); border: none; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  transition: background .15s, box-shadow .15s; overflow: hidden;
}
#stk-clipart-panel.stk-float-open .stk-clipart-item:hover {
  background: rgba(255,255,255,0.12); box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
#stk-clipart-panel.stk-float-open .stk-clipart-item img {
  width: 100%; height: 100%; object-fit: contain; pointer-events: none;
  filter: brightness(0) invert(1); opacity: 0.7; transition: opacity .15s;
}
#stk-clipart-panel.stk-float-open .stk-clipart-item:hover img { opacity: 1; }
#stk-clipart-panel.stk-float-open .stk-clipart-empty {
  grid-column: 1 / -1; text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; padding: 40px 0;
}

/* Backdrop for closing clipart panel */
#stk-clipart-backdrop {
  position: absolute; inset: 0; z-index: 40; background: transparent; cursor: default;
}


/* ══════════════════════════════════════════════════════════
 * FLOATING TOOL BUTTONS — RIGHT COLUMN
 *
 * FIX v3.10: Cambiado de left:1039px (pixel absoluto dependiente de resolución)
 * a right:30px (relativo al borde derecho del canvas-area).
 * Funciona en cualquier ancho de pantalla — 1512px, 1728px, etc.
 *
 * Columna derecha:
 *   #stk-borde-float-btn  → top:60px,  right:30px  (Color de fondo)
 *   #stk-grosor-float-btn → top:120px, right:30px  (Grosor S/M/L)
 *
 * Los paneles se abren a la IZQUIERDA del botón usando right:90px.
 * El caret (::before) apunta hacia la DERECHA (hacia el botón).
 * ══════════════════════════════════════════════════════════ */

/* ═══ BORDE FLOAT BUTTON — right column, top ═══ */
#stk-borde-float-btn {
  position: absolute;
  top: 496px;
  right: 80px;
  left: auto;
  z-index: 30;
  width: 50px;
  height: 50px;
  background: #1f1f21 !important;
  border: none !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  transition: box-shadow .15s;
  padding: 0 !important;
  gap: 0 !important;
  color: #fff !important;
}
#stk-borde-float-btn:hover svg path { fill: #f5c518 !important; }
#stk-borde-float-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
}

/* ═══ GROSOR FLOAT BUTTON — right column, below borde ═══ */
#stk-grosor-float-btn {
  position: absolute;
  top: 561px;
  right: 80px;
  left: auto;
  z-index: 30;
  width: 50px;
  height: 50px;
  background: #1f1f21 !important;
  border: none !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  transition: box-shadow .15s;
  padding: 0 !important;
  gap: 0 !important;
  color: #fff !important;
}
#stk-grosor-float-btn:hover svg path { fill: #f5c518 !important; }
#stk-grosor-float-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
}

/* Disabled state — beats display:flex !important */
#stk-borde-float-btn.disabled,
#stk-grosor-float-btn.disabled { display: none !important; }

/* Active states on click */
#stk-text-float-btn:active svg path { fill: #ff3b30 !important; }
#stk-clipart-float-btn:active svg path { fill: #ff3b30 !important; }
#stk-borde-float-btn:active svg path { fill: #ff3b30 !important; }
#stk-grosor-float-btn:active svg path { fill: #ff3b30 !important; }

/* ═══ BORDE PANEL — opens LEFT of button, caret points RIGHT ═══ */
#stk-borde-panel {
  display: none;
  position: absolute !important;
  right: 148px !important;
  left: auto !important;
  top: 484px !important;
  overflow: visible !important;
  z-index: 60 !important;
  width: 260px !important;
  height: auto;
  max-height: 85vh;
  overflow: visible;
  background: #2a2a2c;
  z-index: 50;
  border: none;
  border-radius: 18px;
  padding: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  cursor: default;
  user-select: none;
}
#stk-borde-panel.open { display: block; }

/* Caret apunta al centro del botón */
#stk-borde-panel::before {
  content: "";
  position: absolute;
  top: 31px;
  right: -10px;
  left: auto;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #2a2a2c;
  filter: drop-shadow(2px 0 3px rgba(0,0,0,0.2));
  z-index: 1;
}

.stk-borde-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 22px 28px;
}
.stk-borde-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stk-borde-subtitle {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  padding: 0 22px 12px;
}
#stk-borde-close {
  border: none; background: none; font-size: 18px;
  cursor: pointer; color: rgba(255,255,255,0.42);
  padding: 10px; margin: -10px; line-height: 1; transition: color .15s;
}
#stk-borde-close:hover { color: rgba(255,255,255,0.55); }

.stk-borde-section { padding: 0 22px 20px; }
.stk-borde-sec-lbl {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* Grosor segmented control */
.stk-borde-thickness {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  height: 40px;
}
.stk-borde-thick {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.stk-borde-thickness.disabled { opacity: 0.35; pointer-events: none; }
.stk-borde-thickness.disabled .stk-borde-thick { cursor: default; }
.stk-borde-colors.disabled { opacity: 0.35; pointer-events: none; }
.stk-borde-colors.disabled .stk-borde-swatch { cursor: default; }
.stk-borde-thick:hover:not(.active) { color: rgba(255,255,255,0.85); }
.stk-borde-thick.active { background: #fff; color: #000; font-weight: 600; }

/* Color swatches */
.stk-borde-colors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  row-gap: 12px;
}
.stk-borde-swatch {
  width: 100%;
  max-width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  justify-self: center;
  align-self: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform .12s, box-shadow .12s;
}
.stk-borde-swatch:hover { transform: scale(1.1); }
.stk-borde-swatch.active { box-shadow: 0 0 0 3px #2a2a2c, 0 0 0 5px rgba(255,255,255,0.6); }
.stk-borde-swatch[data-white="1"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.stk-borde-swatch[data-white="1"].active { box-shadow: 0 0 0 3px #2a2a2c, 0 0 0 5px rgba(255,255,255,0.6); }


/* ═══ GROSOR PANEL — opens LEFT of button, caret points RIGHT ═══ */
#stk-grosor-panel {
  display: none;
  position: absolute !important;
  right: 148px !important;
  left: auto !important;
  top: 549px !important;
  overflow: visible !important;
  z-index: 60 !important;
  width: 200px !important;
  height: auto;
  max-height: 85vh;
  overflow: visible;
  background: #2a2a2c;
  z-index: 50;
  border: none;
  border-radius: 18px;
  padding: 0 0 28px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  cursor: default;
  user-select: none;
}
#stk-grosor-panel.open { display: block; }

/* Caret apunta al centro del botón */
#stk-grosor-panel::before {
  content: "";
  position: absolute;
  top: 30px;
  right: -10px;
  left: auto;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #2a2a2c;
  filter: drop-shadow(2px 0 3px rgba(0,0,0,0.2));
  z-index: 1;
}

/* Grosor header */
.stk-grosor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: none;
  margin-bottom: 16px;
}
.stk-grosor-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
#stk-grosor-close {
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.42) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 10px !important;
  margin: -10px !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
}
#stk-grosor-close:hover { color: rgba(255,255,255,0.7) !important; }

/* Grosor section */
.stk-grosor-section { padding: 0 22px 4px; }
.stk-grosor-thickness {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 0;
  height: 50px;
}
.stk-grosor-thick {
  flex: 1;
  height: auto !important;
  align-self: stretch !important;
  background: transparent !important;
  border: none !important;
  border-radius: 10px !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  min-width: 0 !important;
}
.stk-grosor-thick:hover { color: #fff !important; }
.stk-grosor-thick.active {
  background: #fff !important;
  border-color: #fff !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}


/* ═══ ICON STATES via :has() — pure CSS, no JS ═══ */
/* Panel abierto → icono rojo */
.stk-canvas-area:has(#stk-borde-panel.open) #stk-borde-float-btn svg path { fill: #ff3b30 !important; }
.stk-canvas-area:has(#stk-grosor-panel.open) #stk-grosor-float-btn svg path { fill: #ff3b30 !important; }
.stk-canvas-area:has(#stk-clipart-panel.open) #stk-clipart-float-btn svg path { fill: #ff3b30 !important; }
.stk-canvas-area:has(#stk-text-panel[style*="block"]) #stk-text-float-btn svg path { fill: #ff3b30 !important; }

#stk-border-controls, #stk-border-colors { display: none !important; }
#stk-editor { background: rgb(216, 216, 216) !important; }
.stk-topbar { background: transparent !important; box-shadow: none !important; border-bottom: none !important; }

/* ═══════════════════════════════════════════
   NOTA TRIGGER BOX + PANEL
   ═══════════════════════════════════════════ */
.stk-qty-info-row {
  background: #eff6ff !important;
  border-radius: 10px !important;
  padding: 20px !important;
  margin: 16px 0 0 0 !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
}
.stk-qty-info-row, .stk-qty-info-row * { text-decoration: none !important; }
.stk-qty-info-row svg { flex-shrink: 0 !important; }
.stk-qty-info-row strong { font-size: 13px !important; font-weight: 600 !important; color: #1a1a1a !important; }

/* Total row */
.stk-price-total { padding-bottom: 25px !important; }

/* Panel footer dark */
.stk-panel-footer {
  background: #29292b !important;
  padding: 35px 26px !important;
  box-shadow: none !important;
}
.stk-panel-footer .stk-price-box { background: #29292b !important; border: none !important; }
.stk-panel-footer .stk-price-line {
  background: #eff6ff !important;
  border-radius: 10px !important;
  border: none !important;
}
.stk-panel-footer .stk-price-line * { color: #1a1a1a !important; }
.stk-panel-footer .stk-price-total {
  background: #29292b !important;
  border: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
}
.stk-panel-footer .stk-price-total * { color: #ffffff !important; }
.stk-panel-footer .stk-price-total span { font-size: 28px !important; font-weight: 400 !important; }
.stk-panel-footer .stk-price-total strong { font-size: 28px !important; font-weight: 800 !important; }

/* Panel nota */
#stk-nota-panel {
  display: none;
  position: absolute !important;
  right: 20px !important;
  bottom: 290px !important;
  left: auto !important;
  top: auto !important;
  width: 330px !important;
  background: #2a2a2c;
  z-index: 50;
  border-radius: 18px;
  padding: 0 0 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.09);
  cursor: default;
  user-select: none;
}
#stk-nota-panel.open { display: block; }
#stk-nota-panel::after {
  content: ""; position: absolute;
  top: 75%; right: -10px;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #2a2a2c;
  filter: drop-shadow(2px 0 3px rgba(0,0,0,0.2));
  z-index: 1;
}
#stk-nota-panel .stk-text-footer { display: block !important; }
#stk-nota-panel textarea {
  cursor: auto !important; user-select: auto !important; pointer-events: auto !important;
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff;
  font-size: 13px !important; font-weight: 400 !important;
  padding: 12px !important; resize: none; outline: none; font-family: inherit;
}
#stk-nota-panel textarea::placeholder { color: rgba(255,255,255,0.35); }
#stk-nota-panel .stk-text-section { padding: 0 22px; margin-bottom: 16px; }
#stk-nota-close { border: none; background: none; font-size: 18px; cursor: pointer; color: rgba(255,255,255,0.42); padding: 10px; margin: -10px; line-height: 1; transition: color .15s; }
#stk-nota-close:hover { color: rgba(255,255,255,0.55); }
#stk-nota-subtitle { display: block; color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 400; padding: 0 22px 12px; line-height: 1.5; }
#stk-nota-done { display: block !important; width: calc(100% - 44px) !important; margin: 0 22px 16px !important; padding: 12px !important; background: #ffffff !important; color: #1a1a1a !important; border: none !important; border-radius: 10px !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.5px !important; cursor: pointer !important; }
#stk-nota-done:hover { background: #f0f0f0 !important; }

/* nota trigger link */
#stk-nota-trigger { cursor: pointer; color: #1a7a4a; text-decoration: underline; font-weight: 500; }
#stk-nota-trigger:hover { color: #15613b; }

#stk-tilt-wrapper.stk-tilt-frozen .stk-shine,
#stk-tilt-wrapper.stk-tilt-frozen .stk-glare,
#stk-tilt-wrapper.stk-tilt-frozen .stk-sparkle { opacity: 0 !important; transition: opacity 0.3s; }
.stk-shine, .stk-glare, .stk-sparkle { transition: opacity 0.3s; }

/* ═══ PRICE LINE BLACK BOX (v3.12) ═══ */
.stk-panel-footer .stk-price-box .stk-price-line {
  background: #000 !important;
  color: #fff !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
  margin: -35px -26px 20px -26px !important;
  border-radius: 0 !important;
  justify-content: center !important;
  gap: 16px !important;
}
.stk-panel-footer .stk-price-box .stk-price-line * {
  color: #fff !important;
}

/* ═══ EDIT BUTTON ICON — active state black, 25px (v3.12) ═══ */
button#stk-edit-float-btn svg {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
}
button#stk-edit-float-btn.stk-edit-active svg,
button#stk-edit-float-btn.stk-edit-active svg path {
  fill: #000 !important;
}

/* Hidden SVG container for clipPath definition */
.stk-edit-clip-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Dark background on canvas area in edit mode */
.stk-canvas-area:has(.stk-editing) {
  background-color: #7e7e7e !important;
}

/* Dark background on editor (covers topbar area) in edit mode */
#stk-editor:has(.stk-editing) {
  background-color: #7e7e7e !important;
}

/* Kill old ::before dim overlay in edit mode */
.stk-canvas-area:has(.stk-editing)::before {
  display: none !important;
}

/* White logo in edit mode */
#stk-editor:has(.stk-editing) .stk-topbar-logo-img {
  filter: brightness(0) invert(1) !important;
}

#stk-stage.stk-editing #stk-tilt-wrapper {
  transform: none !important;
  will-change: auto !important;
}
#stk-stage.stk-editing #stk-laminate-overlay {
  display: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

/* Deshabilitar cambiar imagen en modo edicion */
#stk-editor.stk-editing .stk-topbar-change {
  opacity: 0.3 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

/* Quitar contorno del boton cambiar imagen */
.stk-topbar-change { border: none !important; }

/* Cambiar imagen: sin hover background, cursor pointer */
.stk-topbar-change,
.stk-topbar-change * { cursor: pointer !important; }
.stk-topbar-change:hover { background: transparent !important; }

/* Topbar fondo gris para eliminar linea de contraste */
.stk-topbar { background: rgb(216, 216, 216) !important; }

/* Topbar fondo igual al canvas en modo edicion */
#stk-editor.stk-editing .stk-topbar { background: rgb(126, 126, 126) !important; }
#stk-fondo-panel:not(.open) { display: none !important; }
#stk-fondo-float-btn { display: none; }


/* ══════════════════════════════════════════════════════════
 * LANDING SIDEBAR V2
 * ══════════════════════════════════════════════════════════ */
#stk-landing-panel > .stk-panel-scroll { padding: 0; overflow: visible; flex: none; }
#stk-landing-panel .stk-section { margin-bottom: 28px; }
#stk-landing .stk-upload-btn { border-radius: 10px; }
#stk-l-qty-table::after { content: ''; display: block; height: 12px; }

body.stk-editor-open #content > .elementor > .elementor-element ~ .elementor-element { display: none !important; }
body.stk-editor-open #content .e-con { padding-top: 0 !important; padding-bottom: 0 !important; }
body.stk-editor-open .stk-editor-grid {
  height: calc(100dvh - 64px) !important;
}
body.admin-bar.stk-editor-open .stk-editor-grid {
  height: calc(100dvh - 96px) !important;
}
body.stk-editor-open #stk-editor { min-height: 100dvh !important; }

body.stk-editor-open #content,
body.stk-editor-open #primary,
body.stk-editor-open #main { height: 100dvh !important; min-height: 100dvh !important; overflow: hidden !important; }