/* Canastas Plugin Styles */
.canasta-container {
    padding-bottom: 110px; /* Espacio para barra flotante */
}

.canasta-header {
    background-color: #f8f9fa;
    padding: 24px 20px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
    border-radius: 6px;
}

.canasta-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.canasta-header p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
}

.canasta-product-card {
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.canasta-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.canasta-product-card .img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.canasta-product-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.canasta-product-card .brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 4px;
}

.canasta-product-card .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 2.6em;
}

.canasta-product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

/* Sticky Bottom Tray */
.canasta-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    min-height: 90px;
}

.canasta-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 28%;
}

.canasta-bar-left img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.canasta-bar-info .title {
    font-weight: 700;
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.2;
}

.canasta-bar-info .counter {
    font-size: 0.85rem;
    color: #718096;
}

.canasta-bar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow-x: auto;
    padding: 4px;
}

.canasta-slot {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border: 2px dashed #cbd5e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f7fafc;
    transition: all 0.2s ease;
}

.canasta-slot.filled {
    border: 2px solid #3182ce;
    background-color: #fff;
}

.canasta-slot.fixed {
    border: 2px solid #6b46c1;
    background-color: #f7fafc;
}

.canasta-slot .fixed-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #6b46c1;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.canasta-slot.gift-slot {
    border: 2px dashed #e2e8f0;
    background-color: #fffaf0;
    position: relative;
}

.canasta-slot .gift-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #dd6b20;
    color: white;
    border-radius: 4px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}

.canasta-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 4px;
}

.canasta-slot .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid #fff;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.canasta-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 28%;
    justify-content: flex-end;
}

.canasta-subtotal {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.canasta-subtotal .label {
    font-size: 0.8rem;
    color: #718096;
}

.canasta-subtotal .amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b6cb0;
}

@media (max-width: 768px) {
    .canasta-sticky-bar {
        flex-direction: column;
        padding: 10px;
        min-height: 130px;
        gap: 8px;
    }
    .canasta-bar-left, .canasta-bar-right {
        width: 100%;
        justify-content: space-between;
    }
    .canasta-bar-center {
        width: 100%;
        justify-content: flex-start;
    }
    .canasta-container {
        padding-bottom: 150px;
    }
}
