/* === CARRITO SLIDE MODERNO === */
.cart-slide {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100%;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
    font-family: 'Roboto', sans-serif;
}

.cart-slide.active {
    transform: translateX(0);
}

.cart-slide h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0d47a1;
}

.cart-slide .cerrar {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.4rem;
    color: #555;
    cursor: pointer;
}

/* === ITEM DEL CARRITO === */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cart-item-info img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f4f4f4;
    padding: 4px;
}

.cart-item-info div strong {
    font-size: 0.95rem;
    color: #222;
}

.cart-item-info div span {
    font-weight: bold;
    color: #e53935;
    font-size: 0.9rem;
}

.cart-item a {
    font-size: 1.2rem;
    color: #e53935;
    text-decoration: none;
    font-weight: bold;
    padding: 4px;
    transition: color 0.2s;
}

.cart-item a:hover {
    color: #b71c1c;
}

/* === SUBTOTAL === */
.cart-subtotal {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: right;
    margin-top: 1.5rem;
    color: #222;
}

/* === BOTONES DEL CARRITO === */
.cart-actions a {
    display: block;
    text-align: center;
    padding: 0.8rem;
    margin-top: 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-view {
    background-color: #ffc107;
    color: #000;
    border: 2px solid transparent;
}

.btn-view:hover {
    background-color: #e0a800;
}

.btn-checkout {
    background-color: #0d47a1;
    color: #fff;
    border: 2px solid transparent;
}

.btn-checkout:hover {
    background-color: #08306b;
}

/* === ICONO DEL CARRITO EN NAVBAR === */
.navbar-cart {
    
}

.navbar-cart button {
    background-color: #0d47a1;
    border: none;
    color: white;
    padding: 0.6rem 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-cart i {
    font-size: 1.1rem;
}

.cart-count {
    background-color: #ffc107;
    color: #000;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    line-height: 1;
    position: absolute;
    top: -6px;
    right: -6px;
}
