/* Estilos para el sistema de e-commerce */

/* Estilos generales de página */
.page-banner {
    background-color: #f5f5f5;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.page-banner h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.page-banner p {
    color: #666;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Estilos del carrito */
.cart-section {
    padding-bottom: 60px;
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
}

.cart-empty i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.cart-empty p {
    color: #666;
    margin-bottom: 25px;
}

.cart-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.cart-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.product-info .no-image {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.product-info .no-image i {
    font-size: 2rem;
    color: #ccc;
}

.product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.product-name a:hover {
    color: #0d6efd;
}

.product-price {
    font-weight: 600;
    color: #333;
}

.quantity-selector {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
}

.quantity-btn.minus {
    border-radius: 4px 0 0 4px;
}

.quantity-btn.plus {
    border-radius: 0 4px 4px 0;
}

.quantity-input {
    width: 45px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-left: 0;
    border-right: 0;
    text-align: center;
    font-size: 0.9rem;
}

.product-subtotal {
    font-weight: 600;
    color: #333;
}

.product-actions .btn-remove {
    color: #dc3545;
    font-size: 1.1rem;
    text-decoration: none;
}

.cart-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.cart-summary-actions {
    margin-bottom: 20px;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
}

.btn-clear-cart {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    text-decoration: none;
    border-radius: 4px;
}

.btn-continue-shopping:hover {
    background-color: #e9ecef;
}

.btn-clear-cart:hover {
    background-color: #dc3545;
    color: #fff;
}

.cart-totals {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    min-width: 300px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-total-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #0d6efd;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    font-weight: 500;
}

.btn-checkout:hover {
    background-color: #0b5ed7;
    color: #fff;
}

/* Estilos del checkout */
.checkout-section {
    padding-bottom: 60px;
}

.checkout-login {
    margin-bottom: 30px;
}

.login-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.login-option {
    flex: 1;
    min-width: 300px;
}

.login-option-title {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.login-option-title i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.checkout-steps {
    margin-bottom: 30px;
}

.checkout-step {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 20px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: 600;
}

.step-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.step-content {
    margin-top: 20px;
    display: none;
}

.step-content.active {
    display: block;
}

.shipping-options,
.payment-options {
    margin-top: 20px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

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

.option-radio {
    margin-right: 15px;
    margin-top: 3px;
}

.option-content h5 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.option-price {
    font-weight: 600;
}

.order-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
}

.order-summary h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-place-order {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    font-weight: 500;
    cursor: pointer;
}

.btn-place-order:hover {
    background-color: #218838;
}

.btn-place-order:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Estilos de login y registro */
.login-register-section {
    padding-bottom: 60px;
}

.toggle-password {
    cursor: pointer;
}

.password-strength-indicator,
.password-match-indicator {
    width: 24px;
}

/* Estilos para Mi Cuenta */
.account-section {
    padding-bottom: 60px;
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* Página de confirmación */
.order-confirmation {
    padding-bottom: 60px;
}

.confirmation-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
}

.order-details {
    margin-top: 30px;
}

/* Adaptación a móviles */
@media (max-width: 768px) {
    .cart-summary {
        flex-direction: column;
    }
    
    .cart-totals {
        width: 100%;
        margin-top: 20px;
    }
    
    .login-options {
        flex-direction: column;
    }
    
    .option-item {
        flex-direction: column;
    }
    
    .option-radio {
        margin-bottom: 10px;
    }
}

/* Animaciones y transiciones */
.btn-checkout,
.btn-place-order,
.btn-continue-shopping,
.btn-clear-cart {
    transition: all 0.3s ease;
}

.step-content {
    transition: all 0.3s ease;
}

.option-item {
    transition: background-color 0.2s ease;
}

/* Notificaciones y alertas */
.alert {
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}
