/* IMPRESIONO · modo pack (negro · amarillo · blanco) */
.icd-packbox { --y: #ffd20a; --k: #0b0b0b; margin: 18px 0; color: #fff; }
.icd-packbox__head { background: linear-gradient(135deg, #ffd20a 0%, #ffe25c 100%); color: var(--k); border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden; }
.icd-packbox__head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(0,0,0,.06); }
.icd-packbox__tag { display: inline-block; background: var(--k); color: var(--y); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.icd-packbox__title { margin: 8px 0 2px; font-size: 1.5em; font-weight: 900; line-height: 1.15; }
.icd-packbox__price { margin: 0; font-size: 1.6em; font-weight: 900; }
.icd-packbox__price .amount, .icd-packbox__price bdi { color: var(--k) !important; }
.icd-packbox__price small { font-size: .5em; font-weight: 700; }
.icd-packbox__inc { margin: 6px 0 0; font-size: .9em; }
.icd-packbox__err { color: #ff8a80; }
.icd-packform { margin-top: 16px; }
.icd-packform__step { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9em; margin: 18px 0 10px; }
.icd-packform__step span { width: 26px; height: 26px; border-radius: 50%; background: var(--y); color: var(--k); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.icd-packrow { background: #141414; border: 1px solid #262626; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.icd-packrow__head { display: flex; align-items: center; gap: 6px; font-size: .85em; margin-bottom: 8px; }
.icd-packrow__lbl { color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; }
.icd-packrow__name { color: var(--y); font-weight: 800; }
.icd-packrow__rm { margin-left: auto; background: transparent; border: 1px solid #3a3a3a; color: #cfcfcf; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.icd-packrow__rm:hover { border-color: #ff8a80; color: #ff8a80; }
.icd-packrow__colors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.icd-packrow__dot { width: 34px; height: 34px; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: transparent; cursor: pointer; }
.icd-packrow__dot span { display: block; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(#e33, #fd0, #3c3, #39f, #c3c, #e33); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.icd-packrow__dot.is-active { border-color: var(--y); }
.icd-packrow__dot:disabled { opacity: .25; cursor: not-allowed; }
.icd-packrow__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.icd-packrow__size { display: grid; gap: 4px; text-align: center; color: #fff; font-weight: 800; font-size: .85em; margin: 0; }
.icd-packrow__size input { width: 100%; box-sizing: border-box; text-align: center; background: #0b0b0b; color: #fff; border: 1px solid #3a3a3a; border-radius: 8px; padding: 9px 4px; font-size: 1em; -moz-appearance: textfield; }
.icd-packrow__size input::-webkit-outer-spin-button, .icd-packrow__size input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.icd-packrow__size input:focus { outline: 2px solid var(--y); border-color: transparent; }
.icd-packrow__size.is-na { opacity: .3; }
.icd-packform__addcolor { background: transparent; border: 1px dashed #5a5a5a; color: #e6e6e6; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 700; width: 100%; }
.icd-packform__addcolor:hover { border-color: var(--y); color: var(--y); }
.icd-packform__counter { margin-top: 14px; }
.icd-packform__bar { height: 10px; background: #222; border-radius: 999px; overflow: hidden; }
.icd-packform__bar span { display: block; height: 100%; width: 0; background: var(--y); transition: width .25s; }
.icd-packform__counter p { margin: 6px 0 0; font-weight: 800; color: #cfcfcf; }
.icd-packform.is-complete .icd-packform__counter p { color: var(--y); }
.icd-packform.is-over .icd-packform__counter p { color: #ff8a80; }
.icd-packform.is-over .icd-packform__bar span { background: #ff8a80; }
.icd-packform .icd-custom { max-width: none; margin-top: 0; }
.icd-packform .icd-zone input:disabled ~ .icd-zone__box { opacity: 1; }
.icd-packform__submit { margin-top: 18px !important; width: 100%; min-height: 54px; font-size: 1em !important; }
.icd-packform__submit:disabled { opacity: .45 !important; cursor: not-allowed; }
.icd-pack-qty { display: inline-block; min-width: 40px; text-align: center; font-weight: 800; }

/* Colores con foto de la prenda (como miniaturas) */
.icd-packrow__colors { gap: 8px; }
.icd-packrow__dot { position: relative; }
.icd-packrow__dot.has-img { width: 58px; height: 58px; padding: 2px; border-radius: 10px; background: #fff; border: 2px solid #2c2c2c; }
.icd-packrow__dot.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 7px; }
.icd-packrow__dot.has-img.is-active { border-color: var(--y); box-shadow: 0 0 0 2px var(--y); }
.icd-packrow__dot em { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #fff; color: #0b0b0b; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 3; }
.icd-packrow__dot:hover em, .icd-packrow__dot:focus-visible em { opacity: 1; }
.icd-packform__note { width: 100%; box-sizing: border-box; background: #141414; color: #fff; border: 1px solid #2c2c2c; border-radius: 12px; padding: 10px 12px; font: inherit; }
.icd-packform__note:focus { outline: 2px solid var(--y); border-color: transparent; }

/* Foto de la prenda encima de la paleta de colores */
.icd-packform__preview { margin: 4px 0 14px; padding: 12px; background: #fff; border-radius: 16px; text-align: center; position: relative; }
.icd-packform__preview img { display: block; width: 100%; max-width: 340px; aspect-ratio: 1; object-fit: contain; margin: 0 auto; transition: opacity .2s; }
.icd-packform__preview figcaption { position: absolute; left: 12px; bottom: 12px; background: #0b0b0b; color: #ffd20a; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.icd-packform__preview figcaption:empty { display: none; }

/* Barra fija con el precio total del pack */
.icd-packbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 9990; width: calc(100% - 24px); max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: #0b0b0b; border: 2px solid #ffd20a; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.6); color: #fff; box-sizing: border-box; }
.icd-packbar__info { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; }
.icd-packbar__title { grid-column: 1 / -1; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icd-packbar__total { color: #ffd20a; font-size: 1.45em; font-weight: 900; line-height: 1.1; }
.icd-packbar__count { font-size: 12px; color: #cfcfcf; font-weight: 700; }
.icd-packbar__bar { grid-column: 1 / -1; height: 4px; background: #262626; border-radius: 2px; overflow: hidden; }
.icd-packbar__bar span { display: block; height: 100%; width: 0; background: #ffd20a; transition: width .25s; }
.icd-packbar button { flex: none; border: 0; border-radius: 12px; background: #262626; color: #fff; font-weight: 800; font-size: 13px; padding: 12px 14px; cursor: pointer; max-width: 46%; line-height: 1.15; }
.icd-packbar.is-complete button { background: #ffd20a; color: #0b0b0b; }
body.icd-has-packbar { padding-bottom: 110px; }
@media (max-width: 760px) { .icd-packbar { bottom: 82px; } body.icd-has-packbar { padding-bottom: 170px; } }

/* Página del pack: sin galería arriba, solo la foto encima de la paleta */
.icd-pack-page .woocommerce-product-gallery, .icd-pack-page .icd-pack-gallery { display: none !important; }
.icd-pack-page div.product .summary, .icd-pack-page div.product div.summary { float: none !important; width: 100% !important; max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.icd-pack-excerpt { clear: both; max-width: 760px; margin: 24px auto; color: #d6d6d6; }
.icd-pack-cats { clear: both; margin: 30px 0 10px; }
/* Botones de categoría dentro de la columna del pack: 3 por fila, sin el botón ancho */
.icd-pack-cats .icd-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px; }
.icd-pack-cats .icd-cats__grid > .icd-cat:first-child { grid-column: auto !important; }
.icd-pack-cats .icd-cat__link { aspect-ratio: 1 / 1 !important; height: auto !important; }
.icd-pack-cats .icd-cat__card { width: 44% !important; left: 28% !important; top: 14% !important; }
.icd-pack-cats .icd-cat__label { font-size: clamp(18px, 2.4vw, 24px); left: 14px; right: 52px; bottom: 14px; }
.icd-pack-cats .icd-cat__go { width: 32px; height: 32px; right: 12px; bottom: 12px; }
@media (max-width: 560px) { .icd-pack-cats .icd-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; } .icd-pack-cats .icd-cat__label { font-size: 18px; } }
