/* ===== BASE ===== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #020617, #0f172a);
    color: #fff;
    margin: 0;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.logo {
    font-size: 24px;
}

.logo span {
    color: #3b82f6;
}

.logout {
    background: #ef4444;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
}

/* ===== FORM ===== */
.formBox {
    background: rgba(15, 23, 42, 0.7);
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.formBox h2 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #3b82f6;
}

.row {
    display: flex;
    gap: 10px;
}

.row input {
    flex: 1;
}


.imgBox {
    width: 100%;
    height: 220px; /* 🔥 tamaño fijo para TODAS */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #020617;
}

/* imagen */
.imgBox img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 TODAS iguales (recorta si hace falta) */
}

/* inputs */
.formBox input {
    padding: 9px;
    border-radius: 8px;
    border: none;
    background: #020617;
    color: white;
    width: 100%;
    margin-bottom: 8px;
}


.formBox select {
    padding: 9px;
    border-radius: 8px;
    border: none;
    background: #020617;
    color: white;
    width: 100%;
    margin-bottom: 8px;
}

/* botón */
.formBox button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    cursor: pointer;
}

/* ===== SWITCH MODERNO ===== */
.switchLabel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.switchLabel input {
    display: none;
}

.switchLabel span {
    width: 35px;
    height: 18px;
    background: #1e293b;
    border-radius: 999px;
    position: relative;
}

.switchLabel span::before {
    content: "";
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.2s;
}

.switchLabel input:checked + span::before {
    left: 18px;
}

.switchLabel input:checked + span {
    background: #3b82f6;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tabs button {
    padding: 6px 14px;
    border-radius: 999px;
    background: #1e293b;
    border: none;
    color: white;
    cursor: pointer;
}

.tabs button.active {
    background: #3b82f6;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* 🔥 MÁS GRANDES */
    gap: 25px;
    max-width: 1200px; /* 🔥 limita ancho */
    margin: 0 auto; /* 🔥 centra */
    padding: 0 20px;
}
/* ===== CARD ===== */
.card {
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
}
/* info */
.info {
    padding: 8px;
}

.info h3 {
    font-size: 13px;
    margin: 4px 0;
}

/* stock */
.stock {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;

    font-size: 12px;
    font-weight: 500;

    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;

    border-radius: 999px;
    text-align: center;
}
.info {
    padding: 10px;
    text-align: center;
}

.info h3 {
    font-size: 14px;
    margin: 6px 0;
}
/* acciones */
.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.actions a {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    text-decoration: none;
}

.edit {
    background: #f59e0b;
    color: black;
}

.delete {
    background: #ef4444;
    color: white;
}

/* 🔥 MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

/* imagen centrada */
.modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 12px;
}

/* botón cerrar */
.modal .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* ===== CATEGORY POLISH ===== */
.categorySelect {
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    background: #020617 !important;
    font-weight: 700;
}

.sell {
    background: #22c55e;
    color: #03140a;
    cursor: pointer;
}
