/* Composición local sobre los tokens y las fichas AAWP del tema Edredones Cine; en otros temas (Kadence en
   DeDeporte) los tokens caen a la paleta global del tema y, si no hay, a valores neutros. */
.nle-store, .nle-products, .nle-product-preview {
 --nle-paper: var(--ec-paper, var(--global-palette8, #f7f7f7)); --nle-paper-2: var(--ec-paper-2, var(--global-palette7, #ededed));
 --nle-card: var(--ec-card, var(--global-palette9, #fff)); --nle-ink: var(--ec-ink, var(--global-palette3, #1a202c));
 --nle-ink-2: var(--ec-ink-2, var(--global-palette4, #2d3748)); --nle-muted: var(--ec-muted, var(--global-palette5, #6b7280));
 --nle-line: var(--ec-line, rgba(0, 0, 0, .12)); --nle-amber: var(--ec-amber, var(--global-palette1, #2b6cb0));
 --nle-sans: var(--ec-sans, var(--global-body-font-family, system-ui, sans-serif)); --nle-radius: var(--ec-radius, 4px);
 --nle-wrap: var(--ec-wrap, 1240px); --nle-gutter: var(--ec-gutter, 1.5rem);
}
/* Botón de Amazon si el tema no define .ec-btn (sin especificidad: el del tema Edredones manda). */
:where(.nle-product-card .ec-btn) { display: inline-block; padding: .6rem 1rem; border-radius: var(--nle-radius); background: var(--nle-amber); color: #fff; font: 600 14px/1.2 var(--nle-sans); text-decoration: none; }
.nle-store [hidden] { display: none !important; }
.nle-store { background: var(--nle-paper); color: var(--nle-ink-2); max-width: var(--nle-wrap); margin: auto; padding: var(--nle-gutter); }
.nle-account, .nle-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nle-gutter); }
.nle-fields { grid-template-columns: 2fr repeat(3, 1fr); }
.nle-store label, .nle-store input, .nle-store select { display: block; width: 100%; }
.nle-store form { margin-block: 2rem; }
.nle-store button { cursor: pointer; }
.nle-store button:disabled { opacity: .5; cursor: wait; }
.nle-carousel { display: flex; overflow-x: auto; gap: 1rem; scroll-snap-type: x mandatory; padding-block: 1rem; }
.nle-carousel button { flex: 0 0 auto; scroll-snap-align: start; }
.nle-store [aria-pressed="true"] { border-color: var(--nle-ink); background: var(--nle-paper-2); color: var(--nle-ink); }
.nle-bedroom { background: var(--nle-paper-2); border: 1px solid var(--nle-line); }
.nle-bedroom canvas { display: block; width: 100%; height: clamp(260px, 45vw, 480px); touch-action: pan-y; }
.nle-bedroom p { padding-inline: 1rem; }
.nle-products { display: grid; gap: 1rem; margin-block: 1.5rem; }
.nle-grid-1 { grid-template-columns: 1fr; }
.nle-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nle-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nle-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nle-products .aawp-product { min-width: 0; padding: 1.25rem; }
.nle-products .aawp-product__image { width: 100%; height: 190px; object-fit: contain; }
.nle-products .aawp-product__title { margin-block: 1rem; }
.nle-store .ec-fabrics, .nle-product-model .ec-fabrics { display: flex; flex-wrap: wrap; gap: .5rem; }
.nle-store .ec-chip { border: 1px solid var(--nle-line); border-radius: var(--nle-radius); padding: .65rem 1rem; }
@media (max-width: 768px) { .nle-fields, .nle-account { grid-template-columns: 1fr; } .nle-grid-3, .nle-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .nle-products { grid-template-columns: 1fr; } }

/* Tarjeta inmersiva: patrón catalog-media/catalog-copy de Skins Land, tokens de Edredones. */
.nle-product-card.aawp-product.aawp-product--vertical{position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:390px;aspect-ratio:1/1.45;padding:0;border:1px solid var(--nle-line);border-radius:var(--nle-radius);background:#eef0f2;color:var(--nle-ink);box-shadow:0 8px 20px rgba(38,34,30,.12)}
.nle-product-card .catalog-media{position:absolute;inset:0;overflow:hidden}
.nle-product-card .catalog-media::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,var(--nle-card) 85%);pointer-events:none;z-index:2}
.nle-product-card .nle-product-photo{position:absolute;inset:0;display:block}
.nle-product-card .aawp-product__image{display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center 35%;padding:1rem 1rem 8rem;box-sizing:border-box;background:#fff}
.nle-product-card img[hidden]{display:none!important}
.nle-product-card .nle-product-model{position:absolute;inset:0;margin:0}
.nle-product-card .nle-product-model canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}
.nle-product-card .nle-product-model:not([open]){pointer-events:none}
.nle-product-card .nle-product-model summary{position:absolute;right:12px;top:12px;z-index:5;pointer-events:auto;list-style:none}
.nle-product-card summary::-webkit-details-marker{display:none}
.nle-product-card .nle-card-actions{position:absolute;top:54px;right:12px;z-index:5;display:flex;flex-direction:column;gap:6px;margin:0}
.nle-product-card .nle-icon-button,.nle-product-card .nle-product-model .nle-card-actions .nle-icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;padding:8px;box-sizing:border-box;border:1px solid var(--nle-line);border-radius:var(--nle-radius);background:var(--nle-card);color:var(--nle-ink);cursor:pointer;line-height:1;text-decoration:none;box-shadow:none}
.nle-product-card .nle-icon-button:hover,.nle-product-card .nle-icon-button:focus-visible,.nle-product-card .nle-card-actions .nle-icon-button.aawp-button:hover,.nle-product-card .nle-card-actions .nle-icon-button.aawp-button:focus-visible{color:var(--nle-amber);border-color:var(--nle-amber);background:var(--nle-card)}
.nle-product-card .nle-icon-button svg{display:block;flex:none;width:18px;height:18px}
.nle-product-card .nle-icon-button [hidden]{display:none!important}
.nle-product-card .catalog-copy{position:absolute;left:16px;right:16px;bottom:16px;display:grid;gap:6px;z-index:3;pointer-events:none}
.nle-product-card .catalog-copy a,.nle-product-card .catalog-copy button{pointer-events:auto}
.nle-product-card .catalog-meta{margin:0;font:600 11px/1.3 var(--nle-sans);letter-spacing:.07em;text-transform:uppercase;color:var(--nle-amber)}
.nle-product-card .aawp-product__title{margin:0;font:600 15px/1.4 var(--nle-sans);color:var(--nle-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nle-product-card .aawp-product__title a{text-decoration:none;color:inherit}
.nle-product-card .nle-card-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.nle-product-card .catalog-price{margin:0;display:grid;gap:2px;text-align:right;font:700 23px/1.2 var(--nle-sans);font-variant-numeric:tabular-nums;color:var(--nle-ink)}
.nle-product-card .catalog-price del{font-size:13px;font-weight:400;color:var(--nle-muted)}
.nle-product-card .catalog-price .catalog-meta{font-size:10px}
.nle-product-card .nle-product-info{position:absolute;top:12px;left:12px;right:12px;z-index:6;margin:0;pointer-events:none}
.nle-product-card .nle-product-info summary{pointer-events:auto;list-style:none;width:34px}
.nle-product-card .nle-product-info>div{pointer-events:auto;margin-top:8px;padding:14px;background:var(--nle-card);border:1px solid var(--nle-line);font:12px/1.6 var(--nle-sans);max-height:240px;overflow:auto}
.nle-product-card .nle-product-info p{margin:0 0 .6rem}
.nle-grid-1 .nle-product-card{width:100%;max-width:560px;justify-self:center}
.nle-product-preview{max-width:620px}
.nle-product-preview .nle-product-card.aawp-product.aawp-product--vertical{aspect-ratio:1/1.12;min-height:540px}
@media(max-width:480px){.nle-product-card .nle-icon-button{width:40px;height:40px;min-height:40px}.nle-product-card .nle-card-actions{top:60px}.nle-product-preview .nle-product-card.aawp-product.aawp-product--vertical{min-height:460px}.nle-product-card .nle-product-info summary{width:40px}}

.nle-product-card .nle-interaction-mobile{display:none}
@media(max-width:768px),(hover:none) and (pointer:coarse){
 .nle-product-card .nle-product-model canvas,.nle-bedroom canvas{pointer-events:none;touch-action:pan-y pinch-zoom}
 .nle-product-card .nle-interaction-desktop{display:none}
 .nle-product-card .nle-interaction-mobile{display:inline}
 .nle-product-card .nle-product-model .nle-card-actions .nle-icon-button{width:40px;height:40px;min-height:40px}
}

.nle-product-card .nle-material-detail-badge{position:absolute;left:12px;bottom:calc(var(--nle-card-copy-height,130px) + 36px);z-index:4;max-width:calc(100% - 24px);padding:6px 8px;background:var(--nle-card);color:var(--nle-muted);font:11px/1.4 var(--nle-sans);pointer-events:none}
.nle-product-card .nle-material-detail-badge[hidden]{display:none!important}
.nle-product-card .nle-card-actions .nle-icon-button:disabled{opacity:.6;cursor:wait}

.nle-product-card .nle-card-actions .nle-icon-button[aria-pressed="true"]{color:var(--nle-amber);border-color:var(--nle-amber);background:var(--nle-paper-2)}

.nle-product-card .catalog-price [hidden]{display:none!important}
.nle-product-card .catalog-price .ec-btn{padding-inline:16px;letter-spacing:0;white-space:normal;text-align:center}

/* Comparar precios: el mismo producto en varias tiendas (Amazon y Awin). */
.nle-offers{margin-top:.6rem;border-top:1px solid rgba(0,0,0,.08);padding-top:.5rem}
.nle-offers .catalog-meta{margin:0 0 .3rem}
.nle-offers ul{list-style:none;margin:0;padding:0}
.nle-offers li{display:flex;justify-content:space-between;gap:.5rem;font-size:.9em;padding:.15rem 0}
.nle-offers li a{text-decoration:underline;text-underline-offset:2px}
.nle-offers li:first-child span{font-weight:600}
