/* DSLC Online Store · Tarjetas de producto del catálogo + vista rápida */
.woocommerce ul.products, .elementor-widget-woocommerce-archive-products ul.products { --pc-verde: #00F0C0; --pc-rojo: #C8102E; --pc-linea: #232323; }

/* Tarjeta */
.woocommerce ul.products li.product {
	position: relative; display: flex !important; flex-direction: column !important; align-items: stretch !important; padding: 0 0 16px !important; margin-bottom: 20px !important;
	overflow: hidden; border: 1px solid var(--pc-linea); border-radius: 14px; background: #0d0d0d; text-align: left !important;
	transition: border-color .25s, transform .25s, box-shadow .25s;
}
.woocommerce ul.products li.product:hover { border-color: rgba(0,240,192,.45); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(0,240,192,.12); }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: flex !important; flex-direction: column; flex: 1 0 auto; width: 100% !important; align-self: stretch; margin: 0 !important; padding: 0 !important; color: inherit; text-decoration: none; }

/* Foto a sangre: misma proporción en todas, sin márgenes */
.woocommerce ul.products li.product a img {
	display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 14px !important;
	background: #f2f2f0; border-radius: 0 !important; transition: transform .6s cubic-bezier(.2,.7,.2,1);
	color: transparent; font-size: 0; /* sin texto alternativo visible si falta la foto */
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { position: relative; }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link::before { content: ""; display: block; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 3; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.22), transparent 30%, transparent 75%, rgba(0,0,0,.25)); }

/* Marca de la pieza sobre la foto */
.dslc-pcard__pieza { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(8,8,8,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 700 10px/1 "Archivo", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }

/* Título, compatibilidad y precio */
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 16px !important; margin: 0 0 8px !important; color: #f2f2ee !important; font-size: 13.5px !important; font-weight: 700 !important; line-height: 1.35 !important; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 3); }
.dslc-pcard__compat { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 5px 10px 5px 6px; border: 1px solid #262626; border-radius: 999px; color: #cfcfc9; font-size: 11.5px; letter-spacing: .06em; align-self: flex-start; }
.woocommerce ul.products li.product .dslc-pcard__compat img { width: 18px !important; height: 18px !important; aspect-ratio: auto; margin: 0 !important; object-fit: contain; background: none; filter: brightness(0) invert(1); transform: none !important; }
.woocommerce ul.products li.product .price { margin: auto 16px 0 !important; padding-top: 4px; color: var(--pc-verde) !important; font-size: 18px !important; font-weight: 800 !important; letter-spacing: .01em; }
.woocommerce ul.products li.product .price del { color: #777 !important; font-size: 13px; font-weight: 500; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* Botón de compra */
.woocommerce ul.products li.product .button {
	margin: 14px 16px 0 !important; padding: 13px 14px !important; border: 1px solid #2c2c2c !important; border-radius: 10px !important;
	background: transparent !important; color: #fff !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .14em !important; text-transform: uppercase; text-align: center; transition: background .2s, border-color .2s, color .2s;
}
.woocommerce ul.products li.product .button:hover { background: var(--pc-verde) !important; border-color: var(--pc-verde) !important; color: #04140f !important; }
.woocommerce ul.products li.product .added_to_cart { display: block; margin: 8px 16px 0; color: var(--pc-verde); font-size: 12px; text-align: center; }

/* Vista rápida: botón sobre la foto */
.dslc-pcard__vista {
	position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 0; height: 38px; padding: 0 10px !important;
	border: 1px solid rgba(255,255,255,.18) !important; border-radius: 999px !important; background: rgba(8,8,8,.78) !important; color: #fff !important;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; font: 700 10.5px/1 "Archivo", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
	transition: gap .25s, border-color .2s, background .2s;
}
.dslc-pcard__vista span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease; }
.woocommerce ul.products li.product:hover .dslc-pcard__vista, .dslc-pcard__vista:focus-visible { gap: 8px; border-color: var(--pc-verde) !important; }
.woocommerce ul.products li.product:hover .dslc-pcard__vista span, .dslc-pcard__vista:focus-visible span { max-width: 120px; }
.dslc-pcard__vista:hover { background: var(--pc-verde) !important; color: #04140f !important; }

/* Ventana de vista rápida */
.dslc-qv { position: fixed; inset: 0; z-index: 100080; display: grid; place-items: center; padding: 24px; background: rgba(3,3,3,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; font-family: "Archivo", system-ui, sans-serif; color: #f2f2ee; }
.dslc-qv[hidden] { display: none; }
.dslc-qv.is-abierto { opacity: 1; }
html.dslc-qv-abierto, html.dslc-qv-abierto body { overflow: hidden; }
.dslc-qv__caja { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); width: min(1040px, 100%); max-height: min(720px, calc(100svh - 48px)); overflow: hidden; border: 1px solid #262626; border-radius: 18px; background: #0b0b0b; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(0,240,192,.08); transform: translateY(10px) scale(.99); transition: transform .25s ease; }
.dslc-qv.is-abierto .dslc-qv__caja { transform: none; }
.dslc-qv__caja::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, #00F0C0, transparent); }
.dslc-qv__cerrar { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; border: 1px solid #333 !important; border-radius: 50% !important; background: rgba(12,12,12,.85) !important; color: #fff !important; font-size: 22px; line-height: 1; cursor: pointer; }
.dslc-qv__cerrar:hover { border-color: #00F0C0 !important; }
.dslc-qv__cargando { grid-column: 1 / -1; display: grid; place-items: center; min-height: 360px; color: #8a8a85; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

.dslc-qv__galeria { display: flex; flex-direction: column; background: #f2f2f0; min-height: 0; }
.dslc-qv__foto { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.dslc-qv .dslc-qv__foto img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; aspect-ratio: auto; transition: opacity .2s; }
.dslc-qv__minis { display: flex; gap: 6px; padding: 10px; background: #0b0b0b; border-top: 1px solid #1f1f1f; overflow-x: auto; }
.dslc-qv__minis button { flex: none; width: 64px; height: 48px; padding: 0 !important; border: 0 !important; border-radius: 6px !important; overflow: hidden; background: #f2f2f0 !important; opacity: .5; cursor: pointer; transition: opacity .2s, box-shadow .2s; }
.dslc-qv__minis button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #00F0C0; }
.dslc-qv .dslc-qv__minis img { width: 100% !important; height: 100% !important; object-fit: cover; }

.dslc-qv__info { overflow-y: auto; padding: 34px 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.dslc-qv__kicker { display: flex; align-items: center; gap: 12px; margin: 0; color: #00F0C0; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.dslc-qv__kicker span { width: 34px; height: 1px; background: #00F0C0; box-shadow: 0 0 8px #00F0C0; }
.dslc-qv__titulo { margin: 0; padding-right: 40px; color: #fff; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 800; font-stretch: 112%; line-height: 1.2; }
.dslc-qv__precio { color: #00F0C0; font-size: 26px; font-weight: 800; font-stretch: 112%; }
.dslc-qv__precio del { color: #777; font-size: 16px; font-weight: 500; margin-right: 8px; }
.dslc-qv__precio ins { text-decoration: none; }
.dslc-qv__stock { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 0; color: #bdbdb6; font-size: 12.5px; }
.dslc-qv__stock i { width: 8px; height: 8px; border-radius: 50%; background: #00F0C0; box-shadow: 0 0 8px #00F0C0; }
.dslc-qv__stock--no i { background: #FF5A1F; box-shadow: 0 0 8px #FF5A1F; }

.dslc-qv__compat { display: grid; gap: 8px; padding: 14px; border: 1px solid #222; border-radius: 14px; background: #101010; }
.dslc-qv__et { margin: 0 0 2px; color: #8a8a85; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.dslc-qv__coche { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: #fff !important; text-decoration: none !important; transition: background .2s; }
.dslc-qv__coche:hover { background: #171717; }
.dslc-qv__coche-logo { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 1px solid #2a2a2a; border-radius: 12px; background: #0b0b0b; }
.dslc-qv .dslc-qv__coche-logo img { width: 28px !important; height: 28px !important; object-fit: contain; filter: brightness(0) invert(1); }
.dslc-qv__coche-logo b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.dslc-qv__coche-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dslc-qv__coche-tx strong { font-size: 14px; letter-spacing: .04em; }
.dslc-qv__coche-tx small { color: #bdbdb6; font-size: 12.5px; line-height: 1.35; }
.dslc-qv__coche-flecha { color: #00F0C0; }

.dslc-qv__datos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid #222; border-radius: 12px; background: #222; }
.dslc-qv__datos div { padding: 10px 12px; background: #0e0e0e; }
.dslc-qv__datos dt { margin: 0 0 3px; color: #8a8a85; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.dslc-qv__datos dd { margin: 0; color: #f2f2ee; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }

.dslc-qv__botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.dslc-qv__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid #333; border-radius: 12px; color: #fff !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important; transition: border-color .2s, background .2s; }
.dslc-qv__btn:hover { border-color: #fff; }
.dslc-qv__btn--pri { flex: 1; border-color: #00F0C0; background: #00F0C0; color: #04140f !important; }
.dslc-qv__btn--pri:hover { background: #33f5d0; border-color: #33f5d0; }
.dslc-qv__btn--wa { width: 48px; padding: 0; border-color: #25D366; background: #25D366; }

@media (max-width: 860px) {
	.dslc-qv { padding: 0; align-items: end; }
	.dslc-qv__caja { grid-template-columns: 1fr; max-height: 92svh; border-radius: 18px 18px 0 0; overflow-y: auto; }
	.dslc-qv__galeria { height: 46vw; min-height: 220px; }
	.dslc-qv__info { overflow: visible; padding: 22px 18px 24px; }
	.dslc-qv__datos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 12.5px !important; }
	.dslc-pcard__vista span { display: none; }
	.dslc-pcard__compat { margin: 0 12px 8px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { padding: 0 12px !important; margin-left: 0 !important; margin-right: 0 !important; }
	.woocommerce ul.products li.product .button { margin: 12px 12px 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .woocommerce ul.products li.product, .woocommerce ul.products li.product a img, .dslc-qv, .dslc-qv__caja { transition: none; } }

/* ---- Ajustes 0.2.0: blindaje frente a los estilos de botón de Elementor ---- */
.woocommerce ul.products li.product button.dslc-pcard__vista { width: auto !important; min-width: 38px; height: 38px !important; margin: 0 !important; padding: 0 10px !important; font-size: 10.5px !important; line-height: 1 !important; letter-spacing: .14em !important; box-shadow: none !important; }
.woocommerce ul.products li.product button.dslc-pcard__vista span { display: inline-block; max-width: 0 !important; overflow: hidden; font-size: inherit !important; }
.woocommerce ul.products li.product:hover button.dslc-pcard__vista span, .woocommerce ul.products li.product button.dslc-pcard__vista:focus-visible span { max-width: 120px !important; }
.woocommerce ul.products li.product button.dslc-pcard__vista svg { flex: none; }
.dslc-qv button.dslc-qv__cerrar { width: 40px !important; height: 40px !important; min-width: 40px; max-width: 40px; font-size: 22px !important; line-height: 1 !important; box-shadow: none !important; }
.dslc-qv__minis button { min-width: 64px; box-shadow: none; }
.dslc-qv__datos div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Sin foto: hueco de marca en lugar de una caja rota */
.dslc-sinfoto { display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; aspect-ratio: 4 / 3; margin: 0 0 14px; background: radial-gradient(120% 90% at 50% 0%, #1d1d1d, #0a0a0a 70%); border-bottom: 1px solid #1c1c1c; }
.woocommerce ul.products li.product .dslc-sinfoto img, .dslc-qv .dslc-sinfoto img { width: 46% !important; height: auto !important; aspect-ratio: auto; max-width: 180px !important; margin: 0 !important; object-fit: contain; background: none; opacity: .55; transform: none !important; }
.dslc-sinfoto b { color: #444; font-size: 28px; letter-spacing: .2em; }
.dslc-sinfoto small { color: #6b6b66; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.dslc-qv__foto .dslc-sinfoto { height: 100%; aspect-ratio: auto; margin: 0; }
.dslc-qv__galeria:has(.dslc-sinfoto) { background: #0a0a0a; }

/* Precio a consultar */
.woocommerce ul.products li.product .price .dslc-consultar, .dslc-qv__precio .dslc-consultar { color: #f2f2ee; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dslc-qv__precio .dslc-consultar { font-size: 15px; }

/* Sin precio: enlace pequeño de WhatsApp en lugar del botón grande */
.woocommerce ul.products li.product .dslc-pcard__consultar { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin: 12px 16px 0; padding: 7px 12px; border: 1px solid rgba(37,211,102,.45); border-radius: 999px; color: #25D366 !important; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none !important; transition: background .2s, color .2s; }
.woocommerce ul.products li.product .dslc-pcard__consultar:hover { background: #25D366; color: #04140f !important; }
@media (max-width: 600px) { .woocommerce ul.products li.product .dslc-pcard__consultar { margin: 10px 12px 0; } }

@media (max-width: 600px) { .woocommerce ul.products li.product .price .dslc-consultar { font-size: 11px; letter-spacing: .1em; } }

/* Foto con su fondo real: sin sombreado encima */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link::before { display: none !important; }

/* Vista rápida: la foto entera (sin recortar) y lupa al pasar el ratón */
.dslc-qv .dslc-qv__foto { position: relative; background: #fff; cursor: zoom-in; overflow: hidden; }
.dslc-qv .dslc-qv__foto img { object-fit: contain !important; padding: 18px; transform-origin: 50% 50%; transition: transform .25s ease, opacity .2s; will-change: transform; }
.dslc-qv .dslc-qv__foto.is-zoom img { transform: scale(2.2); transition: transform .08s linear; }
.dslc-qv .dslc-qv__foto::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(10,10,10,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300F0C0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center / 18px; pointer-events: none; transition: opacity .2s; }
.dslc-qv .dslc-qv__foto.is-zoom::after { opacity: 0; }
.dslc-qv .dslc-qv__minis button { background: #fff !important; }
.dslc-qv .dslc-qv__minis img { object-fit: contain !important; }
@media (hover: none) { .dslc-qv .dslc-qv__foto { cursor: default; } .dslc-qv .dslc-qv__foto::after { display: none; } }

/* Relacionados en la ficha: el título (H3) alineado como en el catálogo */
.woocommerce section.related ul.products li.product h3.woocommerce-loop-product__title { margin: 0 0 8px !important; margin-inline: 0 !important; padding: 0 16px !important; color: #f2f2ee !important; font-size: 13.5px !important; font-weight: 700 !important; line-height: 1.35 !important; text-transform: uppercase; }
