:root {
    --primary-red: #9e2628;
    --primary-purple: #72379f; /* Color oficial del sistema (login) */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    background-color: var(--light-gray);
    font-family: 'Poppins', sans-serif;
}

.tienda-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.tienda-header {
    text-align: center;
    margin-bottom: 40px;
}

.tienda-header h1 {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 700;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.producto-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.producto-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-purple);
}

.producto-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.producto-nombre {
    font-size: 1.2rem;
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 10px;
}

.producto-precio {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-add-cart {
    background-color: var(--primary-purple);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    width: 100%;
}

.btn-details {
    background-color: var(--primary-red);
}

.btn-add-cart:hover {
    opacity: 0.9;
}

/* Floating cart icon */
.cart-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-purple);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
}
.cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Carrito Page */
.carrito-table {
    width: 100%;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border-collapse: collapse;
}

.carrito-table th {
    background: var(--primary-purple);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

.carrito-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.carrito-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-remove {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.carrito-total-container {
    text-align: right;
    margin-top: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.carrito-total {
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: 700;
}
