.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #DEAD6F;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    display: none;
    min-width: 18px;
    text-align: center;
}

.cart-count.show {
    display: block;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #DEAD6F;
}

#cart-items {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-item .quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item .btn-outline-secondary {
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.cart-total {
    padding: 15px;
    border-top: 2px solid #eee;
    margin-top: 15px;
}

.cart-total h5 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.toast {
    z-index: 1056;
}

.offcanvas-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-title {
    font-weight: 600;
    color: #2c3e50;
}

.btn-primary {
    background-color: #DEAD6F;
    border-color: #DEAD6F;
}

.btn-primary:hover {
    background-color: #C89B5E;
    border-color: #C89B5E;
}

/* Estilos para el scrollbar del carrito */
#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#cart-items::-webkit-scrollbar-thumb {
    background: #F28D9E;
    border-radius: 3px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
    background: #e67d8e;
}

.btn-remove {
    color: #dc3545;
    padding: 0;
    font-size: 1.2rem;
}

.btn-remove:hover {
    color: #bd2130;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-title {
    font-size: 1rem;
    margin: 0;
    color: #333;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F28D9E;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.quantity-input {
    min-width: 30px;
    text-align: center;
}

#cartItems {
    max-height: 400px;
    overflow-y: auto;
}

.offcanvas {
    max-width: 400px;
    width: 100%;
}

.cart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.offcanvas-body {
    padding: 0 !important;
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

#cart-items .list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem;
}

#cart-items .list-group-item:first-child {
    border-top: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    padding-left: 1rem;
}

.cart-item-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--bs-dark);
}

.cart-item-price {
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: 4px;
}

.quantity-value {
    min-width: 2rem;
    text-align: center;
}

.cart-footer {
    background-color: var(--bs-light);
    border-top: 1px solid var(--bs-border-color);
    padding: 1rem;
    margin-top: auto;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--bs-gray-600);
}

.empty-cart iconify-icon {
    font-size: 3rem;
    color: var(--bs-gray-400);
    margin-bottom: 1rem;
    display: block;
}

/* Animaciones */
.offcanvas.offcanvas-end {
    transition: transform 0.3s ease-in-out;
}

.cart-item {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 