body{
    margin:0;
    font-family:'Inter',sans-serif;
    background:#fafafa;
    color:#111;
    /* No seleccionable */
    user-select: none;       /* Desactiva selección en la mayoría de navegadores */
    -webkit-user-select: none; /* Safari / Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    cursor: default;           /* Opcional: cursor normal */
}/* Badge dorado / elegante en esquina superior derecha */

/* ===== HEADER EDITORIAL ===== */
.header{
    text-align:center;
    padding:70px 20px 50px;
    position:relative;
}

.logo-fancy{
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit:cover;
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    top:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    background:white;
    padding:6px;
}

.titulo-bazar{
    margin-top:70px;
    font-size:28px;
    letter-spacing:6px;
    font-weight:600;
}

.subtitulo{
    margin-top:10px;
    font-size:13px;
    letter-spacing:3px;
    color:#777;
}

/* ===== FILTROS ===== */
/* Contenedor principal de filtros */
.filtros {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Grupo de Filtro Individual */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

/* La etiqueta arriba del select */
.filter-group label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #999;
    margin-left: 2px;
}

/* El select estilizado */
.filter-group select {
    appearance: none; /* Quita la flecha default de Windows/Mac */
    -webkit-appearance: none;
    padding: 10px 35px 10px 12px;
    border: none;
    border-bottom: 1px solid #ddd; /* Solo línea inferior para look minimal */
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23111' d='M0 2l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #111;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-bottom-color: #111;
}

/* Hover efecto */
.filter-group select:hover {
    border-bottom-color: #999;
}

/* ===== CATÁLOGO ===== */
.catalogo {
    width: 92%;
    max-width: 1200px;
    margin: 30px auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}


.card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}


.card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.card.standard {
    border: 3px solid rgba(0,0,0,0.05); /* borde muy sutil */
    box-shadow: 6px 6px 18px rgba(0,0,0,0.06); /* sombra inicial suave */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.shinny {
    /* Un dorado champaña mucho más fino */
    border: 1px solid rgba(212, 175, 55, 0.4); 
    
    /* Sombra multicapa: una cerca y nítida, otra lejana y difusa */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(212, 175, 55, 0.2);
    
    background: linear-gradient(145deg, #ffffff, #fdfbf7);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card.shinny:hover {
    transform: translateY(-5px);
    /* El brillo aumenta sutilmente al interactuar */
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.8);
}



.card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.10);
}

.card img{
    width:100%;
    aspect-ratio:4/5;
    object-fit:cover;
    display:block;
}



/* Imagen en blanco y negro si está agotada */
.card.agotado img {
    filter: grayscale(100%) brightness(85%);
    transition: filter 0.3s;
}

.card.agotado::after {
    content: 'AGOTADO';
    position: absolute;
    top: 15px; 
    left: 0;   
    background: #8e2121; /* Un rojo elegante, tipo vino */
    color: white;
    font-family: 'Playfair Display', serif; /* Misma fuente que Selección */
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 0 4px 4px 0; /* Recto, igual que el otro */
    z-index: 10;
    pointer-events: none;
    opacity: 0.9; /* Un toque de transparencia lo hace ver más fino */
}

/* Ribbon destacado (mismo estilo que AGOTADO pero dorado) */
.card.seleccion::after {
    content: 'SELECCIÓN';
    position: absolute;
    top: 15px; /* Un poco más abajo */
    left: 0;   /* Pegado a la izquierda */
    
    /* Gradiente dorado más suave y metálico */
    background: linear-gradient(90deg, #d4af37, #f7ef8a);
    color: #333; /* Un gris muy oscuro, menos duro que negro puro */
    
    font-family: 'Playfair Display', serif; /* Cambia a fuente Serif */
    font-size: 11px;
    font-weight: 700;
    
    padding: 6px 12px;
    
    /* Forma de "listón" o badge rectangular */
    border-radius: 0 4px 4px 0;
    
    z-index: 10;
    pointer-events: none;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    
    /* Opcional: un toque elegante de espaciado */
    letter-spacing: 0.5px;
}

/* Badge de género minimalista en la info de la card */
.card .info .genero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    background-color: #f0f0f0; /* gris muy suave */
    color: #555;
    transition: background 0.3s, color 0.3s;
}

.card[data-genero="hombre"] .genero-badge {
    background-color: #e0f1ff; /* azul muy suave */
    color: #1a3c6e;
}

.card[data-genero="mujer"] .genero-badge {
    background-color: #ffe6f0; /* rosa muy suave */
    color: #b32859;
}

.card[data-genero="unisex"] .genero-badge {
    background-color: #c6e1cc; /* rosa muy suave */
    color: #1a3c6e;
}




.info{padding:16px;}
.nombre{font-size:15px;font-weight:500;margin-bottom:6px;}
.precio{font-size:16px;margin-bottom:12px;}

.boton{
    display:block;
    text-align:center;
    padding:10px;
    border:1px solid #111;
    border-radius:6px;
    text-decoration:none;
    color:#111;
    font-size:13px;
    transition:.25s;
}
.boton:hover{
    background:#111;
    color:white;
}

/* ===== FOOTER ===== */
footer{
    text-align:center;
    padding:50px 20px;
    font-size:13px;
    color:#777;
    user-select: none;       /* Desactiva selección en la mayoría de navegadores */
    -webkit-user-select: none; /* Safari / Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    cursor: default;           /* Opcional: cursor normal */
}

/* Estilos para el modal del login */
.modal-content .error {
  color: red;
  font-size: 13px;
  margin-top: 10px;
}

/* ===== PAGINACIÓN FANCY ===== */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.pag-btn {
    padding: 8px 16px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.pag-btn:hover:not(:disabled) {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.pag-btn:disabled {
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    border-color: #111;
    cursor: default;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.paginacion span {
    font-weight: 500;
    min-width: 30px;
    text-align: center;
    color: #555;
}

/* Contenedor de "No hay productos" dentro del catalogo */
.catalogo #vacio {
    display: none; /* se muestra solo cuando no hay productos */
    grid-column: 1 / -1; /* ocupa todas las columnas del grid */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;

    text-align: center;
}

.catalogo #vacio img {
    width: 400px; /* más grande si quieres */
    max-width: 50%;
    height: auto;
    object-fit: scale-down;
    filter: grayscale(30%) contrast(1.1);
}

.catalogo #vacio span {
    font-size: 20px;
    font-weight: 500;
    color: #555;
    letter-spacing: 1px;
}

/* ===== Modal Login Admin ===== */
.modal-login {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 5000;
    padding: 16px;
    box-sizing: border-box;
}

.modal-login-content {
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    padding: 24px 20px;
    border-radius: 16px;
    max-width: 360px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2), 0 6px 12px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-login-content h3 {
    margin: 0;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    color: #111;
}

.modal-login-content input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.modal-login-content input:focus {
    border-color: #111;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.modal-login-content button {
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, transform 0.15s;
}

.modal-login .error {
    margin-left: 12px;
    color: red;
}

#btnLoginAdmin {
    background: #111;
    color: #fff;
}

#btnLoginAdmin:hover {
    background: #333;
    transform: translateY(-1px);
}

#btnCerrarLogin {
    background: #eee;
}

#btnCerrarLogin:hover {
    background: #ccc;
}

/* Responsive */
@media(max-width: 480px) {
    .modal-login-content {
        max-width: 90%;
        padding: 20px 16px;
    }
}

/* Contenedor centrado sobre la paginación */
.crear-prenda-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Botón elegante tipo Zara */
.admin-btn-fancy {
    background-color: #fff; /* fondo blanco limpio */
    color: #333; /* texto oscuro */
    border: 1px solid #333; /* borde fino */
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 2px; /* ligeramente redondeado */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.admin-btn-fancy:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card .ribbon-badge {
    position: absolute;
    top: 15px;
    right: 7px;
    background: #111;
    color: #ffffff;
    opacity: 85%;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    pointer-events: none; /* no interfiere con clicks */
    z-index: 10;
}
