html, body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Diálogos modales SilverApp */
.silverapp-dialog-border {
    border: 2px solid #F2A900 !important;
}

.silverapp-dialog-backdrop {
    backdrop-filter: blur(8px);
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =============================================
   NAVBAR GLOBAL OVERRIDES
   (SilverApp.Client.styles.css returns 404 due
   to MapStaticAssets fingerprinting — these
   rules must live here to be served reliably)
   ============================================= */

/* Hamburguesa: visible en móvil, oculta en escritorio */
.hamburger-wrap {
    display: flex;
}
@media (min-width: 960px) {
    .hamburger-wrap {
        display: none !important;
    }
}

/* Menú horizontal: oculto en móvil, fila en escritorio */
.topbar-nav {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    overflow: visible;
}
@media (min-width: 960px) {
    .topbar-nav {
        display: flex !important;
        flex-shrink: 0;
    }
}

/* Override Bootstrap .nav-link { display: block } */
.topbar-nav .nav-link {
    display: inline-flex !important;
    align-items: center;
    text-decoration: none;
    color: #fff !important;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Enlace activo: borde inferior ámbar, sin cambio de color de texto */
.topbar-nav .nav-link.active {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #fff !important;
    box-shadow: inset 0 -2px 0 0 #f59e0b;
}

/* Dropdown trigger */
.topbar-dropdown {
    position: relative;
}
.topbar-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #fff !important;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
}

/* Dropdown trigger hover */
.topbar-dropdown-trigger:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* El trigger del dropdown no cambia de color al estar en una sub-página */
.active-menu .topbar-dropdown-trigger {
    background-color: transparent;
    color: #fff !important;
}

/* Hover en enlace normal */
.topbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

/* Active: hover mantiene el estilo ámbar */
.topbar-nav .nav-link.active:hover {
    background-color: rgba(245, 158, 11, 0.14) !important;
    color: #fff !important;
}

/* Íconos dentro de nav-link */
.topbar-nav .nav-link .mud-icon-root {
    color: #fff !important;
}
.topbar-nav .nav-link.active .mud-icon-root {
    color: #fbbf24 !important;
}

/* Panel del dropdown */
.topbar-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    margin-top: 6px;
    padding: 6px 8px;
    background: var(--mud-palette-surface, #1e293b);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.topbar-dropdown-panel a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--mud-palette-text-primary, #e2e8f0) !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.topbar-dropdown-panel a:hover {
    background-color: rgba(255, 255, 255, 0.08);
}
.topbar-dropdown-panel a.active {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--mud-palette-primary, #818cf8) !important;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}

.breadcrumb-link:hover {
    color: #e2e8f0;
    background-color: rgba(255, 255, 255, 0.06);
}

.breadcrumb-segment {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    padding: 2px 4px;
    white-space: nowrap;
}

.breadcrumb-sep {
    font-size: 0.875rem;
    color: #475569;
    user-select: none;
    line-height: 1;
}

.breadcrumb-current {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f59e0b;
    padding: 2px 4px;
    white-space: nowrap;
}

/* =============================================
   UTILIDADES GENERALES
   ============================================= */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =============================================
   COLECCIÓN PÚBLICA — Header mínimo
   ============================================= */
.coleccion-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0 1.5rem;
    height: 60px;
    background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0) 100%);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
}
.coleccion-header.scrolled {
    backdrop-filter: blur(16px);
    background: rgba(10,10,10,0.92);
}
.coleccion-header-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #e7e5e4;
    text-decoration: none;
    text-transform: uppercase;
}
.coleccion-header-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #78716c;
    text-decoration: none;
    transition: color 0.2s ease;
}
.coleccion-header-back:hover { color: #e7e5e4; }
.coleccion-header-logo-img {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    height: 48px;
    max-height: 48px;
    margin-left: auto;
}
.coleccion-header-logo-img img {
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Hero de colección — foto más transparente, degradado inferior, contraste para texto */
.coleccion-hero {
    background-image: radial-gradient(ellipse 90% 70% at 50% 45%, rgba(10,10,10,0.45), transparent 65%),
                      linear-gradient(180deg,
                        transparent 15%,
                        rgba(10,10,10,0.15) 50%,
                        rgba(10,10,10,0.5) 85%,
                        #0a0a0a 100%),
                      url('/images/bg-coleccion-hero-dark.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 3px;
}
.coleccion-hero-tagline {
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6);
}
.coleccion-hero-desc {
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6);
}
.coleccion-hero h1 {
    text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.5);
}

/* =============================================
   PRODUCTO CARD — Tarjeta pública con crossfade
   ============================================= */
.producto-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    border-radius: 2px;
    border: 1px solid rgba(168,162,158,0.28);
    padding: 0.45rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    /* Min altura en pantallas pequeñas: foto cuadrada + texto */
    min-height: 0;
}
.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 8px 16px rgba(0,0,0,0.4);
    border-color: rgba(168,162,158,0.25);
}
/* Contenedor de imágenes: recuadro naranja, 0.45rem entre marco naranja y tarjeta */
.producto-card-img-container {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 1;
    width: 100%;
    border: 1px solid #ea580c;
    border-radius: 2px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.producto-card-img-container .producto-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.7s ease;
}
.producto-card-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161616;
}
.producto-card-info {
    flex-shrink: 0;
    padding: 1rem 0 0.5rem;
}
.producto-card-nombre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: #e7e5e4;
    line-height: 1.3;
    margin: 0 0 0.25rem;
    letter-spacing: 0.04em;
}
.producto-card-precio {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    color: #a8a29e;
    letter-spacing: 0.08em;
    margin: 0;
}
.producto-card-score-badge {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.score-high { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.score-mid  { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.score-low  { background: rgba(120,113,108,0.15); color: #a8a29e; border: 1px solid rgba(120,113,108,0.2); }

/* Skeleton card */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 2px;
    border: 1px solid rgba(168,162,158,0.08);
    overflow: hidden;
    background: linear-gradient(
        90deg,
        #161616 25%,
        #222 50%,
        #161616 75%
    );
    background-size: 400px 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* =============================================
   MAGNIFIER — Lupa circular desktop + fullscreen mobile
   ============================================= */
.magnifier-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.magnifier-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: crosshair;
    border-radius: 2px;
    line-height: 0;
}
.magnifier-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.magnifier-lens {
    position: absolute;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3), inset 0 0 8px rgba(0,0,0,0.1);
    cursor: crosshair;
    display: none;
    pointer-events: none;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 10;
}
.magnifier-zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    width: 340px;
    height: 340px;
    border-radius: 3px;
    border: 1px solid rgba(168,162,158,0.2);
    background-repeat: no-repeat;
    background-color: #0a0a0a;
    display: none;
    z-index: 200;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    pointer-events: none;
}
@media (max-width: 1100px) {
    .magnifier-zoom-result { display: none !important; }
    .magnifier-lens { display: none !important; }
}
.magnifier-tap-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10,10,10,0.7);
    border: 1px solid rgba(168,162,158,0.3);
    color: #e7e5e4;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}
.magnifier-tap-btn:hover { background: rgba(30,30,30,0.9); }
@media (max-width: 1100px) {
    .magnifier-tap-btn { display: flex; }
}
.magnifier-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
}
.magnifier-mobile-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    touch-action: pinch-zoom;
    cursor: default;
    border-radius: 2px;
}
.magnifier-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30,30,30,0.9);
    border: 1px solid rgba(168,162,158,0.2);
    color: #e7e5e4;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.magnifier-close-btn:hover { background: rgba(60,60,60,0.95); }

/* =============================================
   BÚSQUEDA PANEL — Con fondo B&N → color
   ============================================= */
.busqueda-panel {
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem 4rem;
}
.busqueda-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    filter: grayscale(100%) brightness(0.35);
    transition: filter 0.8s ease;
    transform: scale(1.04);
}
.busqueda-panel:focus-within .busqueda-panel-bg {
    filter: grayscale(0%) brightness(0.5);
}
.busqueda-panel-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(10,10,10,0.55) 0%,
        rgba(10,10,10,0.82) 100%
    );
    pointer-events: none;
}
.busqueda-panel-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.busqueda-search-input {
    width: 100%;
    background: rgba(10,10,10,0.7);
    border: 1px solid rgba(168,162,158,0.2);
    border-radius: 2px;
    color: #e7e5e4;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    padding: 0.9rem 1.2rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}
.busqueda-search-input::placeholder {
    color: rgba(168,162,158,0.45);
    font-style: italic;
}
.busqueda-search-input:focus {
    border-color: rgba(168,162,158,0.45);
    background: rgba(15,15,15,0.85);
}
.busqueda-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    border: 1px solid rgba(168,162,158,0.35);
    border-radius: 2px;
    color: #e7e5e4;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.busqueda-btn:hover, .busqueda-btn:focus {
    background: rgba(168,162,158,0.1);
    border-color: rgba(168,162,158,0.55);
    outline: none;
}
.busqueda-btn-primary {
    background: rgba(168,162,158,0.08);
    border-color: rgba(168,162,158,0.4);
}
.busqueda-btn-primary:hover {
    background: rgba(168,162,158,0.18);
    border-color: rgba(168,162,158,0.65);
}
.busqueda-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.busqueda-tab-btn {
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    color: #78716c;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.busqueda-tab-btn.active {
    color: #e7e5e4;
    border-bottom-color: rgba(168,162,158,0.5);
}
.busqueda-tab-btn:hover { color: #a8a29e; }

.busqueda-img-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(168,162,158,0.2);
}
.busqueda-img-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid rgba(168,162,158,0.3);
    color: #e7e5e4;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.busqueda-error-msg {
    padding: 0.75rem 1rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 2px;
    color: #fca5a5;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}
.busqueda-429-msg {
    padding: 0.75rem 1rem;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 2px;
    color: #fcd34d;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
}

/* Cards grid en el panel de resultados */
.busqueda-results-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 540px) {
    .busqueda-results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .busqueda-results-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
    .busqueda-results-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Cards grid en la página principal de colección */
.coleccion-cards-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .coleccion-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .coleccion-cards-grid { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================
   DETALLE DE PRODUCTO — Galería + Info
   ============================================= */
.detalle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}
@media (min-width: 1024px) {
    .detalle-grid { grid-template-columns: 52% 44%; gap: 4%; }
}
.detalle-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.detalle-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(168,162,158,0.15);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.detalle-thumb:hover,
.detalle-thumb.active {
    opacity: 1;
    border-color: rgba(168,162,158,0.5);
}
.detalle-categoria-badge {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid rgba(168,162,158,0.3);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a8a29e;
    margin-bottom: 1.25rem;
}
.detalle-nombre {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    font-style: italic;
    color: #e7e5e4;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: 0.01em;
}
.detalle-precio {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #d4b896;
    letter-spacing: 0.03em;
    margin: 0 0 2rem;
}
.detalle-divider {
    width: 40px;
    height: 1px;
    background: rgba(168,162,158,0.3);
    margin: 1.5rem 0;
}
.detalle-descripcion {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #a8a29e;
    line-height: 1.8;
    white-space: pre-wrap;
}
.detalle-codigo {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #57534e;
    margin-top: 2rem;
}

/* =============================================
   LAYOUT — Edge-to-edge
   MudMainContent solo conserva padding-top (espacio
   para el AppBar fijo). Sin padding lateral.
   ============================================= */
.mud-main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

/* Wrapper de padding para páginas admin/productos */
.page-padded {
    max-width: 1920px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Páginas full-bleed (Home, landing): absorben el padding-top
   que MudMainContent aplica inline para el AppBar (~64px). */
.page-fullbleed {
    margin-top: calc(-1 * var(--mud-appbar-height, 64px));
    padding-top: 0;
}

/* Evitar overflow horizontal */
#app, .mud-layout {
    overflow-x: hidden;
}