/* ===== ESTILOS DEL CARRITO DE COMPRAS ===== */

.cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    background: #333;
    border-radius: 50px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cart-icon i {
    font-size: 24px;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #fff;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    color: #333;
}

.cart-close {
    background: #f0f0f0;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.cart-close:hover {
    background: #e0e0e0;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
    font-size: 0.8rem;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #666;
}

.cart-item-remove {
    background: #ff0000;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
}

.confirm-order-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.confirm-order-btn:hover {
    background: #555;
}

.add-to-cart-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #555;
}

.producto-grande {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.producto-grande a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.producto-grande .product-text {
    margin-top: 10px;
    width: 100%;
}

.producto-grande .product-text h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.producto-grande .product-text p {
    color: #666;
    font-weight: 500;
}

.descripcion-producto {
    color: #838383;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 35px;
}

.cart-item-quantity {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

/* Estilos para los controles de cantidad */
.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
    border: none;
}

.quantity-btn:hover:not(.disabled) {
    background-color: #e0e0e0;
}

.quantity-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

.quantity-value {
    margin: 0 8px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.primary-btn {
    margin-top: 0px;
}

/* ===== ESTILOS DEL MODAL DE ORDEN ===== */

.order-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.order-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
}

.order-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.order-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.order-modal-close:hover {
    color: #666;
}

.order-modal-body {
    padding: 25px;
}

.order-summary {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.order-summary h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    color: #333;
}

.order-item-details {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.order-item-price {
    font-weight: 500;
    color: #333;
}

.order-total-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    text-align: right;
    font-size: 18px;
    color: #333;
}

.order-form .form-group {
    margin-bottom: 20px;
}

.order-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-confirm {
    background: #28a745;
    color: white;
    position: relative;
}

.btn-confirm:hover:not(:disabled) {
    background: #218838;
}

.btn-confirm:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.text-end{
    text-align: end;
}
/* Responsive */
@media (max-width: 768px) {
    #detalle-producto h3 {
        text-align: center;
        padding: 20px 0 10px 0;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .titule-modal{
    line-height: 2rem;
    }

    .cart-close {
        font-size: 20px;
        padding: 10px 15px;
        background: #ddd;
        color: #000;
    }

    .cart-close:hover {
        background: #bbb;
    }

    .cart-icon {
        bottom: 20px;
        right: 20px;
        padding: 12px;
    }

    .cart-icon i {
        font-size: 20px;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .order-modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .order-modal-header,
    .order-modal-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }
}

.small-text {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}
.order-form textarea{
        font-size: 15px;
}

/* Responsive */

@media (max-width: 480px) {
    #detalle-producto h3{
        font-size: 20px;
        padding: 15px 0 8px 0;
    }
    .order-modal-header h2 {
    margin: 0;
    color: #000000;
    font-size: 20px;
    }
    .order-item-name {
    font-weight: 500;
    color: #333;
    font-size: 12px;
    }
    .titule-modal{
    line-height: 1rem;
    }
    .order-item-details {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    }
    .order-item-price {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    }
    .order-total-section{
        font-size: 15px;
    }

    .cart-close {
        font-size: 12px;
        padding: 8px 12px;
    }

    .cart-icon {
        bottom: 15px;
        right: 15px;
        padding: 10px;
    }

    .cart-icon i {
        font-size: 18px;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .order-modal-header,
    .order-modal-body {
        padding: 12px;
    }

    .order-modal-content {
        margin: 5px;
        max-height: 90vh;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .small-text {
        font-size: 11px;
        text-align: center;
    }
    .order-form label {
    font-size: 13px;
    }
    .order-form textarea{
        font-size: 12px;
    }
}