/* ================= FORM ================= */

.btn-publicar {
    background: #d60000;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(214, 0, 0, 0.3);
}

.btn-publicar:hover {
    background: #b80000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(214, 0, 0, 0.4);
}

.btn-publicar:active {
    transform: scale(0.97);
}

/* ================= ADMIN ================= */

.admin-panel {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 12px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
}

.producto {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.producto-img {
    position: relative;
}

.producto-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.producto-info {
    padding: 10px 12px;
}

.producto-info h3 {
    font-size: 15px;
    margin: 0;
}

.producto-info p {
    font-size: 18px;
    font-weight: bold;
    color: #1a8f3e;
    margin-top: 5px;
}

.btn-cart-float {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 230, 0, 0.95);
    cursor: pointer;
}

/* ================= PUBLICAR PRODUCTO ================= */

body{
    background:#0b0b0b;
}


/* CONTENEDOR PRINCIPAL */

.form-publicar-page{

    max-width:650px;
    margin:40px auto;
    padding:35px;

    background:#151515;

    border-radius:18px;

    border:1px solid #2b2b2b;

    box-shadow:
    0 15px 40px rgba(0,0,0,.5);

    display:flex;
    flex-direction:column;
    gap:16px;

}


/* TITULO HEADER */

.header{

    background:#111;

    padding:20px;

    border-bottom:2px solid #d60000;

    text-align:center;

}


.header h2{

    color:white;

    margin:0;

}


/* INPUTS */

.form-publicar-page input,
.form-publicar-page select,
.form-publicar-page textarea{

    width:100%;

    box-sizing:border-box;

    background:#0d0d0d;

    color:white;

    border:1px solid #333;

    padding:14px;

    border-radius:10px;

    font-size:15px;

    outline:none;

    transition:.2s;

}



.form-publicar-page input:focus,
.form-publicar-page select:focus,
.form-publicar-page textarea:focus{

    border-color:#d60000;

    box-shadow:0 0 8px rgba(214,0,0,.3);

}


/* SELECT */

.form-publicar-page select{

    cursor:pointer;

}


/* TEXTAREA */

.form-publicar-page textarea{

    resize:none;

}


/* IMAGEN */

#imagen{

    padding:12px;

    background:#111;

}


/* COMISION */

.comision-box{

    background:#0d0d0d;

    border:1px solid #333;

    padding:20px;

    border-radius:14px;

    color:white;

}


.comision-box h3{

    color:#d60000;

    margin-top:0;

}


.comision-box strong{

    color:#00c853;

}



/* BOTON PUBLICAR */

.btn-publicar{

    margin-top:10px;

    background:#d60000;

    color:white;

    border:none;

    padding:16px;

    border-radius:12px;

    font-size:17px;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;

}



.btn-publicar:hover{

    background:#ff0000;

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(214,0,0,.4);

}


/* ================= VOLVER ================= */

.volver-container{
    max-width: 900px;
    margin: 25px auto 0;
    padding: 0 20px;
}

.btn-volver{

    background:#1f1f1f;
    color:#fff;

    border:none;

    padding:12px 20px;

    border-radius:10px;

    cursor:pointer;

    font-size:15px;
    font-weight:bold;

    transition:.2s;

}

.btn-volver:hover{

    background:#d60000;

    transform:translateY(-2px);

}