/* =============================================================================
   Tienda pública (/tienda) · estilo boutique de lujo, pensado primero para celular.
   Independiente de site.css: tiene su propia paleta para claro y oscuro. Todos los
   textos cumplen contraste WCAG AA (4.5:1) sobre su fondo; el dorado claro
   (--lux-gold) solo se usa en líneas, íconos y fondos, nunca como texto sobre marfil.
   "Vidrio líquido": fondos translúcidos con desenfoque (backdrop-filter) sobre los
   destellos de color del fondo.
   ============================================================================= */
.store-body {
    --lux-bg: #FAF8F5;
    --lux-surface: #FFFFFF;
    --lux-surface-2: #F3EFE8;
    --lux-ink: #1A1A1A;
    --lux-muted: #6B6B6B;          /* 5.0:1 sobre marfil */
    --lux-line: #E7E1D6;
    --lux-gold: #C9A227;
    --lux-gold-text: #8A6A12;      /* 4.8:1 sobre marfil */
    --lux-btn-bg: #111111;
    --lux-btn-ink: #FFFFFF;
    --lux-btn-hover: #2B2B2B;
    --lux-success: #047857;
    --lux-warning: #9A5B00;
    --lux-glass-bg: rgba(255, 255, 255, .68);
    --lux-glass-border: rgba(255, 255, 255, .6);
    --lux-glass-shadow: 0 8px 32px rgba(17, 17, 17, .08);
    --lux-glow-1: rgba(201, 162, 39, .22);
    --lux-glow-2: rgba(226, 160, 150, .20);
    --lux-glow-3: rgba(150, 190, 220, .16);
    --lux-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --lux-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --lux-header-h: 58px;

    --bs-body-bg: var(--lux-bg);
    --bs-body-color: var(--lux-ink);
    --bs-border-color: var(--lux-line);
    --bs-link-color-rgb: 26, 26, 26;
    --bs-body-font-family: var(--lux-sans);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--lux-bg);
    color: var(--lux-ink);
    font-family: var(--lux-sans);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

[data-bs-theme="dark"] .store-body {
    --lux-bg: #0D0D0F;
    --lux-surface: #16161A;
    --lux-surface-2: #1D1D22;
    --lux-ink: #F5F1E8;
    --lux-muted: #A9A39A;          /* 7.2:1 sobre las tarjetas */
    --lux-line: #2A2A30;
    --lux-gold: #D4AF37;
    --lux-gold-text: #E2C35E;
    --lux-btn-bg: #D4AF37;         /* botón dorado con texto negro: 9:1 */
    --lux-btn-ink: #111111;
    --lux-btn-hover: #E2C35E;
    --lux-success: #34D399;
    --lux-warning: #FBBF24;
    --lux-glass-bg: rgba(24, 24, 29, .62);
    --lux-glass-border: rgba(255, 255, 255, .09);
    --lux-glass-shadow: 0 8px 32px rgba(0, 0, 0, .45);
    --lux-glow-1: rgba(212, 175, 55, .16);
    --lux-glow-2: rgba(190, 120, 110, .12);
    --lux-glow-3: rgba(90, 130, 170, .12);
    --bs-link-color-rgb: 245, 241, 232;
}

.store-body main {
    flex: 1 0 auto;
}

/* :where() deja esta regla sin peso: cualquier clase (botones, chips) define su color. */
:where(.store-body) a {
    color: inherit;
}

.lux-container {
    max-width: 1200px;
    padding-left: 16px;
    padding-right: 16px;
}

.lux-glass {
    background: var(--lux-glass-bg);
    border: 1px solid var(--lux-glass-border);
    box-shadow: var(--lux-glass-shadow);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
}

/* ---------------------------------------------------------------- Tipografía */
.lux-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--lux-gold-text);
    margin-bottom: .5rem;
}

.lux-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--lux-gold);
}

.lux-display,
.lux-title,
.lux-piece-title {
    font-family: var(--lux-serif);
    font-weight: 400;
    color: var(--lux-ink);
    letter-spacing: -.01em;
}

.lux-display {
    font-size: clamp(2rem, 8.5vw, 4.2rem);
    line-height: 1.05;
    margin-bottom: .7rem;
}

.lux-title {
    font-size: clamp(1.5rem, 5.5vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0;
}

.lux-display em,
.lux-title em {
    font-style: italic;
    color: var(--lux-gold-text);
}

.lux-lead {
    color: var(--lux-muted);
    font-size: .95rem;
    line-height: 1.55;
    max-width: 34rem;
    margin-bottom: 1.1rem;
}

/* ---------------------------------------------------------------- Botones */
.lux-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .75rem 1.4rem;
    border: 1px solid var(--lux-btn-bg);
    border-radius: 2px;
    background: var(--lux-btn-bg);
    color: var(--lux-btn-ink) !important;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.lux-btn:hover {
    background: var(--lux-btn-hover);
    border-color: var(--lux-btn-hover);
}

.lux-btn:active {
    transform: scale(.98);
}

.lux-btn:focus-visible,
.lux-icon-btn:focus-visible,
.lux-quick:focus-visible,
.lux-page:focus-visible,
.lux-thumb:focus-visible {
    outline: 2px solid var(--lux-gold);
    outline-offset: 2px;
}

.lux-btn-outline {
    background: transparent;
    color: var(--lux-ink) !important;
    border-color: var(--lux-ink);
}

.lux-btn-outline:hover {
    background: var(--lux-ink);
    border-color: var(--lux-ink);
    color: var(--lux-bg) !important;
}

.lux-btn-gold {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #111111 !important;
}

.lux-btn-gold:hover {
    background: #E2C35E;
    border-color: #E2C35E;
}

.lux-btn-block {
    width: 100%;
}

.lux-wa {
    flex-shrink: 0;
}

.lux-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 0;
    border: 0;
    background: none;
    color: var(--lux-ink);
    font-size: .85rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--lux-gold);
}

.lux-link .material-symbols-outlined {
    font-size: 18px;
}

/* ---------------------------------------------------------------- Encabezado */
.lux-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--lux-header-h);
    display: flex;
    align-items: center;
    background: var(--lux-glass-bg);
    border-bottom: 1px solid var(--lux-line);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
}

.lux-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    text-decoration: none;
    color: var(--lux-ink);
}

/* Marca de la tienda: logotipo oficial de NICE + nombre de la joyería. El azul marino oficial
   (#0A2240) se usa en claro; en oscuro el logotipo toma el marfil del texto. */
.lux-nice-logo {
    display: block;
    height: 24px;
    width: auto;
    flex-shrink: 0;
    color: #0A2240;
}

[data-bs-theme="dark"] .lux-nice-logo {
    color: #F5F1E8;
}

.lux-brand-divider {
    width: 1px;
    height: 22px;
    flex-shrink: 0;
    background: var(--lux-line);
}

.lux-brand-name {
    font-family: var(--lux-serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 359.98px) {
    .lux-nice-logo {
        height: 20px;
    }

    .lux-brand-name {
        font-size: .98rem;
    }
}

.lux-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lux-line);
    border-radius: 50%;
    background: var(--lux-surface);
    color: var(--lux-ink);
    text-decoration: none;
    transition: border-color .2s ease;
}

.lux-icon-btn:hover {
    border-color: var(--lux-gold);
}

.lux-icon-btn .material-symbols-outlined {
    font-size: 20px;
}

.lux-icon-btn-wa {
    background: var(--lux-btn-bg);
    border-color: var(--lux-btn-bg);
    color: var(--lux-btn-ink);
}

.lux-preview {
    padding: .5rem 0;
    background: rgba(201, 162, 39, .14);
    border-bottom: 1px solid var(--lux-line);
    font-size: .85rem;
}

.lux-preview a {
    color: var(--lux-ink);
    font-weight: 600;
}

.lux-preview .material-symbols-outlined {
    color: var(--lux-gold-text);
}

/* ---------------------------------------------------------------- Portada */
.lux-hero {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 0 1.5rem;
    background:
        radial-gradient(circle at 12% 18%, var(--lux-glow-1), transparent 42%),
        radial-gradient(circle at 88% 26%, var(--lux-glow-2), transparent 40%),
        radial-gradient(circle at 60% 100%, var(--lux-glow-3), transparent 45%),
        var(--lux-bg);
}

.lux-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.lux-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.lux-hero-actions .lux-btn {
    flex: 1 1 0;
    padding-left: .8rem;
    padding-right: .8rem;
}

.lux-stat-pill {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    margin-top: 1rem;
    padding: .6rem 1rem;
    color: var(--lux-muted);
    font-size: .85rem;
}

.lux-stat-number {
    font-family: var(--lux-serif);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--lux-ink);
}

.lux-showcase {
    position: relative;
    height: 420px;
}

.lux-show {
    position: absolute;
    object-fit: contain;
    background: #FFFFFF;
    box-shadow: 0 18px 50px rgba(17, 17, 17, .14);
}

.lux-show-1 {
    width: 58%;
    aspect-ratio: 4 / 5;
    right: 4%;
    top: 0;
}

.lux-show-2 {
    width: 40%;
    aspect-ratio: 1 / 1;
    left: 2%;
    top: 12%;
}

.lux-show-3 {
    width: 34%;
    aspect-ratio: 1 / 1;
    left: 22%;
    bottom: 0;
}

.lux-stat-card {
    position: absolute;
    right: 0;
    bottom: 8%;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.25rem 1.5rem;
    min-width: 170px;
}

.lux-stat-card .lux-stat-number {
    font-size: 2.6rem;
}

.lux-stat-label {
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lux-muted);
}

/* ---------------------------------------------------------------- Catálogo */
.lux-catalog {
    padding: 2rem 0 2.5rem;
    scroll-margin-top: var(--lux-header-h);
}

.lux-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.lux-count {
    flex-shrink: 0;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lux-muted);
    padding-bottom: .35rem;
}

.lux-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    margin-bottom: .75rem;
}

.lux-search-field {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    margin: 0;
    padding: 0 .9rem;
    border: 1px solid var(--lux-line);
    background: var(--lux-surface);
    transition: border-color .2s ease;
}

.lux-search-field:focus-within {
    border-color: var(--lux-gold);
}

.lux-search-field .material-symbols-outlined {
    color: var(--lux-muted);
    font-size: 20px;
}

.lux-search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--lux-ink);
    font-size: 16px; /* 16px: iOS no hace zoom al escribir */
}

.lux-search-field input::placeholder {
    color: var(--lux-muted);
}

.lux-select {
    min-height: 48px;
    padding: 0 2.2rem 0 .9rem;
    border: 1px solid var(--lux-line);
    border-radius: 0;
    background-color: var(--lux-surface);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 14px;
    color: var(--lux-ink);
    font-size: 16px;
    appearance: none;
}

/* Filtro por categoría: círculos con la foto de una pieza (o la inicial), deslizables en el
   celular. La categoría elegida lleva anillo dorado; las que aún no tienen piezas se ven tenues. */
.lux-cats {
    display: flex;
    gap: .35rem;
    margin: 0 -16px 1.1rem;
    padding: .25rem 16px .35rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
    scrollbar-width: none;
}

.lux-cats::-webkit-scrollbar {
    display: none;
}

.lux-cat {
    flex: 0 0 auto;
    width: 82px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .2rem 0;
    text-align: center;
    text-decoration: none;
    color: var(--lux-ink);
}

.lux-cat-media {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px var(--lux-line);
    transition: box-shadow .2s ease, transform .2s ease;
}

.lux-cat-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lux-cat-media .material-symbols-outlined {
    font-size: 28px;
    color: var(--lux-gold-text);
}

.lux-cat-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F7EFD9, #E9D8A6);
    color: #5C4708;
    font-family: var(--lux-serif);
    font-size: 1.6rem;
}

.lux-cat-name {
    margin-top: .35rem;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lux-cat-count {
    font-size: .66rem;
    color: var(--lux-muted);
    white-space: nowrap;
}

.lux-cat:hover .lux-cat-media {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--lux-gold);
}

.lux-cat.active .lux-cat-media {
    box-shadow: 0 0 0 2px var(--lux-bg), 0 0 0 4px var(--lux-gold);
}

.lux-cat.active .lux-cat-name {
    font-weight: 600;
    color: var(--lux-gold-text);
}

.lux-cat.is-empty .lux-cat-media {
    opacity: .75;
}

.lux-cat:focus-visible {
    outline: 2px solid var(--lux-gold);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------------------------------------------------------------- Tarjetas */
.lux-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem .75rem;
}

.lux-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lux-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px var(--lux-line);
}

.lux-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.lux-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.lux-card:hover .lux-card-image img {
    transform: scale(1.05);
}

.lux-placeholder {
    font-size: 52px;
    color: #A8A29E;
}

.lux-badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    pointer-events: none;
}

.lux-badge {
    padding: .2rem .5rem;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.4;
}

.lux-badge-gold {
    background: #C9A227;
    color: #111111;
}

.lux-badge-dark {
    background: rgba(17, 17, 17, .86);
    color: #FFFFFF;
}

.lux-badge-glass {
    background: rgba(255, 255, 255, .78);
    color: #1A1A1A;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(17, 17, 17, .08);
}

/* Pedido rápido: botón de vidrio sobre la foto. */
.lux-quick {
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .8);
    color: #111111 !important;
    box-shadow: 0 4px 16px rgba(17, 17, 17, .14);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    transition: transform .2s ease, background-color .2s ease;
}

.lux-quick:hover {
    background: #111111;
    color: #FFFFFF !important;
    transform: scale(1.06);
}

.lux-card-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .65rem .1rem 0;
    text-decoration: none;
    color: var(--lux-ink);
}

.lux-card-eyebrow {
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lux-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lux-card-title {
    font-family: var(--lux-serif);
    font-size: .98rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lux-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem;
    margin-top: .15rem;
}

.lux-price {
    font-weight: 600;
    font-size: .95rem;
}

.lux-stock {
    font-size: .72rem;
    color: var(--lux-muted);
    white-space: nowrap;
}

.lux-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--lux-muted);
}

.lux-empty > .material-symbols-outlined {
    font-size: 44px;
    color: var(--lux-gold);
    margin-bottom: .5rem;
}

.lux-empty .lux-title {
    margin-bottom: .6rem;
}

.lux-empty p {
    max-width: 26rem;
    margin: 0 auto 1.25rem;
}

.lux-pages {
    display: flex;
    justify-content: center;
    gap: .35rem;
    margin-top: 2rem;
}

.lux-page {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lux-line);
    background: var(--lux-surface);
    color: var(--lux-ink);
    text-decoration: none;
    font-size: .9rem;
}

.lux-page.active {
    background: var(--lux-ink);
    border-color: var(--lux-ink);
    color: var(--lux-bg);
}

/* ---------------------------------------------------------------- Promesa (valores) */
.lux-story {
    padding: 2.75rem 0;
    background: var(--lux-surface);
    border-top: 1px solid var(--lux-line);
    border-bottom: 1px solid var(--lux-line);
}

.lux-story-grid {
    display: grid;
    gap: 1.75rem;
    align-items: center;
}

.lux-story .lux-title {
    margin-bottom: .75rem;
}

.lux-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}

.lux-value h3 {
    font-family: var(--lux-serif);
    font-size: 1rem;
    font-weight: 500;
    margin: .7rem 0 .2rem;
}

.lux-value p {
    margin: 0;
    font-size: .82rem;
    color: var(--lux-muted);
    line-height: 1.45;
}

.lux-value-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lux-line);
    color: var(--lux-gold-text);
}

.lux-value-icon .material-symbols-outlined {
    font-size: 22px;
}

/* ---------------------------------------------------------------- Círculo (membresía) */
.lux-circle {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(212, 175, 55, .18), transparent 45%),
        #0D0D0F;
    color: #F5F1E8;
}

.lux-circle .lux-title {
    color: #F5F1E8;
}

.lux-circle .lux-title em,
.lux-circle .lux-eyebrow {
    color: #E2C35E;
}

.lux-circle .lux-eyebrow::before {
    background: #D4AF37;
}

.lux-circle .lux-lead {
    color: #C9C3BA;
    margin-top: .75rem;
}

.lux-circle-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.lux-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: .6rem;
    font-size: .9rem;
    color: #E7E2D9;
}

.lux-checks li {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.lux-checks .material-symbols-outlined {
    font-size: 20px;
    color: #D4AF37;
}

.lux-circle-art {
    position: relative;
    justify-content: flex-end;
    min-height: 320px;
}

.lux-circle-art img {
    width: 78%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: #FFFFFF;
}

.lux-vip {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.25rem 1.6rem;
    /* Vidrio oscuro: queda encima de la foto (fondo blanco) y el texto claro sigue legible. */
    background: rgba(13, 13, 15, .62);
    border-color: rgba(255, 255, 255, .18);
    color: #FFFFFF;
}

.lux-vip-title {
    font-family: var(--lux-serif);
    font-size: 2.2rem;
    line-height: 1;
}

.lux-vip-label {
    font-size: .66rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #E7E2D9;
}

/* ---------------------------------------------------------------- Detalle de pieza */
.lux-detail {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
}

.lux-crumbs {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lux-muted);
}

.lux-crumbs a {
    color: var(--lux-muted);
    text-decoration: none;
}

.lux-crumbs a:hover {
    color: var(--lux-ink);
}

.lux-detail-grid {
    display: grid;
    gap: 1.5rem;
}

.lux-gallery {
    position: relative;
    min-width: 0;
}

.lux-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin: 0 -16px;
    background: #FFFFFF;
}

.lux-gallery-track::-webkit-scrollbar {
    display: none;
}

.lux-gallery-slide {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lux-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lux-gallery .lux-badges {
    top: .75rem;
    left: .25rem;
}

.lux-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: .7rem;
}

.lux-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lux-line);
    transition: width .25s ease, background-color .25s ease;
}

.lux-dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--lux-ink);
}

.lux-thumbs {
    gap: .6rem;
    margin-top: .75rem;
}

.lux-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid var(--lux-line);
    background: #FFFFFF;
    opacity: .7;
    transition: opacity .2s ease, border-color .2s ease;
}

.lux-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lux-thumb.active,
.lux-thumb:hover {
    opacity: 1;
    border-color: var(--lux-ink);
}

.lux-piece-title {
    font-size: clamp(1.6rem, 6vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: .35rem;
}

.lux-piece-sku {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lux-muted);
}

.lux-piece-sku span {
    color: var(--lux-ink);
    font-weight: 600;
}

.lux-piece-price {
    margin-top: .9rem;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -.01em;
}

.lux-availability {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .2rem;
    font-size: .88rem;
    font-weight: 500;
}

.lux-availability .material-symbols-outlined {
    font-size: 18px;
}

.lux-availability.in {
    color: var(--lux-success);
}

.lux-availability.out {
    color: var(--lux-warning);
}

.lux-order {
    margin-top: 1.25rem;
    padding: 1.1rem;
}

.lux-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lux-order-label {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lux-muted);
}

.lux-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--lux-line);
    background: var(--lux-surface);
}

.lux-stepper button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--lux-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lux-stepper button .material-symbols-outlined {
    font-size: 20px;
}

.lux-stepper input {
    width: 52px;
    border: 0;
    border-left: 1px solid var(--lux-line);
    border-right: 1px solid var(--lux-line);
    background: transparent;
    color: var(--lux-ink);
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
}

.lux-stepper input::-webkit-outer-spin-button,
.lux-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lux-order-total {
    min-height: 1.4rem;
    margin: .5rem 0 .6rem;
    text-align: right;
    font-size: .85rem;
    color: var(--lux-muted);
}

.lux-order-note {
    margin: .7rem 0 0;
    font-size: .76rem;
    line-height: 1.45;
    color: var(--lux-muted);
}

.lux-promise {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin: 1rem 0 0;
    padding: 0;
}

.lux-promise li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .7rem .3rem;
    border: 1px solid var(--lux-line);
    text-align: center;
    font-size: .7rem;
    line-height: 1.3;
    color: var(--lux-muted);
}

.lux-promise .material-symbols-outlined {
    font-size: 20px;
    color: var(--lux-gold-text);
}

.lux-subtitle {
    margin: 1.75rem 0 .6rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lux-ink);
}

.lux-description {
    white-space: pre-line;
    line-height: 1.65;
    color: var(--lux-ink);
    margin: 0;
}

.lux-specs {
    margin: 0;
}

.lux-specs > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--lux-line);
    font-size: .9rem;
}

.lux-specs dt {
    font-weight: 400;
    color: var(--lux-muted);
}

.lux-specs dd {
    margin: 0;
    text-align: right;
    color: var(--lux-ink);
}

.lux-piece .lux-link {
    margin-top: 1rem;
}

/* Carrusel de "También te puede gustar" (se desliza en el celular). */
.lux-related {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lux-line);
}

.lux-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    gap: .75rem;
    margin: 0 -16px;
    padding: 0 16px .5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
}

.lux-rail::-webkit-scrollbar {
    display: none;
}

.lux-rail .lux-card {
    scroll-snap-align: start;
}

/* Barra de pedido del celular (vidrio), se oculta con el formulario a la vista. */
.lux-buy-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .55rem .55rem 1rem;
    transition: transform .3s ease, opacity .3s ease;
}

.lux-buy-bar.is-hidden {
    transform: translateY(140%);
    opacity: 0;
}

.lux-buy-bar-info {
    min-width: 0;
}

.lux-buy-bar-price {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.1;
}

.lux-buy-bar-stock {
    font-size: .72rem;
    color: var(--lux-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lux-buy-bar .lux-btn {
    min-height: 46px;
    padding: .6rem 1.1rem;
}

.lux-buy-bar-spacer {
    height: 84px;
}

/* ---------------------------------------------------------------- Mensajes y pie */
.lux-hero-message {
    padding: 3rem 0;
}

.lux-footer {
    padding: 1.75rem 0 2rem;
    border-top: 1px solid var(--lux-line);
    background: var(--lux-surface-2);
    color: var(--lux-muted);
    font-size: .85rem;
    line-height: 1.6;
}

.lux-footer a {
    color: var(--lux-ink);
    text-decoration-color: var(--lux-gold);
    text-underline-offset: 3px;
}

.lux-footer-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--lux-serif);
    font-size: 1.15rem;
    color: var(--lux-ink);
    margin-bottom: .5rem;
}

.lux-footer-brand .lux-nice-logo {
    height: 20px;
}

.lux-footer-note {
    margin-top: .75rem;
    font-size: .75rem;
}

/* ---------------------------------------------------------------- Aparición suave
   Solo con JavaScript (clase lux-js en <html>): sin él, todo se ve de inmediato. */
.lux-js .lux-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.lux-js .lux-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .lux-js .lux-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .lux-card-image img,
    .lux-buy-bar {
        transition: none;
    }

    .lux-gallery-track {
        scroll-behavior: auto;
    }
}

/* ---------------------------------------------------------------- Pantallas grandes */
@media (min-width: 576px) {
    .lux-search {
        grid-template-columns: 1fr 220px;
    }

    .lux-hero-actions .lux-btn {
        flex: 0 0 auto;
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

    .lux-rail {
        grid-auto-columns: 30%;
    }
}

@media (min-width: 768px) {
    .store-body {
        --lux-header-h: 68px;
    }

    .lux-hero {
        padding: 3.5rem 0;
    }

    .lux-hero-grid,
    .lux-circle-grid {
        grid-template-columns: 1.05fr 1fr;
    }

    .lux-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem 1.25rem;
    }

    .lux-cats {
        gap: .75rem;
        margin-bottom: 1.5rem;
    }

    .lux-cat {
        width: 96px;
    }

    .lux-cat-media {
        width: 78px;
        height: 78px;
    }

    .lux-detail {
        padding-top: 1.75rem;
    }

    .lux-detail-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    .lux-gallery {
        position: sticky;
        top: calc(var(--lux-header-h) + 1rem);
    }

    .lux-gallery-track {
        margin: 0;
        box-shadow: 0 0 0 1px var(--lux-line);
    }

    .lux-gallery .lux-badges {
        left: .75rem;
    }

    .lux-story-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 3rem;
    }

    .lux-values {
        gap: 2rem 1.5rem;
    }

    .lux-rail {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-columns: unset;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .lux-story,
    .lux-circle {
        padding: 4.5rem 0;
    }
}

@media (min-width: 992px) {
    .lux-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lux-showcase {
        height: 480px;
    }
}
