/* Casa Elida recipes. Load tokens.css first. No global reset or font download. */
.ce-scope { font-family: var(--ce-font-family); color: var(--ce-color-text-primary); line-height: var(--ce-font-line-body); }
.ce-scope *, .ce-scope *::before, .ce-scope *::after { box-sizing: border-box; }
.ce-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ce-button, .ce-icon-button, .ce-chip, .ce-input, .ce-select { font: inherit; }
.ce-button, .ce-icon-button, .ce-chip { display: inline-flex; align-items: center; justify-content: center; gap: var(--ce-space-8); min-height: 48px; border: var(--ce-stroke-thin) solid transparent; cursor: pointer; text-decoration: none; font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); transition: background-color var(--ce-motion-quick), border-color var(--ce-motion-quick); }
.ce-button { padding: var(--ce-space-12) var(--ce-space-24); border-radius: var(--ce-radius-pill); background: var(--ce-color-action-primary-bg); color: var(--ce-color-action-primary-text); }
.ce-button:hover { background: var(--ce-color-action-primary-hover); }
.ce-button:active { background: var(--ce-color-action-primary-active); }
.ce-button--secondary { background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); border-color: var(--ce-color-border-control); }
.ce-button--secondary:hover, .ce-icon-button:hover { background: var(--ce-color-surface-subtle); border-color: var(--ce-color-text-primary); }
.ce-button--secondary:active { background: var(--ce-color-border-default); }
.ce-button--ink { background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); }
.ce-button--ink:hover { background: var(--ce-color-text-secondary); }
.ce-button:disabled, .ce-icon-button:disabled, .ce-chip:disabled { cursor: not-allowed; opacity: .45; }
.ce-button[aria-busy="true"] { cursor: progress; }
.ce-icon-button { flex: 0 0 48px; width: 48px; border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); border-color: var(--ce-color-border-default); padding: var(--ce-space-12); }
.ce-icon-button svg { width: 22px; height: 22px; }
.ce-icon-button--ink { background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); border-color: transparent; }
.ce-icon-button--ink:hover { background: var(--ce-color-text-secondary); color: var(--ce-color-text-inverse); }
.ce-link { color: var(--ce-color-text-primary); font-weight: var(--ce-font-weight-bold); text-decoration: underline; text-underline-offset: .2em; }
.ce-link:hover { color: var(--ce-color-action-primary-hover); }
button.ce-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.ce-button:focus-visible, .ce-icon-button:focus-visible, .ce-chip:focus-visible, .ce-link:focus-visible, .ce-input:focus-visible, .ce-select:focus-visible, .ce-swatch:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-chip { min-height: var(--ce-size-target-public); padding: var(--ce-space-12) var(--ce-space-20); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-primary); white-space: nowrap; }
.ce-chip:hover { border-color: var(--ce-color-border-control); }
.ce-chip[aria-pressed="true"], .ce-chip[aria-current="page"] { border-color: var(--ce-color-text-primary); box-shadow: inset 0 0 0 1px var(--ce-color-text-primary); }
.ce-field { display: grid; gap: var(--ce-space-8); }
.ce-field label { font-weight: var(--ce-font-weight-bold); font-size: var(--ce-font-size-sm); }
.ce-input, .ce-select { box-sizing: border-box; width: 100%; min-height: 48px; padding: var(--ce-space-12) var(--ce-space-16); border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); }
.ce-input::placeholder { color: var(--ce-color-text-muted); opacity: 1; }
.ce-input[aria-invalid="true"] { border-color: var(--ce-color-status-danger-text); border-width: 2px; }
.ce-field-note { color: var(--ce-color-text-muted); font-size: var(--ce-font-size-sm); }
.ce-field-error { color: var(--ce-color-status-danger-text); font-size: var(--ce-font-size-sm); }
.ce-badge { display: inline-block; align-self: start; padding: var(--ce-space-4) var(--ce-space-8); background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); font-weight: var(--ce-font-weight-bold); font-size: var(--ce-font-size-xs); line-height: var(--ce-font-line-heading); }
.ce-badge--offer { background: var(--ce-color-action-primary-bg); color: var(--ce-color-action-primary-text); }
.ce-badge--yellow { background: var(--ce-color-price-offer-bg); color: var(--ce-color-price-offer-text); }
/* Product tags (colours from the old casaelida.com). Yellow is reserved for promotion, so Novedad is green. */
.ce-badge--novedad { background: var(--ce-color-tag-novedad-bg); color: var(--ce-color-tag-novedad-text); }
.ce-badge--promo { background: var(--ce-color-tag-promo-bg); color: var(--ce-color-tag-promo-text); }
.ce-badge--top { background: var(--ce-color-tag-top-bg); color: var(--ce-color-tag-top-text); }
.ce-badge--limited { background: var(--ce-color-tag-limited-bg); color: var(--ce-color-tag-limited-text); }
.ce-status { display: inline-flex; align-items: center; gap: var(--ce-space-8); padding: var(--ce-space-8) var(--ce-space-12); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-semibold); }
.ce-status--success { color: var(--ce-color-status-success-text); background: var(--ce-color-status-success-bg); }
.ce-status--danger { color: var(--ce-color-status-danger-text); background: var(--ce-color-status-danger-bg); }
.ce-status--warning { color: var(--ce-color-status-warning-text); background: var(--ce-color-status-warning-bg); }
.ce-status--info { color: var(--ce-color-status-info-text); background: var(--ce-color-status-info-bg); }
.ce-code { display: inline-block; flex: none; padding: .3em .35em; white-space: nowrap; word-break: keep-all; background: var(--ce-color-code-bg); color: var(--ce-color-code-text); border: 0; border-radius: var(--ce-radius-code); font-family: var(--ce-font-family); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); line-height: 1; letter-spacing: .02em; font-kerning: none; font-variant-numeric: tabular-nums; font-feature-settings: "ss04"; overflow-wrap: normal; user-select: all; }
.ce-code--sm { font-size: var(--ce-font-size-xs); }
.ce-code--lg { font-size: var(--ce-font-size-body); }
.ce-code-number { text-decoration: underline; text-decoration-thickness: max(1px, .04em); text-underline-offset: .16em; }
@media print { .ce-code-number { text-decoration: none; } }
.ce-price-block { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ce-space-12); }
.ce-price { display: inline-flex; align-items: baseline; gap: var(--ce-space-2); color: var(--ce-color-price-regular); font-weight: var(--ce-font-weight-heavy); line-height: 1; white-space: nowrap; letter-spacing: -.045em; font-variant-numeric: lining-nums; }
/* Currency styles. Default (Precio en línea base): S/ at 46% sitting on the baseline of the figures. Fallbacks: ce-price--joined
   (S/ at the size of the figures, attached to them: S/10) and ce-price--raised (S/ at the top of the figures). */
.ce-price-currency { font-size: .46em; letter-spacing: -.03em; }
.ce-price--joined { gap: 0; }
.ce-price--joined .ce-price-currency { font-size: 1em; letter-spacing: inherit; }
.ce-price--raised .ce-price-currency { align-self: flex-start; padding-top: .18em; }
.ce-price-value { font-size: 1em; }
.ce-price-amount { display: inline-flex; align-items: baseline; gap: inherit; }
/* Promo (yellow) and Rebajas (red) prices: the colour box surrounds only S/ and the figures, never the price basis beside it. */
.ce-price--offer .ce-price-amount { background: var(--ce-color-price-offer-bg); color: var(--ce-color-price-offer-text); border-radius: var(--ce-radius-price); padding: var(--ce-space-8) var(--ce-space-12); }
.ce-price--sale .ce-price-amount { background: var(--ce-color-sale-bg); color: var(--ce-color-sale-text); border-radius: var(--ce-radius-price); padding: var(--ce-space-8) var(--ce-space-12); }
.ce-price--offer:not(:has(.ce-price-amount)) { background: var(--ce-color-price-offer-bg); color: var(--ce-color-price-offer-text); border-radius: var(--ce-radius-price); padding: var(--ce-space-8) var(--ce-space-12); }
.ce-price--sale:not(:has(.ce-price-amount)) { background: var(--ce-color-sale-bg); color: var(--ce-color-sale-text); border-radius: var(--ce-radius-price); padding: var(--ce-space-8) var(--ce-space-12); }
.ce-price--offer, .ce-price--sale { gap: var(--ce-space-4); }
.ce-price--inverse { color: var(--ce-color-price-inverse); }
/* Price basis (Base del precio): short text after the price that says what it covers, bold and leaning to the top like a superscript.
   Two kinds: the unit (“cada uno”, short form “c/u”: a price for one piece) and the presentation (“/pack de 12”, “/par”: the selling
   format the price is for). The unit shows its short form when the card or block is narrow. */
.ce-price-basis, .ce-price-unit, .ce-price-presentation, .ce-price-pack { align-self: flex-start; margin-left: var(--ce-space-4); padding-top: .16em; font-size: max(var(--ce-font-size-sm), .34em); font-weight: var(--ce-font-weight-bold); letter-spacing: normal; line-height: var(--ce-font-line-heading); white-space: nowrap; }
.ce-price--offer .ce-price-basis, .ce-price--offer .ce-price-unit, .ce-price--offer .ce-price-presentation, .ce-price--offer .ce-price-pack,
.ce-price--sale .ce-price-basis, .ce-price--sale .ce-price-unit, .ce-price--sale .ce-price-presentation, .ce-price--sale .ce-price-pack { padding-top: calc(var(--ce-space-8) + .16em); color: var(--ce-color-price-regular); }
.ce-price-unit-short { display: none; }
.ce-price-unit--short .ce-price-unit-long { display: none; }
.ce-price-unit--short .ce-price-unit-short { display: inline; }
/* Old price (Precio anterior): “Antes” and the struck previous price, with the red discount label tight around its text. */
.ce-price-history { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ce-space-4); color: var(--ce-color-price-previous); font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); }
.ce-price-history del { font-weight: var(--ce-font-weight-bold); }
.ce-discount, .ce-price-history .ce-badge--offer { display: inline-block; padding: 1px var(--ce-space-4); background: var(--ce-color-action-primary-bg); color: var(--ce-color-action-primary-text); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); line-height: 1.3; }
.ce-product { display: flex; flex-direction: column; min-width: 0; background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); }
.ce-product-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; margin-bottom: var(--ce-size-product-gap-media); }
.ce-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ce-product-media .ce-badge { position: absolute; top: var(--ce-space-8); left: 0; }
.ce-product-media .ce-icon-button { position: absolute; right: 0; bottom: 0; }
/* Product display stack (standard name: Pila de producto). Top to bottom: tag, CE code, NAME, Description, specs, price, note. The gaps are the size.product tokens;
   the price follows the specs at a fixed gap and is never pushed to the bottom of the card. */
.ce-product-info { display: flex; flex-direction: column; align-items: flex-start; gap: 0; flex: 1; }
.ce-product-info .ce-code { margin-bottom: var(--ce-size-product-gap-code); }
.ce-product-heading { display: flex; flex-direction: column; gap: var(--ce-size-product-gap-identity); margin: 0; font: inherit; }
.ce-media-missing { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--ce-color-surface-subtle); color: var(--ce-color-text-muted); font-size: var(--ce-font-size-sm); }
/* Product identity: NAME (uppercase catalogue name), Description (Title Case, 1px larger at 16px), specs (lowercase).
   Set --ce-product-text on any container to scale all three together. */
.ce-product-name, .ce-product-description, .ce-product-specs { max-width: 100%; margin: 0; overflow-wrap: anywhere; }
.ce-product-name { font-size: calc(var(--ce-product-text, 1rem) * var(--ce-font-ratio-name)); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); letter-spacing: .01em; }
.ce-product-description { font-size: var(--ce-product-text, 1rem); font-weight: var(--ce-font-weight-regular); line-height: var(--ce-font-line-heading); color: var(--ce-color-text-secondary); }
.ce-product-specs { font-size: calc(var(--ce-product-text, 1rem) * .875); line-height: var(--ce-font-line-heading); color: var(--ce-color-text-muted); }
.ce-product-info .ce-product-specs { margin-top: var(--ce-size-product-gap-identity); }
.ce-product-info .ce-price-block, .ce-product-info .ce-store-note { margin-top: var(--ce-size-product-gap-price); }
.ce-product-info .ce-stock { margin-top: var(--ce-size-product-gap-note); }
.ce-product-info .ce-variant-more { margin-top: var(--ce-space-16); }
.ce-product .ce-price { font-size: 44px; }
.ce-swatches { display: flex; gap: var(--ce-space-8); padding: var(--ce-space-8) 0; }
.ce-swatch { width: 28px; height: 28px; border-radius: var(--ce-radius-pill); border: var(--ce-stroke-thin) solid var(--ce-color-border-control); background: var(--ce-color-surface-subtle); cursor: pointer; padding: 0; }
.ce-swatch[aria-pressed="true"] { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr)); column-gap: var(--ce-space-16); row-gap: var(--ce-space-48); }
.ce-callout { display: grid; grid-template-columns: 35% minmax(0, 1fr); align-items: center; gap: var(--ce-space-12); padding: var(--ce-space-20); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); border-radius: var(--ce-radius-callout); }
.ce-callout img { width: 100%; height: 100%; max-height: 160px; object-fit: contain; }
.ce-callout h3 { margin: var(--ce-space-8) 0; font-size: var(--ce-font-size-body); line-height: var(--ce-font-line-heading); }
.ce-callout .ce-price { font-size: 48px; }
.ce-callout .ce-product-specs { margin-bottom: var(--ce-space-8); }
.ce-photo-panel { position: relative; isolation: isolate; overflow: hidden; color: var(--ce-color-text-inverse); background: var(--ce-color-surface-inverse); }
.ce-photo-panel > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ce-photo-panel::after { position: absolute; z-index: 0; inset: 0; content: ''; background: linear-gradient(180deg, transparent 30%, var(--ce-color-overlay)); pointer-events: none; }
.ce-photo-content { position: absolute; z-index: 1; bottom: 8%; left: 8%; right: 8%; }
.ce-photo-content h3 { margin: var(--ce-space-8) 0; font-size: var(--ce-font-size-heading); line-height: var(--ce-font-line-heading); }
.ce-photo-content p { margin: var(--ce-space-8) 0 var(--ce-space-16); }
.ce-photo-content .ce-price { font-size: clamp(48px, 7vw, 96px); }
.ce-photo-content--top { top: 10%; bottom: auto; }
.ce-photo-panel--top::after { background: linear-gradient(180deg, var(--ce-color-overlay), transparent 80%); }
/* Campaign surfaces default to action red, which carries small white text at AA; set --ce-campaign-surface to brand red only for large text. */
.ce-campaign { background: var(--ce-campaign-surface, var(--ce-color-action-primary-bg)); color: var(--ce-campaign-text, var(--ce-color-action-primary-text)); }
.ce-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--ce-font-size-sm); }
.ce-table th, .ce-table td { padding: var(--ce-space-16); border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); vertical-align: top; }
.ce-table th { font-weight: var(--ce-font-weight-bold); background: var(--ce-color-surface-subtle); }
/* Product information on photography and in lists. */
.ce-specs { display: grid; gap: var(--ce-space-4); margin: 0; font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); }
.ce-spec { display: flex; align-items: center; gap: var(--ce-space-8); }
.ce-spec dt { display: inline-flex; flex: 0 0 auto; }
.ce-spec dt svg { width: 18px; height: 18px; }
.ce-spec dd { margin: 0; overflow-wrap: anywhere; }
.ce-availability { margin: 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-semibold); line-height: var(--ce-font-line-heading); }
.ce-callout--bubble { position: relative; overflow: visible; }
.ce-callout--bubble::before { position: absolute; bottom: calc(100% - 1px); right: 12%; width: 44px; height: 40px; content: ''; background: inherit; clip-path: path('M0 40 Q30 36 40 0 Q44 20 44 40 Z'); }
.ce-tagged-media { position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; }
.ce-tagged-media > img { display: block; width: 100%; height: auto; }
.ce-hotspot { position: absolute; z-index: 1; left: var(--ce-x, 50%); top: var(--ce-y, 50%); transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; padding: 0; border-radius: var(--ce-radius-pill); background: var(--ce-color-marker-bg); color: var(--ce-color-marker-text); font-family: var(--ce-font-family); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); line-height: 1; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.ce-hotspot::after { position: absolute; inset: -6px; content: ''; border-radius: inherit; }
.ce-hotspot--inline { position: static; transform: none; flex: 0 0 auto; width: 24px; height: 24px; font-size: var(--ce-font-size-xs); cursor: default; }
.ce-hotspot--inline::after { content: none; }
.ce-hotspot:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); box-shadow: 0 0 0 calc(var(--ce-stroke-offset) + var(--ce-stroke-focus) + 2px) var(--ce-color-surface-canvas); }
/* Web pins: a dot on the photo that opens a product card on hover, focus or tap. The lettered .ce-hotspot is the static
   variant for media that cannot hover (social posts, print, share images); the TagList below repeats every product. */
/* The pin has no stacking context of its own, so every dot stays above every card and a neighbouring dot is never covered. */
.ce-pin { position: absolute; left: var(--ce-x, 50%); top: var(--ce-y, 50%); width: 0; height: 0; }
.ce-pin-dot { position: absolute; z-index: 3; top: 0; left: 0; display: grid; place-items: center; width: var(--ce-size-marker); height: var(--ce-size-marker); padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: var(--ce-radius-pill); background: var(--ce-color-marker-bg); box-shadow: 0 0 0 2px var(--ce-color-surface-canvas); cursor: pointer; transition: transform var(--ce-motion-quick); }
.ce-pin-dot::before { width: 8px; height: 8px; content: ''; border-radius: var(--ce-radius-pill); background: var(--ce-color-marker-text); }
.ce-pin-dot::after { position: absolute; inset: -8px; content: ''; border-radius: inherit; }
.ce-pin:hover .ce-pin-dot, .ce-pin[data-open] .ce-pin-dot { transform: translate(-50%, -50%) scale(1.12); }
.ce-pin-dot:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: calc(var(--ce-stroke-offset) + 2px); }
/* With large text the card, with room for its focus ring, is never wider than its photo; one taller than the photo is
   limited to the photo's height by placePins() and scrolls (the card is the focusable link, so keyboard users scroll it too). */
.ce-pin-card { position: absolute; z-index: 2; top: 20px; left: -14px; display: grid; grid-template-columns: minmax(0, 1fr) 44px; width: max-content; min-width: min(11rem, 100cqw - 2 * (var(--ce-stroke-focus) + var(--ce-stroke-offset))); max-width: min(17rem, 80cqw); overflow: hidden auto; overscroll-behavior: contain; border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); box-shadow: 0 0 0 1px var(--ce-color-overlay); color: var(--ce-color-text-primary); text-decoration: none; visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity var(--ce-motion-quick), transform var(--ce-motion-quick), visibility 0s linear var(--ce-motion-quick); --ce-product-text: 16px; }
.ce-pin:hover .ce-pin-card, .ce-pin:focus-within .ce-pin-card, .ce-pin[data-open] .ce-pin-card { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.ce-pin--above .ce-pin-card { top: auto; bottom: 20px; transform: translateY(4px); }
.ce-pin--start .ce-pin-card { left: auto; right: -14px; }
.ce-pin:hover .ce-pin-card, .ce-pin:focus-within .ce-pin-card, .ce-pin[data-open] .ce-pin-card { transform: none; }
/* The pin card follows the ProductStack without specs: NAME and Description at the identity gap, then the price, or the
   store note or pending-price message that takes its place, 8px under the Description (the 2px gap plus this margin). */
.ce-pin-text { display: grid; gap: var(--ce-size-product-gap-identity); min-width: 0; padding: var(--ce-space-12) var(--ce-space-16); }
.ce-pin-text .ce-product-name, .ce-pin-text .ce-product-description { display: block; color: var(--ce-color-text-primary); }
.ce-pin-text .ce-product-description { font-weight: var(--ce-font-weight-regular); }
.ce-pin-text .ce-price { font-size: 32px; }
.ce-pin-text :is(.ce-price-block, .ce-store-note, .ce-price-pending) { margin-top: calc(var(--ce-size-product-gap-note) - var(--ce-size-product-gap-identity)); }
.ce-pin-chevron { display: grid; place-items: center; border-left: var(--ce-stroke-thin) solid var(--ce-color-border-default); color: var(--ce-color-text-primary); }
.ce-pin-chevron svg { width: 20px; height: 20px; }
.ce-pin-card:hover .ce-pin-chevron, .ce-pin-card:focus-visible .ce-pin-chevron { background: var(--ce-color-surface-subtle); }
.ce-pin-card:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-feature-tag { position: absolute; z-index: 1; left: var(--ce-x, 50%); top: var(--ce-y, 50%); display: flex; align-items: center; transform: translate(-6px, -50%); max-width: calc(100% - var(--ce-x, 50%) + 6px); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); pointer-events: none; }
.ce-feature-tag::before { flex: 0 0 auto; width: 12px; height: 12px; content: ''; border: var(--ce-stroke-focus) solid var(--ce-color-surface-inverse); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-canvas); }
.ce-feature-tag::after { order: 1; flex: 0 0 auto; width: var(--ce-line, 40px); height: var(--ce-stroke-focus); content: ''; background: var(--ce-color-surface-canvas); box-shadow: 0 0 0 1px var(--ce-color-overlay); }
.ce-feature-tag-label { order: 2; min-width: 0; max-width: var(--ce-tag-width, 16em); overflow-wrap: break-word; padding: var(--ce-space-4) var(--ce-space-12); border-radius: var(--ce-radius-small); background: var(--ce-color-overlay); }
.ce-feature-tag-label strong { color: var(--ce-color-brand-yellow); font-weight: var(--ce-font-weight-heavy); }
.ce-feature-tag--light { color: var(--ce-color-text-primary); }
.ce-feature-tag--light .ce-feature-tag-label { background: var(--ce-color-surface-canvas); }
.ce-feature-tag--light .ce-feature-tag-label strong { color: var(--ce-color-action-primary-bg); }
.ce-feature-tag--above, .ce-feature-tag--below { flex-direction: column-reverse; align-items: center; width: max-content; max-width: min(var(--ce-tag-width, 16em), 100%); }
.ce-feature-tag--above { transform: translate(-50%, calc(-100% + 6px)); }
.ce-feature-tag--below { flex-direction: column; transform: translate(-50%, -6px); }
.ce-feature-tag--above::after, .ce-feature-tag--below::after { order: 1; width: var(--ce-stroke-focus); height: var(--ce-line, 40px); }
.ce-feature-tag--below::before { order: 0; }
.ce-feature-tag--start { max-width: calc(var(--ce-x, 50%) + 6px); transform: translate(calc(-100% + 6px), -50%); }
.ce-feature-tag--start::before { order: 3; }
.ce-feature-tag--start::after { order: 2; }
.ce-feature-tag--start .ce-feature-tag-label { order: 1; }
.ce-detail-inset { position: absolute; z-index: 1; left: var(--ce-x, 80%); top: var(--ce-y, 80%); display: grid; justify-items: center; gap: var(--ce-space-8); width: var(--ce-size, 22%); margin: 0; transform: translate(-50%, -50%); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-semibold); text-align: center; }
.ce-detail-inset img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ce-color-surface-canvas); border-radius: var(--ce-radius-pill); }
.ce-detail-inset figcaption { padding: var(--ce-space-2) var(--ce-space-8); border-radius: var(--ce-radius-small); background: var(--ce-color-overlay); }
.ce-tag-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ce-space-24); margin: 0; padding: var(--ce-space-24) 0 0; list-style: none; }
.ce-tag-item { display: grid; grid-template-columns: 30% minmax(0, 1fr); align-items: start; gap: var(--ce-space-12); scroll-margin-top: var(--ce-space-96); }
.ce-tag-item > img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ce-tag-item-info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ce-space-8); min-width: 0; }
.ce-tag-item-title { display: flex; align-items: flex-start; gap: var(--ce-space-8); margin: 0; font-size: var(--ce-font-size-lead); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ce-tag-item .ce-price { font-size: 40px; }
.ce-tag-item:target { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-space-8); }
@media (min-width: 640px) { .ce-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ce-space-48) var(--ce-space-24); } .ce-tag-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .ce-tag-item + .ce-tag-item { border-left: var(--ce-stroke-thin) solid var(--ce-color-border-default); padding-left: var(--ce-space-24); } }
@media (min-width: 1024px) { .ce-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 480px) { .ce-hotspot { width: var(--ce-size-marker); height: var(--ce-size-marker); font-size: var(--ce-font-size-xs); } .ce-feature-tag { font-size: var(--ce-font-size-xs); } .ce-detail-inset { font-size: var(--ce-font-size-xs); } }
@media (prefers-reduced-motion: reduce) { .ce-button, .ce-chip, .ce-icon-button { transition: none; } }
.ce-product, .ce-tag-item { container-type: inline-size; }
@container (max-width: 13.5rem) { .ce-price-unit-long { display: none; } .ce-price-unit-short { display: inline; } }

/* Casa Elida shared interface elements. Native HTML first: <details>, <dialog>, popover, native inputs.
   Behaviour (opening dialogs, moving between tabs, validation) belongs to the consuming application;
   recipes/behaviors.mjs is an optional reference implementation. */

/* Navigation aids */
.ce-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--ce-space-4) var(--ce-space-8); margin: 0; padding: 0; list-style: none; font-size: var(--ce-font-size-sm); color: var(--ce-color-text-secondary); }
.ce-breadcrumbs li + li::before { content: '/'; margin-right: var(--ce-space-8); color: var(--ce-color-text-muted); }
.ce-breadcrumbs a { color: inherit; }
.ce-breadcrumbs [aria-current] { color: var(--ce-color-text-primary); font-weight: var(--ce-font-weight-semibold); }
.ce-tabs[role="tablist"], .ce-tabs [role="tablist"] { display: flex; gap: var(--ce-space-24); overflow-x: auto; border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-tab { position: relative; flex: 0 0 auto; min-height: 48px; padding: var(--ce-space-12) 0; border: 0; background: none; color: var(--ce-color-text-secondary); font: inherit; font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); cursor: pointer; }
.ce-tab[aria-selected="true"] { color: var(--ce-color-text-primary); }
.ce-tab[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ''; background: var(--ce-color-text-primary); }
.ce-tab:focus-visible, .ce-disclosure > summary:focus-visible, .ce-menu-item:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-tab-panel { padding-block: var(--ce-space-24); }
.ce-disclosure { border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--ce-space-16); min-height: 56px; padding-block: var(--ce-space-16); font-weight: var(--ce-font-weight-bold); cursor: pointer; list-style: none; }
.ce-disclosure > summary::-webkit-details-marker { display: none; }
.ce-disclosure > summary::after { flex: 0 0 auto; width: 10px; height: 10px; content: ''; border-right: var(--ce-stroke-focus) solid currentColor; border-bottom: var(--ce-stroke-focus) solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--ce-motion-quick); }
.ce-disclosure[open] > summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.ce-disclosure-body { padding-bottom: var(--ce-space-24); }

/* Popover, menu and tooltip (HTML popover attribute; anchor with your app if needed) */
.ce-menu { min-width: 200px; margin: 0; padding: var(--ce-space-8) 0; border: var(--ce-stroke-thin) solid var(--ce-color-border-default); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); }
.ce-menu-item { display: flex; align-items: center; gap: var(--ce-space-12); width: 100%; min-height: var(--ce-size-target-public); padding: var(--ce-space-8) var(--ce-space-16); border: 0; background: none; color: inherit; font: inherit; font-size: var(--ce-font-size-sm); text-align: left; text-decoration: none; cursor: pointer; }
.ce-menu-item:hover { background: var(--ce-color-surface-subtle); }
.ce-menu-item[aria-disabled="true"] { color: var(--ce-color-text-muted); cursor: not-allowed; }
.ce-tooltip { max-width: 280px; margin: 0; padding: var(--ce-space-8) var(--ce-space-12); border: 0; border-radius: var(--ce-radius-small); background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-xs); line-height: var(--ce-font-line-heading); }

/* Dialog and drawer (<dialog>; showModal() traps focus, Escape closes) */
.ce-dialog, .ce-drawer { padding: 0; border: 0; background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); font-family: var(--ce-font-family); }
.ce-dialog::backdrop, .ce-drawer::backdrop { background: var(--ce-color-overlay); }
.ce-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border-radius: var(--ce-radius-small); }
.ce-drawer { inset: 0 0 0 auto; width: min(480px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; }
.ce-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: var(--ce-space-16); padding: var(--ce-space-16) var(--ce-space-24); }
.ce-dialog-header h2 { margin: 0; font-size: var(--ce-font-size-title); line-height: var(--ce-font-line-heading); letter-spacing: -.02em; }
.ce-dialog-body { padding: 0 var(--ce-space-24) var(--ce-space-24); overflow: auto; }
.ce-dialog-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ce-space-12); padding: var(--ce-space-16) var(--ce-space-24); border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-drawer[open] { display: flex; flex-direction: column; }
.ce-drawer--start { inset: 0 auto 0 0; }
.ce-drawer .ce-dialog-body { flex: 1; }
@media (max-width: 639px) { .ce-drawer--start { inset: 0 auto 0 0; width: min(360px, 90vw); height: 100vh; max-height: 100vh; border-radius: 0; } .ce-drawer:not(.ce-drawer--start) { inset: auto 0 0; width: 100vw; height: auto; max-height: 90vh; border-radius: var(--ce-radius-callout) var(--ce-radius-callout) 0 0; } }

/* Feedback */
.ce-notice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--ce-space-12); padding: var(--ce-space-16); border-left: var(--ce-stroke-heavy) solid currentColor; background: var(--ce-color-status-info-bg); color: var(--ce-color-status-info-text); font-size: var(--ce-font-size-sm); }
.ce-notice > :not(svg) { color: var(--ce-color-text-primary); }
.ce-notice strong { display: block; }
.ce-notice p { margin: var(--ce-space-4) 0 0; }
.ce-notice--success { background: var(--ce-color-status-success-bg); color: var(--ce-color-status-success-text); }
.ce-notice--warning { background: var(--ce-color-status-warning-bg); color: var(--ce-color-status-warning-text); }
.ce-notice--danger { background: var(--ce-color-status-danger-bg); color: var(--ce-color-status-danger-text); }
/* DemoCue (Aviso de demostración): a bordered note saying that the data and operations are simulated. Appearance only: the
   consumer supplies the words and role="note", and leaves the element out of production output (hiding it is not enough).
   One block form, no modifiers. The 2px border reuses the focus stroke; a word longer than the container breaks inside it. */
.ce-demo-cue { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: var(--ce-space-8); margin: 0; padding: var(--ce-space-8) var(--ce-space-12); border: var(--ce-stroke-focus) solid var(--ce-color-text-primary); color: var(--ce-color-text-primary); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); overflow-wrap: anywhere; }
.ce-toast-region { position: fixed; z-index: var(--ce-layer-toast); right: var(--ce-space-16); bottom: var(--ce-space-16); left: var(--ce-space-16); display: grid; justify-items: center; gap: var(--ce-space-8); pointer-events: none; }
.ce-toast { display: flex; align-items: center; gap: var(--ce-space-16); max-width: 560px; padding: var(--ce-space-12) var(--ce-space-16) var(--ce-space-12) var(--ce-space-20); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-sm); pointer-events: auto; }
.ce-toast .ce-link { color: var(--ce-color-text-inverse); font-weight: var(--ce-font-weight-bold); }
.ce-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--ce-color-border-default); border-top-color: var(--ce-color-text-primary); border-radius: var(--ce-radius-pill); animation: ce-spin .8s linear infinite; }
@keyframes ce-spin { to { transform: rotate(360deg); } }
.ce-skeleton { display: block; min-height: 1em; border-radius: var(--ce-radius-small); background: var(--ce-color-surface-subtle); animation: ce-pulse 1.4s ease-in-out infinite; }
@keyframes ce-pulse { 50% { opacity: .55; } }
.ce-empty { display: grid; justify-items: center; gap: var(--ce-space-12); max-width: 420px; margin-inline: auto; padding: var(--ce-space-48) var(--ce-space-16); text-align: center; }
.ce-empty h2, .ce-empty h3 { margin: 0; font-size: var(--ce-font-size-title); line-height: var(--ce-font-line-heading); }
.ce-empty p { margin: 0; color: var(--ce-color-text-secondary); }
.ce-progress { width: 100%; height: 4px; overflow: hidden; border: 0; border-radius: var(--ce-radius-pill); background: var(--ce-color-border-default); accent-color: var(--ce-color-text-primary); appearance: none; }
.ce-progress::-webkit-progress-bar { background: var(--ce-color-border-default); }
.ce-progress::-webkit-progress-value { background: var(--ce-color-text-primary); }
.ce-progress::-moz-progress-bar { background: var(--ce-color-text-primary); }

/* Forms beyond text inputs */
.ce-check { display: flex; align-items: flex-start; gap: var(--ce-space-12); min-height: var(--ce-size-target-public); padding-block: var(--ce-space-8); font-size: var(--ce-font-size-sm); cursor: pointer; }
.ce-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ce-color-text-primary); }
.ce-switch { display: inline-flex; align-items: center; gap: var(--ce-space-12); min-height: var(--ce-size-target-public); font-size: var(--ce-font-size-sm); cursor: pointer; }
.ce-switch input { position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin: 0; border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-subtle); appearance: none; cursor: pointer; transition: background-color var(--ce-motion-quick); }
.ce-switch input::after { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; content: ''; border-radius: var(--ce-radius-pill); background: var(--ce-color-text-secondary); transition: transform var(--ce-motion-quick); }
.ce-switch input:checked { border-color: var(--ce-color-text-primary); background: var(--ce-color-text-primary); }
.ce-switch input:checked::after { background: var(--ce-color-surface-canvas); transform: translateX(20px); }
.ce-check input:focus-visible, .ce-switch input:focus-visible, .ce-quantity button:focus-visible, .ce-upload:focus-within { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-fieldset { display: grid; gap: var(--ce-space-8); margin: 0; padding: 0; border: 0; }
.ce-fieldset legend { margin-bottom: var(--ce-space-8); padding: 0; font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); }
.ce-input-group { display: flex; align-items: stretch; width: 100%; border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); }
.ce-input-group:focus-within { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-input-group .ce-input { border: 0; outline: none; min-width: 0; }
.ce-input-affix { display: inline-flex; align-items: center; padding-inline: var(--ce-space-12); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-semibold); white-space: nowrap; }
.ce-input--number { font-variant-numeric: tabular-nums; text-align: right; }
.ce-quantity { display: inline-flex; align-items: center; border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-pill); }
.ce-quantity button { display: inline-flex; align-items: center; justify-content: center; width: var(--ce-size-target-public); height: var(--ce-size-target-public); border: 0; border-radius: var(--ce-radius-pill); background: none; color: inherit; font: inherit; font-size: var(--ce-font-size-title); cursor: pointer; }
.ce-quantity button:disabled { color: var(--ce-color-text-muted); cursor: not-allowed; }
.ce-quantity input { width: 3.5ch; border: 0; background: none; font: inherit; font-weight: var(--ce-font-weight-bold); font-variant-numeric: tabular-nums; text-align: center; appearance: textfield; }
.ce-quantity input::-webkit-inner-spin-button { appearance: none; }
.ce-upload { display: grid; justify-items: center; gap: var(--ce-space-8); padding: var(--ce-space-32) var(--ce-space-16); border: var(--ce-stroke-focus) dashed var(--ce-color-border-control); border-radius: var(--ce-radius-small); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); text-align: center; cursor: pointer; }
.ce-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ce-upload strong { color: var(--ce-color-text-primary); text-decoration: underline; }
.ce-combobox { position: relative; }
.ce-listbox { position: absolute; z-index: var(--ce-layer-overlay); top: calc(100% + 4px); right: 0; left: 0; max-height: 320px; margin: 0; padding: var(--ce-space-4) 0; overflow: auto; border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); list-style: none; }
.ce-listbox [role="option"] { display: flex; align-items: center; gap: var(--ce-space-12); min-height: var(--ce-size-target-public); padding: var(--ce-space-8) var(--ce-space-16); font-size: var(--ce-font-size-sm); cursor: pointer; }
.ce-listbox [role="option"][aria-selected="true"], .ce-listbox [role="option"].is-active { background: var(--ce-color-surface-subtle); box-shadow: inset 3px 0 0 var(--ce-color-text-primary); }
.ce-token-list { display: flex; flex-wrap: wrap; gap: var(--ce-space-8); margin: 0; padding: 0; list-style: none; }
.ce-token { display: inline-flex; align-items: center; gap: var(--ce-space-4); min-height: 32px; padding: var(--ce-space-4) var(--ce-space-4) var(--ce-space-4) var(--ce-space-12); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-subtle); font-size: var(--ce-font-size-sm); }
.ce-token button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; border-radius: var(--ce-radius-pill); background: none; cursor: pointer; }
.ce-save-state { display: inline-flex; align-items: center; gap: var(--ce-space-8); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }
.ce-save-state[data-state="dirty"] { color: var(--ce-color-status-warning-text); }
.ce-save-state[data-state="error"] { color: var(--ce-color-status-danger-text); }
.ce-save-state[data-state="saved"] { color: var(--ce-color-status-success-text); }
.ce-pagination { display: grid; justify-items: center; gap: var(--ce-space-12); padding-block: var(--ce-space-32); font-size: var(--ce-font-size-sm); }
.ce-pagination .ce-progress { width: min(240px, 100%); }
@media (prefers-reduced-motion: reduce) { .ce-spinner, .ce-skeleton { animation: none; } .ce-disclosure > summary::after, .ce-switch input, .ce-switch input::after { transition: none; } }

/* Native controls (policy: docs/controls.md). Every field is a native element styled with tokens; none shows the browser default.
   Safety net: a bare control inside a ce-scope still gets Inter and the ink accent (zero specificity, so every recipe wins). */
.ce-scope :where(input, select, textarea, button, meter, progress) { font-family: var(--ce-font-family); accent-color: var(--ce-color-text-primary); }
.ce-input, .ce-select, .ce-textarea { font: inherit; font-size: var(--ce-font-size-body); line-height: var(--ce-font-line-body); transition: border-color var(--ce-motion-quick); }
.ce-textarea { display: block; width: 100%; min-height: 120px; padding: var(--ce-space-12) var(--ce-space-16); border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); resize: vertical; }
.ce-textarea::placeholder { color: var(--ce-color-text-muted); opacity: 1; }
.ce-input:hover:not(:disabled):not([aria-invalid="true"]), .ce-select:hover:not(:disabled), .ce-textarea:hover:not(:disabled) { border-color: var(--ce-color-text-primary); }
.ce-input:focus-visible, .ce-select:focus-visible, .ce-textarea:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-input:disabled, .ce-select:disabled, .ce-textarea:disabled { border-color: var(--ce-color-border-default); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-muted); cursor: not-allowed; }
.ce-input:user-invalid, .ce-select:user-invalid, .ce-textarea:user-invalid, .ce-textarea[aria-invalid="true"] { border-color: var(--ce-color-status-danger-text); border-width: 2px; }
.ce-input[readonly] { background: var(--ce-color-surface-subtle); }
.ce-field[aria-busy="true"] .ce-input, .ce-field[aria-busy="true"] .ce-select { cursor: progress; background: var(--ce-color-surface-subtle); }
/* Date, time, month and week: a native field with the input look; the picker pop-up belongs to the browser. */
.ce-input[type="date"], .ce-input[type="time"], .ce-input[type="datetime-local"], .ce-input[type="month"], .ce-input[type="week"] { color-scheme: light; font-variant-numeric: tabular-nums; }
.ce-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .8; }
.ce-input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
/* File: the native field with the file button drawn as a secondary button. */
.ce-input[type="file"] { padding: var(--ce-space-8) var(--ce-space-12); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }
.ce-input[type="file"]::file-selector-button { margin-right: var(--ce-space-12); padding: var(--ce-space-8) var(--ce-space-16); border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); font: inherit; font-weight: var(--ce-font-weight-bold); cursor: pointer; }
.ce-input[type="file"]::file-selector-button:hover { border-color: var(--ce-color-text-primary); background: var(--ce-color-surface-subtle); }
/* Colour: the swatch fills a square control; the picker pop-up belongs to the browser. */
.ce-color { width: 48px; height: 48px; padding: var(--ce-space-4); border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); cursor: pointer; }
.ce-color::-webkit-color-swatch-wrapper { padding: 0; }
.ce-color::-webkit-color-swatch { border: 0; border-radius: var(--ce-radius-none); }
.ce-color::-moz-color-swatch { border: 0; border-radius: var(--ce-radius-none); }
.ce-color:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-color:disabled { opacity: .45; cursor: not-allowed; }
/* Select. Where the browser supports customizable selects (appearance: base-select) the button and the list are drawn with tokens;
   elsewhere a native select with a token chevron, and the operating system draws the open list (it cannot be restyled reliably). */
.ce-select { appearance: none; padding-right: calc(var(--ce-space-16) * 2 + 10px); background-image: linear-gradient(45deg, transparent 50%, var(--ce-color-text-primary) 50%), linear-gradient(135deg, var(--ce-color-text-primary) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.ce-select[multiple], .ce-select[size]:not([size="1"]) { padding: var(--ce-space-4); background-image: none; cursor: default; }
.ce-select[multiple] option, .ce-select[size]:not([size="1"]) option { min-height: 40px; padding: var(--ce-space-8) var(--ce-space-12); border-radius: var(--ce-radius-small); }
.ce-select[multiple] option:checked, .ce-select[size]:not([size="1"]) option:checked { background: var(--ce-color-text-primary) linear-gradient(0deg, var(--ce-color-text-primary), var(--ce-color-text-primary)); color: var(--ce-color-text-inverse); font-weight: var(--ce-font-weight-bold); }
@supports (appearance: base-select) {
  .ce-select:not([multiple]):not([size]), .ce-select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
  .ce-select:not([multiple]):not([size]) { display: flex; align-items: center; justify-content: space-between; gap: var(--ce-space-12); padding-right: var(--ce-space-16); background-image: none; }
  .ce-select:not([multiple]):not([size])::picker-icon { flex: none; width: 8px; height: 8px; margin-top: -4px; content: ''; border-right: var(--ce-stroke-focus) solid currentColor; border-bottom: var(--ce-stroke-focus) solid currentColor; transform: rotate(45deg); transition: transform var(--ce-motion-quick); }
  .ce-select:not([multiple]):not([size]):open::picker-icon { margin-top: 4px; transform: rotate(-135deg); }
  .ce-select:not([multiple]):not([size])::picker(select) { box-sizing: border-box; margin-top: var(--ce-space-4); padding: var(--ce-space-4) 0; border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); max-height: 320px; }
  .ce-select:not([multiple]):not([size]) option { display: flex; align-items: center; gap: var(--ce-space-12); min-height: var(--ce-size-target-public); padding: var(--ce-space-8) var(--ce-space-16); color: var(--ce-color-text-primary); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-regular); letter-spacing: normal; text-transform: none; cursor: pointer; }
  .ce-select:not([multiple]):not([size]) option:hover, .ce-select:not([multiple]):not([size]) option:focus-visible { background: var(--ce-color-surface-subtle); }
  .ce-select:not([multiple]):not([size]) option:checked { background: var(--ce-color-surface-subtle); box-shadow: inset 3px 0 0 var(--ce-color-text-primary); font-weight: var(--ce-font-weight-bold); }
  .ce-select:not([multiple]):not([size]) option::checkmark { display: none; }
  .ce-select:not([multiple]):not([size]) option:disabled { color: var(--ce-color-text-muted); cursor: not-allowed; }
  .ce-select:not([multiple]):not([size]) optgroup { padding: var(--ce-space-8) var(--ce-space-16) 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); letter-spacing: .1em; text-transform: uppercase; }
}
/* Radio: a native radio drawn as a ring with an ink dot. */
.ce-radio { display: flex; align-items: flex-start; gap: var(--ce-space-12); min-height: var(--ce-size-target-public); padding-block: var(--ce-space-8); font-size: var(--ce-font-size-sm); cursor: pointer; }
.ce-radio input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; appearance: none; border: var(--ce-stroke-focus) solid var(--ce-color-border-control); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-canvas); cursor: pointer; transition: border-color var(--ce-motion-quick); }
.ce-radio input:hover:not(:disabled) { border-color: var(--ce-color-text-primary); }
.ce-radio input:checked { border-color: var(--ce-color-text-primary); background: radial-gradient(circle, var(--ce-color-text-primary) 0 4px, var(--ce-color-surface-canvas) 5px); }
.ce-radio input:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-radio input:disabled, .ce-check input:disabled { opacity: .45; cursor: not-allowed; }
.ce-radio:has(input:disabled), .ce-check:has(input:disabled), .ce-switch:has(input:disabled) { color: var(--ce-color-text-muted); cursor: not-allowed; }
.ce-switch input:hover:not(:disabled), .ce-check input:hover:not(:disabled) { border-color: var(--ce-color-text-primary); }
.ce-switch input:disabled { opacity: .45; cursor: not-allowed; }
.ce-check input[aria-invalid="true"], .ce-radio input[aria-invalid="true"] { outline: var(--ce-stroke-focus) solid var(--ce-color-status-danger-text); outline-offset: 1px; }
/* Range: a native slider with a thin track and an ink thumb. */
.ce-range { display: block; width: 100%; height: 24px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.ce-range::-webkit-slider-runnable-track { height: 4px; border-radius: var(--ce-radius-pill); background: var(--ce-color-border-default); }
.ce-range::-moz-range-track { height: 4px; border-radius: var(--ce-radius-pill); background: var(--ce-color-border-default); }
.ce-range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; appearance: none; border: var(--ce-stroke-focus) solid var(--ce-color-surface-canvas); border-radius: var(--ce-radius-pill); background: var(--ce-color-text-primary); }
.ce-range::-moz-range-thumb { width: 20px; height: 20px; border: var(--ce-stroke-focus) solid var(--ce-color-surface-canvas); border-radius: var(--ce-radius-pill); background: var(--ce-color-text-primary); }
.ce-range:hover::-webkit-slider-thumb { background: var(--ce-color-text-secondary); }
.ce-range:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-range:disabled { opacity: .45; cursor: not-allowed; }
/* Meter: a native gauge; green is good, amber is low, red is critical. */
.ce-meter { display: block; width: 100%; height: 8px; appearance: none; border: 0; border-radius: var(--ce-radius-pill); background: var(--ce-color-border-default); }
.ce-meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: var(--ce-radius-pill); background: var(--ce-color-border-default); }
.ce-meter::-webkit-meter-optimum-value { border-radius: var(--ce-radius-pill); background: var(--ce-color-status-success-text); }
.ce-meter::-webkit-meter-suboptimum-value { border-radius: var(--ce-radius-pill); background: var(--ce-color-status-warning-text); }
.ce-meter::-webkit-meter-even-less-good-value { border-radius: var(--ce-radius-pill); background: var(--ce-color-status-danger-text); }
.ce-meter::-moz-meter-bar { border-radius: var(--ce-radius-pill); background: var(--ce-color-status-success-text); }
.ce-meter:-moz-meter-sub-optimum::-moz-meter-bar { background: var(--ce-color-status-warning-text); }
.ce-meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--ce-color-status-danger-text); }
/* Media: audio and video keep the browser's own controls (they cannot be restyled reliably); the frame, caption and spacing are ours. */
.ce-media { margin: 0; color-scheme: light; }
.ce-media :where(video, audio) { display: block; width: 100%; background: var(--ce-color-surface-subtle); }
.ce-media figcaption { margin-top: var(--ce-space-8); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }
@media (prefers-reduced-motion: reduce) { .ce-select::picker-icon, .ce-radio input, .ce-input, .ce-select, .ce-textarea { transition: none; } }

/* Casa Elida retail recipes: navigation, discovery, product presentation and customer journeys.
   Photography carries the page. Images and cards have square corners; controls are pills. Type is plain and black;
   action red marks the main action and prices stay black or on the yellow offer block. */

/* Page frame ----------------------------------------------------------------------------------------- */
.ce-container { width: min(100% - var(--ce-layout-gutter-mobile) * 2, var(--ce-layout-content)); margin-inline: auto; }
.ce-section { padding-block: var(--ce-space-40); }
.ce-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ce-space-16) var(--ce-space-24); margin-bottom: var(--ce-space-24); }
.ce-section-head h2 { margin: 0; font-size: var(--ce-font-size-title); line-height: var(--ce-font-line-heading); font-weight: var(--ce-font-weight-bold); letter-spacing: -.02em; }
.ce-section-head p { max-width: 60ch; margin: var(--ce-space-8) 0 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }
.ce-skip { position: absolute; z-index: var(--ce-layer-toast); top: var(--ce-space-8); left: var(--ce-space-16); padding: var(--ce-space-12) var(--ce-space-16); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); }
.ce-skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ce-eyebrow { margin: 0; font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); letter-spacing: .1em; text-transform: uppercase; }
.ce-fine-print { margin: var(--ce-space-12) 0 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); line-height: var(--ce-font-line-body); }

/* Scroll containers are positioning contexts, so absolutely positioned content (screen-reader text, buttons)
   stays clipped inside them instead of widening the page. */
.ce-rail, .ce-category-rail, .ce-category-tiles, .ce-filter-chips, .ce-price-points, .ce-gallery { position: relative; }

/* Shared focus treatment for the retail recipes. */
.ce-skip:focus-visible, .ce-product-link:focus-visible, .ce-site-nav a:focus-visible, .ce-site-action:focus-visible, .ce-store-context:focus-visible, .ce-category-link:focus-visible, .ce-category-tile:focus-visible, .ce-tile:focus-visible, .ce-card-link:focus-visible, .ce-arrow-link:focus-visible, .ce-variant-thumbs a:focus-visible, .ce-variant-option:has(input:focus-visible), .ce-choice-card:has(input:focus-visible), .ce-link-row:focus-visible, .ce-nav-list a:focus-visible, .ce-footer-links a:focus-visible, .ce-social-item:focus-visible, .ce-price-point:focus-visible, .ce-rail:focus-visible, .ce-gallery:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-skip:focus-visible, .ce-utility-bar :focus-visible, .ce-tile:focus-visible, .ce-statement :focus-visible { outline-color: var(--ce-color-surface-canvas); box-shadow: 0 0 0 calc(var(--ce-stroke-offset) + var(--ce-stroke-focus)) var(--ce-color-surface-inverse); }

/* Utility bar and store context ---------------------------------------------------------------------- */
.ce-utility-bar { background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-xs); line-height: var(--ce-font-line-heading); }
.ce-utility-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ce-space-16); min-height: 44px; }
.ce-utility-bar p { margin: 0; }
.ce-utility-bar a { color: inherit; }
.ce-store-context { display: inline-flex; align-items: center; gap: var(--ce-space-8); min-height: var(--ce-size-target-public); padding: 0 var(--ce-space-4); border: 0; background: transparent; color: inherit; font: inherit; font-weight: var(--ce-font-weight-semibold); text-align: left; text-decoration: none; cursor: pointer; }
.ce-store-context svg { flex: 0 0 auto; width: 20px; height: 20px; }
.ce-store-context:hover .ce-store-context-name { text-decoration: underline; text-underline-offset: .2em; }
.ce-store-context[aria-busy="true"] { cursor: progress; }
.ce-store-context[aria-busy="true"]::after { width: 12px; height: 12px; content: ''; border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--ce-radius-pill); animation: ce-retail-spin .8s linear infinite; }
.ce-store-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ce-space-4) var(--ce-space-8); margin: 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); }
.ce-store-note strong { color: var(--ce-color-text-primary); }
.ce-store-note .ce-link { display: inline-flex; align-items: center; min-height: var(--ce-size-target-public); }
.ce-store-note[aria-busy="true"] { cursor: progress; }
.ce-price-pending { display: grid; gap: var(--ce-space-8); justify-items: start; padding: var(--ce-space-12) var(--ce-space-16); background: var(--ce-color-surface-subtle); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-semibold); line-height: var(--ce-font-line-heading); }

/* Site header ------------------------------------------------------------------------------------------ */
.ce-site-header { position: relative; z-index: var(--ce-layer-sticky); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); }
.ce-site-header--sticky { position: sticky; top: 0; }
.ce-site-header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand . actions" "search search search"; align-items: center; gap: var(--ce-space-12) var(--ce-space-16); padding-block: var(--ce-space-12) var(--ce-space-16); }
.ce-site-brand { grid-area: brand; display: inline-flex; }
.ce-site-brand img { display: block; width: auto; height: 36px; }
.ce-site-nav { grid-area: nav; display: none; }
.ce-site-nav ul { display: flex; gap: var(--ce-space-4); margin: 0; padding: 0; list-style: none; }
.ce-site-nav a { display: inline-flex; align-items: center; min-height: var(--ce-size-target-public); padding: 0 var(--ce-space-12); border-radius: var(--ce-radius-pill); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); text-decoration: none; white-space: nowrap; }
.ce-site-nav a:hover, .ce-site-nav a[aria-current] { color: var(--ce-color-text-primary); text-decoration: underline; text-underline-offset: .35em; }
.ce-search { grid-area: search; position: relative; display: flex; align-items: center; min-width: 0; margin: 0; }
.ce-search > svg { position: absolute; left: var(--ce-space-16); width: 20px; height: 20px; pointer-events: none; }
.ce-search input { width: 100%; min-height: 48px; padding: 0 var(--ce-space-16) 0 var(--ce-space-48); border: var(--ce-stroke-thin) solid transparent; border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-primary); font: inherit; font-size: var(--ce-font-size-body); }
.ce-search input::placeholder { color: var(--ce-color-text-muted); opacity: 1; }
.ce-search input:hover { border-color: var(--ce-color-border-control); }
.ce-search input:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); background: var(--ce-color-surface-canvas); }
.ce-site-actions { grid-area: actions; display: flex; align-items: center; gap: var(--ce-space-4); }
.ce-site-action { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--ce-space-8); min-width: var(--ce-size-target-public); min-height: var(--ce-size-target-public); padding: 0 var(--ce-space-8); border: 0; border-radius: var(--ce-radius-pill); background: transparent; color: inherit; font: inherit; font-size: var(--ce-font-size-sm); text-decoration: none; cursor: pointer; }
.ce-site-action:hover { background: var(--ce-color-surface-subtle); }
.ce-site-action svg { width: 24px; height: 24px; }
.ce-site-action-label { display: none; white-space: nowrap; }
.ce-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 var(--ce-space-4); border-radius: var(--ce-radius-pill); background: var(--ce-color-action-primary-bg); color: var(--ce-color-action-primary-text); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); line-height: 20px; text-align: center; }
.ce-nav-list { margin: 0; padding: 0; list-style: none; }
.ce-nav-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--ce-space-16); min-height: 56px; border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); color: inherit; font-size: var(--ce-font-size-lead); font-weight: var(--ce-font-weight-bold); text-decoration: none; }
.ce-nav-list a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }

/* Category navigation ----------------------------------------------------------------------------------- */
.ce-category-rail { display: flex; gap: var(--ce-space-8); margin: calc(var(--ce-space-4) * -1); padding: var(--ce-space-4); list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.ce-category-rail::-webkit-scrollbar { display: none; }
.ce-category-rail > li { flex: 0 0 auto; scroll-snap-align: start; }
.ce-category-link { display: inline-flex; align-items: center; gap: var(--ce-space-12); min-height: 48px; padding: var(--ce-space-4) var(--ce-space-20) var(--ce-space-4) var(--ce-space-4); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-primary); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); text-decoration: none; white-space: nowrap; }
.ce-category-link img, .ce-category-link > svg { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-canvas); object-fit: contain; }
.ce-category-link > svg { padding: var(--ce-space-8); }
.ce-category-link:not(:has(img, svg)) { padding-left: var(--ce-space-20); }
.ce-category-link:hover { box-shadow: inset 0 0 0 1px var(--ce-color-border-control); }
.ce-category-link[aria-current] { box-shadow: inset 0 0 0 2px var(--ce-color-text-primary); }
.ce-category-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: var(--ce-space-12); margin: 0; padding: 0 0 var(--ce-space-4); list-style: none; overflow-x: auto; scrollbar-width: thin; }
.ce-category-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: var(--ce-space-12); height: 100%; min-height: 152px; padding: var(--ce-space-12) var(--ce-space-12) var(--ce-space-16); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-primary); font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); text-align: center; text-decoration: none; }
.ce-category-tile img { width: 72%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.ce-category-tile:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Editorial tiles and mosaics --------------------------------------------------------------------------- */
.ce-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 0; aspect-ratio: 1; overflow: hidden; background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); text-decoration: none; }
.ce-tile > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ce-x, 50%) var(--ce-y, 50%); transition: transform var(--ce-motion-quick); }
.ce-tile::before { position: absolute; z-index: -1; inset: auto 0 0; height: min(100%, 200px); content: ''; background: linear-gradient(180deg, transparent, var(--ce-color-overlay)); pointer-events: none; }
.ce-tile > .ce-badge { position: absolute; top: var(--ce-space-16); left: var(--ce-space-16); }
.ce-tile-title { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ce-space-16); margin: 0; padding: var(--ce-space-16); font-size: var(--ce-font-size-lead); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ce-tile-title svg { flex: 0 0 auto; width: 24px; height: 24px; }
.ce-tile:hover > img { transform: scale(1.02); }
.ce-tile:hover .ce-tile-title > span { text-decoration: underline; text-underline-offset: .15em; }
.ce-tile--light { background: var(--ce-campaign-surface, var(--ce-color-surface-subtle)); color: var(--ce-campaign-text, var(--ce-color-text-primary)); }
.ce-tile--light::before { content: none; }
.ce-tile--light > img { padding: 10% 14% 22%; object-fit: contain; mix-blend-mode: multiply; }
/* Yellow means promotion, so a product tile never gets a yellow ground or a yellow cast. A promotion tile keeps the neutral
   surface and carries the Promo tag plus the supplied offer price in the yellow offer block. */
.ce-tile > .ce-tile-offer { position: absolute; top: var(--ce-space-16); right: var(--ce-space-16); display: grid; justify-items: end; gap: var(--ce-space-4); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); }
.ce-tile-offer .ce-price { font-size: 30px; }
.ce-tile-offer .ce-price .ce-price-amount, .ce-tile-offer .ce-price:not(:has(.ce-price-amount)) { padding: var(--ce-space-4) var(--ce-space-8); }
.ce-tile-offer del { font-weight: var(--ce-font-weight-bold); }
.ce-tile--wide { aspect-ratio: 16 / 9; }
.ce-tile--tall { aspect-ratio: 6 / 7; }
.ce-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ce-space-12); }
.ce-mosaic > :nth-child(-n + 2) { grid-column: 1 / -1; }
.ce-split-promo { display: grid; grid-template-columns: minmax(0, 1fr); }
.ce-split-promo > img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--ce-x, 50%) var(--ce-y, 50%); }
.ce-split-promo-panel, .ce-block-card { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: var(--ce-space-16); padding: var(--ce-space-32) var(--ce-space-24); background: var(--ce-campaign-surface, var(--ce-color-action-primary-bg)); color: var(--ce-campaign-text, var(--ce-color-action-primary-text)); }
.ce-split-promo-panel h2, .ce-block-card h3 { margin: 0; font-size: var(--ce-font-size-title); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); letter-spacing: -.02em; }
.ce-split-promo-panel p, .ce-block-card p { margin: 0; font-size: var(--ce-font-size-sm); }
.ce-block-card { justify-content: space-between; min-height: 260px; color: var(--ce-campaign-text, var(--ce-color-text-primary)); background: var(--ce-campaign-surface, var(--ce-color-surface-subtle)); }
.ce-block-card > img { width: calc(100% + var(--ce-space-48)); max-width: none; margin: calc(var(--ce-space-32) * -1) calc(var(--ce-space-24) * -1) 0; aspect-ratio: 16 / 9; object-fit: cover; }
.ce-arrow-link { display: inline-grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border: var(--ce-stroke-thin) solid currentColor; border-radius: var(--ce-radius-pill); color: inherit; text-decoration: none; transition: background-color var(--ce-motion-quick); }
.ce-arrow-link svg { width: 22px; height: 22px; }
.ce-arrow-link:hover { background: var(--ce-color-overlay); color: var(--ce-color-text-inverse); }
.ce-statement { display: grid; gap: var(--ce-space-16); padding: var(--ce-space-48) var(--ce-space-24); background: var(--ce-campaign-surface, var(--ce-color-brand-yellow)); color: var(--ce-campaign-text, var(--ce-color-text-primary)); }
.ce-statement h2 { max-width: 16ch; margin: 0; font-size: clamp(var(--ce-font-size-heading), 6vw, var(--ce-font-size-hero)); font-weight: var(--ce-font-weight-heavy); line-height: var(--ce-font-line-tight); letter-spacing: -.045em; }
.ce-statement p { max-width: 40ch; margin: 0; font-size: var(--ce-font-size-lead); }
.ce-price-points { display: flex; gap: var(--ce-space-12); margin: 0; padding: var(--ce-space-4); list-style: none; overflow-x: auto; scrollbar-width: none; }
.ce-price-point { display: grid; flex: 0 0 auto; place-content: center; width: 128px; aspect-ratio: 1; border-radius: var(--ce-radius-pill); background: var(--ce-color-price-offer-bg); color: var(--ce-color-price-offer-text); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); text-align: center; text-decoration: none; }
.ce-price-point .ce-price { font-size: 36px; }
.ce-price-point:hover { box-shadow: inset 0 0 0 2px var(--ce-color-text-primary); }

/* Rails: horizontally scrolling lists with a visible track and optional buttons ------------------------- */
.ce-rail-wrap { position: relative; }
.ce-rail { --ce-columns: 1.4; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--ce-columns) - 1) * var(--ce-space-20)) / var(--ce-columns)); gap: var(--ce-space-20); margin: 0; padding: 0 0 var(--ce-space-24); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: thin; scrollbar-color: var(--ce-color-text-primary) var(--ce-color-border-default); }
.ce-rail > * { min-width: 0; scroll-snap-align: start; }
.ce-rail-buttons { display: none; justify-content: flex-end; gap: var(--ce-space-8); margin-bottom: var(--ce-space-12); }
.ce-rail-buttons .ce-icon-button { flex-basis: 40px; width: 40px; min-height: 40px; padding: var(--ce-space-8); }
.ce-rail-buttons .ce-icon-button svg { width: 20px; height: 20px; }
.ce-rail-buttons [data-ce-rail="prev"] svg { transform: scaleX(-1); }
.ce-rail-intro { display: flex; flex-direction: column; justify-content: space-between; gap: var(--ce-space-24); padding: var(--ce-space-24); background: var(--ce-campaign-surface, var(--ce-color-surface-subtle)); color: var(--ce-campaign-text, var(--ce-color-text-primary)); }
.ce-rail-intro h3 { margin: 0; font-size: var(--ce-font-size-lead); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); }
.ce-card-link { display: grid; align-content: start; gap: var(--ce-space-12); color: var(--ce-color-text-primary); text-decoration: none; }
.ce-card-link > img { display: block; width: 100%; aspect-ratio: 6 / 7; object-fit: cover; object-position: var(--ce-x, 50%) var(--ce-y, 50%); background: var(--ce-color-surface-subtle); }
.ce-card-link--contain > img { object-fit: contain; aspect-ratio: 1; background: var(--ce-color-surface-canvas); }
.ce-card-link-title { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ce-space-12); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); }
.ce-card-link-title svg { flex: 0 0 auto; width: 20px; height: 20px; }
.ce-card-link:hover .ce-card-link-title > span { text-decoration: underline; text-underline-offset: .2em; }
.ce-pill-card { position: relative; display: block; color: var(--ce-color-text-primary); text-decoration: none; }
.ce-pill-card > img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ce-pill-card-label { position: absolute; left: 50%; bottom: var(--ce-space-16); max-width: calc(100% - var(--ce-space-32)); padding: var(--ce-space-12) var(--ce-space-16); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-canvas); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); text-align: center; transform: translateX(-50%); }
.ce-pill-card:hover .ce-pill-card-label { text-decoration: underline; }

/* Listing: toolbar, filters, grid, in-grid promotions, load more ---------------------------------------- */
.ce-listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ce-space-24); }
.ce-listing-aside { display: none; }
.ce-filter-bar { display: flex; align-items: center; gap: var(--ce-space-12); padding-block: var(--ce-space-12); background: var(--ce-color-surface-canvas); }
.ce-filter-bar--sticky { position: sticky; top: 0; z-index: var(--ce-layer-sticky); }
.ce-filter-chips { display: flex; flex: 1; gap: var(--ce-space-8); min-width: 0; margin: calc(var(--ce-space-4) * -1); padding: var(--ce-space-4); overflow-x: auto; scrollbar-width: none; }
.ce-filter-chips::-webkit-scrollbar { display: none; }
.ce-filter-chips .ce-chip { flex: 0 0 auto; min-height: var(--ce-size-target-public); padding-inline: var(--ce-space-16); }
.ce-chip svg { width: 18px; height: 18px; }
.ce-chip-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 var(--ce-space-4); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-xs); }
.ce-result-count { margin: 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); white-space: nowrap; }
.ce-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ce-space-8); margin: 0 0 var(--ce-space-16); padding: 0; list-style: none; }
.ce-filter-group { margin: 0; }
.ce-option-list { display: grid; gap: var(--ce-space-4); margin: 0; padding: 0; list-style: none; }
.ce-option-list .ce-check { justify-content: space-between; }
.ce-option-count { margin-left: auto; color: var(--ce-color-text-muted); font-size: var(--ce-font-size-sm); }
.ce-product-grid--divided { gap: 0; margin-inline: calc(var(--ce-space-12) * -1); }
.ce-product-grid--divided > * { padding: var(--ce-space-16) var(--ce-space-12) var(--ce-space-40); border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-grid-promo { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ce-space-12); padding: var(--ce-space-24) var(--ce-space-20); background: var(--ce-campaign-surface, var(--ce-color-brand-yellow)); color: var(--ce-campaign-text, var(--ce-color-text-primary)); }
.ce-grid-promo h3 { margin: 0; font-size: var(--ce-font-size-title); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); letter-spacing: -.02em; }
.ce-grid-promo p { margin: 0; font-size: var(--ce-font-size-sm); }
.ce-load-more { display: grid; justify-items: center; gap: var(--ce-space-16); padding-block: var(--ce-space-40); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); text-align: center; }
.ce-load-more p { margin: 0; }
.ce-load-more .ce-progress { width: 200px; height: 2px; border-radius: 0; }

/* Product card additions ------------------------------------------------------------------------------- */
.ce-product-flag { align-self: flex-start; margin: 0 0 var(--ce-size-product-gap-flag); padding: var(--ce-space-2) var(--ce-space-8); background: var(--ce-color-tag-novedad-bg); color: var(--ce-color-tag-novedad-text); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); }
.ce-product-flag--promo { background: var(--ce-color-tag-promo-bg); color: var(--ce-color-tag-promo-text); }
.ce-product-flag--top { background: var(--ce-color-tag-top-bg); color: var(--ce-color-tag-top-text); }
.ce-product-flag--limited { background: var(--ce-color-tag-limited-bg); color: var(--ce-color-tag-limited-text); }
.ce-product-media > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ce-product-link { display: flex; flex-direction: column; gap: var(--ce-space-2); color: inherit; text-decoration: none; }
.ce-product-link:hover .ce-product-description { color: var(--ce-color-text-primary); text-decoration: underline; text-underline-offset: .2em; }
/* QuickAdd (Añadir rápido): browse-first cards carry no purchase control at rest. The optional quick-add icon is a separate control
   beside the product link; it shows only on hover or keyboard focus of the card, on hover-capable screens from 640px, at the public
   target size. On touch and narrow screens nothing is added from the card: the card is the product link, and buying happens on the
   product page (AddToCart). */
.ce-product-row > .ce-icon-button--action { opacity: 0; transition: opacity var(--ce-motion-quick); flex-basis: var(--ce-size-target-public); width: var(--ce-size-target-public); min-height: var(--ce-size-target-public); }
.ce-product:hover .ce-product-row > .ce-icon-button--action, .ce-product:focus-within .ce-product-row > .ce-icon-button--action { opacity: 1; }
/* A card with no Description and no specs under its NAME has no room for the action: the 44px action would reach over the price,
   which starts 12px below the NAME. The optional quick-add is not shown there, and buying stays on the product page. Empty
   elements count as absent; render the Description and specs only when they have text, as productView() gives them (a selector
   cannot see that an element holds only white space). */
.ce-product-row:not(:has(.ce-product-description:not(:empty))):not(:has(+ .ce-product-specs:not(:empty))) > .ce-icon-button--action { display: none; }
/* On touch and narrow screens the whole card opens the product page: the product link covers the card, and every other native control
   in it (variant thumbnails, «Comparar», a list's own task) stays a separate target above it. The photo's own link (hidden from the
   accessibility tree and the tab order) goes to the same page and stays below, so it never covers a control placed in the photo box. */
@media (hover: none), (max-width: 639.98px) {
  .ce-product-row > .ce-icon-button--action { display: none; }
  .ce-product { position: relative; }
  .ce-product .ce-product-link::after { position: absolute; inset: 0; content: ''; }
  .ce-product :where(a[href], button, input, select, textarea, label, summary):where(:not(.ce-product-link, .ce-product-media > a[aria-hidden="true"][tabindex="-1"])) { position: relative; z-index: 1; }
}
/* The 44px quick action is taller than a NAME with a one-line Description, so it is taken out of the row's height: the ProductStack
   gaps and the price stay where they are with or without it. Its column stays clear: the heading, the line that follows the row and,
   with no Description, the line after that keep the target width plus the row gap free beside it. */
@media (hover: hover) and (min-width: 640px) {
  .ce-product-row:has(> .ce-icon-button--action):is(:has(.ce-product-description:not(:empty)), :has(+ .ce-product-specs:not(:empty))) { position: relative; padding-inline-end: calc(var(--ce-size-target-public) + var(--ce-space-12)); }
  .ce-product-row > .ce-icon-button--action { position: absolute; inset-block-start: 0; inset-inline-end: 0; }
  .ce-product-row:has(> .ce-icon-button--action):is(:has(.ce-product-description:not(:empty)), :has(+ .ce-product-specs:not(:empty))) + *, .ce-product-row:has(> .ce-icon-button--action):not(:has(.ce-product-description:not(:empty))):has(+ .ce-product-specs:not(:empty)) + * + * { padding-inline-end: calc(var(--ce-size-target-public) + var(--ce-space-12)); }
}
/* Deprecated: the full-width card button of the earlier rule. It stays hidden at every width until the previews and the consumers have
   removed the element; without this rule a leftover .ce-button.ce-product-add would show at every width. No opt-in variant. */
.ce-product-add { display: none; }
.ce-product-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ce-space-12); width: 100%; }
.ce-product-row .ce-product-heading { flex: 1; min-width: 0; }
.ce-icon-button--action { background: var(--ce-color-action-primary-bg); color: var(--ce-color-action-primary-text); border-color: transparent; }
.ce-icon-button--action:hover { background: var(--ce-color-action-primary-hover); border-color: transparent; color: var(--ce-color-action-primary-text); }
.ce-icon-button--small { flex-basis: 40px; width: 40px; min-height: 40px; padding: var(--ce-space-8); }
.ce-icon-button--small svg { width: 20px; height: 20px; }
.ce-icon-button[aria-pressed="true"] svg { fill: currentColor; }
.ce-product-select { margin-bottom: var(--ce-space-8); }
.ce-stock { display: grid; gap: var(--ce-space-8); margin: 0; padding: 0; list-style: none; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); }
.ce-stock > li { display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: baseline; gap: var(--ce-space-8); }
.ce-stock > li::before { width: 10px; height: 10px; content: ''; border-radius: var(--ce-radius-pill); background: var(--ce-color-border-control); transform: translateY(1px); pointer-events: none; }
.ce-stock > [data-state="available"]::before { background: var(--ce-color-status-success-text); }
.ce-stock > [data-state="limited"]::before { background: var(--ce-color-status-warning-text); }
.ce-stock > [data-state="unavailable"]::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ce-color-status-danger-text); }
/* Unknown (the default: an item with no data-state looks the same) and pending keep the neutral dot; only a confirmed sold-out reading is the ring. */
.ce-stock > [data-state="unknown"]::before, .ce-stock > [data-state="pending"]::before { background: var(--ce-color-border-control); }
.ce-variant-more { display: grid; gap: var(--ce-space-8); }
.ce-variant-more > span { color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); }
.ce-variant-thumbs { display: flex; flex-wrap: wrap; gap: var(--ce-space-8); margin: 0; padding: 0; list-style: none; }
.ce-variant-thumbs a { display: block; width: 44px; padding-bottom: var(--ce-space-4); border-bottom: 2px solid transparent; color: inherit; font-size: var(--ce-font-size-xs); text-align: center; text-decoration: none; }
.ce-variant-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.ce-variant-thumbs a[aria-current] { border-bottom-color: var(--ce-color-text-primary); }

/* Product detail ---------------------------------------------------------------------------------------- */
.ce-pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ce-space-32); }
.ce-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--ce-space-8); margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ce-gallery::-webkit-scrollbar { display: none; }
.ce-gallery > li { position: relative; scroll-snap-align: start; background: var(--ce-color-surface-canvas); }
.ce-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.ce-gallery .ce-gallery-scene img { object-fit: cover; object-position: var(--ce-x, 50%) var(--ce-y, 50%); }
.ce-gallery-status { margin: var(--ce-space-8) 0 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); text-align: center; }
.ce-buy-box { --ce-product-text: 1.5rem; display: grid; align-content: start; gap: var(--ce-space-20); min-width: 0; }
.ce-buy-box .ce-price { font-size: 56px; }
.ce-buy-actions { display: flex; flex-wrap: wrap; gap: var(--ce-space-12); }
.ce-buy-actions .ce-button { flex: 1 1 180px; min-height: 56px; }
.ce-variant-picker { display: grid; gap: var(--ce-space-12); min-width: 0; margin: 0; padding: 0; border: 0; }
.ce-variant-picker legend { margin-bottom: var(--ce-space-12); padding: 0; font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); }
.ce-variant-picker legend span { font-weight: var(--ce-font-weight-regular); }
.ce-variant-options { display: flex; flex-wrap: wrap; gap: var(--ce-space-8); }
.ce-variant-option { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--ce-space-8); min-width: 48px; min-height: 48px; padding: var(--ce-space-4) var(--ce-space-12); border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); font-size: var(--ce-font-size-sm); cursor: pointer; }
.ce-variant-option:has(img) { padding: var(--ce-space-4); }
.ce-variant-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
.ce-variant-option img { width: 56px; height: 56px; object-fit: contain; }
.ce-variant-option:hover { border-color: var(--ce-color-text-primary); }
.ce-variant-option:has(input:checked) { border-color: var(--ce-color-text-primary); box-shadow: inset 0 0 0 1px var(--ce-color-text-primary); }
.ce-variant-option:has(input:disabled) { background: var(--ce-color-surface-subtle); color: var(--ce-color-text-muted); text-decoration: line-through; cursor: not-allowed; }
.ce-tiers { display: grid; gap: var(--ce-space-4); margin: 0; padding: 0; list-style: none; }
.ce-tiers > li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ce-space-12); padding: var(--ce-space-8) var(--ce-space-12); background: var(--ce-color-surface-subtle); font-size: var(--ce-font-size-sm); }
.ce-tiers .ce-price { font-size: 24px; }
.ce-fulfilment { display: grid; margin: 0; padding: 0; border: var(--ce-stroke-thin) solid var(--ce-color-border-default); border-radius: var(--ce-radius-small); list-style: none; }
.ce-fulfilment > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: var(--ce-space-8) var(--ce-space-12); padding: var(--ce-space-16); }
.ce-fulfilment > li + li { border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-fulfilment > li > svg { width: 24px; height: 24px; }
.ce-fulfilment-title { margin: 0; font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); }
.ce-fulfilment > li > :not(svg, .ce-fulfilment-title) { grid-column: 2; }
.ce-facts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin: 0; font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); }
.ce-facts dt, .ce-facts dd { margin: 0; padding-block: var(--ce-space-12); border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); overflow-wrap: anywhere; }
.ce-facts dt { padding-right: var(--ce-space-16); color: var(--ce-color-text-secondary); }

/* Shoppable scenes and social gallery ------------------------------------------------------------------- */
.ce-scene { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ce-space-24); }
.ce-scene-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ce-space-12); margin-top: var(--ce-space-12); }
.ce-tagged-media[data-ce-markers="hidden"] .ce-hotspot, .ce-tagged-media[data-ce-markers="hidden"] .ce-pin, .ce-tagged-media[data-ce-markers="hidden"] .ce-feature-tag { display: none; }
.ce-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ce-space-12); }
.ce-collage > :first-child { grid-column: 1 / -1; }
.ce-collage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ce-social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ce-space-12); margin: 0; padding: 0; list-style: none; }
.ce-social-item { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ce-color-surface-subtle); color: inherit; }
.ce-social-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ce-social-item .ce-social-handle { position: absolute; left: var(--ce-space-8); bottom: var(--ce-space-8); padding: var(--ce-space-4) var(--ce-space-8); border-radius: var(--ce-radius-small); background: var(--ce-color-overlay); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-semibold); }

/* Choice cards (store, delivery, payment), steps and summaries ------------------------------------------- */
.ce-choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--ce-space-12); margin: 0; padding: 0; border: 0; list-style: none; }
.ce-choice-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--ce-space-4) var(--ce-space-12); padding: var(--ce-space-16); border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); cursor: pointer; }
.ce-choice-card input { width: 20px; height: 20px; margin: 0; accent-color: var(--ce-color-text-primary); }
.ce-choice-card-title { font-size: var(--ce-font-size-body); font-weight: var(--ce-font-weight-bold); }
.ce-choice-card > :not(input, .ce-choice-card-title) { grid-column: 2; color: var(--ce-color-text-secondary); }
.ce-choice-card:hover { border-color: var(--ce-color-text-primary); }
.ce-choice-card:has(input:checked) { border-color: var(--ce-color-text-primary); box-shadow: inset 0 0 0 1px var(--ce-color-text-primary); }
.ce-choice-card:has(input:disabled) { background: var(--ce-color-surface-subtle); color: var(--ce-color-text-muted); cursor: not-allowed; }
.ce-steps { display: flex; gap: var(--ce-space-8); margin: 0; padding: 0; list-style: none; counter-reset: ce-step; font-size: var(--ce-font-size-sm); }
.ce-steps > li { display: flex; flex: 1; align-items: center; gap: var(--ce-space-8); min-width: 0; color: var(--ce-color-text-secondary); counter-increment: ce-step; }
.ce-steps > li::before { display: grid; flex: 0 0 auto; place-items: center; width: var(--ce-size-marker); height: var(--ce-size-marker); content: counter(ce-step); border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-pill); font-weight: var(--ce-font-weight-bold); }
.ce-steps > li + li { padding-left: var(--ce-space-8); border-left: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-steps > [data-state="done"]::before { background: var(--ce-color-surface-subtle); }
.ce-steps > [aria-current="step"] { color: var(--ce-color-text-primary); font-weight: var(--ce-font-weight-bold); }
.ce-steps > [aria-current="step"]::before { border-color: transparent; background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); }
.ce-steps > li:not([aria-current]) .ce-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ce-cart { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ce-space-32); }
.ce-cart-lines { margin: 0; padding: 0; list-style: none; }
.ce-cart-line { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--ce-space-16); padding-block: var(--ce-space-24); border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-cart-line > img { flex: none; width: 88px; height: 88px; object-fit: contain; }
/* Keep the line as the containing block for its absolute screen-reader labels.
   The intrinsic body minimum gives unbroken codes room, wrapping below the image when necessary. */
.ce-cart-line-body { flex: 1 1 0; display: grid; align-content: start; gap: 0; min-width: min-content; }
.ce-cart-line-body > .ce-code { justify-self: start; margin-bottom: var(--ce-size-product-gap-code); }
.ce-cart-line-body > .ce-product-specs { margin-top: var(--ce-size-product-gap-identity); }
.ce-cart-line-body > :is(.ce-price-block, .ce-store-note, .ce-price-pending) { margin: var(--ce-size-product-gap-price) 0 0; }
.ce-cart-line-body > .ce-stock { margin-top: var(--ce-size-product-gap-note); }
.ce-cart-line-body > .ce-cart-line-actions { margin-top: var(--ce-space-12); }
.ce-cart-line-body > :is(.ce-save-state, .ce-notice) { margin: var(--ce-space-8) 0 0; }
/* Expand the hit area without padding the ProductStack's content boxes or reaching the controls. */
.ce-cart-line .ce-product-link { position: relative; }
.ce-cart-line .ce-product-link::after { position: absolute; content: ''; inset-inline: 0; top: 50%; height: max(100%, var(--ce-size-target-public)); transform: translateY(-50%); }
.ce-cart-line-body [aria-busy="true"] { cursor: progress; }
.ce-cart-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ce-space-12); }
.ce-cart-line-actions .ce-quantity input { min-width: var(--ce-size-target-public); min-height: var(--ce-size-target-public); width: 4ch; }
.ce-cart-line-actions .ce-quantity input:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-cart-line button.ce-link { min-width: var(--ce-size-target-public); min-height: var(--ce-size-target-public); }
.ce-cart-line .ce-price { font-size: 28px; }
.ce-order-summary { display: grid; align-content: start; gap: var(--ce-space-16); padding: var(--ce-space-24); background: var(--ce-color-surface-subtle); }
.ce-order-summary h2 { margin: 0; font-size: var(--ce-font-size-lead); }
.ce-summary { display: grid; gap: var(--ce-space-8); margin: 0; font-size: var(--ce-font-size-sm); }
.ce-summary > div { display: flex; justify-content: space-between; gap: var(--ce-space-16); }
.ce-summary dd { margin: 0; font-weight: var(--ce-font-weight-semibold); text-align: right; white-space: nowrap; }
.ce-summary .ce-summary-total { margin-top: var(--ce-space-8); padding-top: var(--ce-space-16); border-top: 2px solid var(--ce-color-text-primary); font-size: var(--ce-font-size-lead); font-weight: var(--ce-font-weight-bold); }
.ce-summary .ce-summary-total dd { font-weight: var(--ce-font-weight-heavy); }
.ce-divider { display: flex; align-items: center; gap: var(--ce-space-16); margin: 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }
.ce-divider::before, .ce-divider::after { flex: 1; height: 1px; content: ''; background: var(--ce-color-border-default); }

/* Account, service and orders --------------------------------------------------------------------------- */
.ce-auth { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100%; }
.ce-auth-aside { display: flex; flex-direction: column; justify-content: space-between; gap: var(--ce-space-32); padding: var(--ce-space-32) var(--ce-space-24); background: var(--ce-campaign-surface, var(--ce-color-action-primary-bg)); color: var(--ce-campaign-text, var(--ce-color-action-primary-text)); }
.ce-auth-aside p { margin: 0; font-size: var(--ce-font-size-title); font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); letter-spacing: -.02em; }
.ce-auth-main { display: grid; align-content: center; gap: var(--ce-space-24); width: min(100%, 448px); margin-inline: auto; padding: var(--ce-space-40) var(--ce-space-16); }
.ce-auth-main h1 { margin: 0; font-size: var(--ce-font-size-heading); line-height: var(--ce-font-line-heading); }
.ce-auth-main form { display: grid; gap: var(--ce-space-20); }
.ce-auth-main .ce-button { width: 100%; min-height: 56px; }
.ce-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.ce-timeline > li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--ce-space-4) var(--ce-space-16); padding-bottom: var(--ce-space-24); }
.ce-timeline > li::before { z-index: 1; grid-row: 1 / span 2; width: 16px; height: 16px; margin: 2px 4px; content: ''; border: 2px solid var(--ce-color-border-control); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-canvas); }
.ce-timeline > li::after { position: absolute; top: 20px; bottom: 0; left: 11px; width: 2px; content: ''; background: var(--ce-color-border-default); }
.ce-timeline > li:last-child::after { content: none; }
.ce-timeline > [data-state="done"]::before, .ce-timeline > [data-state="done"]::after { border-color: var(--ce-color-surface-inverse); background: var(--ce-color-surface-inverse); }
.ce-timeline > [aria-current="step"]::before { border-color: var(--ce-color-action-primary-bg); background: var(--ce-color-action-primary-bg); box-shadow: 0 0 0 4px var(--ce-color-status-danger-bg); }
.ce-timeline-title { margin: 0; font-weight: var(--ce-font-weight-bold); line-height: var(--ce-font-line-heading); }
.ce-timeline-meta { grid-column: 2; margin: 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }
.ce-link-rows { margin: 0; padding: 0; list-style: none; }
.ce-link-row { display: flex; align-items: center; justify-content: space-between; gap: var(--ce-space-16); min-height: 72px; padding-block: var(--ce-space-16); border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); color: inherit; font-weight: var(--ce-font-weight-bold); text-decoration: none; }
.ce-link-row small { display: block; margin-top: var(--ce-space-4); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-regular); }
.ce-link-row svg { flex: 0 0 auto; width: 24px; height: 24px; }
.ce-link-row:hover > span { text-decoration: underline; text-underline-offset: .2em; }
.ce-locator { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ce-space-24); }
.ce-location-list { display: grid; gap: var(--ce-space-12); margin: 0; padding: 0; list-style: none; }
.ce-location { display: grid; gap: var(--ce-space-8); padding: var(--ce-space-20); border: var(--ce-stroke-thin) solid var(--ce-color-border-default); font-size: var(--ce-font-size-sm); line-height: var(--ce-font-line-heading); }
.ce-location h3 { margin: 0; font-size: var(--ce-font-size-lead); }
.ce-location address { color: var(--ce-color-text-secondary); font-style: normal; }
.ce-location[aria-current] { border-color: var(--ce-color-text-primary); box-shadow: inset 0 0 0 1px var(--ce-color-text-primary); }
.ce-map-slot { display: grid; place-items: center; min-height: 280px; padding: var(--ce-space-24); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); text-align: center; }
.ce-band { padding: var(--ce-space-24) 0; background: var(--ce-color-surface-subtle); font-size: var(--ce-font-size-sm); }
.ce-band--ink { background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); }
.ce-band--yellow { background: var(--ce-color-brand-yellow); color: var(--ce-color-text-primary); }
.ce-feedback { display: grid; justify-items: center; gap: var(--ce-space-16); padding-block: var(--ce-space-40); text-align: center; }
.ce-feedback p { margin: 0; font-weight: var(--ce-font-weight-bold); }

/* Footer ------------------------------------------------------------------------------------------------ */
.ce-site-footer { margin-top: var(--ce-space-64); padding-block: var(--ce-space-48) var(--ce-space-24); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-primary); font-size: var(--ce-font-size-sm); }
.ce-footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ce-space-8) var(--ce-space-32); }
.ce-footer-grid h2 { margin: 0 0 var(--ce-space-12); font-size: var(--ce-font-size-body); font-weight: var(--ce-font-weight-bold); }
.ce-footer-intro { display: grid; align-content: start; gap: var(--ce-space-16); margin-bottom: var(--ce-space-24); }
.ce-footer-intro img { width: 140px; height: auto; }
.ce-footer-intro p { margin: 0; color: var(--ce-color-text-secondary); }
.ce-footer-group > summary { list-style: none; }
.ce-footer-group > summary::-webkit-details-marker { display: none; }
.ce-footer-links { display: grid; margin: 0; padding: 0 0 var(--ce-space-16); list-style: none; }
.ce-footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ce-color-text-secondary); font-weight: var(--ce-font-weight-bold); text-decoration: none; }
.ce-footer-links a:hover { color: var(--ce-color-text-primary); text-decoration: underline; text-underline-offset: .2em; }
.ce-social-links { display: flex; flex-wrap: wrap; gap: var(--ce-space-8); margin: 0; padding: 0; list-style: none; }
.ce-footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ce-space-12) var(--ce-space-24); margin-top: var(--ce-space-32); padding-top: var(--ce-space-24); border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); }
.ce-footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--ce-space-4) var(--ce-space-16); margin: 0; padding: 0; list-style: none; }
.ce-footer-legal a { color: inherit; font-weight: var(--ce-font-weight-bold); }

/* Breakpoints ------------------------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .ce-container { width: min(100% - var(--ce-layout-gutter-tablet) * 2, var(--ce-layout-content)); }
  .ce-section { padding-block: var(--ce-space-64); }
  .ce-site-brand img { height: 44px; }
  .ce-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ce-mosaic > :nth-child(-n + 2) { grid-column: span 2; }
  .ce-mosaic > :nth-child(n + 3) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .ce-split-promo { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .ce-split-promo--start { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .ce-split-promo--start > img { order: 2; }
  .ce-split-promo > img { aspect-ratio: auto; min-height: 360px; }
  .ce-split-promo-panel { padding: var(--ce-space-48) var(--ce-space-40); }
  .ce-statement { padding: var(--ce-space-64) var(--ce-space-48); }
  .ce-rail { --ce-columns: 2.5; }
  .ce-rail-buttons { display: flex; }
  .ce-category-tiles { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); overflow: visible; }
  .ce-collage { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .ce-collage > :first-child { grid-column: 1; grid-row: 1 / span 2; }
  .ce-social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ce-product-grid--divided { margin-inline: 0; }
  .ce-product-grid--divided > * { padding-inline: var(--ce-space-20); }
  .ce-gallery { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .ce-gallery > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .ce-gallery-status { display: none; }
  .ce-steps > li .ce-step-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .ce-cart-line > img { width: 128px; height: 128px; }
  .ce-locator { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr); align-items: start; }
  .ce-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ce-footer-intro { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .ce-container { width: min(100% - var(--ce-layout-gutter-desktop) * 2, var(--ce-layout-content)); }
  .ce-section-head h2 { font-size: 1.75rem; }
  .ce-site-header-inner { grid-template-columns: auto auto minmax(220px, 1fr) auto; grid-template-areas: "brand nav search actions"; gap: var(--ce-space-24); padding-block: var(--ce-space-20); }
  .ce-site-nav { display: block; }
  .ce-site-menu { display: none; }
  .ce-site-action-label { display: inline; }
  .ce-site-action:has(.ce-site-action-label) { padding-inline: var(--ce-space-12); }
  .ce-mosaic { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .ce-mosaic > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .ce-mosaic > :nth-child(2) { grid-column: 2 / span 2; aspect-ratio: 16 / 9; }
  .ce-mosaic > :nth-child(n + 3) { grid-column: auto; aspect-ratio: 6 / 7; }
  .ce-mosaic--reverse > :nth-child(1) { grid-column: 3; }
  .ce-mosaic--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
  .ce-mosaic--reverse > :nth-child(2) { grid-column: 1 / span 2; grid-row: 1; }
  .ce-tile-title { padding: var(--ce-space-20); font-size: var(--ce-font-size-title); }
  .ce-rail { --ce-columns: 5.5; }
  .ce-rail--wide { --ce-columns: 3.5; }
  .ce-listing { grid-template-columns: 264px minmax(0, 1fr); gap: var(--ce-space-32); }
  .ce-listing-aside { display: block; position: sticky; top: var(--ce-space-24); align-self: start; max-height: calc(100vh - var(--ce-space-48)); overflow-y: auto; }
  .ce-listing .ce-filter-chips [data-ce-filters] { display: none; }
  .ce-pdp { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: var(--ce-space-48); align-items: start; }
  .ce-buy-box { position: sticky; top: var(--ce-space-24); }
  .ce-scene { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; }
  .ce-scene .ce-tag-list { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .ce-scene .ce-tag-item + .ce-tag-item { padding-top: var(--ce-space-24); padding-left: 0; border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); border-left: 0; }
  .ce-social-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ce-cart { grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); align-items: start; gap: var(--ce-space-48); }
  .ce-order-summary { position: sticky; top: var(--ce-space-24); }
  .ce-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ce-auth-aside { padding: var(--ce-space-48); }
  .ce-auth-aside p { font-size: var(--ce-font-size-heading); }
  .ce-footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
  .ce-footer-intro { grid-column: auto; margin-bottom: 0; }
}
@media (min-width: 1300px) { .ce-listing .ce-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1299.98px) { .ce-listing .ce-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@keyframes ce-retail-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ce-tile > img, .ce-arrow-link, .ce-product-row > .ce-icon-button--action { transition: none; } .ce-tile:hover > img { transform: none; } .ce-store-context[aria-busy="true"]::after { animation-duration: 2.4s; } .ce-rail, .ce-gallery { scroll-behavior: auto; } }

/* Casa Elida workspace recipes for CE Systems, CE Meta and other internal applications: application shell,
   density, data tables, records, editors and operational layouts. Same tokens and type as retail, more
   information per screen, no decorative photography. Permissions, validation and workflows belong to the
   applications; a hidden or disabled control is presentation, not authorization. */

/* Density: set data-ce-density on a container. Comfortable is the default. */
[data-ce-density="compact"] { --ce-control: var(--ce-size-control-compact); --ce-row: var(--ce-size-row-compact); --ce-cell-pad: var(--ce-space-8) var(--ce-space-12); }
[data-ce-density="touch"] { --ce-control: var(--ce-size-control-touch); --ce-row: var(--ce-size-row-comfortable); --ce-cell-pad: var(--ce-space-16); }
[data-ce-density="compact"] :is(.ce-button, .ce-icon-button, .ce-chip, .ce-input, .ce-select) { min-height: var(--ce-control); padding-block: var(--ce-space-4); }
[data-ce-density="compact"] .ce-icon-button { width: var(--ce-control); flex-basis: var(--ce-control); padding: var(--ce-space-8); }
[data-ce-density="touch"] :is(.ce-button, .ce-icon-button, .ce-chip, .ce-input, .ce-select) { min-height: var(--ce-control); font-size: var(--ce-font-size-body); }

/* Application shell: module navigation beside the work area; stacks on narrow screens. */
.ce-app { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 100vh; background: var(--ce-color-surface-canvas); color: var(--ce-color-text-primary); }
.ce-app-bar { grid-column: 1 / -1; position: sticky; top: 0; z-index: var(--ce-layer-sticky); display: flex; align-items: center; gap: var(--ce-space-16); min-height: 56px; padding: var(--ce-space-8) var(--ce-space-16); border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-canvas); }
.ce-app-brand { display: inline-flex; align-items: center; gap: var(--ce-space-8); font-weight: var(--ce-font-weight-bold); white-space: nowrap; text-decoration: none; color: inherit; }
.ce-app-brand img { width: 28px; height: 28px; }
.ce-app-search { flex: 1 1 360px; max-width: 560px; }
.ce-app-context { display: inline-flex; align-items: center; gap: var(--ce-space-8); margin-left: auto; font-size: var(--ce-font-size-sm); }
.ce-module-nav { display: grid; align-content: start; gap: 2px; padding: var(--ce-space-16) var(--ce-space-12); border-right: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-subtle); font-size: var(--ce-font-size-sm); }
.ce-module-nav h2 { margin: var(--ce-space-16) var(--ce-space-12) var(--ce-space-4); color: var(--ce-color-text-muted); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.ce-module-nav a { display: flex; align-items: center; gap: var(--ce-space-12); padding: var(--ce-space-8) var(--ce-space-12); border-radius: var(--ce-radius-small); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.ce-module-nav a > svg { flex: none; }
/* Module and brand links follow density, never below the public target: a density can raise them (touch), never lower them (compact).
   --ce-control is set only by data-ce-density, hence the 0px fallback. */
.ce-module-nav a, .ce-app-brand { min-height: max(var(--ce-size-target-public), var(--ce-control, 0px)); }
.ce-module-nav a:hover { background: var(--ce-color-surface-canvas); }
.ce-module-nav a[aria-current="page"] { background: var(--ce-color-surface-canvas); font-weight: var(--ce-font-weight-bold); box-shadow: inset 3px 0 0 var(--ce-color-text-primary); }
.ce-module-nav a:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: -2px; }
.ce-app-main { min-width: 0; padding: var(--ce-space-24) var(--ce-space-32) var(--ce-space-48); }
@media (max-width: 1023px) { .ce-app { grid-template-columns: minmax(0, 1fr); } .ce-app-bar { flex-wrap: wrap; } .ce-app-search { order: 3; flex-basis: 100%; max-width: none; } .ce-app-context { flex-wrap: wrap; justify-content: flex-end; } .ce-module-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); } .ce-module-nav h2 { display: none; } .ce-module-nav a { flex: 0 0 auto; } .ce-app-main { padding: var(--ce-space-16); } }

/* Page and record headers */
.ce-page-header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ce-space-12) var(--ce-space-24); margin-bottom: var(--ce-space-24); }
.ce-page-header :is(h1, h2) { margin: 0; font-size: var(--ce-font-size-title); line-height: var(--ce-font-line-heading); letter-spacing: -.02em; }
.ce-page-actions { display: flex; flex-wrap: wrap; gap: var(--ce-space-8); margin-left: auto; }
/* Thumbnail, title and status share one line. The title is never narrower than its widest unbreakable line (the one-line
   code); where the line has no room for that, the status moves to the next line instead of covering the title. */
.ce-record-header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ce-space-8) var(--ce-space-16); padding-bottom: var(--ce-space-16); margin-bottom: var(--ce-space-24); border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-record-header > img { flex: none; width: 64px; height: 64px; object-fit: contain; border: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-record-header > .ce-record-title { flex: 1 1 0; min-width: min-content; }
.ce-record-title { display: grid; gap: var(--ce-space-4); min-width: 0; }
.ce-record-title :is(h1, h2) { margin: 0; font-size: var(--ce-font-size-title); line-height: var(--ce-font-line-heading); }
/* A title with product identity follows the ProductStack: the identity heading and its specs are direct children of the title;
   their margins add to the 4px gap (code or code row to heading 8px, heading to specs 2px). A title without them keeps 4px. */
.ce-record-title > .ce-product-heading { margin-top: calc(var(--ce-size-product-gap-code) - var(--ce-space-4)); }
.ce-record-title > .ce-product-heading:first-child { margin-top: 0; }
.ce-record-title > .ce-product-specs { margin-top: calc(var(--ce-size-product-gap-identity) - var(--ce-space-4)); }
.ce-record-meta { display: flex; flex-wrap: wrap; gap: var(--ce-space-4) var(--ce-space-16); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); }
.ce-pill { display: inline-flex; align-items: center; gap: var(--ce-space-4); padding: 2px var(--ce-space-8); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-primary); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); white-space: nowrap; }
.ce-pill::before { width: 8px; height: 8px; content: ''; border-radius: var(--ce-radius-pill); background: currentColor; }
.ce-pill--success { background: var(--ce-color-status-success-bg); color: var(--ce-color-status-success-text); }
.ce-pill--warning { background: var(--ce-color-status-warning-bg); color: var(--ce-color-status-warning-text); }
.ce-pill--danger { background: var(--ce-color-status-danger-bg); color: var(--ce-color-status-danger-text); }
.ce-pill--info { background: var(--ce-color-status-info-bg); color: var(--ce-color-status-info-text); }
.ce-record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--ce-space-32); align-items: start; }
@media (max-width: 1023px) { .ce-record-layout { grid-template-columns: minmax(0, 1fr); } }

/* Data table */
.ce-table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ce-space-8) var(--ce-space-12); margin-bottom: var(--ce-space-12); }
.ce-table-toolbar .ce-input { max-width: 320px; }
.ce-table-wrap { overflow: auto; max-width: 100%; border: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--ce-font-size-sm); font-variant-numeric: tabular-nums; }
.ce-data-table th, .ce-data-table td { height: var(--ce-row, var(--ce-size-row-comfortable)); padding: var(--ce-cell-pad, var(--ce-space-12) var(--ce-space-16)); border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); text-align: left; vertical-align: middle; white-space: nowrap; }
.ce-data-table thead th { position: sticky; top: 0; z-index: 1; background: var(--ce-color-surface-subtle); font-weight: var(--ce-font-weight-bold); }
.ce-data-table .is-number { text-align: right; }
.ce-data-table .is-wrap { white-space: normal; min-width: 200px; }
.ce-data-table .is-select { width: 44px; padding-right: 0; }
.ce-data-table tbody tr:hover { background: var(--ce-color-surface-subtle); }
.ce-data-table tbody tr[aria-selected="true"] { background: var(--ce-color-status-info-bg); }
.ce-data-table input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ce-color-text-primary); }
.ce-sort { display: inline-flex; align-items: center; gap: var(--ce-space-4); padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; }
.ce-sort::after { width: 0; height: 0; content: ''; border: 4px solid transparent; opacity: .4; border-top-color: currentColor; margin-top: 4px; }
[aria-sort="ascending"] .ce-sort::after { border-top-color: transparent; border-bottom-color: currentColor; margin: 0 0 4px; opacity: 1; }
[aria-sort="descending"] .ce-sort::after { opacity: 1; }
.ce-sort:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-thumb { display: block; width: 40px; height: 40px; object-fit: contain; background: var(--ce-color-surface-canvas); border: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-unknown { color: var(--ce-color-text-muted); }
.ce-bulk-bar { position: sticky; bottom: var(--ce-space-16); z-index: var(--ce-layer-sticky); display: flex; flex-wrap: wrap; align-items: center; gap: var(--ce-space-12); margin-top: var(--ce-space-12); padding: var(--ce-space-8) var(--ce-space-8) var(--ce-space-8) var(--ce-space-16); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-inverse); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-sm); }
.ce-bulk-bar .ce-button--secondary { border-color: transparent; }
.ce-bulk-bar .ce-link { color: var(--ce-color-text-inverse); }
.ce-table-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ce-space-12); padding-top: var(--ce-space-12); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }

/* Editors */
.ce-form-section { display: grid; gap: var(--ce-space-16); padding-block: var(--ce-space-24); border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-form-section > h2 { margin: 0; font-size: var(--ce-font-size-lead); }
.ce-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--ce-space-16) var(--ce-space-24); }
.ce-form-actions { position: sticky; bottom: 0; z-index: var(--ce-layer-sticky); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--ce-space-12); padding: var(--ce-space-12) 0; border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-canvas); }
.ce-form-actions .ce-save-state { margin-right: auto; }
.ce-readonly { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: var(--ce-space-8) var(--ce-space-24); margin: 0; font-size: var(--ce-font-size-sm); }
.ce-readonly dt { color: var(--ce-color-text-secondary); }
.ce-readonly dd { margin: 0; overflow-wrap: anywhere; }
.ce-locked { display: flex; align-items: center; gap: var(--ce-space-8); padding: var(--ce-space-8) var(--ce-space-12); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }
.ce-audit { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; font-size: var(--ce-font-size-sm); }
.ce-audit li { position: relative; display: grid; gap: 2px; padding: 0 0 var(--ce-space-16) var(--ce-space-24); }
.ce-audit li::before { position: absolute; top: 6px; left: 4px; width: 8px; height: 8px; content: ''; border-radius: var(--ce-radius-pill); background: var(--ce-color-text-primary); }
.ce-audit li::after { position: absolute; top: 18px; bottom: 0; left: 7px; width: 2px; content: ''; background: var(--ce-color-border-default); }
.ce-audit li:last-child::after { content: none; }
.ce-audit time { color: var(--ce-color-text-muted); font-size: var(--ce-font-size-xs); }
.ce-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ce-space-16); }
.ce-compare > * { padding: var(--ce-space-16); border: var(--ce-stroke-thin) solid var(--ce-color-border-default); }
.ce-compare ins { background: var(--ce-color-status-success-bg); text-decoration: none; }
.ce-compare del { background: var(--ce-color-status-danger-bg); }

/* Point of sale: product finder beside the ticket; touch density. */
.ce-pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: 100vh; }
.ce-pos-finder { min-width: 0; padding: var(--ce-space-16); }
.ce-pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--ce-space-12); }
.ce-pos-item { display: grid; gap: var(--ce-space-4); padding: var(--ce-space-12); border: var(--ce-stroke-thin) solid var(--ce-color-border-default); border-radius: var(--ce-radius-small); background: var(--ce-color-surface-canvas); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ce-pos-item img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ce-pos-item:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: var(--ce-stroke-offset); }
.ce-pos-ticket { display: flex; flex-direction: column; border-left: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-subtle); }
.ce-pos-lines { flex: 1; margin: 0; padding: var(--ce-space-16); overflow: auto; list-style: none; }
.ce-pos-total { display: grid; gap: var(--ce-space-8); padding: var(--ce-space-16); border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-canvas); }
@media (max-width: 1023px) { .ce-pos { grid-template-columns: minmax(0, 1fr); } .ce-pos-ticket { border-left: 0; } }

/* Casa Elida messaging recipes for CE Meta App and other conversation interfaces: the conversation list, the message list,
   the message composer, the attachment group and the work status. They present state that the application supplies. Delivery, assignment, authorization and
   transport belong to the application and its services. Drawing an internal note differently from a customer reply is
   presentation, never a security control. Meaning is always carried by words (sender, status, "No la ve el cliente"),
   never by colour or alignment alone. */

/* Avatar: initials in a circle (teams in a rounded square). Decorative; the name is always next to it. */
.ce-avatar { display: inline-grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border: var(--ce-stroke-thin) solid var(--ce-color-border-default); border-radius: var(--ce-radius-pill); background: var(--ce-color-surface-subtle); color: var(--ce-color-text-primary); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); line-height: 1; }
.ce-avatar--team { border-radius: var(--ce-radius-price); }

/* Conversation list: one native button per conversation; the selected one carries aria-current="true". */
.ce-conversation-list { margin: 0; padding: 0; list-style: none; }
.ce-conversation { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "avatar name time" "avatar preview unread" ". meta meta"; align-items: center; gap: var(--ce-space-4) var(--ce-space-12); width: 100%; min-height: 64px; padding: var(--ce-space-12) var(--ce-space-16); border: 0; border-bottom: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-canvas); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ce-conversation:hover { background: var(--ce-color-surface-subtle); }
.ce-conversation[aria-current="true"] { background: var(--ce-color-surface-subtle); box-shadow: inset 3px 0 0 var(--ce-color-text-primary); }
.ce-conversation:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: -4px; }
.ce-conversation > .ce-avatar { grid-area: avatar; }
.ce-conversation-name { grid-area: name; min-width: 0; overflow: hidden; font-weight: var(--ce-font-weight-bold); text-overflow: ellipsis; white-space: nowrap; }
.ce-conversation-time { grid-area: time; color: var(--ce-color-text-muted); font-size: var(--ce-font-size-xs); font-variant-numeric: tabular-nums; }
.ce-conversation-preview { grid-area: preview; min-width: 0; overflow: hidden; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); text-overflow: ellipsis; white-space: nowrap; }
.ce-conversation-draft { color: var(--ce-color-text-primary); font-weight: var(--ce-font-weight-semibold); }
.ce-conversation-unread { grid-area: unread; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: var(--ce-space-4); border-radius: var(--ce-radius-pill); background: var(--ce-color-action-primary-bg); color: var(--ce-color-action-primary-text); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); line-height: 1; }
.ce-conversation-meta { grid-area: meta; min-width: 0; overflow: hidden; color: var(--ce-color-text-muted); font-size: var(--ce-font-size-xs); text-overflow: ellipsis; white-space: nowrap; }
.ce-conversation-empty { margin: 0; padding: var(--ce-space-24) var(--ce-space-16); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); }

/* Message list: a scrollable log. Incoming and outgoing messages differ by alignment, the border and a spoken sender;
   an internal note spans the full width in the informational palette and always says who can not see it. */
.ce-message-list { display: flex; flex-direction: column; gap: var(--ce-space-8); min-height: 0; padding: var(--ce-space-16); overflow-y: auto; overscroll-behavior: contain; background: var(--ce-color-surface-subtle); }
.ce-message-list:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: -4px; }
.ce-message-list-empty { margin: auto; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); text-align: center; }
.ce-message { max-width: min(85%, 560px); padding: var(--ce-space-8) var(--ce-space-12); border: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-canvas); font-size: var(--ce-font-size-body); line-height: var(--ce-font-line-body); overflow-wrap: anywhere; }
.ce-message--incoming { align-self: flex-start; }
.ce-message--outgoing { align-self: flex-end; border-color: var(--ce-color-text-primary); }
.ce-message--note { align-self: stretch; max-width: none; border-color: var(--ce-color-status-info-text); border-left-width: var(--ce-stroke-heavy); background: var(--ce-color-status-info-bg); }
.ce-message--system { align-self: center; max-width: 100%; padding: var(--ce-space-4) var(--ce-space-12); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); text-align: center; }
.ce-message-note-label { display: flex; align-items: center; gap: var(--ce-space-8); margin: 0 0 var(--ce-space-4); color: var(--ce-color-status-info-text); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); }
.ce-message-note-label svg { width: 14px; height: 14px; }
.ce-message-author { margin: 0 0 var(--ce-space-4); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); }
.ce-message-text { margin: 0; white-space: pre-wrap; }
.ce-message-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--ce-space-8); margin: var(--ce-space-4) 0 0; color: var(--ce-color-text-muted); font-size: var(--ce-font-size-xs); }
.ce-message-time { font-variant-numeric: tabular-nums; }
.ce-message-status { white-space: nowrap; }
.ce-message-status--failed { color: var(--ce-color-status-danger-text); font-weight: var(--ce-font-weight-semibold); }
/* A bubble that carries attachments or contextual content takes the full bubble width instead of the width of its text. */
.ce-message:has(> .ce-attachment-group, > .ce-message-context) { width: min(85%, 560px); }
/* Contextual content: what the application draws for one message (for example a work status) after its time and delivery status. */
.ce-message-context { margin-top: var(--ce-space-8); padding-top: var(--ce-space-8); border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); }

/* Attachment group: images that were already sent, each a native button that only asks the application to open it. Photographic
   evidence is shown uncropped (contain) unless the group asks for cover. Every tile reserves its box with aspect-ratio, so a late
   image never shifts the layout or the scroll position of a message list. One item fills the width, two and four make two
   columns, any other count three; in a narrow container (a group under 21rem wide, or enlarged text) every group of two or more
   makes two. The group draws its own query container (.ce-attachment-group), so it responds on its own width wherever it is used,
   inside a message list or not. A query container has no intrinsic width: give the group (or its parent) a definite or
   block-level width, as every block already has. There is no upload, capture, zoom or viewer here. */
.ce-attachment-group { container-type: inline-size; margin: 0 0 var(--ce-space-8); }
.ce-attachments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ce-space-8); margin: 0; padding: 0; list-style: none; }
.ce-attachments--1 { grid-template-columns: minmax(0, 1fr); }
.ce-attachments--2, .ce-attachments--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ce-attachment { position: relative; margin: 0; overflow: hidden; aspect-ratio: 2 / 3; border: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-subtle); }
.ce-attachments--1 .ce-attachment { aspect-ratio: 4 / 3; }
.ce-attachment-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ce-attachment-open:focus-visible { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: -4px; }
.ce-attachment-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.ce-attachments--cover .ce-attachment-image { object-fit: cover; }
.ce-attachment-caption { position: absolute; inset: auto 0 0 0; padding: var(--ce-space-2) var(--ce-space-8); background: var(--ce-color-overlay); color: var(--ce-color-text-inverse); font-size: var(--ce-font-size-xs); font-weight: var(--ce-font-weight-bold); line-height: 1.2; overflow-wrap: break-word; }
@container (max-width: 21rem) { .ce-attachments:not(.ce-attachments--1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Work status: an ordered list of steps that the application supplies (labels, which one is current, who and when). It does not
   know what the steps mean and never changes state. State is carried by words and by shape, never by colour alone: done is a
   solid bar, current a thick bar in bold, pending a dashed bar, stopped a hatched bar in bold warning text. In a narrow container
   the steps reflow to two columns (a status under 21rem wide, or enlarged text) instead of breaking words. The status is its own
   query container, so it responds on its own width wherever it is used; like any query container it needs a block-level or
   definite width and has no intrinsic one. */
.ce-work-status { container-type: inline-size; display: grid; gap: var(--ce-space-8); font-size: var(--ce-font-size-sm); }
.ce-work-status-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--ce-space-8); }
.ce-work-status-title { margin: 0; font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); }
.ce-work-status-now { color: var(--ce-color-text-primary); font-weight: var(--ce-font-weight-bold); }
.ce-work-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min-content, 1fr); gap: var(--ce-space-8); margin: 0; padding: 0; list-style: none; }
@container (max-width: 21rem) { .ce-work-steps { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ce-work-step { display: grid; align-content: start; gap: var(--ce-space-4); color: var(--ce-color-text-muted); font-size: var(--ce-font-size-xs); line-height: 1.25; overflow-wrap: break-word; }
.ce-work-step::before { content: ""; height: 8px; background-repeat: no-repeat; background-position: left center; background-size: 100% 3px; background-image: repeating-linear-gradient(90deg, var(--ce-color-border-control) 0 6px, transparent 6px 10px); }
.ce-work-step-label { min-width: 0; overflow-wrap: break-word; }
.ce-work-step--pending { color: var(--ce-color-text-muted); }
.ce-work-step--done { color: var(--ce-color-text-secondary); }
.ce-work-step--done::before { background-size: 100% 4px; background-image: linear-gradient(var(--ce-color-text-primary), var(--ce-color-text-primary)); }
.ce-work-step--current { color: var(--ce-color-text-primary); font-weight: var(--ce-font-weight-bold); }
.ce-work-step--current::before { background-size: 100% 8px; background-image: linear-gradient(var(--ce-color-text-primary), var(--ce-color-text-primary)); }
.ce-work-step--stopped { color: var(--ce-color-status-warning-text); font-weight: var(--ce-font-weight-bold); }
.ce-work-step--stopped::before { background-size: 100% 8px; background-image: repeating-linear-gradient(135deg, var(--ce-color-status-warning-text) 0 4px, var(--ce-color-status-warning-bg) 4px 8px); }
.ce-work-status-summary { margin: 0; color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-xs); }
.ce-work-status-actions { display: flex; flex-wrap: wrap; gap: var(--ce-space-8); }
.ce-work-status-actions .ce-button { flex: 1 1 8rem; min-height: var(--ce-size-target-public); padding-block: var(--ce-space-8); }

/* Message composer: reply (default) or internal note. The note mode changes the whole composer to the informational
   palette, states "No la ve el cliente" and swaps the red send action for "Guardar nota". */
.ce-composer { display: grid; gap: var(--ce-space-8); padding: var(--ce-space-12) var(--ce-space-16); border-top: var(--ce-stroke-thin) solid var(--ce-color-border-default); background: var(--ce-color-surface-canvas); }
.ce-composer--note { border-top-color: var(--ce-color-status-info-text); background: var(--ce-color-status-info-bg); }
.ce-composer-mode { display: flex; justify-self: start; min-width: 0; max-width: 100%; margin: 0; padding: 0; border: var(--ce-stroke-thin) solid var(--ce-color-border-control); border-radius: var(--ce-radius-price); overflow: hidden; }
.ce-composer-mode-option { position: relative; display: flex; min-width: 0; }
.ce-composer-mode-option > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--ce-space-4); min-height: var(--ce-size-target-public); text-align: center; padding: var(--ce-space-8) var(--ce-space-16); background: var(--ce-color-surface-canvas); color: var(--ce-color-text-secondary); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-semibold); cursor: pointer; }
.ce-composer-mode-option > span:hover { color: var(--ce-color-text-primary); }
.ce-composer-mode-option input:checked + span { background: var(--ce-color-text-primary); color: var(--ce-color-text-inverse); }
.ce-composer-mode-option--note input:checked + span { background: var(--ce-color-status-info-text); color: var(--ce-color-status-info-bg); }
.ce-composer-mode-option input:focus-visible + span { outline: var(--ce-stroke-focus) solid var(--ce-color-focus); outline-offset: -4px; }
.ce-composer-mode-option input:checked:focus-visible + span { outline-color: var(--ce-color-surface-canvas); }
.ce-composer-mode-option input:disabled + span { cursor: not-allowed; opacity: .45; }
.ce-composer-mode-draft { font-weight: var(--ce-font-weight-regular); }
.ce-composer-notice { display: flex; align-items: center; gap: var(--ce-space-8); margin: 0; color: var(--ce-color-status-info-text); font-size: var(--ce-font-size-sm); font-weight: var(--ce-font-weight-bold); }
.ce-composer-notice svg { width: 16px; height: 16px; }
.ce-composer-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ce-space-8); }
.ce-composer-field { flex: 1 1 12rem; min-width: 0; min-height: var(--ce-size-control-comfortable); max-height: 40vh; field-sizing: content; resize: none; }
.ce-composer--note .ce-composer-field { border-color: var(--ce-color-status-info-text); }
.ce-composer-send { flex: 0 0 auto; max-width: 100%; margin-left: auto; text-align: center; }
.ce-composer--note .ce-composer-send { background: var(--ce-color-status-info-text); color: var(--ce-color-status-info-bg); }
.ce-composer--note .ce-composer-send:hover:not(:disabled) { background: var(--ce-color-text-primary); color: var(--ce-color-text-inverse); }
