/* ===========================
   GENERAL
=========================== */
body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* ===========================
   HEADER
=========================== */
header {
    height: auto;
    background: #ffffff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header h1 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

header a {
    background: #8e44ad;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* ===========================
   FILTROS
=========================== */
.filtros {
    background: white;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filtros input,
.filtros select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    flex: 1;
    font-size: 15px;
}

.filtros button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #2c3e50;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

/* ===========================
   CATÁLOGO
=========================== */
#catalogo {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Tarjeta del producto */
.producto {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.25s ease;
}

.producto:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Imagen */
.producto img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Título */
.producto h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
    min-height: 50px;
}

/* Marca */
.producto .marca {
    color: #777;
    margin: 5px 0;
}

/* Descripción */
.producto .descripcion {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
    min-height: 50px;
}

/* Precio */
.producto .precio {
    font-size: 24px;
    font-weight: bold;
    color: #8e44ad;
    margin: 15px 0;
}

/* ===========================
   BOTONES
=========================== */
.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}

.btn-carrito {
    background: #8e44ad;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-carrito:hover {
    background: #732d91;
}
.carrito-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.carrito-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.carrito-info {
    flex: 1;
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cantidad-control button {
    background: #8e44ad;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-eliminar {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}
/* CONTENEDOR PRINCIPAL DEL CARRITO */
#carrito-container {
    max-width: 900px;      /* ancho tipo Amazon */
    margin: 0 auto;        /* centra el carrito */
    padding: 20px;         /* espacio interno */
}
#carrito-container h2 {
    text-align: right;
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
}
/* CONTENEDOR PRINCIPAL DEL CARRITO */
#carrito-container {
    max-width: 900px;      /* ancho tipo Amazon */
    margin: 0 auto;        /* centra el carrito */
    padding: 20px;         /* espacio interno */
}


.checkout-box {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-whatsapp-checkout {
    display: block;
    background: #25D366;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    margin-top: 20px;
}
.btn {
    display: inline-block;
    background: #8e44ad;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
}
/* Layout de dos columnas */
#carrito-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Tarjetas de producto */
.carrito-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Imagen */
.carrito-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Panel de resumen */
.resumen-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

/* Botón checkout */
.btn-checkout {
    display: block;
    background: #8e44ad;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    font-size: 18px;
}

/*ESTILOS DE ENVIOS*/

.envio-box {
    max-width: 450px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.envio-box input,
.envio-box textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.envio-box ul {
    padding-left: 20px;
}

.btn-whatsapp-checkout {
    display: block;
    background: #25D366;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
}



