/* ====== RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    font-family: 'Arial', sans-serif;
    color: #fff;
    padding: 20px;
}

/* ====== HEADER ====== */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    letter-spacing: 1px;
    font-weight: 600;
    color: #ffffff;
}

/* HEADER SUPERIOR */
.top-header {
    width: 100%;
    background: #0a0a0a;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;   /* ← manda los botones a la derecha */
    border-bottom: 1px solid #1d1d1d;
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Título */
.titulo {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

/* Contenedor de botones */
.top-buttons {
    display: flex;
    gap: 12px;
}

/* Botones */
.header-btn {
    padding: 10px 18px;
    background: #111;
    color: #fff;
    border: 1px solid #000000;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.header-btn:hover {
    background: #d408084d;
    border-color: #c7383869;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 56, 56, 0.35);
}

.header-btn:active {
    transform: scale(0.96);
}


/* Contenedor de botones */
.top-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ====== BOTONES ====== */
.btn-minimal {
    background: #111;
    color: #ffffff;
    border: 1px solid #c73838;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.25s ease-in-out;
}

.btn-minimal:hover {
    background: #832020;
    color: #fff;
    transform: translateY(-2px);
}

/* ====== GRID DE PRODUCTOS ====== */
.product-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    padding-bottom: 50px;
}

.top-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;  /* Centrado */
    margin-bottom: 20px;
}

.header-btn {
    padding: 10px 18px;
    background: #0f0f0f;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: 0.25s ease;
}

.header-btn:active {
    transform: scale(0.96);
}

/* ====== TARJETAS ====== */
.product-card {
    background: #29292941;
    border: 1px solid #5c5c5ca1;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: 0.25s ease-in-out;
}

.product-card:hover {
    border-color: #961212a2;
    transform: translateY(-4px);
}

/* ====== IMÁGENES ====== */
.image-container {
    width: 100%;
    height: 220px;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== TEXTO ====== */
.product-title {
    font-size: 16px;
    margin-top: 12px;
}

.product-price {
    font-size: 15px;
    margin: 8px 0 14px;
    color: #ffffff;
    font-weight: bold;
}

/* ====== BOTÓN AGREGAR ====== */
.btn-cart {
    display: inline-block;
    padding: 10px 14px;
    background: #111;
    color: #ffffff;
    border: 1px solid #00157200;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.25s;
}

.btn-cart:hover {
    background: #801414b0;
    color: #fff;
}

/* ====== FOOTER ====== */
footer {
    margin-top: 40px;
}
