/* IMPRESIONO · círculos de color y botones de talla (fondo negro · amarillo · blanco) */
.icd-sw-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; clip: rect(0 0 0 0); }
.single-product table.variations, .single-product table.variations tbody, .single-product table.variations tr,
.single-product table.variations th, .single-product table.variations td { display: block; width: 100%; text-align: left; }
.single-product table.variations th.label { padding: 0 0 8px; }
.single-product table.variations td.value { padding: 0 0 18px; }
.icd-sw__chosen { color: #ffd20a; font-weight: 700; text-transform: none; letter-spacing: 0; margin-left: 2px; }
.icd-sw { display: flex; flex-wrap: wrap; gap: 10px; }

/* Color */
.icd-sw--color .icd-sw__item { position: relative; width: 38px; height: 38px; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .15s, transform .15s; }
.icd-sw--color .icd-sw__item:hover { border-color: #8a8a8a; transform: translateY(-1px); }
.icd-sw--color .icd-sw__item.is-active { border-color: #ffd20a; }
.icd-sw--color .icd-sw__item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.icd-sw__dot { display: block; width: 100%; height: 100%; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.icd-sw__dot.is-light { box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.icd-sw__dot.is-unknown { background: conic-gradient(#e33, #fd0, #3c3, #39f, #c3c, #e33); }
.icd-sw__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: #fff; color: #0b0b0b; font-size: 12px; font-weight: 700;
	white-space: nowrap; padding: 5px 9px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; z-index: 5; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.icd-sw__tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; }
.icd-sw--color .icd-sw__item:hover .icd-sw__tip, .icd-sw--color .icd-sw__item:focus-visible .icd-sw__tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Talla */
.icd-sw--size .icd-sw__item { min-width: 52px; height: 42px; padding: 0 12px; background: #161616; color: #fff; border: 1px solid #3a3a3a; border-radius: 6px;
	font-weight: 700; font-size: 14px; cursor: pointer; letter-spacing: .02em; transition: border-color .15s, background .15s; }
.icd-sw--size .icd-sw__item:hover { border-color: #ffd20a; }
.icd-sw--size .icd-sw__item.is-active { background: #ffd20a; border-color: #ffd20a; color: #0b0b0b; }
.icd-sw--size .icd-sw__item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* No disponible con la otra elección */
.icd-sw__item.is-disabled { opacity: .3; cursor: not-allowed; }
.icd-sw--size .icd-sw__item.is-disabled { text-decoration: line-through; }
.icd-sw--color .icd-sw__item.is-disabled .icd-sw__dot { filter: grayscale(.6); }
.icd-sw__dot.is-dark { box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }

/* Una sola foto de la prenda (la del color elegido) y los colores debajo */
.single-product .woocommerce-product-gallery.icd-has-colors .woocommerce-product-gallery__image:not(.is-icd-current) { display: none !important; }
.single-product .woocommerce-product-gallery .flex-control-thumbs, .single-product .woocommerce-product-gallery .flex-direction-nav { display: none !important; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { display: block !important; transform: none !important; width: 100% !important; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image.is-icd-current { width: 100% !important; float: none !important; }
.icd-gallery-colors { margin: 16px 0 24px; padding: 14px 16px; background: #141414; border: 1px solid #262626; border-radius: 14px; }
.icd-gallery-colors__title { margin: 0 0 10px; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .85em; }
.icd-gallery-colors .icd-sw { gap: 8px; }
.single-product table.variations tr.icd-row-moved { display: none !important; }
.single-product .woocommerce-product-gallery.icd-has-colors { display: flex !important; flex-direction: column; }
.single-product .woocommerce-product-gallery.icd-has-colors > .icd-gallery-colors { order: 99; }
.single-product .woocommerce-product-gallery .flex-viewport { height: auto !important; }

/* Ficha en una columna (como los packs): precio → foto → colores → tallas */
.icd-onecol div.product .summary, .icd-onecol div.product div.summary { float: none !important; width: 100% !important; max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.icd-onecol .woocommerce-product-gallery { display: none !important; }
.icd-onecol-preview { margin: 6px 0 14px; padding: 12px; background: #fff; border-radius: 16px; text-align: center; position: relative; }
.icd-onecol-preview img { display: block; width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: contain; margin: 0 auto; }
.icd-onecol-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-onecol-preview figcaption:empty { display: none; }
.icd-gallery-colors--onecol { margin: 0 0 18px; }
.icd-onecol .icd-pack-excerpt { clear: both; max-width: 760px; margin: 24px auto; color: #d6d6d6; }
