/**
 * Lista de deseos — Luxury Design Store
 * Escala intermedia: +25% sobre la versión compacta (×1.25).
 */
.box-page-wishlist {
    --wl-bg: #0a0a0a;
    --wl-surface: #141414;
    --wl-surface-2: #1e1e1e;
    --wl-border: rgba(213, 208, 202, 0.22);
    --wl-text: #f5f3f1;
    --wl-muted: #b5aaa3;
    --wl-accent: #c45c2a;
    --wl-accent-hover: #e07030;
    --wl-danger: #c62828;
    --wl-danger-soft: rgba(198, 40, 40, 0.15);
    --wl-radius: 12px;
    --wl-radius-sm: 8px;
    --wl-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --wl-font: 'BentonSans-Regular', 'Saira', system-ui, sans-serif;
    --wl-font-bold: 'BentonSans-Bold', 'Saira', system-ui, sans-serif;
    /* ×1.25 sobre escala compacta — base ≈19px si html es 16px */
    --wl-fs-sm: 1.0625rem;
    --wl-fs-body: 1.19531rem;
    --wl-fs-md: 1.328125rem;
    --wl-fs-lg: 1.46094rem;
    --wl-lh: 1.55;
    --wl-lh-tight: 1.4;

    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.09375rem 0.75rem 2.03125rem;
    color: var(--wl-text);
    font-family: var(--wl-font);
    font-size: var(--wl-fs-body);
    line-height: var(--wl-lh);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.box-page-wishlist *,
.box-page-wishlist *::before,
.box-page-wishlist *::after {
    box-sizing: border-box;
}

/* ——— Cabecera ——— */
.wishlist-breadcrumbs {
    margin-bottom: 0.625rem;
    padding: 0;
}

.wishlist-breadcrumbs__heading {
    margin: 0;
    padding: 0;
    font-size: clamp(1.275rem, 2.975vw, 1.59375rem);
    font-weight: 400;
    line-height: var(--wl-lh);
}

.wishlist-back {
    color: #FFF !important;
    font: 21px/9px 'BentonSans-Regular', 'BentonSans-Bold' !important;
    text-decoration: none !important;
    padding: 1rem;
    background: #545454;
    border: 1px solid #D5D0CA;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    display: inline-block;
    width: auto;
    text-align: center;
}

.wishlist-back:hover {
    background: #493E3A;
    border-color: #988B85;
    color: #D5D0CA !important;
}

.wishlist-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.9375rem;
    border-bottom: 1px solid var(--wl-border);
}

.wishlist-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.46875rem 0.78125rem;
    justify-content: space-between;
}

.wishlist-page-title {
    margin: 0;
    font-family: var(--wl-font-bold);
    font-size: clamp(2.125rem, 4.78125vw, 3.05469rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.wishlist-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.9375rem;
    min-height: 2.9375rem;
    padding: 0 0.40625rem;
    font-size: var(--wl-fs-md);
    font-weight: 700;
    font-family: var(--wl-font-bold);
    color: var(--wl-text);
    background: var(--wl-surface-2);
    border: 1px solid var(--wl-border);
    border-radius: 999px;
}

.wishlist-muted {
    color: var(--wl-muted);
    font-weight: 400;
}

/* ——— Grid ——— */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 325px), 1fr));
    gap: 1.09375rem;
    align-items: stretch;
}

/* ——— Tarjeta ——— */
.wishlist-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border: 1px solid var(--wl-border);
    border-radius: var(--wl-radius);
    background: var(--wl-surface);
    box-shadow: var(--wl-shadow);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.wishlist-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.wishlist-card__inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.wishlist-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6875rem;
    padding: 0.75rem 0.875rem 0.625rem;
    border-bottom: 1px solid var(--wl-border);
    background: linear-gradient(180deg, var(--wl-surface-2) 0%, var(--wl-surface) 100%);
}

.wishlist-card__meta-content {
    flex: 1;
    min-width: 0;
}

.wishlist-card__code {
    display: block;
    font-size: var(--wl-fs-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wl-muted);
    margin-bottom: 0.28125rem;
    line-height: var(--wl-lh);
}

.wishlist-card__title {
    margin: 0;
    font-family: var(--wl-font-bold);
    font-size: clamp(1.275rem, 2.55vw, 1.64688rem);
    line-height: var(--wl-lh-tight);
    font-weight: 600;
    word-wrap: break-word;
}

.wishlist-card__title a {
    color: var(--wl-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wishlist-card__title a:hover {
    color: var(--wl-accent-hover);
}

/* ——— Imagen (caja uniforme + object-fit; misma altura de bloque en todas las cards) ——— */
.wishlist-card__media {
    position: relative;
    flex-shrink: 0;
    background: #0d0d0d;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0.625rem;
}

.wishlist-card__figure {
    position: relative;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.wishlist-card__img-wrap {
    position: relative;
    width: 100%;
    /* Altura derivada del ancho de la card: estable en cada breakpoint */
    aspect-ratio: var(--wl-card-media-ratio, 4 / 3);
    max-height: clamp(11.25rem, 42vw, 21.25rem);
    background: #0a0a0a;
    border-radius: var(--wl-radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-card__img-wrap > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    text-decoration: none;
    color: inherit;
}

.wishlist-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.wishlist-btn-remove {
    flex-shrink: 0;
    align-self: flex-start;
    min-height: 55px;
    padding: 0.4375rem 0.75rem;
    font-size: var(--wl-fs-sm);
    font-family: var(--wl-font-bold);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f5e6e6;
    background: var(--wl-danger-soft);
    border: 1px solid rgba(198, 40, 40, 0.45);
    border-radius: var(--wl-radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.wishlist-btn-remove:hover:not(:disabled) {
    background: rgba(198, 40, 40, 0.35);
    border-color: var(--wl-danger);
    color: #fff;
}

.wishlist-btn-remove:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wishlist-btn-remove.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ——— Tabla material / local ——— */
.wishlist-card__body {
    padding: 0.71875rem 0.84375rem 0.84375rem;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.71875rem;
}

.wishlist-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: calc(var(--wl-fs-body) * 1.3);
}

.wishlist-data-table tbody tr {
    border-bottom: 1px solid var(--wl-border);
}

.wishlist-data-table th {
    width: 36%;
    padding: 0.46875rem 0.53125rem 0.46875rem 0;
    font-family: var(--wl-font);
    font-size: calc(var(--wl-fs-sm) * 1.3);
    font-weight: 600;
    color: var(--wl-muted);
    text-align: left;
    vertical-align: top;
    line-height: var(--wl-lh);
}

.wishlist-data-table td {
    padding: 0.46875rem 0 0.46875rem 0.40625rem;
    font-size: calc(var(--wl-fs-body) * 1.3);
    line-height: var(--wl-lh);
    color: var(--wl-text);
}

.wishlist-local-link {
    color: #00ffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.wishlist-local-link:hover {
    border-bottom-color: #00ffff;
}

/* ——— Medidas (HTML desde FEL: .product-measures) ——— */
.box-page-wishlist .product-measures {
    margin: 0;
}

.box-page-wishlist .product-measures dt {
    position: relative;
    font-size: var(--wl-fs-body);
    line-height: var(--wl-lh-tight);
    padding: 0.53125rem 0.71875rem;
    font-weight: 600;
    background: var(--wl-surface-2);
    border-radius: var(--wl-radius-sm);
    margin-top: 0.4375rem;
    cursor: pointer;
    text-align: center;
    color: var(--wl-text);
}

.box-page-wishlist .product-measures dt small {
    position: absolute;
    top: 0;
    right: 0;
    font-size: var(--wl-fs-body);
    padding: 0 0.53125rem;
    line-height: inherit;
}

.box-page-wishlist .product-measures dd {
    padding: 0.3125rem 0 0;
    margin: 0;
}

.box-page-wishlist .product-measures table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: var(--wl-fs-sm);
}

.box-page-wishlist .product-measures tbody tr {
    border-bottom: 1px solid var(--wl-border);
}

.box-page-wishlist .product-measures th {
    padding: 0.40625rem 0.40625rem 0.40625rem 0;
    font-family: var(--wl-font);
    font-size: var(--wl-fs-sm);
    font-weight: 600;
    color: var(--wl-muted);
    text-align: left;
    vertical-align: middle;
    line-height: var(--wl-lh);
}

.box-page-wishlist .product-measures td {
    padding: 0.40625rem 0 0.40625rem 0.40625rem;
    color: var(--wl-text);
    line-height: var(--wl-lh);
    font-size: var(--wl-fs-sm);
}

/* Icono pegado al valor (misma fila: th | icono | dato) */
.box-page-wishlist .product-measures td.product-measure-icon {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.40625rem 0 0.40625rem 0.25rem;
}

.box-page-wishlist .product-measures td.product-measure-value {
    vertical-align: middle;
    padding: 0.40625rem 0 0.40625rem 0;
}

.box-page-wishlist .product-measures td.product-measure-icon svg {
    display: block;
}

.box-page-wishlist .product-measures td em {
    color: var(--wl-muted);
    font-style: normal;
    font-size: 1em;
}

.box-page-wishlist .product-measures .hidden {
    display: none !important;
}

/* ——— Precio ——— */
.wishlist-price {
    flex-shrink: 0;
    padding: 0.71875rem 0.84375rem;
    width: 100%;
    background: rgba(196, 92, 42, 0.08);
    border-top: 1px solid var(--wl-border);
    border-bottom: 1px solid var(--wl-border);
    font-size: calc(var(--wl-fs-body) * 1.3);
    line-height: var(--wl-lh);
    color: var(--wl-text);
}

.wishlist-price strong {
    font-family: var(--wl-font-bold);
    font-weight: 600;
    color: var(--wl-text);
}

.wishlist-price-secondary {
    margin-top: 0.3125rem;
    font-size: calc(var(--wl-fs-sm) * 1.3);
    color: var(--wl-muted);
    line-height: var(--wl-lh);
}

/* ——— CTA “Consultar” (mismo patrón que pages/product.php: .div-consulta + .btn-extra-blue) ——— */
.wishlist-card__actions {
    flex-shrink: 0;
    padding: 0;
    margin-top: auto;
}

.box-page-wishlist .div-consulta {
    border-top: groove;
    display: flex;
    width: 100%;
}

.box-page-wishlist .div-consulta a {
    color: #000;
}

.box-page-wishlist .cienwidth {
    width: 100% !important;
}

.box-page-wishlist .btn-extra {
    padding: 1rem;
    text-align: center;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.box-page-wishlist .btn-extra a {
    display: block;
    padding: 1px 0 1px 4px;
    font: 23px/42px 'BentonSans-Regular', 'BentonSans-Bold', system-ui, sans-serif;
    color: #988b85;
    border: 1.5px solid #000;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    text-decoration: none;
}

.box-page-wishlist .btn-extra a:hover {
    color: #493e3a;
    border-color: #ebe9e7;
    background-color: #d5d0ca;
    box-shadow: 0 0 10px #cecac4;
}

.box-page-wishlist .btn-extra-blue {
    background: #cee0e3 !important;
}

.box-page-wishlist .btn-extra-blue a {
    color: #000 !important;
}

.box-page-wishlist .btn-extra-blue a:hover {
    color: #2b454f !important;
    border-color: #cee0e3;
    background-color: #91b9c1;
    box-shadow: 0 0 10px #91b9c1;
}

@media (max-width: 450px) {
    .box-page-wishlist .btn-extra a {
        font: 25px/30px 'BentonSans-Regular', 'BentonSans-Bold', system-ui, sans-serif;
    }
}

/* Botones en estado vacío usan btn-extra btn-extra-blue */
.wishlist-empty a.btn-extra {
    display: inline-block;
    min-width: 11.25rem;
    margin-top: 0.53125rem;
    text-align: center;
    padding: 1px 0 1px 4px;
    font: 23px/42px 'BentonSans-Regular', 'BentonSans-Bold', system-ui, sans-serif;
    text-decoration: none;
    border: 3px solid transparent;
}

.wishlist-empty a.btn-extra-blue {
    background: #cee0e3 !important;
    color: #000 !important;
}

.wishlist-empty a.btn-extra-blue:hover {
    color: #2b454f !important;
    border-color: #cee0e3;
    background-color: #91b9c1 !important;
    box-shadow: 0 0 10px #91b9c1;
}

/* Dentro de las tarjetas de producto */
.wishlist-card__actions a.btn-extra {
    display: block;
    padding: 1px 0 1px 4px;
    font: 23px/42px 'BentonSans-Regular', 'BentonSans-Bold', system-ui, sans-serif;
    text-decoration: none;
    border: 3px solid transparent;
}

.wishlist-card__actions a.btn-extra-blue {
    background: #cee0e3 !important;
    color: #000 !important;
}

.wishlist-card__actions a.btn-extra-blue:hover {
    color: #2b454f !important;
    border-color: #cee0e3;
    background-color: #91b9c1 !important;
    box-shadow: 0 0 10px #91b9c1;
}

/* ——— Vacío / invitado ——— */
.wishlist-empty {
    max-width: 26.25rem;
    margin: 1.875rem auto;
    padding: 1.71875rem 1.40625rem;
    text-align: center;
    background: var(--wl-surface);
    border: 1px solid var(--wl-border);
    border-radius: var(--wl-radius);
    box-shadow: var(--wl-shadow);
}

.wishlist-empty img {
    height: 3.4375rem;
    width: auto;
    margin-bottom: 0.84375rem;
    opacity: 0.9;
}

.wishlist-empty p {
    margin: 0 0 0.71875rem;
    font-size: var(--wl-fs-md);
    line-height: var(--wl-lh);
    color: var(--wl-muted);
}

.wishlist-empty p:last-of-type {
    margin-bottom: 0;
}

.wishlist-guest-hint {
    margin-top: 0.53125rem;
    font-size: var(--wl-fs-body);
    color: var(--wl-muted);
}

.wishlist-guest-hint a {
    color: var(--wl-accent-hover);
    font-weight: 600;
    text-decoration: none;
}

.wishlist-guest-hint a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .box-page-wishlist {
        padding: 0.71875rem 0.53125rem 1.40625rem;
    }

    .wishlist-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .wishlist-card__img-wrap {
        max-height: clamp(10rem, 52vw, 17.5rem);
    }

    .wishlist-card__meta {
        flex-direction: column;
        align-items: stretch;
    }

    .wishlist-btn-remove {
        align-self: flex-end;
        min-height: 55px;
        font-size: var(--wl-fs-sm);
        padding: 0.4375rem 0.6875rem;
    }

    .wishlist-back {
        font: 15px/9px 'BentonSans-Regular', 'BentonSans-Bold' !important;
    }
}
tbody {
    border-bottom: none !important;
}
