/* Estilos para la página de carrito */

.cart-section {
    padding: 3rem 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Estilo para carrito vacío */
.cart-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empty-cart-image {
    max-width: 150px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.cart-empty h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.cart-empty p {
    color: #777;
    margin-bottom: 2rem;
}

.return-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--nav-gradient-start), var(--nav-gradient-end));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 126, 182, 0.2);
}

.return-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 126, 182, 0.3);
}

/* Estilo para items del carrito */
.cart-items {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

.cart-item-actions {
    display: flex;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0.5rem;
}

.remove-item {
    color: #ff5252;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.remove-item:hover {
    text-decoration: underline;
}

/* Estilo para el resumen */
.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    align-self: start;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.summary-row.total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Información del cliente */
.customer-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.customer-info h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.info-input, .info-textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.info-textarea {
    min-height: 80px;
    resize: vertical;
}

/* Estilos para los nuevos campos del formulario */
#house-color, 
#reference {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

#house-color:focus, 
#reference:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 126, 182, 0.15);
}

/* Estilo para las etiquetas de los nuevos campos */
label[for="house-color"],
label[for="reference"] {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}

/* Contenedor para los nuevos campos */
.extra-info-fields {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f5f5f5;
}

/* Estilo para separar visualmente los campos */
.form-group {
    margin-bottom: 1rem;
}

/* Estilos mejorados para todos los campos del formulario */
#customer-name,
#customer-address,
#customer-notes,
#house-color,
#reference {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

#customer-name:focus,
#customer-address:focus,
#customer-notes:focus,
#house-color:focus,
#reference:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 126, 182, 0.15);
}

/* Estilos para todas las etiquetas del formulario */
label[for="customer-name"],
label[for="customer-address"],
label[for="customer-notes"],
label[for="house-color"],
label[for="reference"] {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}

/* Estilo específico para el campo de notas */
#customer-notes {
    min-height: 100px;
    resize: vertical;
}

/* Añadir espacio entre los grupos de campos */
.form-group + .form-group {
    margin-top: 1.2rem;
}

.checkout-button {
    background: linear-gradient(135deg, var(--nav-gradient-start), var(--nav-gradient-end));
    color: white;
    border: none;
    width: 100%;
    padding: 1rem;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(255, 126, 182, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 126, 182, 0.3);
}

.checkout-button::before {
    content: ""; 
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../images/whatsapp-icon.png') no-repeat center center;
    background-size: contain;
}

.clear-button {
    background: transparent;
    color: #777;
    border: 1px solid #ddd;
    width: 100%;
    padding: 0.8rem;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-button:hover {
    background: #f9f9f9;
    color: #ff5252;
}

/* Notificación de producto agregado */
.add-to-cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
}

.add-to-cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.notification-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.notification-link {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.notification-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}